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
{{ message }}
Repository navigation
Commit 2192860
Browse filesBrowse the repository at this point in the historyBrowse files
-**ACP v1 (`acp`, `acp.schema`)** — Stable bindings for `schema-v1.35.0` with stdio JSON-RPC framing (`run_agent`, `connect_to_agent`, `spawn_agent_process`). Read the [Quickstart](https://agentclientprotocol.github.io/python-sdk/quickstart/) and [Protocol Features](https://agentclientprotocol.github.io/python-sdk/protocol-features/).
98
+
-**Experimental ACP v2 (`acp.experimental.v2`)** — Preview bindings for `schema-v2.0.0-beta.4` and dual-stack version negotiation via `AgentProtocolRouter`. Read [Experimental Protocol v2](https://agentclientprotocol.github.io/python-sdk/experimental-v2/).
99
+
-**Web transports (`acp.http`, `acp.ws`)** — Experimental Streamable HTTP (SSE + HTTP/2) and WebSocket client/server support via the `[http]` extra. Read [Web Transport](https://agentclientprotocol.github.io/python-sdk/web-transport/).
100
+
-**Stateless MCP-over-ACP** — Typed `mcp/message` request and notification envelopes across stdio, HTTP, and WebSocket. Read [MCP-over-ACP](https://agentclientprotocol.github.io/python-sdk/protocol-features/#stateless-mcp-over-acp).
|`acp.contrib`| Experimental stateful helpers: `SessionAccumulator`, `ToolCallTracker`, and `PermissionBroker`|
26
+
-**`acp` and `acp.schema`** — Stable ACP v1 runtime (`run_agent`, `connect_to_agent`, `spawn_agent_process`, `Agent`, `Client`) and generated Pydantic models (`schema-v1.35.0`).
27
+
-**`acp.experimental.v2`** — Preview ACP v2 runtime and generated models (`schema-v2.0.0-beta.4`), plus `AgentProtocolRouter` for dual-stack negotiation.
28
+
-**`acp.http` and `acp.ws`** — Experimental Streamable HTTP (SSE + HTTP/2) and WebSocket client/server transports (`[http]` extra).
29
+
-**`acp.contrib`** — Experimental stateful helpers: `SessionAccumulator`, `ToolCallTracker`, and `PermissionBroker`.
32
30
33
-
## Documentation guide
31
+
## Guides
34
32
35
33
-**[Quickstart](quickstart.md)** — Install the SDK, run the echo agent, connect from an ACP client, and launch processes programmatically.
36
34
-**[Protocol Features (v1)](protocol-features.md)** — Session management, authentication, providers, notices, elicitation, stateless MCP-over-ACP, request cancellation, and extension methods.
Copy file name to clipboardExpand all lines: docs/testing.md
+11-15Lines changed: 11 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,14 +22,12 @@ The test suite under `tests/` covers:
22
22
23
23
## ACP TCK conformance
24
24
25
-
Protocol-level compliance is verified against the official [ACP TCK](https://github.com/agentclientprotocol/acp-tck) using reference agents built strictly on public SDK APIs.
25
+
Protocol-level compliance is verified against the official [ACP TCK](https://github.com/agentclientprotocol/acp-tck) using reference agents built strictly on public SDK APIs across four profiles:
26
26
27
-
| Profile | Entry point | Scope | Expected result |
28
-
| --- | --- | --- | --- |
29
-
|**v1 baseline**|`acp.run_agent`| Stable v1 agent suite (`Agent` subclass and structural handler) |`CONFORMANT`|
30
-
|**v2 minimal**|`v2.run_agent` and `AgentProtocolRouter(v2=...)`| Minimal capabilities; validates error codes (`-32022`, `-32600`, `-32601`, `-32602`) and disabled-capability handling |`CONFORMANT`, 0 failures |
31
-
|**v2 full capability**|`v2.run_agent` and `AgentProtocolRouter(v2=...)`| All supported v2 capabilities enabled (sessions, fork/resume/replay, config options, elicitation, MCP-over-ACP, permissions, cancellation) |`CONFORMANT`, 0 failures |
32
-
|**Dual-stack negotiation**|`AgentProtocolRouter(v1=..., v2=...)`| v1/v2 version selection (`ACP-INIT-208`), repeat `initialize`, and v2-to-v1 fallback | 0 failures on initialization suite |
27
+
-**v1 baseline (`acp.run_agent`)** — Stable v1 agent suite (`Agent` subclass and structural handler), expecting `CONFORMANT`.
28
+
-**v2 minimal (`v2.run_agent`, `AgentProtocolRouter(v2=...)`)** — Minimal capabilities, validating error codes (`-32022`, `-32600`, `-32601`, `-32602`) and disabled-capability handling with `CONFORMANT` and 0 failures.
29
+
-**v2 full capability (`v2.run_agent`, `AgentProtocolRouter(v2=...)`)** — All supported v2 capabilities enabled (sessions, fork/resume/replay, config options, elicitation, MCP-over-ACP, permissions, cancellation), expecting `CONFORMANT` and 0 failures.
30
+
-**Dual-stack negotiation (`AgentProtocolRouter(v1=..., v2=...)`)** — v1/v2 version selection (`ACP-INIT-208`), repeat `initialize`, and v2-to-v1 fallback with 0 failures on the initialization suite.
33
31
34
32
When modifying schema base classes or deserialization helpers (`src/acp/_schema_base.py`, `src/acp/_deserialize.py`), also verify v1 `model_validate` latency on hot models (`AgentMessageChunk`, `SessionNotification`) to keep v1 validation performance steady.
35
33
@@ -48,14 +46,12 @@ Real-world checks validate end-to-end behavior with ecosystem tools across two r
48
46
49
47
Use the same six scenarios across clients and agents when validating releases or transport changes:
|**S2**| Session & streaming |`session/new` followed by `session/prompt` streams `agent_message_chunk` updates through turn completion |
55
-
|**S3**| Tool calls & permissions | Tool call progress/content/diff updates and `request_permission` approve/reject flows complete end to end |
56
-
|**S4**| Cancellation & recovery | Sending `session/cancel` or `$/cancel_request` stops active work and leaves the session usable for the next prompt |
2.**S2 · Session & streaming** — `session/new` followed by `session/prompt` streams `agent_message_chunk` updates through turn completion.
51
+
3.**S3 · Tool calls & permissions** — Tool call progress/content/diff updates and `request_permission` approve/reject flows complete end to end.
52
+
4.**S4 · Cancellation & recovery** — Sending `session/cancel` or `$/cancel_request` stops active work and leaves the session usable for the next prompt.
0 commit comments