RealtimeConfig
Defined in the Realtime Agent module.AI Agent Configuration for RealtimeAgent. Attributes: voice: Voice to use for audio output (alloy, echo, fable, onyx, nova, shimmer) modalities: List of modalities to use (text, audio) turn_detection: Turn detection mode (server_vad, none) input_audio_format: Input audio format (pcm16, g711_ulaw, g711_alaw) output_audio_format: Output audio format (pcm16, g711_ulaw, g711_alaw) temperature: Deprecated; the GA Realtime API has no session temperature, so this value is ignored (a DeprecationWarning is emitted if set) max_response_output_tokens: Maximum tokens for response instructions: System instructions for the session
Properties
str
No description available.
List[str]
No description available.
str
No description available.
str
No description available.
str
No description available.
Optional[float]
No description available.
Optional[int]
No description available.
Optional[str]
No description available.
Methods
to_session()
Build a GA Realtime
session.update payload from this config.Internal & Generic Methods
Internal & Generic Methods
- to_dict: Convert config to dictionary.
Source
View on GitHub
praisonaiagents/agent/realtime_agent.py at line 11
