mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-09-15 17:18:38 +00:00
* feat(subagents): add capacity controls and durable batches * fix(helm): sync subagent config schema version * fix(subagents): preserve batch history without worker * fix(subagents): support explicit factory runtimes * fix: address durable batch review findings
31 lines
880 B
Python
31 lines
880 B
Python
from .config import SubagentConfig
|
|
from .registry import get_available_subagent_names, get_subagent_config, list_subagents
|
|
|
|
__all__ = [
|
|
"SubagentConfig",
|
|
"SubagentExecutor",
|
|
"SubagentResult",
|
|
"SubagentRuntime",
|
|
"get_available_subagent_names",
|
|
"get_subagent_config",
|
|
"list_subagents",
|
|
]
|
|
|
|
|
|
def __getattr__(name: str):
|
|
if name in {"SubagentExecutor", "SubagentResult"}:
|
|
from .executor import SubagentExecutor, SubagentResult
|
|
|
|
exports = {
|
|
"SubagentExecutor": SubagentExecutor,
|
|
"SubagentResult": SubagentResult,
|
|
}
|
|
globals().update(exports)
|
|
return exports[name]
|
|
if name == "SubagentRuntime":
|
|
from .runtime import SubagentRuntime
|
|
|
|
globals()[name] = SubagentRuntime
|
|
return SubagentRuntime
|
|
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|