Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: casting non-string type value for tool parameter options (#5267)
Bowen Liangd94279ae7595
diff --git a/api/core/tools/entities/tool_entities.py b/api/core/tools/entities/tool_entities.pyindex 265ee572f9e..3115ca7622f 100644--- a/api/core/tools/entities/tool_entities.py+++ b/api/core/tools/entities/tool_entities.py@@ -116,10 +116,10 @@ class ToolParameterOption(BaseModel):value: str = Field(..., description="The value of the option")label: I18nObject = Field(..., description="The label of the option")- @classmethod@field_validator('value', mode='before')+ @classmethoddef transform_id_to_str(cls, value) -> str:- if isinstance(value, bool):+ if not isinstance(value, str):return str(value)else:return valuediff --git a/api/core/tools/provider/builtin/websearch/tools/scholar_search.yaml b/api/core/tools/provider/builtin/websearch/tools/scholar_search.yamlindex 59f60d6d48d..63e79d7ebfa 100644--- a/api/core/tools/provider/builtin/websearch/tools/scholar_search.yaml+++ b/api/core/tools/provider/builtin/websearch/tools/scholar_search.yaml@@ -227,7 +227,7 @@ parameters:en_US: New Zealandzh_Hans: 新西兰pt_BR: New Zealand- - value: NO+ - value: "NO"label:en_US: Norwayzh_Hans: 挪威