Server-to-client events received over a call's WebSocket connection.
Each event is a struct discriminated on the wire by event_type. Use
decode/1 to turn a decoded JSON map into the matching struct.
Summary
Functions
Decode a JSON map into an event struct.
Decode an event from a JSON string. Returns nil for unknown types.
Types
@type t() :: Guava.Events.InboundCall.t() | Guava.Events.SocketHealth.t() | Guava.Events.CallerSpeech.t() | Guava.Events.AgentSpeech.t() | Guava.Events.Error.t() | Guava.Events.Warning.t() | Guava.Events.AgentQuestion.t() | Guava.Events.Intent.t() | Guava.Events.ActionRequest.t() | Guava.Events.ActionItemCompleted.t() | Guava.Events.TaskCompleted.t() | Guava.Events.ExecuteAction.t() | Guava.Events.OutboundCallConnected.t() | Guava.Events.OutboundCallFailed.t() | Guava.Events.BotSessionEnded.t() | Guava.Events.ChoiceQuery.t() | Guava.Events.Escalate.t() | Guava.Events.DTMFPressed.t() | Guava.Events.OutboundSessionStarted.t()
Any event that can be received from the Guava server.
Functions
Decode a JSON map into an event struct.
Returns nil (and logs a warning) for unknown event types, matching the
Python SDK's forward-compatible behavior.
Decode an event from a JSON string. Returns nil for unknown types.