Realtime Agent Builder • Rust AI Agent SDK
RealtimeAgentBuilder: Builder for RealtimeAgent.
RealtimeAgentBuilder
Defined in the agents module.
Rust AI Agent SDK
Builder for RealtimeAgent.
Fields
| Name | Type | Description |
|---|---|---|
name | Option<String> | – |
model | Option<String> | – |
config | RealtimeConfig | – |
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 voice
Parameters:
| Name | Type |
|---|---|
voice | impl Into<String> |
config
fn config(mut self, config: RealtimeConfig) -> SelfSet config
Parameters:
| Name | Type |
|---|---|
config | RealtimeConfig |
build
fn build(self) -> Result<RealtimeAgent>Build the agent
Source
View on GitHubpraisonai/src/agents/mod.rs at line 1343