Core Concepts

How does witjaw work?

The Agent

An agent is an autonomous unit programmed to:

  • Perform tasks

  • Make decisions

  • Communicate with other agents

Think of an agent as a member of a team, with specific skills and a particular job to do. Agents can have different roles like 'Researcher', 'Writer', or 'Customer Support', each contributing to the overall goal of the crew.

Agent Attributes

Attribute
Description

Role

Defines the agent's function within the crew. It determines the kind of tasks the agent is best suited for.

Goal

The individual objective that the agent aims to achieve. It guides the agent's decision-making process.

Backstory

Provides context to the agent's role and goal, enriching the interaction and collaboration dynamics.

Model

Represents the language model that will run the agent. It dynamically fetches the model name from the OPENAI_MODEL_NAME environment variable, defaulting to "gpt-4" if not specified.

Tools

Set of capabilities or functions that the agent can use to perform tasks. Expected to be instances of custom classes compatible with the agent's execution environment. Tools are initialized with a default value of an empty list.

Verbose

Setting this to True configures the internal logger to provide detailed execution logs, aiding in debugging and monitoring. Default is False.

Allow Delegation

Agents can delegate tasks or questions to one another, ensuring that each task is handled by the most suitable agent. Default is True.

Cache

Indicates if the agent should use a cache for tool usage. Default is True.

Image

Used to visually identify your Agent in your Agent library.

Knowledge Base

A Knowledge Base with private knowledge that your Agent can use to solve Tasks.

Assistant

A personal Assistant that can be used to help the Agent solve its Tasks.

Crew

The Crew that the Agent is part of.

Task

The Task that is assigned to the Agent.

Task

In the crewAI framework, tasks are specific assignments completed by agents. They provide all necessary details for execution, such as a description, the agent responsible, required tools, and more, facilitating a wide range of action complexities.

Tasks within crewAI can be collaborative, requiring multiple agents to work together. This is managed through the task properties and orchestrated by the Crew's process, enhancing teamwork and efficiency.

Attribute
Description

Description

A clear, concise statement of what the task entails.

Agent

The agent responsible for the task, assigned either directly or by the crew's process.

Expected Output

A detailed description of what the task's completion looks like.

Name

A short name for your Task to find it for further usage.

Crew

The Crew that is responsible for solving the Task.

Crew

A crew in crewAI represents a collaborative group of agents working together to achieve a set of tasks. Each crew defines the strategy for task execution, agent collaboration, and the overall workflow.

Attribute
Description

Description

A clear, concise statement of what the task entails.

Name

A short name for your Crew to find it for further usage

Process

The process flow (e.g., sequential, hierarchical) the crew follows.

Verbose

The verbosity level for logging during execution.

Language

Language used for the crew, defaults to English.

Memory

Utilized for storing execution memories (short-term, long-term, entity memory).

Cache

Specifies whether to use a cache for storing the results of tools' execution.

Full Output

Whether the crew should return the full output with all tasks outputs or just the final output.

Output Log File

Whether you want to have a file with the complete crew output and execution. You can set it using True and it will default to the folder you are currently in and it will be called logs.txt or passing a string with the full path and name of the file.

Image

An image for the Crew to visually identify it for further customization.

Agents

The list of Agents that are part of this Crew.

Tasks

The list of Tasks that are part of this Crew.

Last updated

Was this helpful?