User message content — the agent's specific sub-question or task
System prompt defining the agent's role and behavior
OptionalparentParent branch to fork from (required by useAgentPool)
OptionalseedPRNG seed for sampler diversity — pass different seeds per agent
OptionaltoolsJSON-serialized tool schemas (from createToolkit)
Task specification for a single agent in useAgentPool
Each task defines the agent's system prompt, user content, available tools, and parent branch to fork from. The parent branch determines the agent's KV prefix — fork from a shared root to amortize system prompt tokenization across agents.