2024-04-08 18:51:46 +08:00
|
|
|
from core.tools.entities.tool_entities import ToolInvokeMeta
|
|
|
|
|
|
|
|
|
2024-01-23 19:58:23 +08:00
|
|
|
class ToolProviderNotFoundError(ValueError):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class ToolNotFoundError(ValueError):
|
|
|
|
pass
|
|
|
|
|
2024-01-31 11:58:07 +08:00
|
|
|
class ToolParameterValidationError(ValueError):
|
2024-01-23 19:58:23 +08:00
|
|
|
pass
|
|
|
|
|
|
|
|
class ToolProviderCredentialValidationError(ValueError):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class ToolNotSupportedError(ValueError):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class ToolInvokeError(ValueError):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class ToolApiSchemaError(ValueError):
|
2024-04-08 18:51:46 +08:00
|
|
|
pass
|
|
|
|
|
|
|
|
class ToolEngineInvokeError(Exception):
|
|
|
|
meta: ToolInvokeMeta
|