Realtime Config • AI Agent SDK

RealtimeConfig: Configuration for RealtimeAgent.

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

ResponseField str

No description available.

ResponseField List[str]

No description available.

ResponseField str

No description available.

ResponseField str

No description available.

ResponseField str

No description available.

ResponseField Optional[float]

No description available.

ResponseField Optional[int]

No description available.

ResponseField Optional[str]

No description available.

Methods

Internal & Generic Methods
  • to_dict: Convert config to dictionary.

Source

View on GitHub

praisonaiagents/agent/realtime_agent.py at line 11


Related Documentation