Skip to content

Commit

Permalink
fix typo (#489)
Browse files Browse the repository at this point in the history
* Update test_crew_function_calling_llm.yaml

ouput -> output

* Update tool_usage.py

ouput -> output
  • Loading branch information
eltociear committed May 2, 2024
1 parent 39deac2 commit 1139073
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/crewai/tools/tool_usage.py
Expand Up @@ -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(
Expand Down
8 changes: 4 additions & 4 deletions tests/cassettes/test_crew_function_calling_llm.yaml
Expand Up @@ -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\":
Expand Down Expand Up @@ -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":
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1139073

Please sign in to comment.