Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions libs/acp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,20 @@ if __name__ == "__main__":
asyncio.run(main())
```

### Persist and load sessions

`AgentServerACP` can advertise and implement ACP's `session/load` capability when the
agent uses a durable LangGraph checkpointer:

```python
server = AgentServerACP(agent, load_sessions=True)
```

The checkpointer must remain available across agent-process restarts. An in-memory
checkpointer is suitable for tests but does not provide restart persistence. On load, the
adapter restores the LangGraph thread, verifies the original working directory, and replays
the conversation to the client through `session/update` before returning.

### Launch with Toad

```sh
Expand Down
Loading
Loading