Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 678 Bytes

KB-Agent.md

File metadata and controls

15 lines (12 loc) · 678 Bytes

KB-AGENT

AIMA3e

function KB-AGENT(percept) returns an action
persistent: KB, a knowledge base
      t, a counter, initially 0, indicating time

 TELL(KB, MAKE-PERCEPT-SENTENCE(percept, t))
action ← ASK(KB, MAKE-ACTION-QUERY(t))
 TELL(KB, MAKE-ACTION-SENTENCE(action, t))
tt + 1
return action


Figure ?? A generic knowledge-based agent. Given a percept, the agent adds the percept to its knowledge base, asks the knowledge base for the best action, and tells the knowledge base that it has in fact taken that action.