Skip to main content

Module acp

Module acp 

Source
Expand description

ACP (Agent Client Protocol) v1 server support.

Wire types live in protocol (re-exported from agent-client-protocol-schema). The server module runs the stdio JSON-RPC transport loop. bridge translates agent events into ACP session/update notifications. session tracks per-session [AgentRuntime] state, cwd, turn counter, and transcript.

Re-exports§

pub use tool_kind::ToolKind;

Modules§

bridge
ACP EventSink bridge: translates AgentEvents into session/update notifications pushed through an mpsc channel.
permission
ACP Sprint-1 permission bridge.
protocol
ACP v1 protocol types — pure data re-exports from agent-client-protocol-schema.
server
Collaborative Cancellation
session
Per-session state: holds the AgentRuntime, working directory, turn counter, transcript, and a [CancellationToken] for cooperative abort for a single ACP session.
tool_kind
Sprint-3: Custom ToolKind enum for ACP tool_call notifications.