Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
2822f078
Commit
2822f078
authored
Jul 13, 2023
by
John Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: change dataset / wikipedia tool name
parent
46f09a98
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
orchestrator_rule_parser.py
api/core/orchestrator_rule_parser.py
+1
-0
dataset_retriever_tool.py
api/core/tool/dataset_retriever_tool.py
+1
-1
No files found.
api/core/orchestrator_rule_parser.py
View file @
2822f078
...
@@ -231,6 +231,7 @@ class OrchestratorRuleParser:
...
@@ -231,6 +231,7 @@ class OrchestratorRuleParser:
def
to_wikipedia_tool
(
self
)
->
Optional
[
BaseTool
]:
def
to_wikipedia_tool
(
self
)
->
Optional
[
BaseTool
]:
return
WikipediaQueryRun
(
return
WikipediaQueryRun
(
name
=
"wikipedia"
,
api_wrapper
=
WikipediaAPIWrapper
(
doc_content_chars_max
=
4000
),
api_wrapper
=
WikipediaAPIWrapper
(
doc_content_chars_max
=
4000
),
callbacks
=
[
DifyStdOutCallbackHandler
()]
callbacks
=
[
DifyStdOutCallbackHandler
()]
)
)
...
...
api/core/tool/dataset_retriever_tool.py
View file @
2822f078
...
@@ -22,7 +22,7 @@ class DatasetRetrieverToolInput(BaseModel):
...
@@ -22,7 +22,7 @@ class DatasetRetrieverToolInput(BaseModel):
class
DatasetRetrieverTool
(
BaseTool
):
class
DatasetRetrieverTool
(
BaseTool
):
"""Tool for querying a Dataset."""
"""Tool for querying a Dataset."""
name
:
str
=
"dataset
_retriever
"
name
:
str
=
"dataset"
args_schema
:
Type
[
BaseModel
]
=
DatasetRetrieverToolInput
args_schema
:
Type
[
BaseModel
]
=
DatasetRetrieverToolInput
description
:
str
=
"use this to retrieve a dataset. "
description
:
str
=
"use this to retrieve a dataset. "
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment