Skip to main content

Module acp_adapter

Module acp_adapter 

Source

Structs§

AcpSink
ACP sink that translates EngineEvents to ACP messages and handles the bidirectional approval flow.
PendingApproval
Pending approval context: maps an outgoing JSON-RPC request ID back to the engine approval ID so we can route the client’s response correctly.

Enums§

AcpOutgoing
Outgoing messages from the ACP adapter — either session notifications or permission requests (which are JSON-RPC requests the agent sends to the client).

Functions§

engine_event_to_acp
Translates an internal EngineEvent to an ACP SessionNotification.
map_tool_kind
Maps a Koda tool name to the ACP ToolKind enum.
resolve_permission_response
Resolve an ACP permission response to an engine approval command. Returns the EngineCommand::ApprovalResponse if the RPC ID matches a pending approval.