Provider identifier used for the final run.
Resolved model identifier used for the run.
Final assistant text after all agentic steps have completed.
Aggregated token usage across all steps.
Ordered list of every tool call made during the run.
Reason the model stopped generating.
"stop" — natural end of response."length" — maxTokens limit reached."tool-calls" — loop exhausted maxSteps while still calling tools."error" — provider returned an error.Optional agentOrdered records of every sub-agent call made during an agency() run.
undefined for plain generateText / agent() calls.
Optional traceStructured trace events emitted during the run.
Populated by the agency orchestrator; undefined for single-agent calls.
Optional parsedParsed structured output produced when BaseAgentConfig.output is a Zod
schema. undefined when no output schema is configured.
Optional planThe plan produced by the planning phase when planning is enabled.
undefined when planning is disabled or was not requested.
The completed result returned by generateText.