From 3efa79aba063082b7100da0cc6e0bdb58f658cd8 Mon Sep 17 00:00:00 2001 From: ZachDreamZ Date: Sat, 4 Jul 2026 13:14:18 +0800 Subject: [PATCH] fix: _ai_get_date output_schema uses invalid JSON Schema type 'date' The JSON Schema spec does not define 'date' as a valid type. Use 'string' with format 'date' instead, which is the correct way to represent a date in JSON Schema. --- ai_tool/models/ai_tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ai_tool/models/ai_tool.py b/ai_tool/models/ai_tool.py index c01eee29..82068020 100644 --- a/ai_tool/models/ai_tool.py +++ b/ai_tool/models/ai_tool.py @@ -48,7 +48,7 @@ def _get_tool_definition(self): @aitool( input_schema={}, output_schema={ - "date": {"type": "date"}, + "date": {"type": "string", "format": "date"}, }, ) def _ai_get_date(self):