Audio Agent Builder • Rust AI Agent SDK

AudioAgentBuilder: Builder for AudioAgent

AudioAgentBuilder

Defined in the agents module.

Rust AI Agent SDK

Builder for AudioAgent

Diagram

Input Data

Agent: AudioAgentBuilder

Output Result

Fields

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

Methods

name

rust
fn name(mut self, name: impl Into<String>) -> Self

Set the agent name

Parameters:

NameType
nameimpl Into&lt;String&gt;

model

rust
fn model(mut self, model: impl Into<String>) -> Self

Set the model

Parameters:

NameType
modelimpl Into&lt;String&gt;

voice

rust
fn voice(mut self, voice: impl Into<String>) -> Self

Set the voice

Parameters:

NameType
voiceimpl Into&lt;String&gt;

speed

rust
fn speed(mut self, speed: f32) -> Self

Set the speed

Parameters:

NameType
speedf32

verbose

rust
fn verbose(mut self, verbose: bool) -> Self

Set verbose mode

Parameters:

NameType
verbosebool

config

rust
fn config(mut self, config: AudioConfig) -> Self

Set the config

Parameters:

NameType
configAudioConfig

build

rust
fn build(self) -> Result<AudioAgent>

Build the AudioAgent

Source

View on GitHub

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


Related Documentation