Question: The following pseudo - code defines a control loop for a practical reasoning ( BDI ) agent: 1 . B : = B 0 ;
The following pseudocode defines a control loop for a practical reasoning BDI agent:
B : B;
I : I;
while true do
get next percept rho ;
B : brfBrho ;
D : optionsB I ;
I : filter B D I ;
pi : planB I Ac;
while not emptypi or succeeded I B or believeimpossibleI B do
alpha ; headpi ;
executealpha ;
pi : tail pi ;
get next percept rho ;
B : brfBrho ;
if reconsider I B then
D : optionsB I ;
I : filter B D I ;
end if
if not soundpi I B then
pi : planB I Ac;
end if
end while
end while
b Recall that Practical Reasoning deliberation means ends reasoning With reference to the above
code, answer the following questions:
What commitment protocol is used in this code?
What should be modified in this code if the commitment protocol Openedminded commitment is
used?
What should be modified in this code if the commitment protocol Singleminded commitment is
used?
Assume the commitment protocol Singleminded 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
