Send Text • AI Agent SDK
send_text: Send text message (sync wrapper).
send_text
Method
</div>
This is a method of the RealtimeAgent class in the realtime_agent module.
Send text message (sync wrapper).
Signature
def send_text(text: str) -> boolParameters
ParamField
strText message to send
Returns
ResponseField
boolTrue if sent successfully
Uses
asyncio.get_running_loopasyncio.get_event_looploop.run_until_completeasend_textasyncio.new_event_loopasyncio.set_event_loop
Source
View on GitHubpraisonaiagents/agent/realtime_agent.py at line 327