Agents

Agents are the AI-powered personas responsible for executing specific roles or responsibilities


Tasks

Tasks define what needs to be done → the actual units of work


Tools

Tools are external capabilities or functions that agents can use to perform their tasks more effectively. They extend what an agent can do beyond just generating text using its language model.

<aside> 💡

Why Tools?

Agents sometimes need to:

Example:

from crewai import Tool

def get_latest_news(topic: str) -> str:
    # Imagine this fetches news from an API
    return f"Latest news on {topic}..."

news_tool = Tool(
    name="NewsFetcher",
    func=get_latest_news,
    description="Fetches the latest news for a given topic"
)