From 93dc0874b5a6c597faaf6f1d56c90fdb74b8d725 Mon Sep 17 00:00:00 2001 From: Ikko Eltociear Ashimine Date: Thu, 2 May 2024 15:27:40 +0900 Subject: [PATCH] fix typo (#489) * Update test_crew_function_calling_llm.yaml ouput -> output * Update tool_usage.py ouput -> output --- src/crewai/tools/tool_usage.py | 2 +- tests/cassettes/test_crew_function_calling_llm.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/crewai/tools/tool_usage.py b/src/crewai/tools/tool_usage.py index ebc81c0cf9..6f78313d7d 100644 --- a/src/crewai/tools/tool_usage.py +++ b/src/crewai/tools/tool_usage.py @@ -264,7 +264,7 @@ def _tool_calling( else ToolCalling ) converter = Converter( - text=f"Only tools available:\n###\n{self._render()}\n\nReturn a valid schema for the tool, the tool name must be exactly equal one of the options, use this text to inform the valid ouput schema:\n\n{tool_string}```", + text=f"Only tools available:\n###\n{self._render()}\n\nReturn a valid schema for the tool, the tool name must be exactly equal one of the options, use this text to inform the valid output schema:\n\n{tool_string}```", llm=self.function_calling_llm, model=model, instructions=dedent( diff --git a/tests/cassettes/test_crew_function_calling_llm.yaml b/tests/cassettes/test_crew_function_calling_llm.yaml index 2471a2a476..80103d5665 100644 --- a/tests/cassettes/test_crew_function_calling_llm.yaml +++ b/tests/cassettes/test_crew_function_calling_llm.yaml @@ -324,7 +324,7 @@ interactions: Name: learn_about_ai\nTool Description: learn_about_AI(topic) -> float - Useful for when you need to learn about AI to write an paragraph about it.\nTool Arguments: {''topic'': {}}\n\nReturn a valid schema for the tool, the tool name must be - exactly equal one of the options, use this text to inform the valid ouput schema:\n\nThought: + exactly equal one of the options, use this text to inform the valid output schema:\n\nThought: Before I can write an amazing article about AI, I need to understand the basics of AI, its applications, and ethical considerations to ensure that the content is well-rounded and informative.\n\nAction: learn_about_AI\nAction Input: {\"topic\": @@ -854,7 +854,7 @@ interactions: Name: learn_about_ai\nTool Description: learn_about_AI(topic) -> float - Useful for when you need to learn about AI to write an paragraph about it.\nTool Arguments: {''topic'': {}}\n\nReturn a valid schema for the tool, the tool name must be - exactly equal one of the options, use this text to inform the valid ouput schema:\n\nThought: + exactly equal one of the options, use this text to inform the valid output schema:\n\nThought: Now that I know AI is a broad field, I should learn specifically about its applications to provide concrete examples in my article.\n\nAction: learn_about_AI\nAction Input: {\"topic\": \"applications of AI\"}```"}, {"role": "system", "content": @@ -1325,7 +1325,7 @@ interactions: Name: learn_about_ai\nTool Description: learn_about_AI(topic) -> float - Useful for when you need to learn about AI to write an paragraph about it.\nTool Arguments: {''topic'': {}}\n\nReturn a valid schema for the tool, the tool name must be - exactly equal one of the options, use this text to inform the valid ouput schema:\n\nThought: + exactly equal one of the options, use this text to inform the valid output schema:\n\nThought: It seems there was an error with the action input. I need to correct the format to ensure the tool works properly for gathering information on the applications of AI.\n\nAction: learn_about_AI\nAction Input: {\"topic\": \"applications of @@ -1807,7 +1807,7 @@ interactions: Name: learn_about_ai\nTool Description: learn_about_AI(topic) -> float - Useful for when you need to learn about AI to write an paragraph about it.\nTool Arguments: {''topic'': {}}\n\nReturn a valid schema for the tool, the tool name must be - exactly equal one of the options, use this text to inform the valid ouput schema:\n\nThought: + exactly equal one of the options, use this text to inform the valid output schema:\n\nThought: Having understood that AI is a broad field, and after the corrected attempt to learn about its applications, I realize I need more detailed insights into ethical considerations around AI to make sure the article covers a balanced