Skip to contents

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 $.

Usage

DelegationOutcome(runtime, answer = "", references = list(), claims = list())

Arguments

runtime

List of IDs, status, stop_reason, finish_reason, cut_off and 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's gathered; see AgentResult), and runtime$handed_back is TRUE.

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_evidence and unresolved_work from its structured output. NULL means it didn't report, not that nothing is missing.

Value

A DelegationOutcome object.