Skip to main content

Module acp

Module acp 

Source
Expand description

domain::acp — the protocol-neutral ACP value objects.

The ACP v1.25.0 schema is the wire format this module speaks, but the value objects here are protocol-neutral IR — they are the consumer’s view of an ACP peer, not the wire types the per-revision codec generates. The wire types come from crates/protocol-droid-schema (the vendored schema is digested in crates/protocol-droid-schema/spec/MANIFEST.toml).

This module currently ships:

What is not yet here:

  • The session lifecycle types (session/new, session/load, session/prompt, session/cancel, session/list, session/delete, session/resume, session/close, logout).
  • The slash-separated method params and the streaming update model.
  • The SessionCapabilities, ClientSessionCapabilities, ElicitationCapabilities, and the rest of the capability sub-types the schema names.
  • The application-layer dispatch and the per-revision wire codec.
  • The stdio transport adapter.

This module is feature-gated behind acp-experimental at the crate level. The ACP module is post-MVP and experimental; the gate keeps the protocol-neutral core lean for consumers who never touch ACP.

Modules§

content
ContentBlock — the typed content the session/prompt and session/update paths carry.
feature
AcpFeatureProfile — the ACP capability bitset, derived from the negotiated version × agent capabilities × client capabilities × transport.
implementation
Implementation — the clientInfo / agentInfo block the editor and the agent exchange in initialize.
initialize
initialize — the editor’s first call, the agent’s first reply.
method
AcpMethod — every method the ACP v1.25.0 schema names.
notification
domain::acp::notification — the session/update notification the agent streams to the client while processing a session/prompt turn.
protocol_version
AcpProtocolVersion — the wire-level protocol version.
session
domain::acp::session — the session lifecycle request / response types.
tool_call
domain::acp::tool_call — the tool call shapes the session/update notification’s tool_call and tool_call_update variants carry.
version
AcpVersion — the pinned ACP release, as a value object.