Result returned by the agent loop.
Readonly
The stop reason from the final model response.
The last message added to the messages array.
Extracts and concatenates all text content from the last message. Includes text from TextBlock and ReasoningBlock content blocks.
The agent's last message as a string, with multiple blocks joined by newlines.
Result returned by the agent loop.