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.judge0ce.tools.executeCode import ExecuteCodeTool
|
||||
from core.tools.provider.builtin_tool_provider import BuiltinToolProviderController
|
||||
@@ -22,8 +21,4 @@ class Judge0CEProvider(BuiltinToolProviderController):
|
||||
)
|
||||
except Exception as e:
|
||||
raise ToolProviderCredentialValidationError(str(e))
|
||||
|
||||
def _get_tool_labels(self) -> list[ToolLabelEnum]:
|
||||
return [
|
||||
ToolLabelEnum.OTHER, ToolLabelEnum.UTILITIES
|
||||
]
|
||||
|
@@ -10,6 +10,9 @@ identity:
|
||||
zh_Hans: Judge0 CE 是一个开源的代码执行系统。支持多种语言,包括 C、C++、Java、Python、Ruby 等。
|
||||
pt_BR: Judge0 CE é um sistema de execução de código de código aberto. Suporta várias linguagens, incluindo C, C++, Java, Python, Ruby, etc.
|
||||
icon: icon.svg
|
||||
tags:
|
||||
- utilities
|
||||
- other
|
||||
credentials_for_provider:
|
||||
X-RapidAPI-Key:
|
||||
type: secret-input
|
||||
|
Reference in New Issue
Block a user