RealtimeClientProtocol
autogen.agentchat.realtime.experimental.clients.RealtimeClientProtocol #
Bases: Protocol
send_function_result async
#
send_text async
#
send_audio async
#
Send audio to a Realtime API.
PARAMETER | DESCRIPTION |
---|---|
audio | The audio to send. TYPE: |
truncate_audio async
#
Truncate audio in a Realtime API.
PARAMETER | DESCRIPTION |
---|---|
audio_end_ms | The end of the audio to truncate. TYPE: |
content_index | The index of the content to truncate. TYPE: |
item_id | The ID of the item to truncate. TYPE: |
Source code in autogen/agentchat/realtime/experimental/clients/realtime_client.py
session_update async
#
Send a session update to a Realtime API.
PARAMETER | DESCRIPTION |
---|---|
session_options | The session options to update. |
connect #
Source code in autogen/agentchat/realtime/experimental/clients/realtime_client.py
read_events #
get_factory classmethod
#
Create a Realtime API client.
PARAMETER | DESCRIPTION |
---|---|
llm_config | The config for the client. |
logger | The logger to use for logging events. TYPE: |
**kwargs | Additional arguments. TYPE: |
RETURNS | DESCRIPTION |
---|---|
RealtimeClientProtocol | The Realtime API client is returned if the model matches the pattern TYPE: |