ReadonlytypeReadonlystopThe stop reason from the final model response.
ReadonlylastThe last message added to the messages array.
Optional ReadonlystructuredThe validated structured output from the LLM, if a schema was provided. Type represents any validated Zod schema output.
Result returned by the agent loop.