Skip to content

Commit 4ee6be8

Browse files
Fork/list/resume + cinfig options + auto pagination binding (#56)
* update for new unstable schema: - session fork/list/resume - session config options * Add corresponding APIs to client and agent parts to support new session capabilities. #45 in progress * Add SequenceToPaginatedResponseAdapter that transparently converts a sequence into paginated responses. * Add setPaginatedRequestHandler for handling paginated requests * Add test for listing sessions * Lazy automatic pagination on client side via cold flow * Add eviction of orphaned iterators with timeouts * Fix compilation after merge * Update API dump --------- Co-authored-by: Dennis Ushakov <dennis.ushakov@gmail.com>
1 parent 1b1521b commit 4ee6be8

28 files changed

Lines changed: 2630 additions & 132 deletions

File tree

acp-ktor-test/src/commonTest/kotlin/com/agentclientprotocol/SimpleAgentTest.kt

Lines changed: 322 additions & 34 deletions
Large diffs are not rendered by default.

acp-model/.schema-checksums

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
# Format: SHA256 FILENAME
44

55
# Stable schemas
6-
796e38e275a1587b5a711a4b4508cb69825448b70e79b14bdb4256b24688b89d schema/schema.json
6+
07f2cdfd7814496ebdab83fb7417787fa1dddc6276b11cd31b51be2f8ba95f2b schema/schema.json
77
f242b95def9a9cbfddd2db1a45d8d3d489ad1b4f564a1322547c90a94c647637 schema/meta.json
88

99
# Unstable schemas
10-
4a886716877f97bc24c4c7f1ae24c9ad06a779107afbdf0718110fc50b5135b7 schema/schema.unstable.json
11-
8ad80116767e0921970b28766c214d7921268653544d5996a8e2814e1244d4d2 schema/meta.unstable.json
10+
75d180b9c589cd7d79a5a9cbb6680d52e1bce71238839871441d30c753b497a9 schema/schema.unstable.json
11+
e87ae9b3fc3b05f88da6dfc06d003e5263d6a041b1c934ed13b83173b39ed111 schema/meta.unstable.json

acp-model/.schema-revision

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e23620fe29cb24555db8fb8b58b641b680788e5f
1+
37d12f4bb4b0cf1dca60421d48cb17decc119b8e

acp-model/SCHEMA_VERSION.md

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,60 +11,59 @@ This file tracks the version of the Agent Client Protocol schema that the model
1111

1212
### Stable Schema
1313
- **schema.json**
14-
- Commit: `e23620fe29cb24555db8fb8b58b641b680788e5f`
15-
- Date: 2025-12-01 17:17:19 +0100
16-
- SHA256: `796e38e275a1587b5a711a4b4508cb69825448b70e79b14bdb4256b24688b89d`
14+
- Commit: `37d12f4bb4b0cf1dca60421d48cb17decc119b8e`
15+
- Date: 2025-12-20 18:25:51 +0000
16+
- SHA256: `07f2cdfd7814496ebdab83fb7417787fa1dddc6276b11cd31b51be2f8ba95f2b`
1717
- URL: https://github.com/agentclientprotocol/agent-client-protocol/blob/main/schema/schema.json
1818

1919
- **meta.json**
20-
- Commit: `e23620fe29cb24555db8fb8b58b641b680788e5f`
21-
- Date: 2025-12-01 17:17:19 +0100
20+
- Commit: `37d12f4bb4b0cf1dca60421d48cb17decc119b8e`
21+
- Date: 2025-12-20 18:25:51 +0000
2222
- SHA256: `f242b95def9a9cbfddd2db1a45d8d3d489ad1b4f564a1322547c90a94c647637`
2323
- URL: https://github.com/agentclientprotocol/agent-client-protocol/blob/main/schema/meta.json
2424

2525
### Unstable Schema
2626
- **schema.unstable.json**
27-
- Commit: `e23620fe29cb24555db8fb8b58b641b680788e5f`
28-
- Date: 2025-12-01 17:17:19 +0100
29-
- SHA256: `4a886716877f97bc24c4c7f1ae24c9ad06a779107afbdf0718110fc50b5135b7`
27+
- Commit: `37d12f4bb4b0cf1dca60421d48cb17decc119b8e`
28+
- Date: 2025-12-20 18:25:51 +0000
29+
- SHA256: `75d180b9c589cd7d79a5a9cbb6680d52e1bce71238839871441d30c753b497a9`
3030
- URL: https://github.com/agentclientprotocol/agent-client-protocol/blob/main/schema/schema.unstable.json
3131

3232
- **meta.unstable.json**
33-
- Commit: `e23620fe29cb24555db8fb8b58b641b680788e5f`
34-
- Date: 2025-12-01 17:17:19 +0100
35-
- SHA256: `8ad80116767e0921970b28766c214d7921268653544d5996a8e2814e1244d4d2`
33+
- Commit: `37d12f4bb4b0cf1dca60421d48cb17decc119b8e`
34+
- Date: 2025-12-20 18:25:51 +0000
35+
- SHA256: `e87ae9b3fc3b05f88da6dfc06d003e5263d6a041b1c934ed13b83173b39ed111`
3636
- URL: https://github.com/agentclientprotocol/agent-client-protocol/blob/main/schema/meta.unstable.json
3737

3838
**Note:** All types from unstable schema must be marked with `@UnstableApi` annotation.
3939

4040
## Last Updated
41-
- Date: 2025-12-01
41+
- Date: 2025-12-20
4242
- Updated by: Manual schema synchronization
4343

4444
## Changes in This Version
45-
- Added `Implementation` type for client/agent identification
46-
- Added `SessionCapabilities` type (empty, for future expansion)
47-
- Added `clientInfo` field to `InitializeRequest`
48-
- Added `agentInfo` field to `InitializeResponse`
49-
- Added `sessionCapabilities` field to `AgentCapabilities`
50-
- Changed `AvailableCommandInput` from data class to sealed class with `Unstructured` variant
51-
- Added `_meta` field to `ToolCallContent.Terminal`
52-
- Terminal types are now stable (removed unstable warning)
45+
- Added `session/fork` method to agent methods (unstable)
46+
- Added `session/list` method to agent methods (unstable)
47+
- Added `session/resume` method to agent methods (unstable)
48+
- Added `session/set_config_option` method to agent methods (unstable)
49+
- Added `session/set_model` method to agent methods (unstable)
50+
- Added `$/cancel_request` protocol method (unstable)
51+
- Updated stable schema with bug fixes and improvements
5352

5453
## Verification
5554
To verify the schema files match:
5655
```bash
5756
# Stable schemas
5857
curl -s https://raw.githubusercontent.com/agentclientprotocol/agent-client-protocol/main/schema/schema.json | sha256sum
59-
# Expected: 796e38e275a1587b5a711a4b4508cb69825448b70e79b14bdb4256b24688b89d
58+
# Expected: 07f2cdfd7814496ebdab83fb7417787fa1dddc6276b11cd31b51be2f8ba95f2b
6059

6160
curl -s https://raw.githubusercontent.com/agentclientprotocol/agent-client-protocol/main/schema/meta.json | sha256sum
6261
# Expected: f242b95def9a9cbfddd2db1a45d8d3d489ad1b4f564a1322547c90a94c647637
6362

6463
# Unstable schemas
6564
curl -s https://raw.githubusercontent.com/agentclientprotocol/agent-client-protocol/main/schema/schema.unstable.json | sha256sum
66-
# Expected: 4a886716877f97bc24c4c7f1ae24c9ad06a779107afbdf0718110fc50b5135b7
65+
# Expected: 75d180b9c589cd7d79a5a9cbb6680d52e1bce71238839871441d30c753b497a9
6766

6867
curl -s https://raw.githubusercontent.com/agentclientprotocol/agent-client-protocol/main/schema/meta.unstable.json | sha256sum
69-
# Expected: 8ad80116767e0921970b28766c214d7921268653544d5996a8e2814e1244d4d2
68+
# Expected: e87ae9b3fc3b05f88da6dfc06d003e5263d6a041b1c934ed13b83173b39ed111
7069
```

0 commit comments

Comments
 (0)