Documentation Index
Fetch the complete documentation index at: https://springaicommunity.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Module 02: Protocol Basics
Deep dive into the ACP initialize handshake and version negotiation.What You’ll Learn
- The
InitializeRequestandInitializeResponsestructure - Protocol version negotiation semantics
- Client and agent capability exchange
How It Works
The initialize handshake is the first message exchange in ACP — it must complete before any session or prompt operations. Both sides exchange:- Protocol version — they agree on a compatible version
- Client capabilities — what the client can provide (file system access, terminal execution)
- Agent capabilities — what the agent supports (session loading, image content, MCP)
The Code
Module 01 calledclient.initialize() with defaults. Here we use the explicit form to control exactly what capabilities we advertise. The InitializeResponse tells us what the agent supports: