Feat/workflow phase2 (#4687)
This commit is contained in:
@@ -2,6 +2,7 @@ import urllib.parse
|
||||
|
||||
import requests
|
||||
|
||||
from core.tools.entities.values import ToolLabelEnum
|
||||
from core.tools.errors import ToolProviderCredentialValidationError
|
||||
from core.tools.provider.builtin_tool_provider import BuiltinToolProviderController
|
||||
|
||||
@@ -24,3 +25,9 @@ class GaodeProvider(BuiltinToolProviderController):
|
||||
raise ToolProviderCredentialValidationError("Gaode API Key is invalid. {}".format(e))
|
||||
except Exception as e:
|
||||
raise ToolProviderCredentialValidationError(str(e))
|
||||
|
||||
def _get_tool_labels(self) -> list[ToolLabelEnum]:
|
||||
return [
|
||||
ToolLabelEnum.UTILITIES, ToolLabelEnum.PRODUCTIVITY,
|
||||
ToolLabelEnum.WEATHER, ToolLabelEnum.TRAVEL
|
||||
]
|
||||
Reference in New Issue
Block a user