fix: remove additional sse event

This commit is contained in:
Novice
2026-01-27 10:49:14 +08:00
parent c4e5eba6c3
commit f0f796fdc0
3 changed files with 8 additions and 3 deletions

View File

@ -77,7 +77,9 @@ class ToolMetadata(BaseModel):
# Core fields
enabled: bool = True
type: ToolProviderType = Field(..., description="Tool provider type: builtin, api, mcp, workflow")
type: ToolProviderType = Field(
default=ToolProviderType.BUILT_IN, description="Tool provider type: builtin, api, mcp, workflow"
)
provider_name: str = Field(..., description="Tool provider name/identifier")
tool_name: str = Field(..., description="Tool name")

View File

@ -420,7 +420,7 @@ class LLMNode(Node[LLMNodeData]):
outputs["structured_output"] = structured_output.structured_output
# Send final chunk event to indicate streaming is complete
if not self.tool_call_enabled and sandbox is None:
if not self.tool_call_enabled:
# For tool calls and sandbox, final events are already sent in _process_tool_outputs
yield StreamChunkEvent(
selector=[self._node_id, "text"],