crewAIInc / crewAI

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
https://crewai.com
MIT License
19.25k stars 2.67k forks source link

Difference between goal parameter and task parameter #238

Closed ShuruiXu closed 3 weeks ago

ShuruiXu commented 7 months ago

How should I differentiate between the content of the goal parameter in the Agent() and the task's prompt?

Haripritamreddy commented 7 months ago

Gemini gave this

In CrewAI, differentiating between the goal parameter in Agent() and the task's prompt can be crucial for effective multi-agent collaboration. Here's how they differ:

Goal:

Defines the overall objective for the agent within the specific scenario. It's broader and less specific than the prompt. Think of it as the agent's mission statement within the context of the task. The goal is internal to the agent and not directly revealed to other agents or the environment. Examples: "Win the negotiation," "Explore the dungeon," "Write a convincing advertisement."

Task Prompt:

Provides the specific instruction or situation for the current action. It's more detailed and action-oriented than the goal. Explains what the agent needs to do right now to achieve its goal. The prompt is shared with the agent and potentially other agents and the environment. Examples: "Negotiate the price of the product," "Describe the room you find yourself in," "Create a draft of the ad based on the target audience."

github-actions[bot] commented 4 weeks ago

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 3 weeks ago

This issue was closed because it has been stalled for 5 days with no activity.