Skip to content

Commit dbba466

Browse files
committed
chore: bump ACP schema to v0.6.3
Adds discriminator properties to ContentBlock, MCPServerConfig, RequestPermissionOutcome, SessionUpdate, and ToolCallContent for improved type discrimination in the JSON schema. Updates ContentBlockText description to clarify Markdown support, indicating that clients SHOULD render text as Markdown.
1 parent cdd68e3 commit dbba466

File tree

5 files changed

+22
-7
lines changed

5 files changed

+22
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Learn more about the protocol itself at <https://agentclientprotocol.com>.
1414
<!-- `$ printf 'go get github.com/coder/acp-go-sdk@v%s\n' "$(cat schema/version)"` as bash -->
1515

1616
```bash
17-
go get github.com/coder/[email protected].2
17+
go get github.com/coder/[email protected].3
1818
```
1919

2020
## Get Started

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).",

schema/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.6.2
1+
0.6.3

types_gen.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.6.2
1+
0.6.3

0 commit comments

Comments
 (0)