Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typo #489

Merged
merged 2 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/crewai/tools/tool_usage.py
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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