A generic activity or status update.
A request from the model to execute code.
The result of a code execution.
A text delta intended for the end user.
A runtime error signalled via event.errorCode.
The agent has produced its final response for this turn.
A reasoning trace (thought) emitted by the model.
A request from the model to execute a tool (function call).
A request for the user to confirm one or more tool calls.
The result returned by a tool execution (function response).
The types of events that can be parsed from a raw Event.
Each value corresponds to one category of structured output that toStructuredEvents may produce from a raw Event.