Lets owner's model send a task to a retained agent. The model writes only
the task; you control the rest, including the agent's model, prompt, tools
and budget. Each call continues the same conversation, like
owner$continue_agent(), and returns a DelegationOutcome as JSON. Use
the owner's inspection methods, such as $inspect_subagents(), for the
full history.
Arguments
- owner
The Agent that owns the retained agent. Register the tool on this agent only.
- handle
Handle returned by
adopt_chat()orowner$retain_agent().- name
Tool name, unique among the owner's tools.
- description
Tells the model when to use this agent.
- usage_limits
UsageLimits for each call. A call also can't exceed the retained agent's remaining budget or the calling run's.