Documentation for the praisonaiagents.agents.autoagents module
The AutoAgents module provides automatic creation and management of AI agents and tasks based on high-level instructions.
The main class for automatically creating and managing AI agents and tasks.
instructions: str
- High-level task description
for the agents
tools: Optional[List[Any]] = None
- List of
tools available to the agents
verbose: bool = False
- Enable detailed logging
process: str = "sequential"
- Process
type (sequential or hierarchical)
manager_llm: Optional[str] = None
- Language
model for manager agent
max_retries: int = 5
- Maximum retry attempts
completion_checker: Optional[Any] = None
-
Custom completion checker
allow_code_execution: bool = False
- Allow code
execution
memory: bool = True
- Enable agent memory
markdown: bool = True
- Enable markdown
formatting
self_reflect: bool = False
- Enable agent
self-reflection
max_reflect: int = 3
- Maximum reflection
iterations
min_reflect: int = 1
- Minimum reflection
iterations
llm: Optional[str] = None
- Language model for
agents
function_calling_llm: Optional[str] = None
-
Language model for tool calling
respect_context_window: bool = True
- Respect
model context window
code_execution_mode: str = "safe"
-
Code execution mode (safe/unsafe)
embedder_config: Optional[Dict[str, Any]] = None
- Embedder configuration
knowledge_sources: Optional[List[Any]] = None
-
Knowledge sources
use_system_prompt: bool = True
- Use system
prompts
cache: bool = True
- Enable cachingallow_delegation: bool = False
- Allow task
delegation
step_callback: Optional[Any] = None
- Callback
for each step
system_template: Optional[str] = None
- Custom
system template
prompt_template: Optional[str] = None
- Custom
prompt template
response_template: Optional[str] = None
-
Custom response template
max_rpm: Optional[int] = None
- Maximum
requests per minute
max_execution_time: Optional[int] = None
-
Maximum execution time
max_iter: int = 20
- Maximum iterationsreflect_llm: Optional[str] = None
- Language
model for reflection
max_agents: int = 3
- Maximum number of agents
to create
Start the agents synchronously.
Start the agents asynchronously.
Generate the configuration for agents and tasks.
Create agents and tasks from configuration.
Assign appropriate tools to an agent.
Configuration for a task.
name: str
- Task namedescription: str
- Task descriptionexpected_output: str
- Expected output
description
tools: List[str]
- Required tools for the task
Configuration for an agent.
name: str
- Agent namerole: str
- Agent rolegoal: str
- Agent goalbackstory: str
- Agent backstorytools: List[str]
- Required toolstasks: List[TaskConfig]
- Tasks assigned to the
agent
Overall configuration for AutoAgents.
main_instruction: str
- Main instruction for
the agents
process_type: str
- Process type
(sequential/hierarchical)
agents: List[AgentConfig]
- List of agent
configurations
For optimal results, provide clear instructions and appropriate tools for your use case.