Realtime Agent • Rust AI Agent SDK
RealtimeAgent: Agent for real-time voice conversations.
RealtimeAgent
Defined in the agents module.
Rust AI Agent SDK
Agent for real-time voice conversations.
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
input["Input Data"] --> agent["Agent: RealtimeAgent"]
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 | String | – |
model | String | Model to use |
config | RealtimeConfig | Configuration |
verbose | bool | – |
Methods
new
fn new() -> RealtimeAgentBuilderCreate a new builder
name
fn name(&self) -> &strGet agent name
send_text
fn send_text(&self, text: &str) -> Result<String>Send text message (placeholder)
Parameters:
| Name | Type |
|---|---|
text | &str |
Source
View on GitHubpraisonai/src/agents/mod.rs at line 1304