RealtimeAgent
autogen.agentchat.realtime.experimental.RealtimeAgent #
RealtimeAgent(*, name, audio_adapter=None, system_message='You are a helpful AI Assistant.', llm_config, logger=None, observers=None, **client_kwargs)
(Experimental) Agent for interacting with the Realtime Clients.
PARAMETER | DESCRIPTION |
---|---|
name | The name of the agent. TYPE: |
audio_adapter | The audio adapter for the agent. TYPE: |
system_message | The system message for the agent. TYPE: |
llm_config | The config for the agent. |
logger | The logger for the agent. |
observers | The additional observers for the agent. TYPE: |
**client_kwargs | The keyword arguments for the client. TYPE: |
Source code in autogen/agentchat/realtime/experimental/realtime_agent.py
register_observer #
Register an observer with the Realtime Agent.
PARAMETER | DESCRIPTION |
---|---|
observer | The observer to register. TYPE: |
Source code in autogen/agentchat/realtime/experimental/realtime_agent.py
start_observers async
#
Source code in autogen/agentchat/realtime/experimental/realtime_agent.py
run async
#
Run the agent.
Source code in autogen/agentchat/realtime/experimental/realtime_agent.py
register_realtime_function #
Decorator for registering a function to be used by an agent.
PARAMETER | DESCRIPTION |
---|---|
name | The name of the function. TYPE: |
description | The description of the function. TYPE: |
RETURNS | DESCRIPTION |
---|---|
Callable[[Union[F, Tool]], Tool] | Callable[[Union[F, Tool]], Tool]: The decorator for registering a function. |