|
458 | 458 | "x-method": "session/cancel", |
459 | 459 | "x-side": "agent" |
460 | 460 | }, |
| 461 | + "CancelRequestNotification": { |
| 462 | + "description": "**UNSTABLE**\n\nThis capability is not part of the spec yet, and may be removed or changed at any point.\n\nNotification to cancel an ongoing request.\n\nSee protocol docs: [Cancellation](https://agentclientprotocol.com/protocol/cancellation)", |
| 463 | + "properties": { |
| 464 | + "_meta": { |
| 465 | + "additionalProperties": true, |
| 466 | + "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)", |
| 467 | + "type": ["object", "null"] |
| 468 | + }, |
| 469 | + "requestId": { |
| 470 | + "allOf": [ |
| 471 | + { |
| 472 | + "$ref": "#/$defs/RequestId" |
| 473 | + } |
| 474 | + ], |
| 475 | + "description": "The ID of the request to cancel." |
| 476 | + } |
| 477 | + }, |
| 478 | + "required": ["requestId"], |
| 479 | + "type": "object", |
| 480 | + "x-method": "$/cancel_request", |
| 481 | + "x-side": "protocol" |
| 482 | + }, |
461 | 483 | "ClientCapabilities": { |
462 | 484 | "description": "Capabilities supported by the client.\n\nAdvertised during initialization to inform the agent about\navailable features and methods.\n\nSee protocol docs: [Client Capabilities](https://agentclientprotocol.com/protocol/initialization#client-capabilities)", |
463 | 485 | "properties": { |
|
1037 | 1059 | "format": "int32", |
1038 | 1060 | "type": "integer" |
1039 | 1061 | }, |
| 1062 | + { |
| 1063 | + "const": -32800, |
| 1064 | + "description": "**Request cancelled**: **UNSTABLE**\n\nThis capability is not part of the spec yet, and may be removed or changed at any point.\n\nExecution of the method was aborted either due to a cancellation request from the caller or\nbecause of resource constraints or shutdown.", |
| 1065 | + "format": "int32", |
| 1066 | + "type": "integer" |
| 1067 | + }, |
1040 | 1068 | { |
1041 | 1069 | "const": -32000, |
1042 | 1070 | "description": "**Authentication required**: Authentication is required before this operation can be performed.", |
|
1091 | 1119 | "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 forking an existing session.\n\nCreates a new session based on the context of an existing one, allowing\noperations like generating summaries without affecting the original session's history.\n\nOnly available if the Agent supports the `session.fork` capability.", |
1092 | 1120 | "properties": { |
1093 | 1121 | "_meta": { |
1094 | | - "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)" |
| 1122 | + "additionalProperties": true, |
| 1123 | + "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 | + "type": ["object", "null"] |
1095 | 1125 | }, |
1096 | 1126 | "sessionId": { |
1097 | 1127 | "allOf": [ |
|
1111 | 1141 | "description": "**UNSTABLE**\n\nThis capability is not part of the spec yet, and may be removed or changed at any point.\n\nResponse from forking an existing session.", |
1112 | 1142 | "properties": { |
1113 | 1143 | "_meta": { |
1114 | | - "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)" |
| 1144 | + "additionalProperties": true, |
| 1145 | + "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)", |
| 1146 | + "type": ["object", "null"] |
1115 | 1147 | }, |
1116 | 1148 | "models": { |
1117 | 1149 | "anyOf": [ |
|
2284 | 2316 | "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/fork` method.\n\nBy supplying `{}` it means that the agent supports forking of sessions.", |
2285 | 2317 | "properties": { |
2286 | 2318 | "_meta": { |
2287 | | - "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)" |
| 2319 | + "additionalProperties": true, |
| 2320 | + "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)", |
| 2321 | + "type": ["object", "null"] |
2288 | 2322 | } |
2289 | 2323 | }, |
2290 | 2324 | "type": "object" |
|
3279 | 3313 | }, |
3280 | 3314 | "required": ["jsonrpc"], |
3281 | 3315 | "type": "object" |
| 3316 | + }, |
| 3317 | + { |
| 3318 | + "anyOf": [ |
| 3319 | + { |
| 3320 | + "allOf": [ |
| 3321 | + { |
| 3322 | + "$ref": "#/$defs/CancelRequestNotification" |
| 3323 | + } |
| 3324 | + ], |
| 3325 | + "description": "**UNSTABLE**\n\nThis capability is not part of the spec yet, and may be removed or\nchanged at any point.\n\nCancels an ongoing request.\n\nThis is a notification sent by the the side that sent a request to cancel that request.\n\nUpon receiving this notification, the receiver:\n\n1. MUST cancel the corresponding request activity and all nested activities\n2. MAY send any pending notifications.\n3. MUST send one of these responses for the original request:\n - Valid response with appropriate data (partial results or cancellation marker)\n - Error response with code `-32800` (Cancelled)\n\nSee protocol docs: [Cancellation](https://agentclientprotocol.com/protocol/cancellation)" |
| 3326 | + } |
| 3327 | + ], |
| 3328 | + "description": "General protocol-level notifications that all sides are expected to\nimplement.\n\nNotifications whose methods start with '$/' are messages which\nare protocol implementation dependent and might not be implementable in all\nclients or agents. For example if the implementation uses a single threaded\nsynchronous programming language then there is little it can do to react to\na `$/cancel_request` notification. If an agent or client receives\nnotifications starting with '$/' it is free to ignore the notification.\n\nNotifications do not expect a response." |
3282 | 3329 | } |
3283 | | - ] |
| 3330 | + ], |
| 3331 | + "title": "Agent Client Protocol" |
3284 | 3332 | } |
0 commit comments