Expand description
Core concepts for understanding and using agent-client-protocol Core concepts for understanding and using agent-client-protocol.
This module provides detailed explanations of the key concepts you need to work effectively with the agent-client-protocol SDK. Read these in order for a progressive introduction, or jump to specific topics as needed.
§Table of Contents
-
ACP Basics - The roles in the protocol: clients, agents, proxies, and conductors.
-
Connections - How to establish connections using link types and connection builders.
-
Sessions - Creating and managing sessions for multi-turn conversations with agents.
-
Callbacks - Handling incoming messages with
on_receive_*methods. -
Explicit Peers - Using
_toand_fromvariants when you need to specify which peer you’re communicating with. -
Ordering - How the dispatch loop processes messages and what ordering guarantees you get.
-
Proxies and Conductors - Building proxies that intercept and modify messages between clients and agents.
-
Error Handling - Protocol errors vs connection errors, and how to handle them.
Modules§
- acp_
basics - The roles in ACP: clients, agents, proxies, and conductors.
- callbacks
- Handling incoming messages with
on_receive_*callbacks. - connections
- Establishing connections using role types and connection builders.
- error_
handling - Error handling patterns in agent-client-protocol.
- ordering
- Message ordering, concurrency, and the dispatch loop.
- peers
- Explicit peers: using
_toand_fromvariants. - proxies
- Building proxies that intercept and modify messages.
- sessions
- Creating and managing sessions for multi-turn conversations.