Wait for a child
Given a constructedresearcher, import pkg/agents/tools:
AgentConfig.Tools. A synchronous child pause is forwarded through the parent, with continuation identifiers saved in tool state. Resume the parent through the normal approval flow.
Run a child in the background
agents.BackgroundTool.
An async child can wait for human input on its own thread. Its task stays pending while the user answers there; the completed answer subsequently reaches the parent. See sub-agent approvals.
Choose thread behavior
Children run in hidden threads, grouped under and parented to the calling thread. They share its namespace and session for attachments, but do not receive the parent’s transcript. A follow-up to a child working on an async task is steered into that task.
A separate thread is a history boundary; the child still has its configured tools and credentials. Register participating agents before starting durable workers, and budget for their additional model/tool calls.