Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: enhance ToolEngineInvokeError to include meta information (#12238)

-LAN-634b382a3d14
diff --git a/api/core/tools/errors.py b/api/core/tools/errors.py
index 6febf137b00..c5f9ca47740 100644
--- a/api/core/tools/errors.py
+++ b/api/core/tools/errors.py
@@ -31,3 +31,7 @@ class ToolApiSchemaError(ValueError):
class ToolEngineInvokeError(Exception):
meta: ToolInvokeMeta
+
+ def __init__(self, meta, **kwargs):
+ self.meta = meta
+ super().__init__(**kwargs)