chore: enhance error message when handling PluginInvokeError (#22908)

This commit is contained in:
Yeuoly 2025-07-24 21:58:39 +08:00 committed by GitHub
commit 206bc4b36d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 47 additions and 4 deletions

View file

@ -111,5 +111,5 @@ def test_tool_node_on_tool_invoke_error(monkeypatch: pytest.MonkeyPatch):
assert isinstance(result, NodeRunResult)
assert result.status == WorkflowNodeExecutionStatus.FAILED
assert "oops" in result.error
assert "Failed to transform tool message:" in result.error
assert "Failed to invoke tool" in result.error
assert result.error_type == "ToolInvokeError"