Realtime Agent • AI Agent SDK

RealtimeAgent: Agent for real-time voice conversations using OpenAI Realtime API.

RealtimeAgent

Defined in the Realtime Agent module.

AI Agent

Agent for real-time voice conversations using OpenAI Realtime API.

This agent enables bidirectional audio streaming for voice conversations, supporting both text and audio modalities with configurable voice settings.

Diagram

Input Data

Agent: RealtimeAgent

Output Result

Constructor

ParamField str

No description available.

ParamField Optional[str]

No description available.

ParamField Optional[str]

No description available.

ParamField Optional

No description available.

ParamField Optional[str]

No description available.

ParamField bool

No description available.

Methods

Usage

python
from praisonaiagents import RealtimeAgent

    agent = RealtimeAgent(
        name="VoiceAssistant",
        realtime={"voice": "nova"}
    )

    # Connect and start conversation
    await agent.aconnect()
    await agent.send_text("Hello!")

Source

View on GitHub

praisonaiagents/agent/realtime_agent.py at line 87


Related Documentation