70 likes | 207 Views
This chapter explores the structure of Knowledge Query and Manipulation Language (KQML) used in intelligent agents. It covers the KQML performative format, including sender, receiver, language, ontology, and content. Through an example, it illustrates how content is expressed and the vocabulary utilized. The chapter lists various KQML performatives, categorizing them into basic queries, information exchanges, and capabilities. Each performative serves specific purposes, such as requesting evaluations, providing information, or managing communication readiness between agents to facilitate effective interaction in multi-agent systems.
E N D
Chapter 7Communication CSE 431 – Intelligent Agents
KQML Structure (<KQML-performative> :sender <word> :receiver <word> :language <word> :ontology <word> :content <expression>) How is the content expressed? What vocabulary is used in the content?
KQML Example (tell :sender Agent1 :receiver Agent2 :language KIF :ontology Blocks-World :content (AND (Block A) (Block B) (On A B))) Agent1 tells Agent2 that block A is on block B
KQML Performatives (1) • basic query / requests • evaluate: S wants R to evaluate (simplify) C • ask-one: S wants one of R’s answers to question C • ask-all: S wants all of R’s answers to question C • ask-about: S wants all relevant sentences in R’s VKB • achieve: S wants R to make something true of their environment • response • reply: communicates an expected reply • sorry: S cannot provide a more informative reply
KQML Performatives (2) • generic information • tell: S claims to R that C is in S’s VKB • untell: S claims to R that C is not in S’s VKB • multi-response query • stream-all: multiple response version of ask-all • stream-about: multiple response version of ask-about • monitor: S wants updates to R’s response to a stream-all • eos: end of a stream response to an earlier query
KQML Performatives (3) • generator • standby: S wants R to be ready to respond to a performative • ready: S is ready to respond to R’s previously mentioned performative • next: S wants R’s next response to a previously mentioned performative • rest: S wants R’s remaining responses to a previously mentioned performative
KQML Performatives (4) • capability definition • advertise: S claims to be suited to processing a performative • subscribe: S wants updates to R’s response to a performative • networking • register: S can deliver performatives to some named agent • unregister: undo a register • forward: S wants R to forward a message to another agent • broadcast: S want R to send a performative over all connections