mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-22 06:18:14 +00:00
fixed scoping issue causing error in RAG tools
This commit is contained in:
@@ -31,6 +31,7 @@ class CodeDocsSearchTool(RagTool):
|
||||
def __init__(self, docs_url: Optional[str] = None, **kwargs):
|
||||
super().__init__(**kwargs)
|
||||
if docs_url is not None:
|
||||
kwargs["data_type"] = DataType.DOCS_SITE
|
||||
self.add(docs_url)
|
||||
self.description = f"A tool that can be used to semantic search a query the {docs_url} Code Docs content."
|
||||
self.args_schema = FixedCodeDocsSearchToolSchema
|
||||
@@ -41,7 +42,6 @@ class CodeDocsSearchTool(RagTool):
|
||||
*args: Any,
|
||||
**kwargs: Any,
|
||||
) -> None:
|
||||
kwargs["data_type"] = DataType.DOCS_SITE
|
||||
super().add(*args, **kwargs)
|
||||
|
||||
def _before_run(
|
||||
|
||||
Reference in New Issue
Block a user