mirror of
https://github.com/hwchase17/langchain.git
synced 2026-07-12 02:55:21 +00:00
Declares the subagent a tool dispatches to. Accepts a static string or a Callable[[ToolCall], str] for dynamic resolution at dispatch time. This is a pure attribute addition with no behavior. Downstream consumers (langgraph ToolNode, langchain create_agent's typed projection) will read this attribute to surface subagent identity on streaming lifecycle events.