mirror of
https://github.com/langgenius/dify.git
synced 2026-11-12 06:11:12 +08:00
feat(api): add end-user tool credential configuration (#44406)
This commit is contained in:
1 parent
baf1188f8a
commit
f89d647429
10 files changed
+842
-2
No files matched your search
@@ -550,6 +550,12 @@ class DifyToolNodeRuntime(ToolNodeRuntimeProtocol):
|
||||
variable_pool,
|
||||
node_execution_id: str | None = None,
|
||||
) -> ToolRuntimeHandle:
|
||||
# Dify owns credential selection; reject unsupported sources before resolving workspace credentials.
|
||||
source = node_data.get("credential_source", "workspace")
|
||||
if source != "workspace":
|
||||
raise ToolRuntimeResolutionError(
|
||||
f"Tool node {node_id!r}: credential source {source!r} is not supported by this runtime yet."
|
||||
)
|
||||
try:
|
||||
tool_runtime = ToolManager.get_workflow_tool_runtime(
|
||||
self._run_context.tenant_id,
|
||||
|
||||
Reference in new issue
Block a user