experimental
autogen.agentchat.realtime.experimental.RealtimeAgent
RealtimeAgent
(Experimental) Agent for interacting with the Realtime Clients.
Name | Description |
---|---|
name | Type: str |
audio_adapter | Type: RealtimeObserver | None Default: None |
system_message | Type: str Default: ‘You are a helpful AI Assistant.‘ |
llm_config | Type: dict[str, typing.Any] |
logger | Type: logging.Logger | None Default: None |
observers | Type: list[RealtimeObserver]Â |Â None Default: None |
**client_kwargs | Type: Any |
Instance Attributes
logger
Get the logger for the agent.
realtime_client
Get the OpenAI Realtime Client.
registered_realtime_tools
Get the registered realtime tools.
system_message
Get the system message for the agent.
Instance Methods
register_observer
Register an observer with the Realtime Agent.
Name | Description |
---|---|
observer | The observer to register. Type: RealtimeObserver |
register_realtime_function
Decorator for registering a function to be used by an agent.
Name | Description |
---|---|
name | The name of the function. Type: str | None Default: None |
description | The description of the function. Type: str | None Default: None |
Type | Description |
---|---|
Callable[[~F | Tool], Tool] | Callable[[Union[F, Tool]], Tool]: The decorator for registering a function. |
run
Run the agent.