Skip to main content

Events and errors

Status: implemented.

Use this page as a lookup for runtime event and error categories.

Agent events

Agent events implement agent.Event with GetType() string.

Event typeSource struct
user_input_transcribedUserInputTranscribedEvent
agent_output_transcribedAgentOutputTranscribedEvent
user_turn_exceededUserTurnExceededEvent
overlapping_speechOverlappingSpeechEvent
conversation_item_addedConversationItemAddedEvent
agent_false_interruptionAgentFalseInterruptionEvent
function_tools_executedFunctionToolsExecutedEvent
metrics_collectedMetricsCollectedEvent
session_usage_updatedSessionUsageUpdatedEvent
errorErrorEvent
speech_createdSpeechCreatedEvent
closeCloseEvent

Close reasons

Source-backed close reasons are:

  • error
  • job_shutdown
  • participant_disconnected
  • user_initiated
  • task_completed

Error categories

Core packages define typed errors for LLM, STT, TTS, realtime models, and tools. Provider adapters normalize errors where implemented, but the exact normalization is adapter-specific and should be checked in the adapter tests before documenting provider behavior.

Evidence:

  • core/agent/events.go
  • core/llm/errors.go
  • core/stt/errors.go
  • core/tts/errors.go
  • tests under core/*/*_test.go