Effective communication is the foundation of collaboration. Just as human societies thrive through shared language and understanding, multi-agent systems achieve collective goals through standardized communication protocols that enable agents to coordinate, negotiate, and cooperate for the benefit of all.
Communication is the cornerstone of multi-agent systems. Without effective communication mechanisms, agents cannot coordinate their actions, share information, or collaborate to solve complex problems. Agent communication languages (ACLs) provide the standardized syntax and semantics necessary for agents to understand each other.
Unlike traditional inter-process communication, agent communication protocols must handle:
FIPA-ACL (Foundation for Intelligent Physical Agents - Agent Communication Language) is the most widely adopted standard for agent communication. Developed by FIPA in the late 1990s, it provides a comprehensive framework for agent interaction.
Every FIPA-ACL message consists of multiple parameters that define the communication act:
// FIPA-ACL Message Structure
interface FIPAMessage {
performative: string; // Type of communicative act
sender: AgentIdentifier; // Sender agent ID
receiver: AgentIdentifier[]; // One or more receivers
content: any; // Message content
language: string; // Content language (e.g., 'fipa-sl')
ontology: string; // Domain ontology
protocol: string; // Interaction protocol
conversationId: string; // Conversation identifier
replyWith: string; // Reply identifier
inReplyTo: string; // Reference to previous message
replyBy: Date; // Deadline for reply
}
// Example FIPA-ACL message
const message: FIPAMessage = {
performative: 'request',
sender: { name: 'buyer-agent-001', address: 'http://mas.example.com/buyer001' },
receiver: [{ name: 'seller-agent-042', address: 'http://mas.example.com/seller042' }],
content: {
action: 'provide-quote',
item: 'laptop',
quantity: 5,
maxPrice: 1000
},
language: 'fipa-sl',
ontology: 'ecommerce-ontology',
protocol: 'fipa-request',
conversationId: 'conv-12345',
replyWith: 'req-67890',
replyBy: new Date('2025-12-26T10:00:00Z')
};
// 弘益人間: Clear communication for mutual benefit
FIPA-ACL defines 22 standard performatives (communicative acts). The most commonly used include:
| Performative | Purpose | Example Use |
|---|---|---|
| INFORM | Share information | "Temperature is 25°C" |
| REQUEST | Ask agent to perform action | "Please send status report" |
| QUERY-IF | Ask if proposition is true | "Is task completed?" |
| PROPOSE | Make a proposal | "I can deliver for $50" |
| ACCEPT-PROPOSAL | Accept a proposal | "I accept your offer" |
| REJECT-PROPOSAL | Reject a proposal | "Price too high" |
| AGREE | Agree to perform action | "I will complete by 5pm" |
| REFUSE | Refuse to perform action | "Cannot complete request" |
| FAILURE | Report action failure | "Task failed due to error" |
| CFP | Call for proposals | "Need quotes for delivery" |
class FIPAAgent {
constructor(id) {
this.id = id;
this.messageHandler = new Map();
this.setupHandlers();
}
setupHandlers() {
// Handle different performatives
this.messageHandler.set('inform', this.handleInform.bind(this));
this.messageHandler.set('request', this.handleRequest.bind(this));
this.messageHandler.set('query-if', this.handleQuery.bind(this));
this.messageHandler.set('propose', this.handlePropose.bind(this));
this.messageHandler.set('cfp', this.handleCFP.bind(this));
}
async sendInform(receiver, content) {
return this.sendMessage({
performative: 'inform',
sender: this.id,
receiver: [receiver],
content: content,
language: 'fipa-sl'
});
}
async sendRequest(receiver, action) {
return this.sendMessage({
performative: 'request',
sender: this.id,
receiver: [receiver],
content: { action: action },
protocol: 'fipa-request',
conversationId: this.generateConversationId()
});
}
handleInform(message) {
console.log(`Received information: ${JSON.stringify(message.content)}`);
this.updateBeliefs(message.content);
}
async handleRequest(message) {
const canDo = await this.canPerformAction(message.content.action);
if (canDo) {
await this.sendMessage({
performative: 'agree',
sender: this.id,
receiver: [message.sender],
inReplyTo: message.replyWith,
content: { action: message.content.action }
});
const result = await this.performAction(message.content.action);
await this.sendMessage({
performative: result.success ? 'inform' : 'failure',
sender: this.id,
receiver: [message.sender],
content: result
});
} else {
await this.sendMessage({
performative: 'refuse',
sender: this.id,
receiver: [message.sender],
inReplyTo: message.replyWith,
content: { reason: 'Cannot perform requested action' }
});
}
}
async handleCFP(message) {
// Call for proposals - evaluate and respond with proposal
const proposal = await this.generateProposal(message.content);
if (proposal) {
await this.sendMessage({
performative: 'propose',
sender: this.id,
receiver: [message.sender],
inReplyTo: message.replyWith,
content: proposal
});
}
}
}
// 弘益人間: Agents communicate to coordinate for collective benefit
KQML (Knowledge Query and Manipulation Language) predates FIPA-ACL and focuses on knowledge sharing between agents. While less common today, it influenced the development of FIPA-ACL.
KQML defines performatives focused on knowledge operations:
// KQML message example
class KQMLMessage {
constructor(performative, sender, receiver, content) {
this.performative = performative;
this.sender = sender;
this.receiver = receiver;
this.content = content;
this.language = 'KIF'; // Knowledge Interchange Format
this.ontology = null;
}
toString() {
return `(${this.performative}
:sender ${this.sender}
:receiver ${this.receiver}
:language ${this.language}
:content "${this.content}")`;
}
}
// Example: Ask if temperature exceeds threshold
const askIfMsg = new KQMLMessage(
'ask-if',
'monitor-agent',
'sensor-agent-01',
'(> temperature 30)'
);
// Example: Tell current temperature
const tellMsg = new KQMLMessage(
'tell',
'sensor-agent-01',
'monitor-agent',
'(= temperature 25)'
);
Agent communication requires reliable message transport mechanisms. The WIA-AI-016 standard supports multiple transport protocols:
RESTful HTTP APIs provide a simple, widely-supported transport mechanism for agent messages. Agents expose endpoints for receiving messages and use HTTP POST to send messages.
// HTTP-based agent message transport
class HTTPAgentTransport {
constructor(agentId, port) {
this.agentId = agentId;
this.port = port;
this.endpoint = `http://localhost:${port}/messages`;
}
// Send message via HTTP POST
async send(message) {
const response = await fetch(this.endpoint, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(message)
});
return response.json();
}
// Receive messages via HTTP server
startServer(messageHandler) {
const express = require('express');
const app = express();
app.use(express.json());
app.post('/messages', async (req, res) => {
const message = req.body;
const response = await messageHandler(message);
res.json(response);
});
app.listen(this.port, () => {
console.log(`Agent ${this.agentId} listening on port ${this.port}`);
});
}
}
// 弘益人間: Open communication channels for all agents
WebSocket provides bidirectional, full-duplex communication ideal for real-time agent interactions. It reduces latency and overhead compared to HTTP polling.
// WebSocket agent communication
class WebSocketAgentTransport {
constructor(agentId, url) {
this.agentId = agentId;
this.ws = new WebSocket(url);
this.messageQueue = [];
this.handlers = new Map();
this.ws.onopen = () => {
console.log(`Agent ${agentId} connected`);
this.flushQueue();
};
this.ws.onmessage = (event) => {
const message = JSON.parse(event.data);
this.handleMessage(message);
};
}
send(message) {
if (this.ws.readyState === WebSocket.OPEN) {
this.ws.send(JSON.stringify(message));
} else {
this.messageQueue.push(message);
}
}
flushQueue() {
while (this.messageQueue.length > 0) {
const message = this.messageQueue.shift();
this.send(message);
}
}
onMessage(performative, handler) {
this.handlers.set(performative, handler);
}
handleMessage(message) {
const handler = this.handlers.get(message.performative);
if (handler) {
handler(message);
}
}
}
For large-scale systems, message queue systems like RabbitMQ, Apache Kafka, or MQTT provide reliable, scalable message delivery with features like guaranteed delivery, message persistence, and pub/sub patterns.
Many agent interactions require multiple message exchanges following structured patterns called conversation protocols or interaction protocols.
The FIPA Request protocol defines a simple interaction where one agent requests another to perform an action:
The Contract Net Protocol enables task allocation through bidding:
// Contract Net Protocol implementation
class ContractNetManager {
async allocateTask(task, contractors) {
// Step 1: Send CFP to all contractors
const cfp = {
performative: 'cfp',
content: {
task: task,
deadline: Date.now() + 3600000, // 1 hour
requirements: task.requirements
},
conversationId: this.generateConversationId(),
replyBy: new Date(Date.now() + 300000) // 5 min for proposals
};
const proposals = await this.broadcast(contractors, cfp);
// Step 2: Evaluate proposals
const bestProposal = this.evaluateProposals(
proposals.filter(p => p.performative === 'propose')
);
if (!bestProposal) {
console.log('No suitable proposals received');
return null;
}
// Step 3: Accept best proposal
await this.send(bestProposal.sender, {
performative: 'accept-proposal',
inReplyTo: bestProposal.replyWith,
conversationId: cfp.conversationId
});
// Step 4: Reject other proposals
for (const proposal of proposals) {
if (proposal.sender !== bestProposal.sender &&
proposal.performative === 'propose') {
await this.send(proposal.sender, {
performative: 'reject-proposal',
inReplyTo: proposal.replyWith,
conversationId: cfp.conversationId
});
}
}
// Step 5: Wait for task completion
return this.waitForCompletion(bestProposal.sender, cfp.conversationId);
}
evaluateProposals(proposals) {
return proposals.reduce((best, current) => {
if (!best) return current;
const currentScore = this.scoreProposal(current);
const bestScore = this.scoreProposal(best);
return currentScore > bestScore ? current : best;
}, null);
}
scoreProposal(proposal) {
const content = proposal.content;
let score = 0;
// Lower cost is better
score += (1000 - content.cost) / 10;
// Earlier delivery is better
const timeScore = (content.deliveryTime - Date.now()) / 3600000;
score += Math.max(0, 100 - timeScore);
// Higher quality is better
score += content.quality * 10;
return score;
}
}
// 弘益人間: Fair task allocation benefiting all participants
Various auction mechanisms can be implemented as conversation protocols:
For agents to truly understand each other, they must share a common ontology—a formal specification of concepts, relationships, and constraints in a domain.
// Simple ontology definition
const eCommerceOntology = {
concepts: {
Product: {
properties: ['name', 'price', 'category', 'manufacturer'],
relationships: ['hasReview', 'inCategory']
},
Order: {
properties: ['orderId', 'totalAmount', 'status', 'timestamp'],
relationships: ['containsProduct', 'placedBy', 'deliveredTo']
},
Customer: {
properties: ['customerId', 'name', 'email', 'address'],
relationships: ['placed', 'reviewed']
}
},
relationships: {
hasReview: { domain: 'Product', range: 'Review' },
inCategory: { domain: 'Product', range: 'Category' },
containsProduct: { domain: 'Order', range: 'Product' },
placedBy: { domain: 'Order', range: 'Customer' }
}
};
// Using ontology for semantic understanding
class SemanticAgent {
constructor(ontology) {
this.ontology = ontology;
}
validateMessage(message) {
const concept = message.content.concept;
if (!this.ontology.concepts[concept]) {
throw new Error(`Unknown concept: ${concept}`);
}
const requiredProps = this.ontology.concepts[concept].properties;
const providedProps = Object.keys(message.content.data);
return requiredProps.every(prop => providedProps.includes(prop));
}
interpretMessage(message) {
if (!this.validateMessage(message)) {
return null;
}
return {
concept: message.content.concept,
data: message.content.data,
semantics: this.ontology.concepts[message.content.concept]
};
}
}
Secure communication is critical in multi-agent systems, especially in open environments where malicious agents may exist.
Agents must verify the identity of communication partners using digital certificates, API keys, or token-based authentication.
Message content should be encrypted to prevent eavesdropping. TLS/SSL for HTTP and encryption layers for message queues provide transport security.
Digital signatures ensure messages haven't been tampered with during transmission.
// Secure agent communication
class SecureAgent {
constructor(agentId, privateKey, publicKey) {
this.agentId = agentId;
this.privateKey = privateKey;
this.publicKey = publicKey;
this.trustedAgents = new Map();
}
signMessage(message) {
const crypto = require('crypto');
const sign = crypto.createSign('SHA256');
sign.update(JSON.stringify(message));
const signature = sign.sign(this.privateKey, 'hex');
return {
...message,
signature: signature,
senderPublicKey: this.publicKey
};
}
verifyMessage(message) {
const crypto = require('crypto');
const verify = crypto.createVerify('SHA256');
const { signature, senderPublicKey, ...content } = message;
verify.update(JSON.stringify(content));
return verify.verify(senderPublicKey, signature, 'hex');
}
encryptMessage(message, recipientPublicKey) {
const crypto = require('crypto');
const encrypted = crypto.publicEncrypt(
recipientPublicKey,
Buffer.from(JSON.stringify(message))
);
return {
encrypted: encrypted.toString('hex'),
sender: this.agentId
};
}
decryptMessage(encryptedMessage) {
const crypto = require('crypto');
const decrypted = crypto.privateDecrypt(
this.privateKey,
Buffer.from(encryptedMessage.encrypted, 'hex')
);
return JSON.parse(decrypted.toString());
}
}
// 弘益人間: Secure communication protecting all participants
Efficient communication is essential for scalable multi-agent systems:
Korea operates its industrial ecosystem and standardization system through the following core infrastructure. Korea Top 5 Groups: Samsung, Hyundai Motor, LG, SK, Lotte. Each group operates standardization committees and ISO/IEC TC Korean secretariats. Samsung Electronics (semiconductors, displays, home appliances, telecom)·Hyundai Motor (automobiles, mobility)·LG Electronics (home appliances, displays, OLED)·SK hynix (memory)·LG Energy Solution·Samsung SDI (batteries)·POSCO Future M (materials)·Hyundai Mobis (parts). Korean IT Big Tech: NAVER (search, cloud, AI HyperCLOVA)·Kakao (messenger, payment, mobility, banking)·Coupang (e-commerce, logistics)·Karrot Market·Toss·Woowa Brothers. Korea Telcos: SK Telecom·KT·LG U+. 5G·5G dedicated networks·B2B cloud·AI businesses operating. Korea Top 7 Research Universities: Seoul National University·KAIST·POSTECH·Yonsei University·Korea University·UNIST·DGIST·GIST. All serve as standardization R&D bases and ISO/IEC/IEEE Korean chairs. Korea Government-affiliated National Research Institutes (26): KIST, KAERI, KIMM, KIER, KFRI, KRICT, KRIBB, KARI, KASI, KIGAM, KICT, KISTI, KETI, ETRI, NIMS, KIMS, KISDI, KOTRA, STEPI, KOEN, KICCE, KIET, KIPF, KIHASA, KICJ, KLRI. Korea Industrial Complexes / Tech Valleys: Pangyo Techno Valley·Dongtan·Gwanggyo·Songdo IBD·Yeouido·Gangnam·Sihwa·Banwol·Gumi·Ulsan·Changwon·Geoje·Yeosu·Onsan·Cheongju·Iksan·Gwangyang·POSCO Gwangyang Steel Mill·Asan Bay·Seosan·Songdo·Incheon Airport·Sejong·Cheongna·Geomdan. Korea Trade and Finance Infrastructure: Korea International Trade Association (KITA)·Korea Trade-Investment Promotion Agency (KOTRA)·Export-Import Bank of Korea (KEXIM)·Bank of Korea·Kookmin Bank·Shinhan·Hana·Woori·NH Nonghyup·IBK Industrial Bank·SC First Bank·Citi Bank Korea·HSBC Korea·DBS Korea — 14 Korean major banks and foreign banks. Korea K-POP / K-Content: HYBE·SM·YG·JYP 4 major entertainment companies·CJ ENM·tvN·MBC·KBS·SBS·EBS·YTN·Yonhap News TV·JTBC Korean broadcasting·NETFLIX Korea·Disney Plus·TVING·Wavve·Watcha·Coupang Play. Korea Gaming Industry: Nexon·NCsoft·Krafton·Netmarble·Kakao Games·Pearl Abyss·Com2uS·Gamevil·NHN·Smilegate·Webzen. Korea Automotive / Battery: Hyundai Motor·Kia·Genesis·LG Energy Solution·Samsung SDI·SK On·POSCO Future M·EcoPro·L&F battery cathode material suppliers. Korea Semiconductor: Samsung Electronics (HBM3E·HBM4)·SK hynix (HBM3E 12-Hi)·DB HiTek·SK siltron·SK Enpulse·Dongjin Semichem·Seoul Semiconductor·Simmtech·Samsung Display·LG Display.
Korea operates a comprehensive standards governance system through inter-ministerial cooperation. National Standards Council (under Prime Minister's Office, per Framework Act on National Standards Article 5) coordinates KATS (Korean Agency for Technology and Standards), MFDS (Ministry of Food and Drug Safety), MOTIE (Ministry of Trade, Industry and Energy), MSIT (Ministry of Science and ICT), MOIS (Ministry of the Interior and Safety), MOE (Ministry of Environment), MOHW (Ministry of Health and Welfare), MND (Ministry of National Defense), MCST (Ministry of Culture, Sports and Tourism), MOFA (Ministry of Foreign Affairs), MOJ (Ministry of Justice), and FSC (Financial Services Commission). Accreditation and Testing: KOLAS (Korea Laboratory Accreditation Scheme) accredits 800+ testing laboratories. KAS (Korea Accreditation System) accredits 50+ certification bodies. KTC (Korea Testing Certification), KTR (Korea Testing & Research Institute), KTL (Korea Testing Laboratory), and KCL (Korea Conformity Laboratories) provide conformance testing. Telecom and Cyber: KCC (Korea Communications Commission), KCA (Korea Communications Agency), TTA (Telecommunications Technology Association), IITP (Institute for Information & Communications Technology Planning & Evaluation), NIPA (National IT Industry Promotion Agency), KISA (Korea Internet & Security Agency), KCMVP (Korea Cryptographic Module Validation Program), NIS (National Intelligence Service), NSR (National Security Research Institute), and NCSC (National Cyber Security Center). National R&D Centers: KIST, ETRI, KAIST, Seoul National University, Yonsei University, Korea University, POSTECH, UNIST, GIST, DGIST, KISTI, KIER, KIMM, KRICT, KFRI, KRIBB. International Standards Cooperation: ISO TC/SC Korean secretariats, IEC TC/SC Korean secretariats, ITU-T Study Group Korean chairs, 3GPP RAN/SA Korean chairs, IEEE 802 Korean chairs, W3C Korea office, OASIS Korea office, IETF Korea cooperation, OECD CSTP, UN ESCAP, APEC SCSC Korean cooperation. Korean Industrial Standards (KS) Catalog: KS X (Information) 25,000+, KS A (Basic) 15,000+, KS B (Machinery) 25,000+, KS C (Electrical) 18,000+, KS D (Metallurgy) 12,000+, KS E (Mining) 5,000+, KS F (Construction) 18,000+, KS H (Food) 8,000+, KS I (Environment) 5,000+, KS J (Biology) 3,000+, KS K (Textile) 15,000+, KS L (Ceramics) 7,000+, KS M (Chemistry) 12,000+, KS P (Medical) 5,000+, KS Q (Quality Mgmt) 4,000+, KS R (Transport) 12,000+, KS S (Service) 3,000+, KS T (Packaging) 4,000+, KS V (Shipbuilding) 5,000+, KS W (Aerospace) 3,000+ — totaling 220,000+ Korean Industrial Standards. Key Acts: Personal Information Protection Act (Act 19234, effective Sept 15, 2024), Electronic Government Act, Electronic Signature Act, Act on Promotion of Information and Communications Network Utilization and Information Protection, Information and Communications Infrastructure Protection Act, Data Industry Act, Public Data Act, AI Framework Act (Act 20212, effective July 2026), Industrial Technology Innovation Promotion Act, Framework Act on Science and Technology — 70+ Korean standardization-related laws.
Korea operates digital transformation through a comprehensive governance system. Digital Government: Digital Platform Government Committee (established September 2022, under the President)·Ministry of the Interior and Safety Digital Government Bureau·e-Government Support Center·Gov.kr·National Citizen Service·KDIS (Korea Digital Information Society)·NIA (National Information Society Agency)·MOIS (Ministry of the Interior and Safety). K-DNS Infrastructure: Korea Internet & Security Agency (KISA) Korea Internet Center·KISA DNS Root Server·KRNIC (Korea Network Information Center)·BGP Korea·National Cyber Security Center (NCSC)·KCC (Korea Communications Commission)·MSIT (Ministry of Science and ICT)·NIA·NIPA. Korean Cloud Infrastructure: KT Cloud·NAVER Cloud (NCloud)·Samsung SDS Cloud·LG U+ Cloud·NHN Cloud·Kakao Enterprise Cloud·SK Telecom Cloud·KISA Cloud Security Assurance Program (CSAP)·KCMVP-validated cloud·ISMS-P (Information Security & Personal Information Management System). Korean Security Certifications: KISA ISMS-P certification·KCMVP (Korean Cryptographic Module Validation Program)·NIS (National Intelligence Service) "National Cryptographic Technology Operation Standards"·NCSC "National Cyber Security Strategy 2024-2028"·CC (Common Criteria) Korean evaluation bodies·EAL4·EAL5·KS X ISO/IEC 15408·19790·24759 Korean Profile. Korean Data Standards: NIA AI Hub·National Data Standardization Committee·Statistics Korea (KOSTAT)·MyData 4 Designated Combination Specialists (Samsung SDS, KICI, KOSTAT, KFTC)·National Institute of Korean Language·National Law Information Center·National Spatial Information Platform·National Spatial Data Center·Korean Spatial Information Standards. Finance and Fintech Standards: FSC (Financial Services Commission)·FSS (Financial Supervisory Service)·FIU (Financial Intelligence Unit)·BOK (Bank of Korea)·FSEC (Financial Security Institute)·KFTC (Korea Financial Telecommunications)·KSD (Korea Securities Depository)·KRX (Korea Exchange) 8-agency cooperation. 5G/6G Communications Infrastructure: 5G subscribers 35 million (2024)·5G base stations 350,000·6G commercialization target 2028·5G dedicated networks 16 operators·6G Acceleration Council (MSIT, 2024). K-Content: KOCCA (Korea Creative Content Agency)·MCST (Ministry of Culture, Sports and Tourism)·KCA (Korea Communications Agency)·Korea Culture Information Service Agency·Korean Film Archive·Korea Publishing Industry Promotion Agency. Data 3 Acts (Personal Information Protection Act·Credit Information Act·Telecommunications Network Act, 2020 enforcement)·Data Industry Act (2021)·Public Data Act (2013)·AI Framework Act (2026)·Digital Platform Government Framework Act (2024 proposed) — Korea digital transformation core legislation.