mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-01 07:13:00 +00:00
chore: update tool specifications
This commit is contained in:
@@ -8402,8 +8402,15 @@
|
|||||||
"type": "object"
|
"type": "object"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"description": "Tool for searching file contents on disk using regex patterns.\n\nRecursively searches files in a directory for lines matching a regex pattern.\nSupports glob filtering, context lines, and multiple output modes.\n\nExample:\n >>> tool = GrepTool()\n >>> result = tool.run(pattern=\"def.*main\", path=\"/path/to/project\")\n >>> result = tool.run(\n ... pattern=\"TODO\",\n ... path=\"/path/to/project\",\n ... glob_pattern=\"*.py\",\n ... context_lines=2,\n ... )",
|
"description": "Tool for searching file contents on disk using regex patterns.\n\nRecursively searches files in a directory for lines matching a regex pattern.\nSupports glob filtering, context lines, and multiple output modes.\n\nExample:\n >>> tool = GrepTool()\n >>> result = tool.run(pattern=\"def.*main\", path=\"src\")\n >>> result = tool.run(\n ... pattern=\"TODO\",\n ... glob_pattern=\"*.py\",\n ... context_lines=2,\n ... )\n\n To search any path on the filesystem (opt-in):\n >>> tool = GrepTool(allow_unrestricted_paths=True)\n >>> result = tool.run(pattern=\"error\", path=\"/var/log/app\")",
|
||||||
"properties": {},
|
"properties": {
|
||||||
|
"allow_unrestricted_paths": {
|
||||||
|
"default": false,
|
||||||
|
"description": "When False (default), searches are restricted to the current working directory. Set to True to allow searching any path on the filesystem.",
|
||||||
|
"title": "Allow Unrestricted Paths",
|
||||||
|
"type": "boolean"
|
||||||
|
}
|
||||||
|
},
|
||||||
"title": "GrepTool",
|
"title": "GrepTool",
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
@@ -8434,7 +8441,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"default": null,
|
"default": null,
|
||||||
"description": "Glob pattern to filter files (e.g. '*.py', '*.{ts,tsx}')",
|
"description": "Glob pattern to filter files (e.g. '*.py'). Supports brace expansion (e.g. '*.{ts,tsx}').",
|
||||||
"title": "Glob Pattern"
|
"title": "Glob Pattern"
|
||||||
},
|
},
|
||||||
"include_line_numbers": {
|
"include_line_numbers": {
|
||||||
|
|||||||
Reference in New Issue
Block a user