An approach to using degrees of belief in BDI agents