mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-27 17:18:13 +00:00
Fix FileReadTool infinite loop by maintaining original schema
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -27,7 +27,6 @@ class FileReadTool(BaseTool):
|
|||||||
if file_path is not None:
|
if file_path is not None:
|
||||||
self.file_path = file_path
|
self.file_path = file_path
|
||||||
self.description = f"A tool that can be used to read {file_path}'s content."
|
self.description = f"A tool that can be used to read {file_path}'s content."
|
||||||
self.args_schema = FixedFileReadToolSchema
|
|
||||||
self._generate_description()
|
self._generate_description()
|
||||||
|
|
||||||
def _run(
|
def _run(
|
||||||
|
|||||||
Reference in New Issue
Block a user