feat: support define tags in tool yaml (#4763)
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
from typing import Any
|
||||
|
||||
from core.tools.entities.values import ToolLabelEnum
|
||||
from core.tools.errors import ToolProviderCredentialValidationError
|
||||
from core.tools.provider.builtin.wolframalpha.tools.wolframalpha import WolframAlphaTool
|
||||
from core.tools.provider.builtin_tool_provider import BuiltinToolProviderController
|
||||
@@ -21,8 +20,4 @@ class GoogleProvider(BuiltinToolProviderController):
|
||||
)
|
||||
except Exception as e:
|
||||
raise ToolProviderCredentialValidationError(str(e))
|
||||
|
||||
def _get_tool_labels(self) -> list[ToolLabelEnum]:
|
||||
return [
|
||||
ToolLabelEnum.PRODUCTIVITY, ToolLabelEnum.UTILITIES
|
||||
]
|
||||
|
||||
@@ -10,6 +10,9 @@ identity:
|
||||
zh_Hans: WolframAlpha 是一个强大的计算知识引擎。
|
||||
pt_BR: WolframAlpha is a powerful computational knowledge engine.
|
||||
icon: icon.svg
|
||||
tags:
|
||||
- productivity
|
||||
- utilities
|
||||
credentials_for_provider:
|
||||
appid:
|
||||
type: secret-input
|
||||
|
||||
Reference in New Issue
Block a user