Expand description
ACP v1 protocol types — pure data re-exports from agent-client-protocol-schema.
This module is a thin re-export layer. All wire types come from the upstream
agent-client-protocol-schema crate (fixed version). No runtime dependencies,
no async, no I/O — just serde-backed structs and enums.
Covers the full ACP v1 spec: initialize, session lifecycle, prompt turns, tool calls, permissions, content blocks, capabilities, and protocol-level notifications.
Structs§
- Agent
Auth Capabilities - Agent auth capabilities. Authentication-related capabilities supported by the agent.
- Agent
Capabilities - Capabilities declared by the agent. Capabilities supported by the agent.
- Agent
Method Names - Agent method names. Names of all methods that agents handle.
- Annotations
- Annotations attached to content blocks. Optional annotations for the client. The client can use annotations to inform how objects are used or displayed
- Audio
Content - Audio content. Audio provided to or from an LLM.
- Auth
Method Agent - Agent-side auth method. Agent handles authentication itself.
- Auth
Method Id - An auth method ID. Typed identifier used for auth method values on the wire.
- Authenticate
Request authenticaterequest from client to agent. Request parameters for the authenticate method.- Authenticate
Response authenticateresponse from agent to client. Response to theauthenticatemethod.- Available
Command - Available command. Information about a command.
- Available
Commands Update - An available commands update. Available commands are ready or have changed
- Blob
Resource Contents - Binary resource contents. Binary resource contents.
- Boolean
Config Option Capabilities - Boolean config option capabilities. Capabilities for boolean session configuration options.
- Cancel
Notification notifications/cancelnotification. Notification to cancel ongoing operations for a session.- Cancel
Request Notification notifications/cancelledprotocol-level notification. Notification to cancel an ongoing request.- Client
Capabilities - Capabilities declared by the client. Capabilities supported by the client.
- Client
Method Names - Client method names. Names of all methods that clients handle.
- Client
Session Capabilities - Client-specific session capabilities. Session-related capabilities supported by the client.
- Close
Session Request session/closerequest from client to agent. Request parameters for closing an active session.- Close
Session Response session/closeresponse from agent to client. Response from closing a session.- Config
Option Update - A config option update. Session configuration options have been updated.
- Content
Chunk - A chunk of streamed content. A streamed item of content
- Cost
- Cost information for a turn. Cost information for a session.
- Current
Mode Update - A current mode update. The current mode of the session has changed
- Delete
Session Request session/deleterequest from client to agent. Request parameters for deleting an existing session fromsession/list.- Delete
Session Response session/deleteresponse from agent to client. Response from deleting a session.- Diff
- A diff representing file modifications. A diff representing file modifications.
- Embedded
Resource - An embedded resource with full content. The contents of a resource, embedded into a prompt or tool call result.
- EnvVariable
- An environment variable definition. An environment variable to set when launching an MCP server.
- Error
- An ACP protocol error. JSON-RPC error object.
- ExtNotification
- Extension notification. Allows the Agent to send an arbitrary notification that is not part of the ACP spec. Extension notifications provide a way to send one-way messages for custom functionality while maintaining protocol compatibility.
- ExtRequest
- Extension request. Allows for sending an arbitrary request that is not part of the ACP spec. Extension methods provide a way to add custom functionality while maintaining protocol compatibility.
- ExtResponse
- Extension response.
Allows for sending an arbitrary response to an
ExtRequestthat is not part of the ACP spec. Extension methods provide a way to add custom functionality while maintaining protocol compatibility. - File
System Capabilities - File-system capabilities. File system capabilities that a client may support.
- General
Method Names - General method names. Names of all methods that agents handle.
- Http
Header - An HTTP header definition. An HTTP header to set when making requests to the MCP server.
- Image
Content - Base64-encoded image content. An image provided to or from an LLM.
- Implementation
- Information about an implementation (name, version). Metadata about the implementation of the client or agent. Describes the name and version of an ACP implementation, with an optional title for UI representation.
- Initialize
Request initializerequest from client to agent. Request parameters for the initialize method.- Initialize
Response initializeresponse from agent to client. Response to theinitializemethod.- List
Sessions Request session/listrequest from client to agent. Request parameters for listing existing sessions.- List
Sessions Response session/listresponse from agent to client. Response from listing sessions.- Load
Session Request session/loadrequest from client to agent. Request parameters for loading an existing session.- Load
Session Response session/loadresponse from agent to client. Response from loading an existing session.- Logout
Capabilities - Logout capabilities. Logout capabilities supported by the agent.
- Logout
Request logoutrequest from client to agent. Request parameters for the logout method.- Logout
Response logoutresponse from agent to client. Response to thelogoutmethod.- McpCapabilities
- MCP-related capabilities. MCP capabilities supported by the agent
- McpServer
Http - HTTP-based MCP server config. HTTP transport configuration for MCP.
- McpServer
Sse - SSE-based MCP server config. SSE transport configuration for MCP.
- McpServer
Stdio - Stdio-based MCP server config. Stdio transport configuration for MCP.
- Message
Id - A message identifier. Unique identifier for a message within a session.
- NewSession
Request session/newrequest from client to agent. Request parameters for creating a new session.- NewSession
Response session/newresponse from agent to client. Response from creating a new session.- Permission
Option - A permission option presented to the user. An option presented to the user when requesting permission.
- Permission
Option Id - A permission option ID. Unique identifier for a permission option.
- Plan
- A plan for execution. An execution plan for accomplishing complex tasks.
- Plan
Entry - An entry in a plan. A single entry in the execution plan.
- Prompt
Capabilities - Prompt-related capabilities.
Prompt capabilities supported by the agent in
session/promptrequests. - Prompt
Request session/promptrequest from client to agent. Request parameters for sending a user prompt to the agent.- Prompt
Response session/promptresponse from agent to client. Response from processing a user prompt.- Protocol
Version - Protocol version identifier (v0, v1, v2). Protocol version identifier.
- Request
Permission Request - A permission request to the client. Request for user permission to execute a tool call.
- Request
Permission Response - The client’s response to a permission request. Response to a permission request.
- Resource
Link - A link to an external resource. A resource that the server is capable of reading, included in a prompt or tool call result.
- Resume
Session Request session/resumerequest from client to agent. Request parameters for resuming an existing session.- Resume
Session Response session/resumeresponse from agent to client. Response from resuming an existing session.- Selected
Permission Outcome - The outcome selected by the user. The user selected one of the provided options.
- Session
Additional Directories Capabilities - Session additional directories capabilities. Capabilities for additional session directories support.
- Session
Capabilities - Capabilities for a specific session. Session capabilities supported by the agent.
- Session
Close Capabilities - Session close capabilities.
Capabilities for the
session/closemethod. - Session
Config Boolean - A boolean config option. A boolean on/off toggle session configuration option payload.
- Session
Config Group Id - A config group ID. Unique identifier for a session configuration option value group.
- Session
Config Id - A config ID. Unique identifier for a session configuration option.
- Session
Config Option - A config option for a session. A session configuration option selector and its current state.
- Session
Config Options Capabilities - Session config options capabilities. Session configuration option capabilities supported by the client.
- Session
Config Select - A select config option. A single-value selector (dropdown) session configuration option payload.
- Session
Config Select Group - A select config group. A group of possible values for a session configuration option.
- Session
Config Select Option - A select config option item. A possible value for a session configuration option.
- Session
Config Value Id - A config value ID. Unique identifier for a session configuration option value.
- Session
Delete Capabilities - Session delete capabilities.
Capabilities for the
session/deletemethod. - Session
Id - A session identifier. A unique identifier for a conversation session between a client and agent.
- Session
Info - Information about a session. Information about a session returned by session/list
- Session
Info Update - A session info update. Update to session metadata. All fields are optional to support partial updates.
- Session
List Capabilities - Session list capabilities.
Capabilities for the
session/listmethod. - Session
Mode - A session mode. A mode the agent can operate in.
- Session
Mode Id - A session mode identifier. Unique identifier for a Session Mode.
- Session
Mode State - Current mode state. The set of modes and the one currently active.
- Session
Notification - Session-scoped notification from agent to client. Notification containing a session update from the agent.
- Session
Resume Capabilities - Session resume capabilities.
Capabilities for the
session/resumemethod. - SetSession
Config Option Request session/setConfigOptionrequest from client to agent. Request parameters for setting a session configuration option.- SetSession
Config Option Response session/setConfigOptionresponse from agent to client. Response tosession/set_config_optionmethod.- SetSession
Mode Request session/setModerequest from client to agent. Request parameters for setting a session mode.- SetSession
Mode Response session/setModeresponse from agent to client. Response tosession/set_modemethod.- Terminal
Exit Status - Terminal exit status. Exit status of a terminal command.
- Terminal
Id - A terminal identifier. Typed identifier used for terminal values on the wire.
- Text
Content - Plain text content. Text provided to or from an LLM.
- Text
Resource Contents - Text resource contents. Text-based resource contents.
- Tool
Call - A tool call the agent is requested to make. Represents a tool call that the language model has requested.
- Tool
Call Id - Unique identifier for a tool call within a session. Unique identifier for a tool call within a session.
- Tool
Call Location - A file location accessed or modified by a tool. A file location being accessed or modified by a tool.
- Tool
Call Update - An update to an existing tool call (status, content, etc.). An update to an existing tool call.
- Tool
Call Update Fields - Fields that can be updated in a tool call update. Optional fields that can be updated in a tool call.
- Unstructured
Command Input - Unstructured command input. All text that was typed after the command name is provided as input.
- Usage
Update - A usage update during a session. Context window and cost update for a session.
Enums§
- Agent
Notification - Notification sent by the agent. All possible notifications that an agent can send to a client.
- Agent
Request - All requests an agent can receive. All possible requests that an agent can send to a client.
- Agent
Response - All responses an agent can send. All possible responses that an agent can send to a client.
- Auth
Method - An authentication method. Describes an available authentication method.
- Available
Command Input - Input type for an available command. The input specification for a command.
- Client
Notification - Notification sent by the client. All possible notifications that a client can send to an agent.
- Client
Request - All requests a client can receive. All possible requests that a client can send to an agent.
- Client
Response - All responses a client can send. All possible responses that a client can send to an agent.
- Content
Block - A block of content (text, image, audio, resource). Content blocks represent displayable information in the Agent Client Protocol.
- Embedded
Resource Resource - Embedded resource variants. Resource content that can be embedded in a message.
- Error
Code - ACP error codes. Predefined error codes for common JSON-RPC and ACP-specific errors.
- McpServer
- An MCP server configuration. Configuration for connecting to an MCP (Model Context Protocol) server.
- Permission
Option Kind - The kind of permission option. The type of permission option being presented to the user.
- Plan
Entry Priority - The priority of a plan entry. Priority levels for plan entries.
- Plan
Entry Status - The status of a plan entry. Status of a plan entry in the execution flow.
- Protocol
Level Notification - Protocol-level notification enum (cancel, etc.). General protocol-level notifications that all sides are expected to implement.
- Request
Permission Outcome - The outcome the client selected for a permission request. The outcome of a permission request.
- Role
- The role of a message (user / agent). The sender or recipient of messages and data in a conversation.
- Session
Config Kind - A config option kind. Type-specific session configuration option payload.
- Session
Config Option Category - Config option category. Semantic category for a session configuration option.
- Session
Config Option Value - A config option value. The value to set for a session configuration option.
- Session
Config Select Options - Select options grouping. Possible values for a session configuration option.
- Session
Update - Types of updates that can be sent during session processing. Different types of updates that can be sent during session processing.
- Stop
Reason - Reason the agent stopped a turn. Reasons why an agent stops processing a prompt turn.
- Tool
Call Content - Content produced by a tool call (content block / diff / terminal). Content produced by a tool call.
- Tool
Call Status - Execution status of a tool call. Execution status of a tool call.