How one delegation ended. The runtime's record (IDs, status,
stop_reason) is kept apart from what the subagent's model said (answer
and claims). A "completed" status means the run ended normally, not
that the task succeeded. finish_reason is the provider's finish reason for
the subagent's final response, and cut_off is TRUE when the provider cut
that response short, so a "completed" delegation can still carry a
truncated answer. LeadAgent returns outcomes from
$parallel_delegate() and, as JSON, from the delegate_to_agent tool.
Fields are read with $.
Arguments
- runtime
List of IDs,
status,stop_reason,finish_reason,cut_offand other facts recorded by the runtime.- answer
The subagent's final reply, cut to 8 KiB. A longer reply is saved in full in
references. A subagent stopped before it answered hands back what it had gathered instead (its result'sgathered; see AgentResult), andruntime$handed_backisTRUE.- references
Saved artifacts, such as the full answer or large tool results, with their origin and whether they are still available.
- claims
The subagent's report of
missing_evidenceandunresolved_workfrom its structured output.NULLmeans it didn't report, not that nothing is missing.