Skip to main content

Module event

Module event 

Source
Expand description

AG-UI Event Types

This module defines all AG-UI protocol event types including:

  • Text message events (start, content, end, chunk)
  • Thinking text message events
  • Tool call events (start, args, end, result)
  • State events (snapshot, delta)
  • Run lifecycle events (started, finished, error)
  • Step events (started, finished)
  • Custom and raw events

Structs§

ActivityDeltaEvent
Event containing an incremental activity update.
ActivitySnapshotEvent
Event containing a complete activity snapshot.
BaseEvent
Base event structure for all AG-UI protocol events.
CustomEvent
Event for custom application-specific data.
InterruptInfo
Information about a run interrupt.
MessagesSnapshotEvent
Event containing a complete snapshot of all messages.
RawEvent
Event containing raw data from the underlying provider.
RunErrorEvent
Event indicating that a run has encountered an error.
RunFinishedEvent
Event indicating that a run has finished.
RunStartedEvent
Event indicating that a run has started.
StateDeltaEvent
Event containing incremental state updates as JSON Patch operations.
StateSnapshotEvent
Event containing a complete state snapshot.
StepFinishedEvent
Event indicating that a step has finished.
StepStartedEvent
Event indicating that a step has started.
TextMessageChunkEvent
Event containing a chunk of text message content.
TextMessageContentEvent
Event containing a piece of text message content.
TextMessageEndEvent
Event indicating the end of a text message.
TextMessageStartEvent
Event indicating the start of a text message.
ThinkingEndEvent
Event indicating that a thinking step has ended.
ThinkingStartEvent
Event indicating that a thinking step has started.
ThinkingTextMessageContentEvent
Event containing a piece of thinking text message content.
ThinkingTextMessageEndEvent
Event indicating the end of a thinking text message.
ThinkingTextMessageStartEvent
Event indicating the start of a thinking text message.
ToolCallArgsEvent
Event containing tool call arguments.
ToolCallChunkEvent
Event containing a chunk of tool call content.
ToolCallEndEvent
Event indicating the end of a tool call.
ToolCallResultEvent
Event containing the result of a tool call.
ToolCallStartEvent
Event indicating the start of a tool call.

Enums§

Event
Union of all possible events in the Agent User Interaction Protocol.
EventType
Event types for the AG-UI protocol.
EventValidationError
Validation errors for AG-UI protocol events.
RunFinishedOutcome
Outcome of a run finishing.