Skip to main content

RealtimeAgentBuilder

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

Fields

NameTypeDescription
nameOption<String>-
modelOption<String>-
configRealtimeConfig-
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 voice Parameters:
NameType
voiceimpl Into&lt;String&gt;

config

fn config(mut self, config: RealtimeConfig) -> Self
Set config Parameters:
NameType
configRealtimeConfig

build

fn build(self) -> Result<RealtimeAgent>
Build the agent

Source

View on GitHub

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