Audio Agent Builder • Rust AI Agent SDK
AudioAgentBuilder: Builder for AudioAgent
AudioAgentBuilder
Defined in the agents module.
Rust AI Agent SDK
Builder for AudioAgent
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
input["Input Data"] --> agent["Agent: AudioAgentBuilder"]
agent --> output["Output Result"]
style agent fill:#8B0000,color:#fff
style input fill:#8B0000,color:#fff
style output fill:#8B0000,color:#fffFields
| Name | Type | Description |
|---|---|---|
name | Option<String> | – |
model | Option<String> | – |
config | AudioConfig | – |
verbose | bool | – |
Methods
name
fn name(mut self, name: impl Into<String>) -> SelfSet the agent name
Parameters:
| Name | Type |
|---|---|
name | impl Into<String> |
model
fn model(mut self, model: impl Into<String>) -> SelfSet the model
Parameters:
| Name | Type |
|---|---|
model | impl Into<String> |
voice
fn voice(mut self, voice: impl Into<String>) -> SelfSet the voice
Parameters:
| Name | Type |
|---|---|
voice | impl Into<String> |
speed
fn speed(mut self, speed: f32) -> SelfSet the speed
Parameters:
| Name | Type |
|---|---|
speed | f32 |
verbose
fn verbose(mut self, verbose: bool) -> SelfSet verbose mode
Parameters:
| Name | Type |
|---|---|
verbose | bool |
config
fn config(mut self, config: AudioConfig) -> SelfSet the config
Parameters:
| Name | Type |
|---|---|
config | AudioConfig |
build
fn build(self) -> Result<AudioAgent>Build the AudioAgent
Source
View on GitHubpraisonai/src/agents/mod.rs at line 169