Agent Guide
This guide provides information on using agents within the Automata framework, focusing on the OpenAIAutomataAgentConfigBuilder
and OpenAIAutomataAgent
.
OpenAIAutomataAgentConfigBuilder
Overview
The OpenAIAutomataAgentConfigBuilder
is used to build instances of AutomataAgents. It offers a flexible way to configure agent properties before instantiation. Key features include:
- Subclass of
AgentConfigBuilder
. - Uses
OpenAIAutomataAgentConfig
object for configuration. - Static methods (
create_config
,create_from_args
) for instantiation. with_*
methods for setting individual properties (e.g., model).
Example
Example usage is provided, demonstrating how to create an instance and set the model.
OpenAIAutomataAgent
Overview
OpenAIAutomataAgent
is an autonomous agent designed to execute instructions and report results. It leverages the OpenAI API for response generation and manages interactions with tools.
Usage
The agent operates iteratively, stopping upon task completion or exceeding the maximum iteration limit. It uses OpenAITool
instances.
Limitations
- Depends on OpenAI API requirements and limitations.
- Potential improvements needed in logging and exception handling.
- Currently does not support multiple assistants.