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 capabilitiesRealtimeRunner- 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§
- Audio
Format - Complete audio format specification.
- Realtime
Agent - A real-time voice agent that implements the ADK Agent trait.
- Realtime
Agent Builder - Builder for RealtimeAgent.
- Realtime
Config - Configuration for a realtime session.
- Realtime
Config Builder - Builder for RealtimeConfig.
- Realtime
Runner - A runner that manages a realtime session with tool execution.
- Tool
Call - A simplified tool call representation.
- Tool
Response - A tool response to send back to the model.
- VadConfig
- VAD configuration options.
Enums§
- Audio
Encoding - Audio encoding formats supported by realtime APIs.
- Client
Event - Events sent from the client to the realtime server.
- Interruption
Detection - Controls how the realtime session handles user interruptions during agent audio output.
- Realtime
Error - Errors that can occur during realtime operations.
- Server
Event - Events received from the realtime server.
- VadMode
- Voice Activity Detection mode.
Traits§
- Realtime
Model - A factory for creating real-time sessions.
- Realtime
Session - A real-time bidirectional streaming session.
- Realtime
Session Ext - Extension trait for RealtimeSession with convenience methods.
Type Aliases§
- Boxed
Model - A shared model type for thread-safe dynamic dispatch.
- Boxed
Session - A boxed session type for dynamic dispatch.
- Result
- Result type for realtime operations.