All Integrations
Integration
CrewAI
Give your CrewAI agents access to real-world tools through SkillRouter. Each agent in your crew can discover and execute skills independently, enabling complex multi-agent workflows.
1
Installation
- 1Install the SkillRouter SDK: pip install skillrouter
- 2Install CrewAI: pip install crewai
- 3Import the SkillRouter CrewAI tool wrapper
- 4Assign skills to individual agents in your crew
2
Configuration
terminal
# Install dependencies
pip install skillrouter crewai
# Set environment variable
export SKILLROUTER_API_KEY="sk_live_..."3
Usage Example
crew.py
from crewai import Agent, Task, Crew
from skillrouter.integrations.crewai import SkillRouterTool
# Create a SkillRouter tool
sr_tool = SkillRouterTool(api_key="sk_live_...")
# Define agents with SkillRouter capabilities
researcher = Agent(
role="Research Analyst",
goal="Find and summarize market data",
tools=[sr_tool],
verbose=True,
)
writer = Agent(
role="Content Writer",
goal="Write reports based on research",
tools=[sr_tool],
verbose=True,
)
# Define tasks
research_task = Task(
description="Look up AAPL, GOOGL, and MSFT stock prices",
agent=researcher,
)
report_task = Task(
description="Write a summary report and email it to team@co.com",
agent=writer,
)
# Run the crew
crew = Crew(agents=[researcher, writer], tasks=[research_task, report_task])
result = crew.kickoff()