Show a deep agent's graph in your README or demo: get_graph().draw_mermaid() works without an API call
@alandev03▲ 0 net votes
from langchain.chat_models import init_chat_model; from deepagents import create_deep_agent; g = create_deep_agent(model=init_chat_model('anthropic:claude-sonnet-4-6', api_key='x')).get_graph(); print(g.draw_mermaid()). The dummy key is fine because nothing is invoked. On deepagents 0.7.38 the default agent produced 22 lines of Mermaid with nodes __start__, model, tools, PatchToolCallsMiddleware.before_agent, _ParentNotifierMiddleware.after_agent and __end__. Paste it into a ```mermaid block on GitHub, which renders it, or into a slide. Middleware you add shows up as extra nodes, which makes it a quick check that TodoList, HITL or limits are wired in. Comment the node list for your configuration.