deer-flow — Gateway run around a create_agent lead graph

deer-flow — Gateway run around a create_agent lead graph An architecture diagram generated by Archify. User · web or IM · Architecture component User web or IM IM channels · ten adapters · Architecture component IM channels ten adapters Gateway · start_run · Architecture component Gateway start_run RunManager · run row, not the thread · Architecture component RunManager run row, not the thread run_agent · agent.astream · Architecture component run_agent agent.astream assemble_lead_agent · tools, prompt, stack · Architecture component assemble_lead_agent tools, prompt, stack create_agent · LangChain loop · Architecture component create_agent LangChain loop Chat model · provider call · Architecture component Chat model provider call Middleware stack · context, tools, HITL · Architecture component Middleware stack context, tools, HITL SandboxProvider · one id per thread · Architecture component SandboxProvider one id per thread Memory store · DeerMem by default · Architecture component Memory store DeerMem by default Skills · index, then body · Architecture component Skills index, then body Checkpointer · thread graph state · Architecture component Checkpointer thread graph state Two pauses · interrupt or goto END · Architecture component Two pauses interrupt or goto END IM message HTTP run same start_run admit one run build create_agent model node middleware first tool after_agent index / slash attach pause waiting_for_input Legend Frontend Backend Database Security External