feat: support define tags in tool yaml (#4763)
This commit is contained in:
parent
b189faca52
commit
74f38eacda
82 changed files with 187 additions and 255 deletions
|
|
@ -1,4 +1,3 @@
|
|||
from core.tools.entities.values import ToolLabelEnum
|
||||
from core.tools.errors import ToolProviderCredentialValidationError
|
||||
from core.tools.provider.builtin.duckduckgo.tools.duckduckgo_search import DuckDuckGoSearchTool
|
||||
from core.tools.provider.builtin_tool_provider import BuiltinToolProviderController
|
||||
|
|
@ -19,8 +18,4 @@ class DuckDuckGoProvider(BuiltinToolProviderController):
|
|||
)
|
||||
except Exception as e:
|
||||
raise ToolProviderCredentialValidationError(str(e))
|
||||
|
||||
def _get_tool_labels(self) -> list[ToolLabelEnum]:
|
||||
return [
|
||||
ToolLabelEnum.SEARCH
|
||||
]
|
||||
|
||||
|
|
@ -8,3 +8,5 @@ identity:
|
|||
en_US: A privacy-focused search engine.
|
||||
zh_Hans: 一个注重隐私的搜索引擎。
|
||||
icon: icon.svg
|
||||
tags:
|
||||
- search
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue