|
111 | 111 | "$ref": "#/$defs/PromptResponse", |
112 | 112 | "title": "PromptResponse" |
113 | 113 | }, |
| 114 | + { |
| 115 | + "$ref": "#/$defs/SetSessionModelResponse", |
| 116 | + "title": "SetSessionModelResponse" |
| 117 | + }, |
114 | 118 | { |
115 | 119 | "title": "ExtMethodResponse" |
116 | 120 | } |
117 | 121 | ], |
118 | | - "description": "All possible responses that an agent can send to a client.\n\nThis enum is used internally for routing RPC responses. You typically won't need\nto use this directly - the responses are handled automatically by the connection.\n\nThese are responses to the corresponding ClientRequest variants.", |
| 122 | + "description": "All possible responses that an agent can send to a client.\n\nThis enum is used internally for routing RPC responses. You typically won't need\nto use this directly - the responses are handled automatically by the connection.\n\nThese are responses to the corresponding `ClientRequest` variants.", |
119 | 123 | "x-docs-ignore": true |
120 | 124 | }, |
121 | 125 | "Annotations": { |
|
261 | 265 | "description": "Input for the command if required" |
262 | 266 | }, |
263 | 267 | "name": { |
264 | | - "description": "Command name (e.g., \"create_plan\", \"research_codebase\").", |
| 268 | + "description": "Command name (e.g., `create_plan`, `research_codebase`).", |
265 | 269 | "type": "string" |
266 | 270 | } |
267 | 271 | }, |
|
394 | 398 | "$ref": "#/$defs/PromptRequest", |
395 | 399 | "title": "PromptRequest" |
396 | 400 | }, |
| 401 | + { |
| 402 | + "$ref": "#/$defs/SetSessionModelRequest", |
| 403 | + "title": "SetSessionModelRequest" |
| 404 | + }, |
397 | 405 | { |
398 | 406 | "title": "ExtMethodRequest" |
399 | 407 | } |
|
439 | 447 | "title": "ExtMethodResponse" |
440 | 448 | } |
441 | 449 | ], |
442 | | - "description": "All possible responses that a client can send to an agent.\n\nThis enum is used internally for routing RPC responses. You typically won't need\nto use this directly - the responses are handled automatically by the connection.\n\nThese are responses to the corresponding AgentRequest variants.", |
| 450 | + "description": "All possible responses that a client can send to an agent.\n\nThis enum is used internally for routing RPC responses. You typically won't need\nto use this directly - the responses are handled automatically by the connection.\n\nThese are responses to the corresponding `AgentRequest` variants.", |
443 | 451 | "x-docs-ignore": true |
444 | 452 | }, |
445 | 453 | "ContentBlock": { |
|
987 | 995 | "_meta": { |
988 | 996 | "description": "Extension point for implementations" |
989 | 997 | }, |
| 998 | + "models": { |
| 999 | + "anyOf": [ |
| 1000 | + { |
| 1001 | + "$ref": "#/$defs/SessionModelState" |
| 1002 | + }, |
| 1003 | + { |
| 1004 | + "type": "null" |
| 1005 | + } |
| 1006 | + ], |
| 1007 | + "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" |
| 1008 | + }, |
990 | 1009 | "modes": { |
991 | 1010 | "anyOf": [ |
992 | 1011 | { |
|
1124 | 1143 | ], |
1125 | 1144 | "description": "Configuration for connecting to an MCP (Model Context Protocol) server.\n\nMCP servers provide tools and context that the agent can use when\nprocessing prompts.\n\nSee protocol docs: [MCP Servers](https://agentclientprotocol.com/protocol/session-setup#mcp-servers)" |
1126 | 1145 | }, |
| 1146 | + "ModelId": { |
| 1147 | + "description": "**UNSTABLE**\n\nThis capability is not part of the spec yet, and may be removed or changed at any point.\n\nA unique identifier for a model.", |
| 1148 | + "type": "string" |
| 1149 | + }, |
| 1150 | + "ModelInfo": { |
| 1151 | + "description": "**UNSTABLE**\n\nThis capability is not part of the spec yet, and may be removed or changed at any point.\n\nInformation about a selectable model.", |
| 1152 | + "properties": { |
| 1153 | + "_meta": { |
| 1154 | + "description": "Extension point for implementations" |
| 1155 | + }, |
| 1156 | + "description": { |
| 1157 | + "description": "Optional description of the model.", |
| 1158 | + "type": [ |
| 1159 | + "string", |
| 1160 | + "null" |
| 1161 | + ] |
| 1162 | + }, |
| 1163 | + "modelId": { |
| 1164 | + "$ref": "#/$defs/ModelId", |
| 1165 | + "description": "Unique identifier for the model." |
| 1166 | + }, |
| 1167 | + "name": { |
| 1168 | + "description": "Human-readable name of the model.", |
| 1169 | + "type": "string" |
| 1170 | + } |
| 1171 | + }, |
| 1172 | + "required": [ |
| 1173 | + "modelId", |
| 1174 | + "name" |
| 1175 | + ], |
| 1176 | + "type": "object" |
| 1177 | + }, |
1127 | 1178 | "NewSessionRequest": { |
1128 | 1179 | "description": "Request parameters for creating a new session.\n\nSee protocol docs: [Creating a Session](https://agentclientprotocol.com/protocol/session-setup#creating-a-session)", |
1129 | 1180 | "properties": { |
|
1156 | 1207 | "_meta": { |
1157 | 1208 | "description": "Extension point for implementations" |
1158 | 1209 | }, |
| 1210 | + "models": { |
| 1211 | + "anyOf": [ |
| 1212 | + { |
| 1213 | + "$ref": "#/$defs/SessionModelState" |
| 1214 | + }, |
| 1215 | + { |
| 1216 | + "type": "null" |
| 1217 | + } |
| 1218 | + ], |
| 1219 | + "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" |
| 1220 | + }, |
1159 | 1221 | "modes": { |
1160 | 1222 | "anyOf": [ |
1161 | 1223 | { |
|
1690 | 1752 | ], |
1691 | 1753 | "type": "object" |
1692 | 1754 | }, |
| 1755 | + "SessionModelState": { |
| 1756 | + "description": "**UNSTABLE**\n\nThis capability is not part of the spec yet, and may be removed or changed at any point.\n\nThe set of models and the one currently active.", |
| 1757 | + "properties": { |
| 1758 | + "_meta": { |
| 1759 | + "description": "Extension point for implementations" |
| 1760 | + }, |
| 1761 | + "availableModels": { |
| 1762 | + "description": "The set of models that the Agent can use", |
| 1763 | + "items": { |
| 1764 | + "$ref": "#/$defs/ModelInfo" |
| 1765 | + }, |
| 1766 | + "type": "array" |
| 1767 | + }, |
| 1768 | + "currentModelId": { |
| 1769 | + "$ref": "#/$defs/ModelId", |
| 1770 | + "description": "The current model the Agent is in." |
| 1771 | + } |
| 1772 | + }, |
| 1773 | + "required": [ |
| 1774 | + "currentModelId", |
| 1775 | + "availableModels" |
| 1776 | + ], |
| 1777 | + "type": "object" |
| 1778 | + }, |
1693 | 1779 | "SessionNotification": { |
1694 | 1780 | "description": "Notification containing a session update from the agent.\n\nUsed to stream real-time progress and results during prompt processing.\n\nSee protocol docs: [Agent Reports Output](https://agentclientprotocol.com/protocol/prompt-turn#3-agent-reports-output)", |
1695 | 1781 | "properties": { |
|
1992 | 2078 | "x-method": "session/set_mode", |
1993 | 2079 | "x-side": "agent" |
1994 | 2080 | }, |
| 2081 | + "SetSessionModelRequest": { |
| 2082 | + "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 setting a session model.", |
| 2083 | + "properties": { |
| 2084 | + "_meta": { |
| 2085 | + "description": "Extension point for implementations" |
| 2086 | + }, |
| 2087 | + "modelId": { |
| 2088 | + "$ref": "#/$defs/ModelId", |
| 2089 | + "description": "The ID of the model to set." |
| 2090 | + }, |
| 2091 | + "sessionId": { |
| 2092 | + "$ref": "#/$defs/SessionId", |
| 2093 | + "description": "The ID of the session to set the model for." |
| 2094 | + } |
| 2095 | + }, |
| 2096 | + "required": [ |
| 2097 | + "sessionId", |
| 2098 | + "modelId" |
| 2099 | + ], |
| 2100 | + "type": "object", |
| 2101 | + "x-method": "session/set_model", |
| 2102 | + "x-side": "agent" |
| 2103 | + }, |
| 2104 | + "SetSessionModelResponse": { |
| 2105 | + "description": "**UNSTABLE**\n\nThis capability is not part of the spec yet, and may be removed or changed at any point.\n\nResponse to `session/set_model` method.", |
| 2106 | + "properties": { |
| 2107 | + "_meta": { |
| 2108 | + "description": "Extension point for implementations" |
| 2109 | + } |
| 2110 | + }, |
| 2111 | + "type": "object", |
| 2112 | + "x-method": "session/set_model", |
| 2113 | + "x-side": "agent" |
| 2114 | + }, |
1995 | 2115 | "StopReason": { |
1996 | 2116 | "description": "Reasons why an agent stops processing a prompt turn.\n\nSee protocol docs: [Stop Reasons](https://agentclientprotocol.com/protocol/prompt-turn#stop-reasons)", |
1997 | 2117 | "oneOf": [ |
|
2535 | 2655 | "x-side": "client" |
2536 | 2656 | }, |
2537 | 2657 | "WriteTextFileResponse": { |
2538 | | - "description": "Response to fs/write_text_file", |
| 2658 | + "description": "Response to `fs/write_text_file`", |
2539 | 2659 | "properties": { |
2540 | 2660 | "_meta": { |
2541 | 2661 | "description": "Extension point for implementations" |
|
0 commit comments