Auto Generator • AI Agents Framework
AutoGenerator: Auto-generates agents.yaml files from a topic description.
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
AnyNo description available.
AnyNo description available.
Optional[str]No description available.
OptionalNo description available.
strNo description available.
boolNo description available.
AnyNo description available.
Methods
Generates a team structure for the specified topic.
agenerate()Async version of 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.
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 GitHubpraisonai/auto.py at line 1101