Use this file to discover all available pages before exploring further.
TextResult is the value object returned after a text generation request completes. It aggregates the model’s generated text, optional reasoning output, any tool interactions, structured output, token usage statistics, and the raw provider response — everything you need to inspect or act on a completed generation.
The model’s internal reasoning or extended thinking text, when a reasoning-capable model was asked to reason before answering. null if reasoning was not requested or the model did not emit a reasoning trace.
The decoded structured output object when the request was made with ->output(). null when structured output was not requested. The shape depends on the schema passed to the generation call.
The unmodified response payload returned by the provider’s API. Useful for debugging or accessing provider-specific fields that are not surfaced in the structured properties above.
Provider-specific metadata keyed by provider name. The contents vary across providers and may include additional billing details, safety scores, or model-specific annotations.