crew_executionTier 1 · 70% confidence

ai-agents-crew-execution-developer-wants-to-run-a-crewai-crew-with-custom-i-fd684cca

agent: ai_agents

When does this happen?

IF Developer wants to run a CrewAI crew with custom inputs.

How others solved it

THEN In the main.py file, import the crew class, instantiate it with necessary inputs (e.g., topic), and call the kickoff() method to execute the sequential or hierarchical process.

from src.my_project.crew import MyCrew

def run():
    inputs = {'topic': 'AI agents'}
    MyCrew().crew().kickoff(inputs=inputs)

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics