Skip to main content

Module realtime

Module realtime 

Source
Available on crate feature realtime only.
Expand description

Real-time bidirectional streaming (voice, video).

Provides real-time audio/video streaming for voice-enabled agents:

  • RealtimeAgent - Agent with voice capabilities
  • RealtimeRunner - Session management and tool execution
  • Multiple providers: OpenAI Realtime, Gemini Live

Available with feature: realtime

Modules§

agent
RealtimeAgent - an Agent implementation for real-time voice interactions.
audio
Audio format definitions and utilities.
config
Configuration types for realtime sessions.
error
Error types for the realtime module.
events
Event types for realtime communication.
model
Core RealtimeModel trait definition.
runner
RealtimeRunner for integrating realtime sessions with agents.
session
Core RealtimeSession trait definition.

Structs§

AudioFormat
Complete audio format specification.
RealtimeAgent
A real-time voice agent that implements the ADK Agent trait.
RealtimeAgentBuilder
Builder for RealtimeAgent.
RealtimeConfig
Configuration for a realtime session.
RealtimeConfigBuilder
Builder for RealtimeConfig.
RealtimeRunner
A runner that manages a realtime session with tool execution.
ToolCall
A simplified tool call representation.
ToolResponse
A tool response to send back to the model.
VadConfig
VAD configuration options.

Enums§

AudioEncoding
Audio encoding formats supported by realtime APIs.
ClientEvent
Events sent from the client to the realtime server.
InterruptionDetection
Controls how the realtime session handles user interruptions during agent audio output.
RealtimeError
Errors that can occur during realtime operations.
ServerEvent
Events received from the realtime server.
VadMode
Voice Activity Detection mode.

Traits§

RealtimeModel
A factory for creating real-time sessions.
RealtimeSession
A real-time bidirectional streaming session.
RealtimeSessionExt
Extension trait for RealtimeSession with convenience methods.

Type Aliases§

BoxedModel
A shared model type for thread-safe dynamic dispatch.
BoxedSession
A boxed session type for dynamic dispatch.
Result
Result type for realtime operations.