agentchat.realtime_agent
agentchat.realtime_agent.realtime_client
RealtimeClientProtocol
send_function_result
Send the result of a function call to a Realtime API.
Arguments:
call_id
str - The ID of the function call.result
str - The result of the function call.
send_text
Send a text message to a Realtime API.
Arguments:
role
str - The role of the message.text
str - The text of the message.
send_audio
Send audio to a Realtime API.
Arguments:
audio
str - The audio to send.
truncate_audio
Truncate audio in a Realtime API.
Arguments:
audio_end_ms
int - The end of the audio to truncate.content_index
int - The index of the content to truncate.item_id
str - The ID of the item to truncate.
session_update
Send a session update to a Realtime API.
Arguments:
session_options
dict[str, Any] - The session options to update.
read_events
Read messages from a Realtime API.