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: support float type for tool parameter's default value (#7644)
非法操作ba8202344564
diff --git a/api/core/tools/entities/tool_entities.py b/api/core/tools/entities/tool_entities.pyindex 2e4433d9f6d..e31dec55d21 100644--- a/api/core/tools/entities/tool_entities.py+++ b/api/core/tools/entities/tool_entities.py@@ -148,7 +148,7 @@ class ToolParameter(BaseModel):form: ToolParameterForm = Field(..., description="The form of the parameter, schema/form/llm")llm_description: Optional[str] = Nonerequired: Optional[bool] = False- default: Optional[Union[int, str]] = None+ default: Optional[Union[float, int, str]] = Nonemin: Optional[Union[float, int]] = Nonemax: Optional[Union[float, int]] = Noneoptions: Optional[list[ToolParameterOption]] = Nonediff --git a/api/core/tools/provider/builtin/siliconflow/tools/stable_diffusion.yaml b/api/core/tools/provider/builtin/siliconflow/tools/stable_diffusion.yamlindex abb541c485e..dce10adc87f 100644--- a/api/core/tools/provider/builtin/siliconflow/tools/stable_diffusion.yaml+++ b/api/core/tools/provider/builtin/siliconflow/tools/stable_diffusion.yaml@@ -85,7 +85,7 @@ parameters:- name: guidance_scaletype: numberrequired: true- default: 7+ default: 7.5min: 0max: 100label: