Skip to main content

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