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:
@@ -9,7 +9,7 @@ class ToolParamType(Enum):
|
|||||||
STRING = "string" # 字符串
|
STRING = "string" # 字符串
|
||||||
INTEGER = "integer" # 整型
|
INTEGER = "integer" # 整型
|
||||||
FLOAT = "number" # 浮点型
|
FLOAT = "number" # 浮点型
|
||||||
BOOLEAN = "bool" # 布尔型
|
BOOLEAN = "boolean" # 布尔型
|
||||||
|
|
||||||
|
|
||||||
class ToolParam:
|
class ToolParam:
|
||||||
|
|||||||
Reference in New Issue
Block a user