|
211 | 211 | { |
212 | 212 | "$ref": "#/$defs/ForkSessionResponse" |
213 | 213 | }, |
| 214 | + { |
| 215 | + "$ref": "#/$defs/ResumeSessionResponse" |
| 216 | + }, |
214 | 217 | { |
215 | 218 | "$ref": "#/$defs/SetSessionModeResponse" |
216 | 219 | }, |
|
606 | 609 | ], |
607 | 610 | "description": "**UNSTABLE**\n\nThis capability is not part of the spec yet, and may be removed or changed at any point.\n\nForks an existing session to create a new independent session.\n\nThis method is only available if the agent advertises the `session.fork` capability.\n\nThe agent should create a new session with the same conversation context as the\noriginal, allowing operations like generating summaries without affecting the\noriginal session's history." |
608 | 611 | }, |
| 612 | + { |
| 613 | + "allOf": [ |
| 614 | + { |
| 615 | + "$ref": "#/$defs/ResumeSessionRequest" |
| 616 | + } |
| 617 | + ], |
| 618 | + "description": "**UNSTABLE**\n\nThis capability is not part of the spec yet, and may be removed or changed at any point.\n\nResumes an existing session without returning previous messages.\n\nThis method is only available if the agent advertises the `session.resume` capability.\n\nThe agent should resume the session context, allowing the conversation to continue\nwithout replaying the message history (unlike `session/load`)." |
| 619 | + }, |
609 | 620 | { |
610 | 621 | "allOf": [ |
611 | 622 | { |
|
1123 | 1134 | "description": "The _meta property is reserved by ACP to allow clients and agents to attach additional\nmetadata to their interactions. Implementations MUST NOT make assumptions about values at\nthese keys.\n\nSee protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)", |
1124 | 1135 | "type": ["object", "null"] |
1125 | 1136 | }, |
| 1137 | + "cwd": { |
| 1138 | + "description": "The working directory for this session.", |
| 1139 | + "type": "string" |
| 1140 | + }, |
| 1141 | + "mcpServers": { |
| 1142 | + "description": "List of MCP servers to connect to for this session.", |
| 1143 | + "items": { |
| 1144 | + "$ref": "#/$defs/McpServer" |
| 1145 | + }, |
| 1146 | + "type": "array" |
| 1147 | + }, |
1126 | 1148 | "sessionId": { |
1127 | 1149 | "allOf": [ |
1128 | 1150 | { |
|
1132 | 1154 | "description": "The ID of the session to fork." |
1133 | 1155 | } |
1134 | 1156 | }, |
1135 | | - "required": ["sessionId"], |
| 1157 | + "required": ["sessionId", "cwd"], |
1136 | 1158 | "type": "object", |
1137 | 1159 | "x-method": "session/fork", |
1138 | 1160 | "x-side": "agent" |
|
2254 | 2276 | "required": ["name", "uri"], |
2255 | 2277 | "type": "object" |
2256 | 2278 | }, |
| 2279 | + "ResumeSessionRequest": { |
| 2280 | + "description": "**UNSTABLE**\n\nThis capability is not part of the spec yet, and may be removed or changed at any point.\n\nRequest parameters for resuming an existing session.\n\nResumes an existing session without returning previous messages (unlike `session/load`).\nThis is useful for agents that can resume sessions but don't implement full session loading.\n\nOnly available if the Agent supports the `session.resume` capability.", |
| 2281 | + "properties": { |
| 2282 | + "_meta": { |
| 2283 | + "additionalProperties": true, |
| 2284 | + "description": "The _meta property is reserved by ACP to allow clients and agents to attach additional\nmetadata to their interactions. Implementations MUST NOT make assumptions about values at\nthese keys.\n\nSee protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)", |
| 2285 | + "type": ["object", "null"] |
| 2286 | + }, |
| 2287 | + "cwd": { |
| 2288 | + "description": "The working directory for this session.", |
| 2289 | + "type": "string" |
| 2290 | + }, |
| 2291 | + "mcpServers": { |
| 2292 | + "description": "List of MCP servers to connect to for this session.", |
| 2293 | + "items": { |
| 2294 | + "$ref": "#/$defs/McpServer" |
| 2295 | + }, |
| 2296 | + "type": "array" |
| 2297 | + }, |
| 2298 | + "sessionId": { |
| 2299 | + "allOf": [ |
| 2300 | + { |
| 2301 | + "$ref": "#/$defs/SessionId" |
| 2302 | + } |
| 2303 | + ], |
| 2304 | + "description": "The ID of the session to resume." |
| 2305 | + } |
| 2306 | + }, |
| 2307 | + "required": ["sessionId", "cwd"], |
| 2308 | + "type": "object", |
| 2309 | + "x-method": "session/resume", |
| 2310 | + "x-side": "agent" |
| 2311 | + }, |
| 2312 | + "ResumeSessionResponse": { |
| 2313 | + "description": "**UNSTABLE**\n\nThis capability is not part of the spec yet, and may be removed or changed at any point.\n\nResponse from resuming an existing session.", |
| 2314 | + "properties": { |
| 2315 | + "_meta": { |
| 2316 | + "additionalProperties": true, |
| 2317 | + "description": "The _meta property is reserved by ACP to allow clients and agents to attach additional\nmetadata to their interactions. Implementations MUST NOT make assumptions about values at\nthese keys.\n\nSee protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)", |
| 2318 | + "type": ["object", "null"] |
| 2319 | + }, |
| 2320 | + "models": { |
| 2321 | + "anyOf": [ |
| 2322 | + { |
| 2323 | + "$ref": "#/$defs/SessionModelState" |
| 2324 | + }, |
| 2325 | + { |
| 2326 | + "type": "null" |
| 2327 | + } |
| 2328 | + ], |
| 2329 | + "description": "**UNSTABLE**\n\nThis capability is not part of the spec yet, and may be removed or changed at any point.\n\nInitial model state if supported by the Agent" |
| 2330 | + }, |
| 2331 | + "modes": { |
| 2332 | + "anyOf": [ |
| 2333 | + { |
| 2334 | + "$ref": "#/$defs/SessionModeState" |
| 2335 | + }, |
| 2336 | + { |
| 2337 | + "type": "null" |
| 2338 | + } |
| 2339 | + ], |
| 2340 | + "description": "Initial mode state if supported by the Agent\n\nSee protocol docs: [Session Modes](https://agentclientprotocol.com/protocol/session-modes)" |
| 2341 | + } |
| 2342 | + }, |
| 2343 | + "type": "object", |
| 2344 | + "x-method": "session/resume", |
| 2345 | + "x-side": "agent" |
| 2346 | + }, |
2257 | 2347 | "Role": { |
2258 | 2348 | "description": "The sender or recipient of messages and data in a conversation.", |
2259 | 2349 | "enum": ["assistant", "user"], |
|
2308 | 2398 | } |
2309 | 2399 | ], |
2310 | 2400 | "description": "**UNSTABLE**\n\nThis capability is not part of the spec yet, and may be removed or changed at any point.\n\nWhether the agent supports `session/list`." |
| 2401 | + }, |
| 2402 | + "resume": { |
| 2403 | + "anyOf": [ |
| 2404 | + { |
| 2405 | + "$ref": "#/$defs/SessionResumeCapabilities" |
| 2406 | + }, |
| 2407 | + { |
| 2408 | + "type": "null" |
| 2409 | + } |
| 2410 | + ], |
| 2411 | + "description": "**UNSTABLE**\n\nThis capability is not part of the spec yet, and may be removed or changed at any point.\n\nWhether the agent supports `session/resume`." |
2311 | 2412 | } |
2312 | 2413 | }, |
2313 | 2414 | "type": "object" |
|
2479 | 2580 | "x-method": "session/update", |
2480 | 2581 | "x-side": "client" |
2481 | 2582 | }, |
| 2583 | + "SessionResumeCapabilities": { |
| 2584 | + "description": "**UNSTABLE**\n\nThis capability is not part of the spec yet, and may be removed or changed at any point.\n\nCapabilities for the `session/resume` method.\n\nBy supplying `{}` it means that the agent supports resuming of sessions.", |
| 2585 | + "properties": { |
| 2586 | + "_meta": { |
| 2587 | + "additionalProperties": true, |
| 2588 | + "description": "The _meta property is reserved by ACP to allow clients and agents to attach additional\nmetadata to their interactions. Implementations MUST NOT make assumptions about values at\nthese keys.\n\nSee protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/extensibility)", |
| 2589 | + "type": ["object", "null"] |
| 2590 | + } |
| 2591 | + }, |
| 2592 | + "type": "object" |
| 2593 | + }, |
2482 | 2594 | "SessionUpdate": { |
2483 | 2595 | "description": "Different types of updates that can be sent during session processing.\n\nThese updates provide real-time feedback about the agent's progress.\n\nSee protocol docs: [Agent Reports Output](https://agentclientprotocol.com/protocol/prompt-turn#3-agent-reports-output)", |
2484 | 2596 | "discriminator": { |
|
0 commit comments