Skip to content

Commit f46a298

Browse files
bennetboagu-z
andcommitted
Fix schema
Co-authored-by: Agus Zubiaga <agus@zed.dev>
1 parent 11a9479 commit f46a298

3 files changed

Lines changed: 0 additions & 17 deletions

File tree

docs/protocol/schema.mdx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,6 @@ See protocol docs: [User Message](https://agentclientprotocol.com/protocol/promp
291291

292292
**Properties:**
293293

294-
<ResponseField name="commandName" type={"string | null"} >
295-
**UNSTABLE**
296-
297-
The name of the command that should be executed.
298-
299-
</ResponseField>
300294
<ResponseField name="prompt" type={<><span><a href="#contentblock">ContentBlock</a></span><span>[]</span></>} required>
301295
The blocks of content that compose the user's message.
302296

schema/schema.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -927,10 +927,6 @@
927927
"PromptRequest": {
928928
"description": "Request parameters for sending a user prompt to the agent.\n\nContains the user's message and any additional context.\n\nSee protocol docs: [User Message](https://agentclientprotocol.com/protocol/prompt-turn#1-user-message)",
929929
"properties": {
930-
"commandName": {
931-
"description": "**UNSTABLE**\n\nThe name of the command that should be executed.",
932-
"type": ["string", "null"]
933-
},
934930
"prompt": {
935931
"description": "The blocks of content that compose the user's message.\n\nAs a baseline, the Agent MUST support [`ContentBlock::Text`] and [`ContentBlock::ResourceLink`],\nwhile other variants are optionally enabled via [`PromptCapabilities`].\n\nThe Client MUST adapt its interface according to [`PromptCapabilities`].\n\nThe client MAY include referenced pieces of context as either\n[`ContentBlock::Resource`] or [`ContentBlock::ResourceLink`].\n\nWhen available, [`ContentBlock::Resource`] is preferred\nas it avoids extra round-trips and allows the message to include\npieces of context from sources the agent may not have access to.",
936932
"items": {

typescript/schema.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -707,12 +707,6 @@ export interface LoadSessionRequest {
707707
* See protocol docs: [User Message](https://agentclientprotocol.com/protocol/prompt-turn#1-user-message)
708708
*/
709709
export interface PromptRequest {
710-
/**
711-
* **UNSTABLE**
712-
*
713-
* The name of the command that should be executed.
714-
*/
715-
commandName?: string | null;
716710
/**
717711
* The blocks of content that compose the user's message.
718712
*
@@ -1399,7 +1393,6 @@ export const newSessionRequestSchema = z.object({
13991393

14001394
/** @internal */
14011395
export const promptRequestSchema = z.object({
1402-
commandName: z.string().optional().nullable(),
14031396
prompt: z.array(contentBlockSchema),
14041397
sessionId: z.string(),
14051398
});

0 commit comments

Comments
 (0)