Represents an event in the ADK.
Summary
Functions
Returns true if this is a compaction event.
Create an error event.
Returns true if this event is a final response (not partial, no transfer, no tool calls).
Reconstruct an event from a map (string or atom keys).
Extract function call parts from the event's content.
Extract function response parts from the event's content.
Returns true if the event contains at least one function call.
Returns true if the event contains at least one function response.
Create a new event with auto-generated ID and timestamp.
Check if an event is visible on a given branch.
Extract text from the event's content parts, falling back to error.
Returns true if the event has text content (not just tool calls).
Convert an event to a plain map, serializing timestamps and actions.
Types
@type t() :: %ADK.Event{ actions: ADK.EventActions.t() | nil, author: String.t() | nil, branch: String.t() | nil, content: map() | nil, custom_metadata: map(), data: any(), error: String.t() | nil, id: String.t() | nil, input_transcription: map() | nil, invocation_id: String.t() | nil, output_transcription: map() | nil, partial: boolean() | nil, timestamp: DateTime.t() | nil, type: atom() | nil }
Functions
Returns true if this is a compaction event.
Create an error event.
Returns true if this event is a final response (not partial, no transfer, no tool calls).
Reconstruct an event from a map (string or atom keys).
Extract function call parts from the event's content.
Extract function response parts from the event's content.
Returns true if the event contains at least one function call.
Returns true if the event contains at least one function response.
Create a new event with auto-generated ID and timestamp.
Check if an event is visible on a given branch.
Extract text from the event's content parts, falling back to error.
Returns true if the event has text content (not just tool calls).
Convert an event to a plain map, serializing timestamps and actions.