Skip to main content

AudioAgentBuilder

Defined in the agents module.
Rust AI Agent SDK Builder for AudioAgent

Fields

NameTypeDescription
nameOption<String>-
modelOption<String>-
configAudioConfig-
verbosebool-

Methods

name

fn name(mut self, name: impl Into<String>) -> Self
Set the agent name Parameters:
NameType
nameimpl Into&lt;String&gt;

model

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

voice

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

speed

fn speed(mut self, speed: f32) -> Self
Set the speed Parameters:
NameType
speedf32

verbose

fn verbose(mut self, verbose: bool) -> Self
Set verbose mode Parameters:
NameType
verbosebool

config

fn config(mut self, config: AudioConfig) -> Self
Set the config Parameters:
NameType
configAudioConfig

build

fn build(self) -> Result<AudioAgent>
Build the AudioAgent

Source

View on GitHub

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