deepagents — agent loop as LangGraph node states (one invocation)

deepagents — agent loop as LangGraph node states (one invocation) A lifecycle diagram generated by Archify. Graph nodes Paused Exit invoke · thread_id + input · Graph nodes 01 invoke thread_id + input before_agent · memory · skills · patch · Graph nodes 02 before_agent memory · skills · patch model node · wrap_model_call chain · Graph nodes 03 model node wrap_model_call chain tool calls? · LangChain router · Graph nodes 04 tool calls? LangChain router tools node · Send per tool call · Graph nodes 05 tools node Send per tool call interrupted · HITL after_model · Paused interrupted HITL after_model END · final AIMessage · Exit END final AIMessage recursion limit · recursion_limit 9,999 · Exit recursion limit recursion_limit 9,999 start state AIMessage pending ToolMessages none interrupt resume over limit Legend initial state active waiting decision success failure / exit final state