The Agent Connect Framework (ACF) is a comprehensive specification that enables seamless collaboration between AI agents in multi-agent applications, including specifications like APIs and open-source middleware services. It provides the foundation for connecting agents built with different frameworks and technologies within the IBM watsonx ecosystem. ACF is built on five core principles:
Interoperability: Enable agents built with any framework to communicate and collaborate.
Standardization: Provide consistent interfaces and protocols for agent interaction.
Simplicity: Make integration as straightforward as possible for developers.
Extensibility: Allow for future expansion and adaptation as agent technologies evolve.
Security: Ensure secure communication and data handling between agents.
The Agent Connect Protocol defines the standard interfaces and communication patterns for agents to interact with each other and with the watsonx Orchestrate platform. It is designed to be compatible with existing agent frameworks and to provide a consistent experience for developers.
The Chat API is the primary interface for agent-to-agent communication. It follows the familiar OpenAI chat completions format, facilitating implementation and integration with existing agent frameworks. It supports both synchronous and streaming responses for real-time interaction between agents.
The Agent Discovery component allows agents to discover and learn about other agents in the ecosystem. This enables dynamic collaboration between agents without requiring hardcoded knowledge of each other.
The AI Gateway provides centralized access to AI models such as LLMs, voice models, and embeddings models. It simplifies the implementation and management of multi-agent systems by providing shared access to these models and collecting telemetry across agents.
To integrate your agent with Agent Connect, follow these steps:
Implement Agent Connect API endpoints: Implement the Agent Connect API endpoints (primarily the chat completion endpoint) in your agent.
Enable discovery: Enable your agent to be discovered by watsonx Orchestrate and other agents.
Participate in multi-agent workflows: Participate in multi-agent workflows, receiving requests and returning responses.
Optional: Leverage shared AI models: Optionally leverage shared AI models through the AI Gateway, which collects agent telemetry for end-to-end monitoring and governance of multi-agent systems.
Agents communicate using a standardized chat completions API, which follows familiar patterns from OpenAI and other LLM providers. This standard facilitates the implementation of the required endpoints and maintains consistency in the communication between agents.
Example chat request
Copy
Ask AI
// Example chat request{ "model": "agent-name", "messages": [ {"role": "user", "content": "Hello, I need help with a task."} ], "stream": true}
Agents can stream their intermediate thinking steps and tool calls, providing visibility into their reasoning process and enabling more effective collaboration.
Copy
Ask AI
event: thread.run.step.deltadata: {"id": "step-123", "object": "thread.run.step.delta", "thread_id": "t-456", "model": "agent-1", "choices": [{"delta": {"role": "assistant", "step_details": {"type": "thinking", "content": "I need to find information about this employee..."}}}]}