Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
Correcting a small grammatical issue that was bugging me: from _satisfy the expect criteria_ to _satisfies the expected criteria_ (#1783)
PJ9ee6824ccd85
diff --git a/src/crewai/translations/en.json b/src/crewai/translations/en.jsonindex 2b8fec44b..6bdbb7c29 100644--- a/src/crewai/translations/en.json+++ b/src/crewai/translations/en.json@@ -12,7 +12,7 @@"tools": "\nYou ONLY have access to the following tools, and should NEVER make up tools that are not listed here:\n\n{tools}\n\nUse the following format:\n\nThought: you should always think about what to do\nAction: the action to take, only one name of [{tool_names}], just the name, exactly as it's written.\nAction Input: the input to the action, just a simple python dictionary, enclosed in curly braces, using \" to wrap keys and values.\nObservation: the result of the action\n\nOnce all necessary information is gathered:\n\nThought: I now know the final answer\nFinal Answer: the final answer to the original input question\n","no_tools": "\nTo give my best complete final answer to the task use the exact following format:\n\nThought: I now can give a great answer\nFinal Answer: Your 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!","format": "I MUST either use a tool (use one at time) OR give my best final answer not both at the same time. To Use the following format:\n\nThought: you should always think about what to do\nAction: the action to take, should be one of [{tool_names}]\nAction Input: the input to the action, dictionary enclosed in curly braces\nObservation: the result of the action\n... (this Thought/Action/Action Input/Result can repeat N times)\nThought: I now can give a great answer\nFinal Answer: Your final answer must be the great and the most complete as possible, it must be outcome described\n\n",- "final_answer_format": "If you don't need to use any more tools, you must give your best complete final answer, make sure it satisfy the expect criteria, use the EXACT format below:\n\nThought: I now can give a great answer\nFinal Answer: my best complete final answer to the task.\n\n",+ "final_answer_format": "If you don't need to use any more tools, you must give your best complete final answer, make sure it satisfies the expected criteria, use the EXACT format below:\n\nThought: I now can give a great answer\nFinal Answer: my best complete final answer to the task.\n\n","format_without_tools": "\nSorry, I didn't use the right format. I MUST either use a tool (among the available ones), OR give my best final answer.\nI just remembered the expected format I must follow:\n\nQuestion: the input question you must answer\nThought: you should always think about what to do\nAction: the action to take, should be one of [{tool_names}]\nAction Input: the input to the action\nObservation: the result of the action\n... (this Thought/Action/Action Input/Result can repeat N times)\nThought: I now can give a great answer\nFinal Answer: Your final answer must be the great and the most complete as possible, it must be outcome described\n\n","task_with_context": "{task}\n\nThis is the context you're working with:\n{context}","expected_output": "\nThis is the expect criteria for your final answer: {expected_output}\nyou MUST return the actual complete content as the final answer, not a summary.",diff --git a/tests/cassettes/test_agent_function_calling_llm.yaml b/tests/cassettes/test_agent_function_calling_llm.yamlindex d3c68b6e2..fdeabed21 100644--- a/tests/cassettes/test_agent_function_calling_llm.yaml+++ b/tests/cassettes/test_agent_function_calling_llm.yaml@@ -26237,7 +26237,7 @@ interactions:answer."}, {"role": "user", "content": "I did it wrong. Invalid Format: I missedthe ''Action:'' after ''Thought:''. I will do right next, and don''t use a toolI have already used.\n\nIf you don''t need to use any more tools, you must give- your best complete final answer, make sure it satisfy the expect criteria, use+ your best complete final answer, make sure it satisfies the expected criteria, usethe EXACT format below:\n\nThought: I now can give a great answer\nFinal Answer:my best complete final answer to the task.\n\n"}], "model": "gpt-4o"}'headers:@@ -26590,7 +26590,7 @@ interactions:answer."}, {"role": "user", "content": "I did it wrong. Invalid Format: I missedthe ''Action:'' after ''Thought:''. I will do right next, and don''t use a toolI have already used.\n\nIf you don''t need to use any more tools, you must give- your best complete final answer, make sure it satisfy the expect criteria, use+ your best complete final answer, make sure it satisfies the expected criteria, usethe EXACT format below:\n\nThought: I now can give a great answer\nFinal Answer:my best complete final answer to the task.\n\n"}, {"role": "user", "content":"I did it wrong. Tried to both perform Action and give a Final Answer at the@@ -26941,7 +26941,7 @@ interactions:answer."}, {"role": "user", "content": "I did it wrong. Invalid Format: I missedthe ''Action:'' after ''Thought:''. I will do right next, and don''t use a toolI have already used.\n\nIf you don''t need to use any more tools, you must give- your best complete final answer, make sure it satisfy the expect criteria, use+ your best complete final answer, make sure it satisfies the expected criteria, usethe EXACT format below:\n\nThought: I now can give a great answer\nFinal Answer:my best complete final answer to the task.\n\n"}, {"role": "user", "content":"I did it wrong. Tried to both perform Action and give a Final Answer at the@@ -27292,7 +27292,7 @@ interactions:answer."}, {"role": "user", "content": "I did it wrong. Invalid Format: I missedthe ''Action:'' after ''Thought:''. I will do right next, and don''t use a toolI have already used.\n\nIf you don''t need to use any more tools, you must give- your best complete final answer, make sure it satisfy the expect criteria, use+ your best complete final answer, make sure it satisfies the expected criteria, usethe EXACT format below:\n\nThought: I now can give a great answer\nFinal Answer:my best complete final answer to the task.\n\n"}, {"role": "user", "content":"I did it wrong. Tried to both perform Action and give a Final Answer at the@@ -27647,7 +27647,7 @@ interactions:answer."}, {"role": "user", "content": "I did it wrong. Invalid Format: I missedthe ''Action:'' after ''Thought:''. I will do right next, and don''t use a toolI have already used.\n\nIf you don''t need to use any more tools, you must give- your best complete final answer, make sure it satisfy the expect criteria, use+ your best complete final answer, make sure it satisfies the expected criteria, usethe EXACT format below:\n\nThought: I now can give a great answer\nFinal Answer:my best complete final answer to the task.\n\n"}, {"role": "user", "content":"I did it wrong. Tried to both perform Action and give a Final Answer at the@@ -28005,7 +28005,7 @@ interactions:answer."}, {"role": "user", "content": "I did it wrong. Invalid Format: I missedthe ''Action:'' after ''Thought:''. I will do right next, and don''t use a toolI have already used.\n\nIf you don''t need to use any more tools, you must give- your best complete final answer, make sure it satisfy the expect criteria, use+ your best complete final answer, make sure it satisfies the expected criteria, usethe EXACT format below:\n\nThought: I now can give a great answer\nFinal Answer:my best complete final answer to the task.\n\n"}, {"role": "user", "content":"I did it wrong. Tried to both perform Action and give a Final Answer at the@@ -28364,7 +28364,7 @@ interactions:answer."}, {"role": "user", "content": "I did it wrong. Invalid Format: I missedthe ''Action:'' after ''Thought:''. I will do right next, and don''t use a toolI have already used.\n\nIf you don''t need to use any more tools, you must give- your best complete final answer, make sure it satisfy the expect criteria, use+ your best complete final answer, make sure it satisfies the expected criteria, usethe EXACT format below:\n\nThought: I now can give a great answer\nFinal Answer:my best complete final answer to the task.\n\n"}, {"role": "user", "content":"I did it wrong. Tried to both perform Action and give a Final Answer at the@@ -28718,7 +28718,7 @@ interactions:answer."}, {"role": "user", "content": "I did it wrong. Invalid Format: I missedthe ''Action:'' after ''Thought:''. I will do right next, and don''t use a toolI have already used.\n\nIf you don''t need to use any more tools, you must give- your best complete final answer, make sure it satisfy the expect criteria, use+ your best complete final answer, make sure it satisfies the expected criteria, usethe EXACT format below:\n\nThought: I now can give a great answer\nFinal Answer:my best complete final answer to the task.\n\n"}, {"role": "user", "content":"I did it wrong. Tried to both perform Action and give a Final Answer at the@@ -29082,7 +29082,7 @@ interactions:answer."}, {"role": "user", "content": "I did it wrong. Invalid Format: I missedthe ''Action:'' after ''Thought:''. I will do right next, and don''t use a toolI have already used.\n\nIf you don''t need to use any more tools, you must give- your best complete final answer, make sure it satisfy the expect criteria, use+ your best complete final answer, make sure it satisfies the expected criteria, usethe EXACT format below:\n\nThought: I now can give a great answer\nFinal Answer:my best complete final answer to the task.\n\n"}, {"role": "user", "content":"I did it wrong. Tried to both perform Action and give a Final Answer at the@@ -29441,7 +29441,7 @@ interactions:answer."}, {"role": "user", "content": "I did it wrong. Invalid Format: I missedthe ''Action:'' after ''Thought:''. I will do right next, and don''t use a toolI have already used.\n\nIf you don''t need to use any more tools, you must give- your best complete final answer, make sure it satisfy the expect criteria, use+ your best complete final answer, make sure it satisfies the expected criteria, usethe EXACT format below:\n\nThought: I now can give a great answer\nFinal Answer:my best complete final answer to the task.\n\n"}, {"role": "user", "content":"I did it wrong. Tried to both perform Action and give a Final Answer at the@@ -29802,7 +29802,7 @@ interactions:answer."}, {"role": "user", "content": "I did it wrong. Invalid Format: I missedthe ''Action:'' after ''Thought:''. I will do right next, and don''t use a toolI have already used.\n\nIf you don''t need to use any more tools, you must give- your best complete final answer, make sure it satisfy the expect criteria, use+ your best complete final answer, make sure it satisfies the expected criteria, usethe EXACT format below:\n\nThought: I now can give a great answer\nFinal Answer:my best complete final answer to the task.\n\n"}, {"role": "user", "content":"I did it wrong. Tried to both perform Action and give a Final Answer at the@@ -30170,7 +30170,7 @@ interactions:answer."}, {"role": "user", "content": "I did it wrong. Invalid Format: I missedthe ''Action:'' after ''Thought:''. I will do right next, and don''t use a toolI have already used.\n\nIf you don''t need to use any more tools, you must give- your best complete final answer, make sure it satisfy the expect criteria, use+ your best complete final answer, make sure it satisfies the expected criteria, usethe EXACT format below:\n\nThought: I now can give a great answer\nFinal Answer:my best complete final answer to the task.\n\n"}, {"role": "user", "content":"I did it wrong. Tried to both perform Action and give a Final Answer at the@@ -30533,7 +30533,7 @@ interactions:answer."}, {"role": "user", "content": "I did it wrong. Invalid Format: I missedthe ''Action:'' after ''Thought:''. I will do right next, and don''t use a toolI have already used.\n\nIf you don''t need to use any more tools, you must give- your best complete final answer, make sure it satisfy the expect criteria, use+ your best complete final answer, make sure it satisfies the expected criteria, usethe EXACT format below:\n\nThought: I now can give a great answer\nFinal Answer:my best complete final answer to the task.\n\n"}, {"role": "user", "content":"I did it wrong. Tried to both perform Action and give a Final Answer at the@@ -30907,7 +30907,7 @@ interactions:answer."}, {"role": "user", "content": "I did it wrong. Invalid Format: I missedthe ''Action:'' after ''Thought:''. I will do right next, and don''t use a toolI have already used.\n\nIf you don''t need to use any more tools, you must give- your best complete final answer, make sure it satisfy the expect criteria, use+ your best complete final answer, make sure it satisfies the expected criteria, usethe EXACT format below:\n\nThought: I now can give a great answer\nFinal Answer:my best complete final answer to the task.\n\n"}, {"role": "user", "content":"I did it wrong. Tried to both perform Action and give a Final Answer at the@@ -31273,7 +31273,7 @@ interactions:answer."}, {"role": "user", "content": "I did it wrong. Invalid Format: I missedthe ''Action:'' after ''Thought:''. I will do right next, and don''t use a toolI have already used.\n\nIf you don''t need to use any more tools, you must give- your best complete final answer, make sure it satisfy the expect criteria, use+ your best complete final answer, make sure it satisfies the expected criteria, usethe EXACT format below:\n\nThought: I now can give a great answer\nFinal Answer:my best complete final answer to the task.\n\n"}, {"role": "user", "content":"I did it wrong. Tried to both perform Action and give a Final Answer at the@@ -31644,7 +31644,7 @@ interactions:answer."}, {"role": "user", "content": "I did it wrong. Invalid Format: I missedthe ''Action:'' after ''Thought:''. I will do right next, and don''t use a toolI have already used.\n\nIf you don''t need to use any more tools, you must give- your best complete final answer, make sure it satisfy the expect criteria, use+ your best complete final answer, make sure it satisfies the expected criteria, usethe EXACT format below:\n\nThought: I now can give a great answer\nFinal Answer:my best complete final answer to the task.\n\n"}, {"role": "user", "content":"I did it wrong. Tried to both perform Action and give a Final Answer at the@@ -32015,7 +32015,7 @@ interactions:answer."}, {"role": "user", "content": "I did it wrong. Invalid Format: I missedthe ''Action:'' after ''Thought:''. I will do right next, and don''t use a toolI have already used.\n\nIf you don''t need to use any more tools, you must give- your best complete final answer, make sure it satisfy the expect criteria, use+ your best complete final answer, make sure it satisfies the expected criteria, usethe EXACT format below:\n\nThought: I now can give a great answer\nFinal Answer:my best complete final answer to the task.\n\n"}, {"role": "user", "content":"I did it wrong. Tried to both perform Action and give a Final Answer at thediff --git a/tests/cassettes/test_agent_powered_by_new_o_model_family_that_allows_skipping_tool.yaml b/tests/cassettes/test_agent_powered_by_new_o_model_family_that_allows_skipping_tool.yamlindex 36fb1638e..3ad147278 100644--- a/tests/cassettes/test_agent_powered_by_new_o_model_family_that_allows_skipping_tool.yaml+++ b/tests/cassettes/test_agent_powered_by_new_o_model_family_that_allows_skipping_tool.yaml@@ -247,7 +247,7 @@ interactions:{"role": "user", "content": "I did it wrong. Invalid Format: I missed the ''Action:''after ''Thought:''. I will do right next, and don''t use a tool I have alreadyused.\n\nIf you don''t need to use any more tools, you must give your best complete- final answer, make sure it satisfy the expect criteria, use the EXACT format+ final answer, make sure it satisfies the expected criteria, use the EXACT formatbelow:\n\nThought: I now can give a great answer\nFinal Answer: my best completefinal answer to the task.\n\n"}], "model": "o1-preview"}'headers: