mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-05-14 12:43:45 +00:00
Extract checkpointer, store, event_store, run_events_config, thread_meta_repo, and follow_up_to_run_id into a frozen RunContext dataclass. Add get_run_context() in deps.py to build the base context from app.state singletons. start_run() uses dataclasses.replace() to enrich per-run fields before passing ctx to run_agent. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
17 lines
424 B
Python
17 lines
424 B
Python
"""Run lifecycle management for LangGraph Platform API compatibility."""
|
|
|
|
from .manager import ConflictError, RunManager, RunRecord, UnsupportedStrategyError
|
|
from .schemas import DisconnectMode, RunStatus
|
|
from .worker import RunContext, run_agent
|
|
|
|
__all__ = [
|
|
"ConflictError",
|
|
"DisconnectMode",
|
|
"RunContext",
|
|
"RunManager",
|
|
"RunRecord",
|
|
"RunStatus",
|
|
"UnsupportedStrategyError",
|
|
"run_agent",
|
|
]
|