Realtime Agent Builder • Rust AI Agent SDK

RealtimeAgentBuilder: Builder for RealtimeAgent.

RealtimeAgentBuilder

Defined in the agents module.

Rust AI Agent SDK

Builder for RealtimeAgent.

Diagram

Input Data

Agent: RealtimeAgentBuilder

Output Result

Fields

NameTypeDescription
nameOption<String>–
modelOption<String>–
configRealtimeConfig–
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 voice

Parameters:

NameType
voiceimpl Into&lt;String&gt;

config

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

Set config

Parameters:

NameType
configRealtimeConfig

build

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

Build the agent

Source

View on GitHub

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


Related Documentation