Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.praison.ai/llms.txt

Use this file to discover all available pages before exploring further.

RealtimeConfig

Defined in the agents module.
Rust AI Agent SDK Configuration for realtime voice settings.

Fields

NameTypeDescription
voiceStringVoice for audio output
modalitiesVec<String>Modalities (text, audio)
turn_detectionStringTurn detection mode
input_audio_formatStringInput audio format
output_audio_formatStringOutput audio format
temperaturef32Temperature
max_response_output_tokensOption<usize>Max response tokens
instructionsOption<String>System instructions

Methods

new

fn new() -> Self
Create a new config

voice

fn voice(mut self, voice: impl Into<String>) -> Self
Set voice Parameters:
NameType
voiceimpl Into&lt;String&gt;

modalities

fn modalities(mut self, modalities: Vec<String>) -> Self
Set modalities Parameters:
NameType
modalitiesVec&lt;String&gt;

turn_detection

fn turn_detection(mut self, mode: impl Into<String>) -> Self
Set turn detection Parameters:
NameType
modeimpl Into&lt;String&gt;

temperature

fn temperature(mut self, temp: f32) -> Self
Set temperature Parameters:
NameType
tempf32

max_response_output_tokens

fn max_response_output_tokens(mut self, tokens: usize) -> Self
Set max tokens Parameters:
NameType
tokensusize

instructions

fn instructions(mut self, instructions: impl Into<String>) -> Self
Set instructions Parameters:
NameType
instructionsimpl Into&lt;String&gt;

Source

View on GitHub

praisonai/src/agents/mod.rs at line 1225

Rust Realtime

Rust Streaming

Rust Configuration

Rust Installation