Interface Events
- All Known Implementing Classes:
Events.ContentDelta,Events.ContentStart,Events.ContentStop,Events.ErrorEvent,Events.InteractionEvent,Events.InteractionStatusUpdate
public sealed interface Events
permits Events.InteractionEvent, Events.InteractionStatusUpdate, Events.ContentStart, Events.ContentDelta, Events.ContentStop, Events.ErrorEvent
Represents an event in the Server-Sent Events (SSE) stream.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordDelta for audio content.static final recordDelta for code execution call.static final recordDelta for code execution result.static final recordEvent indicating a delta update for a content part.static final recordEvent indicating the start of a content part.static final recordEvent indicating the end of a content part.static interfaceInterface for all delta updates.static enumEnumeration of all supported delta types.static final recordDelta for document content.static final recordError details.static final recordEvent indicating an error.static enumEnumeration of all supported event types.static final recordDelta for file search result.static final recordDelta for function call.static final recordDelta for function result.static final recordDelta for Google Search call.static final recordDelta for Google Search result.static final recordDelta for image content.static final recordEvent indicating the start or completion of an interaction.static final recordEvent indicating a status update for an interaction.static final recordDelta for MCP server tool call.static final recordDelta for MCP server tool result.static final recordDelta for text content.static final recordDelta for thought signature.static final recordDelta for thought summary.static final recordDelta for URL context call.static final recordDelta for URL context result.static final recordDelta for video content. -
Method Summary
Modifier and TypeMethodDescriptioneventId()Returns the unique event identifier for resumption.Returns the type of the event.
-
Method Details
-
eventType
Events.EventType eventType()Returns the type of the event.- Returns:
- the type of the event.
-
eventId
String eventId()Returns the unique event identifier for resumption.- Returns:
- the unique event identifier for resumption.
-