You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/protocol/initialization.mdx
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ description: "How all ACP connections begin"
6
6
{/* todo! link to all concepts */}
7
7
8
8
9
-
The Initialization phase allows [Clients](../overview/client) and [Agents](../overview/agent) to negotiate protocol versions, capabilities, and authentication methods.
9
+
The Initialization phase allows [Clients](./overview#client) and [Agents](./overview#agent) to negotiate protocol versions, capabilities, and authentication methods.
10
10
11
11
Before a Session can be created, Clients **MUST** initialize the connection by calling the `initialize` method with:
12
12
@@ -20,11 +20,11 @@ Before a Session can be created, Clients **MUST** initialize the connection by c
20
20
"id": 0,
21
21
"method": "initialize",
22
22
"params": {
23
-
"protocol_version": 1,
24
-
"client_capabilities": {
23
+
"protocolVersion": 1,
24
+
"clientCapabilities": {
25
25
"fs": {
26
-
"read_text_file": true,
27
-
"write_text_file": true
26
+
"readTextFile": true,
27
+
"writeTextFile": true
28
28
}
29
29
}
30
30
}
@@ -39,13 +39,13 @@ The Agent **MUST** respond with the chosen [protocol version](#protocol-version)
39
39
"jsonrpc": "2.0",
40
40
"id": 0,
41
41
"result": {
42
-
"protocol_version": 1,
43
-
"agent_capabilities": {
44
-
"load_session": true,
45
-
"prompt_capabilities": {
42
+
"protocolVersion": 1,
43
+
"agentCapabilities": {
44
+
"loadSession": true,
45
+
"promptCapabilities": {
46
46
"image": true,
47
47
"audio": true,
48
-
"embedded_context": true
48
+
"embeddedContext": true
49
49
}
50
50
}
51
51
}
@@ -90,20 +90,20 @@ The Client **SHOULD** specify whether it supports the following capability.
90
90
91
91
The Client **MAY** expose its FileSystem abstraction to various degrees. This may allow Agents to access unsaved buffer state, and Clients to track Agent changes directly.
92
92
93
-
-`read_text_file`: The `fs/read_text_file` method is available.
94
-
-`write_text_file`: The `fs/write_text_file` method is available.
93
+
-`readTextFile`: The `fs/read_text_file` method is available.
94
+
-`writeTextFile`: The `fs/write_text_file` method is available.
95
95
96
96
### Agent Capabilities
97
97
98
98
The Agent **SHOULD** specify whether it supports the following capabilities.
99
99
100
-
-`load_session`: The `session/load` method is available.
101
-
-`prompt_capabilities`: Object indicating the different types of content that may be included in `session/prompt` requests.
100
+
-`loadSession`: The `session/load` method is available.
101
+
-`promptCapabilities`: Object indicating the different types of content that may be included in `session/prompt` requests.
102
102
103
103
#### Prompt capabilities
104
104
105
105
As a baseline, all Agents **MUST** support `ContentBlock::Text` and `ContentBlock::ResourceLink` in `session/prompt` requests, but they **MAY** opt in to richer types of content by specifying the following capabilities:
106
106
107
107
-`image`: The prompt may include `ContentBlock::Image`
108
108
-`audio`: The prompt may include `ContentBlock::Audio`
109
-
-`embedded_context`: The prompt may include `ContentBlock::EmbeddedResource`
109
+
-`embeddedContext`: The prompt may include `ContentBlock::EmbeddedResource`
0 commit comments