Feat/workflow phase2 (#4687)
This commit is contained in:
parent
45deaee762
commit
e852a21634
139 changed files with 5997 additions and 779 deletions
|
|
@ -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
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue