adk_event (erlang_adk v0.2.5)
View Sourceadk_event - Immutable event records for the ADK event system.
Events are the fundamental unit of communication in the Runner architecture. Every agent action, tool call, and state change is recorded as an event.
Summary
Functions
Deserialize an event from a map.
Check if this is the terminal event in an invocation.
Create a new immutable event record with auto-generated ID and timestamp. Author is the name of the agent or the binary string "user". Content can be text (binary), {tool_calls, List}, or {tool_response, ...}.
Create a new immutable event record with options. Opts can include: partial (boolean), is_final (boolean), actions (map), invocation_id (binary).
Serialize an event to a map for JSON encoding or persistence.
Attach a state delta map to an existing event.
Types
Functions
Deserialize an event from a map.
Check if this is the terminal event in an invocation.
Create a new immutable event record with auto-generated ID and timestamp. Author is the name of the agent or the binary string "user". Content can be text (binary), {tool_calls, List}, or {tool_response, ...}.
Create a new immutable event record with options. Opts can include: partial (boolean), is_final (boolean), actions (map), invocation_id (binary).
Serialize an event to a map for JSON encoding or persistence.
Attach a state delta map to an existing event.