| [ Web Proxy ] |
| Viewing: https://reference.langchain.com/python/deepagents/middleware/async_subagents/AsyncSubAgent | [Back] [Original] |
AsyncSubAgent()URL of the Agent Protocol server.
Defaults to the LangGraph SDK's default endpoint. Omit to use ASGI transport for local servers.
Specification for an async subagent running on a remote Agent Protocol server.
Async subagents connect to any Agent Protocol-compliant server via the LangGraph SDK. They run as background tasks that the main agent can monitor and update.
Compatible with LangGraph Platform / LangSmith Deployment (managed) and self-hosted servers.
Authentication for LangGraph Platform / LangSmith Deployment is handled
automatically by the SDK via environment variables (LANGGRAPH_API_KEY,
LANGSMITH_API_KEY, or LANGCHAIN_API_KEY). For self-hosted servers,
pass custom auth via headers.
Omitting url uses in-process ASGI transport for a local server. This
transport is available only through an async parent-agent entrypoint,
such as ainvoke. The synchronous invoke path requires a URL for a
reachable Agent Protocol server.
| Web Proxy Viewer | New URL | Original Page |