Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.praison.ai/llms.txt

Use this file to discover all available pages before exploring further.

on_message

Method
This is a method of the RealtimeAgent class in the realtime_agent module.
Register callback for text messages.

Signature

def on_message(callback: Callable[[str], None]) -> None

Parameters

callback
Callable
required
Function to call with message text

Source

View on GitHub

praisonaiagents/agent/realtime_agent.py at line 349