Skip to content

Commit 59bc692

Browse files
authored
Update to latest schema (#17)
1 parent f33ddb2 commit 59bc692

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

schema/schema.json

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -648,9 +648,12 @@
648648
},
649649
"ContentBlock": {
650650
"description": "Content blocks represent displayable information in the Agent Client Protocol.\n\nThey provide a structured way to handle various types of user-facing content—whether\nit's text from language models, images for analysis, or embedded resources for context.\n\nContent blocks appear in:\n- User prompts sent via `session/prompt`\n- Language model output streamed through `session/update` notifications\n- Progress updates and results from tool calls\n\nThis structure is compatible with the Model Context Protocol (MCP), enabling\nagents to seamlessly forward content from MCP tool outputs without transformation.\n\nSee protocol docs: [Content](https://agentclientprotocol.com/protocol/content)",
651+
"discriminator": {
652+
"propertyName": "type"
653+
},
651654
"oneOf": [
652655
{
653-
"description": "Plain text content\n\nAll agents MUST support text content blocks in prompts.",
656+
"description": "Text content. May be plain text or formatted with Markdown.\n\nAll agents MUST support text content blocks in prompts.\nClients SHOULD render this text as Markdown.",
654657
"properties": {
655658
"_meta": {
656659
"description": "Extension point for implementations"
@@ -1261,7 +1264,10 @@
12611264
"type": "object"
12621265
}
12631266
],
1264-
"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)"
1267+
"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)",
1268+
"discriminator": {
1269+
"propertyName": "type"
1270+
}
12651271
},
12661272
"ModelId": {
12671273
"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.",
@@ -1613,6 +1619,9 @@
16131619
},
16141620
"RequestPermissionOutcome": {
16151621
"description": "The outcome of a permission request.",
1622+
"discriminator": {
1623+
"propertyName": "outcome"
1624+
},
16161625
"oneOf": [
16171626
{
16181627
"description": "The prompt turn was cancelled before the user responded.\n\nWhen a client sends a `session/cancel` notification to cancel an ongoing\nprompt turn, it MUST respond to all pending `session/request_permission`\nrequests with this `Cancelled` outcome.\n\nSee protocol docs: [Cancellation](https://agentclientprotocol.com/protocol/prompt-turn#cancellation)",
@@ -1837,6 +1846,9 @@
18371846
},
18381847
"SessionUpdate": {
18391848
"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)",
1849+
"discriminator": {
1850+
"propertyName": "sessionUpdate"
1851+
},
18401852
"oneOf": [
18411853
{
18421854
"description": "A chunk of the user's message being streamed.",
@@ -2249,6 +2261,9 @@
22492261
},
22502262
"ToolCallContent": {
22512263
"description": "Content produced by a tool call.\n\nTool calls can produce different types of content including\nstandard content blocks (text, images) or file diffs.\n\nSee protocol docs: [Content](https://agentclientprotocol.com/protocol/tool-calls#content)",
2264+
"discriminator": {
2265+
"propertyName": "type"
2266+
},
22522267
"oneOf": [
22532268
{
22542269
"description": "Standard content block (text, images, resources).",

scripts/generate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { generate } from "ts-to-zod";
55
import * as fs from "fs/promises";
66
import { dirname } from "path";
77

8-
const CURRENT_SCHEMA_RELEASE = "v0.6.2";
8+
const CURRENT_SCHEMA_RELEASE = "v0.6.3";
99

1010
await downloadSchemas(CURRENT_SCHEMA_RELEASE);
1111

0 commit comments

Comments
 (0)