DeepAgents Compatibility Example
Source:
This example is the maintained DeepAgents-facing showcase for langchain-acp.
It demonstrates:
- a Codex-backed
ChatOpenAImodel created throughcodex-auth-helper - wiring a DeepAgents graph through
langchain-acp DeepAgentsCompatibilityBridgeDeepAgentsProjectionMap- tool-based plan compatibility through
write_todos - approval-gated file writes
Install the optional dependency first:
uv add "langchain-acp[deepagents]"
pip install "langchain-acp[deepagents]"
Run it:
uv run python -m examples.langchain.deepagents_graph
Required local state:
~/.codex/auth.json
If you want the module-level compiled graph directly, the example exports graph when deepagents is installed:
acpkit run examples.langchain.deepagents_graph:graph
If deepagents is not installed, use the module as a recipe and keep main() or graph_from_session(...) as the entrypoint instead.