From 16148cd700d5e3d0490da13ad5000228a157aae6 Mon Sep 17 00:00:00 2001 From: tt-P607 <68868379+tt-P607@users.noreply.github.com> Date: Thu, 6 Nov 2025 17:44:37 +0800 Subject: [PATCH] fix(llm): correct boolean parameter type to 'boolean' The enum value for `ToolParamType.BOOLEAN` is updated from 'bool' to 'boolean'. This change aligns the type definition with the standard JSON Schema specification, which is used by most LLM tool-calling APIs. This ensures correct validation and functionality for tools with boolean parameters. BREAKING CHANGE: The value of `ToolParamType.BOOLEAN` has been changed from 'bool' to 'boolean'. Any part of the system that generates or consumes tool definitions must be updated to use the new value. --- src/llm_models/payload_content/tool_option.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llm_models/payload_content/tool_option.py b/src/llm_models/payload_content/tool_option.py index 9109c2f7c..30aa05745 100644 --- a/src/llm_models/payload_content/tool_option.py +++ b/src/llm_models/payload_content/tool_option.py @@ -9,7 +9,7 @@ class ToolParamType(Enum): STRING = "string" # 字符串 INTEGER = "integer" # 整型 FLOAT = "number" # 浮点型 - BOOLEAN = "bool" # 布尔型 + BOOLEAN = "boolean" # 布尔型 class ToolParam: