Skip to main content

send_text

Method
This is a method of the RealtimeAgent class in the realtime_agent module.
Send text message (sync wrapper).

Signature

def send_text(text: str) -> bool

Parameters

text
str
required
Text message to send

Returns

Returns
bool
True if sent successfully

Uses

  • asyncio.get_event_loop
  • loop.is_running
  • loop.run_until_complete
  • asend_text
  • asyncio.new_event_loop
  • asyncio.set_event_loop

Source

View on GitHub

praisonaiagents/agent/realtime_agent.py at line 266