Skip to main content
Real-time agents provide instant responses for interactive applications.

Quick Start

1

Enable Realtime

use praisonai::{Agent, RealtimeConfig};

let config = RealtimeConfig::new()
    .websocket_enabled(true);

let agent = Agent::new()
    .name("Realtime Bot")
    .realtime(config)
    .build()?;

// Start WebSocket server
agent.serve(8080).await?;

Features

FeatureDescription
WebSocketBidirectional communication
StreamingToken-by-token responses
VoiceSpeech input/output