Question: The following pseudo - code defines a control loop for a practical reasoning ( BDI ) agent: 1 . B : = B 0 ;

The following pseudo-code defines a control loop for a practical reasoning (BDI) agent:
1. B := B0;
2.
I := I0;
3. while true do
4.
get next percept \rho ;
5. B := brf(B,\rho );
6.
D := options(B, I );
7.
I := filter (B, D, I );
8.\pi := plan(B , I , Ac);
9. while not (empty(\pi ) or succeeded (I , B) or believeimpossible(I , B)) do
10.
\alpha ; = head(\pi );
11.
execute(\alpha );
12.
\pi := tail (\pi );
13.
get next percept \rho ;
14.
B := brf(B,\rho );
15.
if reconsider (I , B) then
16.
D := options(B, I );
17.
I := filter (B, D, I );
18.
end if
19.
if not sound(\pi , I , B) then
20.
\pi := plan(B, I , Ac);
21.
end if
22.
end while
23. end while
(b) Recall that Practical Reasoning = deliberation + means ends reasoning. With reference to the above
code, answer the following questions:
1. What commitment protocol is used in this code?
2. What should be modified in this code if the commitment protocol Opened-minded commitment is
used?
3. What should be modified in this code if the commitment protocol Single-minded commitment is
used?
4. Assume the commitment protocol Single-minded commitment is used in the above code. When
should an agent stop to reconsider its intentions?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!