ModelResponse
Normalized response from an LLM call (provider-agnostic).
Properties
Section titled “Properties”finishReason
Section titled “finishReason”finishReason:
string
Why the model stopped: “stop”, “tool-calls”, “length”, “content-filter”, “error”, “other”.
optionaltext?:string
Generated text (present when the model returns a text response).
toolCalls?
Section titled “toolCalls?”
optionaltoolCalls?:ModelToolCall[]
Tool calls requested by the model (present when the model wants to use tools).
usage:
Usage
Token usage for this call.