mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 16:48:30 +00:00
* removed hyphen in co-workers * Fix issue with AgentTool agent selection. The LLM included double quotes in the agent name which messed up the string comparison. Added additional types. Cleaned up error messaging. * Remove duplicate import * Improve explanation * Revert poetry.lock changes * Fix missing line in poetry.lock --------- Co-authored-by: madmag77 <goncharov.artemv@gmail.com>
This commit is contained in:
committed by
GitHub
parent
ff80f57816
commit
72e20a5dbb
@@ -55,6 +55,7 @@ def test_ask_question():
|
||||
== "As an AI researcher, I don't have personal feelings or emotions like love or hate. However, I recognize the importance of AI Agents in today's technological landscape. They have the potential to greatly enhance our lives and make tasks more efficient. At the same time, it is crucial to consider the ethical implications and societal impacts that come with their use. My role is to provide objective research and analysis on these topics."
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.vcr(filter_headers=["authorization"])
|
||||
def test_ask_question_with_wrong_co_worker_variable():
|
||||
result = tools.ask_question(
|
||||
@@ -68,6 +69,7 @@ def test_ask_question_with_wrong_co_worker_variable():
|
||||
== "No, I don't hate AI agents. In fact, I find them quite fascinating. They are powerful tools that can greatly assist in various tasks, including my research. As a technology researcher, AI and AI agents are subjects of interest to me due to their potential in advancing our understanding and capabilities in various fields. My supposed love for them stems from this professional interest and the potential they hold."
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.vcr(filter_headers=["authorization"])
|
||||
def test_delegate_work_withwith_coworker_as_array():
|
||||
result = tools.delegate_work(
|
||||
@@ -105,7 +107,7 @@ def test_delegate_work_to_wrong_agent():
|
||||
|
||||
assert (
|
||||
result
|
||||
== "\nError executing tool. Co-worker mentioned not found, it must to be one of the following options:\n- researcher\n"
|
||||
== "\nError executing tool. coworker mentioned not found, it must be one of the following options:\n- researcher\n"
|
||||
)
|
||||
|
||||
|
||||
@@ -118,5 +120,5 @@ def test_ask_question_to_wrong_agent():
|
||||
|
||||
assert (
|
||||
result
|
||||
== "\nError executing tool. Co-worker mentioned not found, it must to be one of the following options:\n- researcher\n"
|
||||
== "\nError executing tool. coworker mentioned not found, it must be one of the following options:\n- researcher\n"
|
||||
)
|
||||
|
||||
@@ -8,7 +8,7 @@ interactions:
|
||||
the task.\nYour final answer must be the great and the most complete as possible,
|
||||
it must be outcome described.\n\nI MUST use these formats, my job depends on
|
||||
it!\nCurrent Task: do you hate AI Agents?\n\nThis is the expect criteria for
|
||||
your final answer: Your best answer to your co-worker asking you this, accounting
|
||||
your final answer: Your best answer to your coworker asking you this, accounting
|
||||
for the context shared. \n you MUST return the actual complete content as the
|
||||
final answer, not a summary.\n\nThis is the context you''re working with:\nI
|
||||
heard you LOVE them\n\nBegin! This is VERY important to you, use the tools available
|
||||
|
||||
@@ -200797,7 +200797,7 @@ interactions:
|
||||
the task.\nYour final answer must be the great and the most complete as possible,
|
||||
it must be outcome described.\n\nI MUST use these formats, my job depends on
|
||||
it!\nCurrent Task: do you hate AI Agents?\n\nThis is the expect criteria for
|
||||
your final answer: Your best answer to your co-worker asking you this, accounting
|
||||
your final answer: Your best answer to your coworker asking you this, accounting
|
||||
for the context shared. \n you MUST return the actual complete content as the
|
||||
final answer, not a summary.\n\nThis is the context you''re working with:\nI
|
||||
heard you LOVE them\n\nBegin! This is VERY important to you, use the tools available
|
||||
|
||||
@@ -95,7 +95,7 @@ interactions:
|
||||
the task.\nYour final answer must be the great and the most complete as possible,
|
||||
it must be outcome described.\n\nI MUST use these formats, my job depends on
|
||||
it!\nCurrent Task: share your take on AI Agents\n\nThis is the expect criteria
|
||||
for your final answer: Your best answer to your co-worker asking you this, accounting
|
||||
for your final answer: Your best answer to your coworker asking you this, accounting
|
||||
for the context shared. \n you MUST return the actual complete content as the
|
||||
final answer, not a summary.\n\nThis is the context you''re working with:\nI
|
||||
heard you hate them\n\nBegin! This is VERY important to you, use the tools available
|
||||
|
||||
@@ -95,7 +95,7 @@ interactions:
|
||||
the task.\nYour final answer must be the great and the most complete as possible,
|
||||
it must be outcome described.\n\nI MUST use these formats, my job depends on
|
||||
it!\nCurrent Task: share your take on AI Agents\n\nThis is the expect criteria
|
||||
for your final answer: Your best answer to your co-worker asking you this, accounting
|
||||
for your final answer: Your best answer to your coworker asking you this, accounting
|
||||
for the context shared. \n you MUST return the actual complete content as the
|
||||
final answer, not a summary.\n\nThis is the context you''re working with:\nI
|
||||
heard you hate them\n\nBegin! This is VERY important to you, use the tools available
|
||||
|
||||
Reference in New Issue
Block a user