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/v1/draft/session-delete.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ sequenceDiagram
32
32
33
33
## Checking Support
34
34
35
-
Before attempting to delete a session, Clients **MUST** verify that the Agent supports this capability by checking the unstable `sessionCapabilities.delete` field in the `initialize` response:
35
+
Before attempting to delete a session, Clients **MUST** verify that the Agent supports this capability by checking the `sessionCapabilities.delete` field in the `initialize` response:
description: "Removing sessions from session history"
4
+
---
5
+
6
+
The `session/delete` method allows Clients to remove sessions from an Agent's `session/list` results. This gives users a standard way to manage session history across ACP Clients and Agents.
7
+
8
+
Before deleting sessions, Clients **MUST** first complete the [initialization](/protocol/v1/initialization) phase and verify the Agent supports this capability.
Before attempting to delete a session, Clients **MUST** verify that the Agent supports this capability by checking the `sessionCapabilities.delete` field in the `initialize` response:
36
+
37
+
```json highlight={7-9}
38
+
{
39
+
"jsonrpc": "2.0",
40
+
"id": 0,
41
+
"result": {
42
+
"protocolVersion": 1,
43
+
"agentCapabilities": {
44
+
"sessionCapabilities": {
45
+
"delete": {}
46
+
}
47
+
}
48
+
}
49
+
}
50
+
```
51
+
52
+
If `sessionCapabilities.delete` is omitted or `null`, the Agent does not support deleting sessions and Clients **MUST NOT** attempt to call `session/delete`. Supplying `{}` means the Agent supports the method.
53
+
54
+
## Deleting a Session
55
+
56
+
Clients delete a session by calling `session/delete` with the session ID to remove from session history:
0 commit comments