Skip to main content Crate redstart_protocol Copy item path Source AgentInfo Metadata about a connected ACP agent server returned by initialize. ConfigChoice A selectable choice within an ACP configOption (model, mode, reasoning effort, etc.). ContextUsage Context window / token usage reported by an ACP agent. PairingUri Pairing payload encoded in redstart://connect?... QR codes and deep links. PermissionChoice An option presented in an agent session/request_permission prompt. PermissionPrompt An inbound session/request_permission request from the ACP agent. PlanEntry A single step inside an ACP plan session update. SessionConfigOption An ACP session configuration option (e.g., model, mode, or thinking effort). SessionSummary Summary of an ACP session returned by session/list. SlashCommand A slash command advertised via available_commands_update. ToolCallUpdate A tool-call update emitted via session/update. build_cancel_notification Builds a JSON-RPC 2.0 session/cancel notification to interrupt an active turn. build_initialize_request Builds a JSON-RPC 2.0 initialize request for ACP protocol version 1. build_list_sessions_request Builds a JSON-RPC 2.0 session/list request. build_load_session_request Builds a JSON-RPC 2.0 session/load request. build_new_session_request Builds a JSON-RPC 2.0 session/new request. build_permission_response Builds a JSON-RPC 2.0 response to an agent session/request_permission request. build_ping_request Builds a JSON-RPC 2.0 $/ping heartbeat request. build_prompt_request Builds a JSON-RPC 2.0 session/prompt request with a single text block. build_set_config_option_request Builds a JSON-RPC 2.0 session/set_config_option request. normalize_inbound_message Trims trailing whitespace/newlines and returns None for empty payloads. parse_agent_info Extracts AgentInfo from an ACP initialize JSON-RPC response payload. parse_available_commands Extracts advertised slash commands from available_commands_update. parse_config_options Parses ACP configOptions (or legacy models/modes) from a session/new, session/load,
session/set_config_option response, or config_option_update notification. parse_context_usage Extracts context token usage from a usage_update notification or session/prompt result. parse_permission_request Parses an inbound session/request_permission JSON-RPC request from the agent. parse_plan_update Extracts a plan checklist from a session/update notification. parse_session_list Extracts session summaries from an ACP session/list JSON-RPC response. parse_session_text_delta Extracts text delta from a session/update ACP notification when present. parse_session_thought_delta Extracts a thought/reasoning text delta from agent_thought_chunk. parse_tool_call_update Extracts a tool-call event from tool_call or tool_call_update notifications. parse_user_text_delta Extracts user prompt text delta from user_message_chunk (emitted during session/load replay). try_handle_ping If raw is a JSON-RPC $/ping request with an id, returns the serialized pong response.