Skip to content

DeepAgents Compatibility Example

Source:

This example is the maintained DeepAgents-facing showcase for langchain-acp.

It demonstrates:

  • wiring a DeepAgents graph through langchain-acp
  • DeepAgentsCompatibilityBridge
  • DeepAgentsProjectionMap
  • 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

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.