feat: support define tags in tool yaml (#4763)
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
from core.tools.entities.values import ToolLabelEnum
|
||||
from core.tools.errors import ToolProviderCredentialValidationError
|
||||
from core.tools.provider.builtin.devdocs.tools.searchDevDocs import SearchDevDocsTool
|
||||
from core.tools.provider.builtin_tool_provider import BuiltinToolProviderController
|
||||
@@ -20,8 +19,4 @@ class DevDocsProvider(BuiltinToolProviderController):
|
||||
)
|
||||
except Exception as e:
|
||||
raise ToolProviderCredentialValidationError(str(e))
|
||||
|
||||
def _get_tool_labels(self) -> list[ToolLabelEnum]:
|
||||
return [
|
||||
ToolLabelEnum.SEARCH, ToolLabelEnum.PRODUCTIVITY
|
||||
]
|
||||
|
@@ -8,3 +8,6 @@ identity:
|
||||
en_US: Get official developer documentations on DevDocs.
|
||||
zh_Hans: 从DevDocs获取官方开发者文档。
|
||||
icon: icon.svg
|
||||
tags:
|
||||
- search
|
||||
- productivity
|
||||
|
Reference in New Issue
Block a user