|
308 | 308 | ], |
309 | 309 | "title": "SetSessionModeResponse" |
310 | 310 | }, |
| 311 | + { |
| 312 | + "allOf": [ |
| 313 | + { |
| 314 | + "$ref": "#/$defs/SetSessionTitleResponse" |
| 315 | + } |
| 316 | + ], |
| 317 | + "title": "SetSessionTitleResponse" |
| 318 | + }, |
311 | 319 | { |
312 | 320 | "allOf": [ |
313 | 321 | { |
|
751 | 759 | "description": "Sets the current mode for a session.\n\nAllows switching between different agent modes (e.g., \"ask\", \"architect\", \"code\")\nthat affect system prompts, tool availability, and permission behaviors.\n\nThe mode must be one of the modes advertised in `availableModes` during session\ncreation or loading. Agents may also change modes autonomously and notify the\nclient via `current_mode_update` notifications.\n\nThis method can be called at any time during a session, whether the Agent is\nidle or actively generating a response.\n\nSee protocol docs: [Session Modes](https://agentclientprotocol.com/protocol/session-modes)", |
752 | 760 | "title": "SetSessionModeRequest" |
753 | 761 | }, |
| 762 | + { |
| 763 | + "allOf": [ |
| 764 | + { |
| 765 | + "$ref": "#/$defs/SetSessionTitleRequest" |
| 766 | + } |
| 767 | + ], |
| 768 | + "description": "Sets the title for a session.\n\nEmpty titles are valid and request that the agent clear the session title.\n\nThis method can be called at any time during a session, whether the Agent is\nidle or actively generating a response.", |
| 769 | + "title": "SetSessionTitleRequest" |
| 770 | + }, |
754 | 771 | { |
755 | 772 | "allOf": [ |
756 | 773 | { |
|
3299 | 3316 | "x-method": "session/set_mode", |
3300 | 3317 | "x-side": "agent" |
3301 | 3318 | }, |
| 3319 | + "SetSessionTitleRequest": { |
| 3320 | + "description": "Request parameters for setting a session title.", |
| 3321 | + "properties": { |
| 3322 | + "_meta": { |
| 3323 | + "additionalProperties": true, |
| 3324 | + "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)", |
| 3325 | + "type": ["object", "null"] |
| 3326 | + }, |
| 3327 | + "sessionId": { |
| 3328 | + "allOf": [ |
| 3329 | + { |
| 3330 | + "$ref": "#/$defs/SessionId" |
| 3331 | + } |
| 3332 | + ], |
| 3333 | + "description": "The ID of the session to set the title for." |
| 3334 | + }, |
| 3335 | + "title": { |
| 3336 | + "description": "The new title for the session.", |
| 3337 | + "type": "string" |
| 3338 | + } |
| 3339 | + }, |
| 3340 | + "required": ["sessionId", "title"], |
| 3341 | + "type": "object", |
| 3342 | + "x-method": "session/setTitle", |
| 3343 | + "x-side": "agent" |
| 3344 | + }, |
| 3345 | + "SetSessionTitleResponse": { |
| 3346 | + "description": "Response to `session/setTitle` method.", |
| 3347 | + "properties": { |
| 3348 | + "_meta": { |
| 3349 | + "additionalProperties": true, |
| 3350 | + "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)", |
| 3351 | + "type": ["object", "null"] |
| 3352 | + } |
| 3353 | + }, |
| 3354 | + "type": "object", |
| 3355 | + "x-method": "session/setTitle", |
| 3356 | + "x-side": "agent" |
| 3357 | + }, |
3302 | 3358 | "StopReason": { |
3303 | 3359 | "description": "Reasons why an agent stops processing a prompt turn.\n\nSee protocol docs: [Stop Reasons](https://agentclientprotocol.com/protocol/prompt-turn#stop-reasons)", |
3304 | 3360 | "oneOf": [ |
|
0 commit comments