load_async_subagents(
config_path: Path | None = None,
) -> list[AsyncSubAgent]| Name | Type | Description |
|---|---|---|
config_path | Path | None | Default: NonePath to config file. Passing a path also excludes
managed policy from this read, so production callers must pass
Defaults to |
Load async subagent definitions from config.toml.
Reads the [async_subagents] section where each sub-table defines a remote
LangGraph deployment:
[async_subagents.researcher]
description = "Research agent"
url = "https://my-deployment.langsmith.dev"
graph_id = "agent"
webhook = "https://example.com/webhooks/subagent-finished"