Documente Academic
Documente Profesional
Documente Cultură
Agent communication
Agent Communication
For agents to communicate they must agree on:
The syntax of individual messages (i.e., the language) The sequence of messages (i.e., the protocol) N.B.1: Languages are distinct from protocols! N.B.2: We need both!
Locutionary act
Act of making an utterance E.g., Shut the door!.
Illocutionary act
Action performed in saying something E.g., He told me to shut the door.
Perlocution
The effect of the act E.g., He caused me to shut the door.
For an imperative:
Normal I/O conditions state that the hearer is able to hear the request, the act was performed in normal circumstances. Preparatory conditions state what must be true for this speech act to be effective, e.g., the hearer must be capable of the action requested, and the speaker must believe the hearer can do it. Sincerity conditions state, for example, that the speaker really does want the action performed.
peer-to-peer and agent-based computing
Directives:
Attempt to get the hearer to do something (an imperative)
Commissives:
Commits the speaker to some course of action
Expressive:
Express some psychological state
Declaratives:
Causes a change in an institutional state of affairs
peer-to-peer and agent-based computing
Examples:
Indicatives (representatives) The cat is on the mat. Imperatives (directives) Put the cat on the mat! Interrogatives Where is the cat?
peer-to-peer and agent-based computing
Message Structure
Based on communicative acts (CAs), i.e., the performatives:
Illocutionary verbs, i.e., they describe the speakers intention ACL = CA + MSG
KQML
Knowledge Query Manipulation Language
Wikipedias entry:
http://en.wikipedia.org/wiki/Knowledge_Query_and_Manipulation _Language
10
KQML ACL
KQML messages are of the form
(performative :sender S :receiver R :language L :ontology O :in-reply-to I1 :reply-with I2 :content K )
For example:
(ask-one :sender shopper :receiver amazon-agent :language prolog :ontology book-ontology :in-reply-to advert1234 :reply-with q321 :content book(How to do things with words,Austin,Price) )
peer-to-peer and agent-based computing
11
12
KQML Facilitation
KQML performatives divided into groups: Discourse: ask-one/all, ask-if, tell, insert, Facilitation: advertise, broker-one/all, recommendone/all Mechanics: low-level stuff like IP address registration Facilitator agent to handle facilitation performatives. Usually involving nested KQML messages:
(advertise :sender amazon-agent :receiver facilitator42 :language KQML :ontology KQML-ontology :content (ask-one :sender amazon-agent :receiver facilitator42 :language prolog :ontology book-ontology :reply-with advert1234 :content book(Title,Author,Price) ) )
peer-to-peer and agent-based computing
13
Recommend-Style Facilitation
Conversation for recommend-style facilitation:
1.Agent A advertises to broker B that it can supply K 2.Originator O requests recommendation from B for a supplier of K 3.B sends O advertisement that A can supply K 4.O asks A a query Q concerning K. 5.A tells O some information I in response to Q.
4. ask Q
O
2. recommend K?
5. tell I 3. advertise K
A
1. advertise K
14
Broker-Style Facilitation
Alternative style of brokerage: middleperson
1.A advertises to B that it can supply K, as before. 2.O requests B to act as broker for a query Q. 3.B determines that Q concerns K, so asks Q to A. 4.A tells B a response I to Q. 5.B tells I to O.
O
5. tell I 1. advertise K 2. broker Q 4. tell I
A
3. ask Q
15
FIPA ACL
The Foundation for Intelligent Physical Agents
Standards organisation promoting agent-based technology Goal: interoperability of standards with other technologies Web site: http://www.fipa.org
Content
content languages FIPA SL, constraint language, KIF, RDF.
16
17
18
If an agent is unable to process one or more element of a message, it must respond with not-understood
An agent that complies with FIPA ACL must at least support not-understood
19
Sample Message
A request for a hotel booking:
(request :sender (:name dominicagent@whitestein.com:8080) :receiver (:name rexhotel@tcp://hotelrex.com:6600) :ontology personaltravelassistant :language FIPA-SL :protocol fipa-request :content (action movenpickhotel@tcp://movenpick.com:6600 (bookhotel (:arrival 25/11/2000) (:departure 05/12/2000) ...)) )
20
21
22
Whether or not receiver adopts the belief in the fact will be determined by the receivers trust in the sincerity and reliability of the sender
23
Other Performatives
FIPA Communicative Act Library Specification Includes:
request an agent to perform some action query (ask a question) propose a deal during negotiation accept-proposal to commit to an agreement reject-proposal to terminate negotiation without agreement etc.
24
25