Expand description
Agent sessions (ACP) methods + supporting types.
Ported from packages/core/src/agent-os.ts (session methods), agent-session-types.ts
(session/mode/config/capability/permission types), and agents.ts (AgentType, AgentConfig).
ACP = JSON-RPC 2.0 over stdio. Sessions are referenced by string ID and return JSON-serializable
data only. JSON-RPC errors are NOT Rust Err; methods that issue requests return a
JsonRpcResponse whose error field may be set.
Structs§
- Agent
Capabilities - Agent capabilities (all optional booleans + prompt capabilities + extras).
- Agent
Info - Agent info (
{ name; title?; version?; [k]: unknown }). - Agent
Registry Entry - A registry agent entry from
list_agents. - Config
Allowed Value - An allowed value for a config option.
- Create
Session Options - Options for
create_session. - Permission
Request - A permission request delivered to a subscriber. Carries a Clone-able one-shot responder.
- Permission
Responder - A Clone-able one-shot responder for a permission request.
- Prompt
Capabilities - Prompt capabilities sub-object.
- Prompt
Result - Result of
prompt. - Resume
Session Options - Options for
resume_session. Mirrors the durability-dependent fields the sidecar fallback tier needs to re-launch the adapter, plus the transcript pointer. - Resume
Session Result - Result of
resume_session.session_idis the live ACP session id in the fresh VM: equal to the requested id for native loads, or a freshly assigned id for the fallback tier — the caller (e.g. the actor) remapsexternal -> live.modeis"native"or"fallback". - Session
Config Option - A session config option.
- Session
Id - The id returned by
create_session. - Session
Info - In-memory session registry entry summary.
- Session
Init Data - Initial hydration data for a session.
- Session
Mode - A single session mode (
{ id; name?; label?; description?; [k]: unknown }). - Session
Mode State - Session mode state (
{ currentModeId; availableModes }).
Enums§
- McpServer
Config - MCP server config used by
create_session. - Permission
Reply - A permission reply.