8000 Fix the tool description in CrewAI file read tool test by marklysze · Pull Request #1769 · ag2ai/ag2 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ ag2 Public

Fix the tool description in CrewAI file read tool test #1769

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â 8000 €™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion test/interop/crewai/test_crewai.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ def test_convert_tool(self, tool: Tool, model_type: Type[BaseModel]) -> None:
file.write("Hello, World!")

assert tool.name == "Read_a_file_s_content"
# Check CrewAI tool description here: https://github.com/crewAIInc/crewAI-tools/blob/974b224eb7c4c2148571787cb987460a585d7df9/crewai_tools/tools/file_read_tool/file_read_tool.py#L40C25-L40C282
assert (
tool.description
== "A tool that reads the content of a file. To use this tool, provide a 'file_path' parameter with the path to the file you want to read. (IMPORTANT: When using arguments, put them all in an `args` dictionary)"
== "A tool that reads the content of a file. To use this tool, provide a 'file_path' parameter with the path to the file you want to read. Optionally, provide 'start_line' to start reading from a specific line and 'line_count' to limit the number of lines read. (IMPORTANT: When using arguments, put them all in an `args` dictionary)"
)

args = model_type(file_path=file_path)
Expand Down
0