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.
This commit is contained in:
tt-P607
2025-11-06 17:44:37 +08:00
committed by Windpicker-owo
parent ca237e7d59
commit 16148cd700

View File

@@ -9,7 +9,7 @@ class ToolParamType(Enum):
STRING = "string" # 字符串
INTEGER = "integer" # 整型
FLOAT = "number" # 浮点型
BOOLEAN = "bool" # 布尔型
BOOLEAN = "boolean" # 布尔型
class ToolParam: