Skip to content

Commit 2192860

Browse files
committed
docs: replace oversized tables in README and guides with structured lists
1 parent 1f5d9b0 commit 2192860

4 files changed

Lines changed: 33 additions & 60 deletions

File tree

‎README.md‎

Lines changed: 12 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,8 @@ uv add agent-client-protocol
2222
Optional extras:
2323

2424
```bash
25-
# Streamable HTTP and WebSocket transports (experimental)
26-
pip install "agent-client-protocol[http]"
27-
28-
# Logfire / OpenTelemetry instrumentation
29-
pip install "agent-client-protocol[logfire]"
25+
pip install "agent-client-protocol[http]" # Streamable HTTP and WebSocket transports (experimental)
26+
pip install "agent-client-protocol[logfire]" # Logfire / OpenTelemetry instrumentation
3027
```
3128

3229
Requires Python 3.10–3.15.
@@ -95,31 +92,15 @@ async def main() -> None:
9592
asyncio.run(main())
9693
```
9794

98-
## Protocol and transport support
99-
100-
| Capability | Import / Extra | Status | Reference |
101-
| --- | --- | --- | --- |
102-
| ACP v1 (`schema-v1.35.0`) | `acp`, `acp.schema` | Stable | [Quickstart](https://agentclientprotocol.github.io/python-sdk/quickstart/) · [Protocol Features](https://agentclientprotocol.github.io/python-sdk/protocol-features/) |
103-
| ACP v2 (`schema-v2.0.0-beta.4`) + dual-stack router | `acp.experimental.v2`, `acp.experimental.AgentProtocolRouter` | Preview | [Experimental v2](https://agentclientprotocol.github.io/python-sdk/experimental-v2/) |
104-
| Stdio JSON-RPC (NDJSON) | Built-in (`run_agent`, `connect_to_agent`, `spawn_agent_process`) | Stable | [Quickstart](https://agentclientprotocol.github.io/python-sdk/quickstart/) |
105-
| Streamable HTTP & WebSocket | `acp.http`, `acp.ws` (`[http]`) | Experimental | [Web Transport](https://agentclientprotocol.github.io/python-sdk/web-transport/) |
106-
| Stateless MCP-over-ACP | `acp` / `acp.experimental.v2` | Unstable / Preview | [Protocol Features](https://agentclientprotocol.github.io/python-sdk/protocol-features/#stateless-mcp-over-acp) |
107-
| Session, tool call, and permission helpers | `acp.contrib` | Experimental | [Contrib Utilities](https://agentclientprotocol.github.io/python-sdk/contrib/) |
108-
109-
## Documentation
110-
111-
| Topic | Link |
112-
| --- | --- |
113-
| Documentation hub | <https://agentclientprotocol.github.io/python-sdk/> |
114-
| Quickstart | <https://agentclientprotocol.github.io/python-sdk/quickstart/> |
115-
| Protocol features (v1) | <https://agentclientprotocol.github.io/python-sdk/protocol-features/> |
116-
| Web transport (HTTP & WebSocket) | <https://agentclientprotocol.github.io/python-sdk/web-transport/> |
117-
| Experimental protocol v2 | <https://agentclientprotocol.github.io/python-sdk/experimental-v2/> |
118-
| Contrib utilities | <https://agentclientprotocol.github.io/python-sdk/contrib/> |
119-
| Use cases | <https://agentclientprotocol.github.io/python-sdk/use-cases/> |
120-
| Testing & conformance | <https://agentclientprotocol.github.io/python-sdk/testing/> |
121-
| Releasing | <https://agentclientprotocol.github.io/python-sdk/releasing/> |
122-
| Runnable examples | <https://github.com/agentclientprotocol/python-sdk/tree/main/examples> |
95+
## Capabilities and documentation
96+
97+
- **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).
101+
- **Contrib utilities (`acp.contrib`)** — Experimental `SessionAccumulator`, `ToolCallTracker`, and `PermissionBroker` helpers. Read [Contrib Utilities](https://agentclientprotocol.github.io/python-sdk/contrib/).
102+
103+
More resources: [Documentation Hub](https://agentclientprotocol.github.io/python-sdk/) · [Examples](https://github.com/agentclientprotocol/python-sdk/tree/main/examples) · [Use Cases](https://agentclientprotocol.github.io/python-sdk/use-cases/) · [Testing & Conformance](https://agentclientprotocol.github.io/python-sdk/testing/) · [Releasing](https://agentclientprotocol.github.io/python-sdk/releasing/)
123104

124105
## Development
125106

@@ -131,7 +112,7 @@ make gen-check # Verify generated schema bindings match schema/
131112
make docs-test # Build MkDocs site strictly
132113
```
133114

134-
To regenerate protocol bindings when upstream schemas advance, run `ACP_SCHEMA_VERSION=<ref> make gen-all` (or `make gen-v2` for v2).
115+
Regenerate bindings when upstream schemas advance with `ACP_SCHEMA_VERSION=<ref> make gen-all` (or `make gen-v2` for experimental v2).
135116

136117
## Community
137118

‎docs/index.md‎

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,21 @@ pip install agent-client-protocol
1414
uv add agent-client-protocol
1515
```
1616

17-
Install optional extras when you need remote transports or telemetry:
17+
Optional extras:
1818

1919
```bash
2020
pip install "agent-client-protocol[http]" # Streamable HTTP + WebSocket
2121
pip install "agent-client-protocol[logfire]" # Logfire / OpenTelemetry
2222
```
2323

24-
## SDK overview
24+
## Modules
2525

26-
| Module | Purpose |
27-
| --- | --- |
28-
| `acp` & `acp.schema` | Stable ACP v1 runtime (`run_agent`, `connect_to_agent`, `spawn_agent_process`, `Agent`, `Client`) and generated Pydantic models (`schema-v1.35.0`) |
29-
| `acp.experimental.v2` | Preview ACP v2 runtime and generated models (`schema-v2.0.0-beta.4`), plus `AgentProtocolRouter` for dual-stack negotiation |
30-
| `acp.http` & `acp.ws` | Experimental Streamable HTTP (SSE + HTTP/2) and WebSocket client/server transports (`[http]` extra) |
31-
| `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`.
3230

33-
## Documentation guide
31+
## Guides
3432

3533
- **[Quickstart](quickstart.md)** — Install the SDK, run the echo agent, connect from an ACP client, and launch processes programmatically.
3634
- **[Protocol Features (v1)](protocol-features.md)** — Session management, authentication, providers, notices, elicitation, stateless MCP-over-ACP, request cancellation, and extension methods.

‎docs/testing.md‎

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,12 @@ The test suite under `tests/` covers:
2222

2323
## ACP TCK conformance
2424

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:
2626

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.
3331

3432
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.
3533

@@ -48,14 +46,12 @@ Real-world checks validate end-to-end behavior with ecosystem tools across two r
4846

4947
Use the same six scenarios across clients and agents when validating releases or transport changes:
5048

51-
| ID | Scenario | Verified behavior |
52-
| --- | --- | --- |
53-
| **S1** | Handshake & negotiation | `initialize` exchanges protocol version, info, and capabilities; unsupported versions return clean errors |
54-
| **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 |
57-
| **S5** | Session lifecycle & config | Advertised capabilities (`session/list`, `load`/`resume`, `fork`, `configOptions`, `mcp-over-acp`) round-trip cleanly |
58-
| **S6** | Error handling & shutdown | Invalid frames or unimplemented methods keep the connection healthy; closing exits cleanly with zero orphan processes |
49+
1. **S1 · Handshake & negotiation** — `initialize` exchanges protocol version, info, and capabilities; unsupported versions return clean errors.
50+
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.
53+
5. **S5 · Session lifecycle & config** — Advertised capabilities (`session/list`, `load`/`resume`, `fork`, `configOptions`, `mcp-over-acp`) round-trip cleanly.
54+
6. **S6 · Error handling & shutdown** — Invalid frames or unimplemented methods keep the connection healthy; closing exits cleanly with zero orphan processes.
5955

6056
### Running the opt-in Gemini CLI smoke test
6157

‎docs/web-transport.md‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,9 @@ asyncio.run(hypercorn.asyncio.serve(app, config))
128128

129129
## HTTP headers and stream routing
130130

131-
| Header / Field | Role |
132-
| --- | --- |
133-
| `Acp-Connection-Id` | Returned on `initialize`; sent on subsequent HTTP `POST`/`GET`/`DELETE` requests |
134-
| `Acp-Session-Id` | Sent on session-scoped `POST` requests and session-scoped `GET` SSE streams |
135-
| `sessionId` | JSON-RPC payload field used to route server-to-client messages to the matching session stream |
131+
- **`Acp-Connection-Id`** — Returned on `initialize`; sent on subsequent HTTP `POST`, `GET`, and `DELETE` requests.
132+
- **`Acp-Session-Id`** — Sent on session-scoped `POST` requests and session-scoped `GET` SSE streams.
133+
- **`sessionId`** — JSON-RPC payload field used to route server-to-client messages to the matching session stream.
136134

137135
## Examples
138136

0 commit comments

Comments
 (0)