From cc6bdb041a9b5d12f4524fae757d6455b2ff5967 Mon Sep 17 00:00:00 2001 From: Xinyuan Tong <115166877+JustinTong0323@users.noreply.github.com> Date: Thu, 25 Dec 2025 19:54:26 +0800 Subject: [PATCH] Fix string formatting in validation error messages --- validator/tool_calls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validator/tool_calls.py b/validator/tool_calls.py index fce8861..8ed4f70 100644 --- a/validator/tool_calls.py +++ b/validator/tool_calls.py @@ -101,7 +101,7 @@ def validate_tool_call(self, tool_call: dict, tools: list[dict]) -> bool: validate(instance=args, schema=schema) return True except (json.JSONDecodeError, ValidationError) as e: - print("Schema validation failed: {e}") + print(f"Schema validation failed: {e}") return False except Exception as e: print(f"Unexpected validation error: {e}")