core/models/sse_events
library
Classes
-
Emitted when a terminal or non-terminal error occurs within the stream.
-
LifecycleSseEvent
-
Represents lifecycle transitions in the stream (e.g., 'start', 'finish', 'done').
-
RawSseEvent
-
A generic container for file, source, or raw data events.
-
ReasoningDeltaSseEvent
-
Emitted when a new chunk of the AI's internal reasoning is available.
-
SseEvent
-
A sealed base class representing all possible events in a Tuul AI stream.
-
StepSseEvent
-
Represents the beginning or end of a discrete logical step in a multi-step process.
-
TextDeltaSseEvent
-
Emitted when a new chunk of generated text is available.
-
ToolCallSseEvent
-
Emitted when the AI decides to call a specific tool or function.
-
Emitted if a tool execution fails.
-
ToolInputDeltaSseEvent
-
Emitted as the AI streams the JSON input arguments for a tool call.
-
ToolResultSseEvent
-
Emitted when a tool has successfully finished execution and returned data.
-
UnknownSseEvent
-
A fallback event type for any server events not explicitly handled by the SDK version.