Commit 2822f078 authored by John Wang's avatar John Wang

feat: change dataset / wikipedia tool name

parent 46f09a98
......@@ -231,6 +231,7 @@ class OrchestratorRuleParser:
def to_wikipedia_tool(self) -> Optional[BaseTool]:
return WikipediaQueryRun(
name="wikipedia",
api_wrapper=WikipediaAPIWrapper(doc_content_chars_max=4000),
callbacks=[DifyStdOutCallbackHandler()]
)
......
......@@ -22,7 +22,7 @@ class DatasetRetrieverToolInput(BaseModel):
class DatasetRetrieverTool(BaseTool):
"""Tool for querying a Dataset."""
name: str = "dataset_retriever"
name: str = "dataset"
args_schema: Type[BaseModel] = DatasetRetrieverToolInput
description: str = "use this to retrieve a dataset. "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment