You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No way to restrict which agent types the task tool can dispatch per custom agent. #2812
Summary
There is no supported way to limit which agent types a given custom agent may delegate to through the task tool. The agent_type enum of the task tool is built per session. It lists every built-in agent and every discovered or registered custom agent, whichever agent is calling.
-With enableConfigDiscovery=True: agents: [worker-a] in an .agent.md limits the agent_type values the task tool accepts when that agent calls it. The tool schema and the runtime validation ("Unknown agent_type … Valid types are") would both reflect it.
-SDK config: CustomAgentConfig gains the same field (for example agents: list[str]), mapped to the CLI wire format.
Activity