Skip to main content

AutoGenerator

Defined in the auto module.
AI Agents Framework Auto-generates agents.yaml files from a topic description. Inherits from BaseAutoGenerator for shared LLM client functionality.

Constructor

topic
Any
default:"'Movie Story writing about AI'"
No description available.
agent_file
Any
default:"'test.yaml'"
No description available.
framework
Any
default:"'crewai'"
No description available.
config_list
Optional
No description available.
pattern
str
default:"'sequential'"
No description available.
single_agent
bool
default:"False"
No description available.

Methods

recommend_pattern()

Recommend the best workflow pattern based on task characteristics.

generate()

Generates a team structure for the specified topic.

convert_and_save()

Converts the provided JSON data into the desired YAML format and saves it to a file.

merge_with_existing_agents()

Merge existing agents.yaml with new auto-generated agents.

discover_tools_for_topic()

Discover appropriate tools for the topic using intelligent matching.

get_user_content()

Generates a prompt for the OpenAI API to generate a team structure.

Usage

generator = AutoGenerator(framework="crewai", topic="Create a movie script")
    path = generator.generate()

Source

View on GitHub

praisonai/auto.py at line 614