fix(api): Ensure is_resumption for node_started event is correctly set

This commit is contained in:
QuantumGhost
2026-01-13 09:25:44 +08:00
parent 5523df6023
commit 6bcd4ad740
9 changed files with 76 additions and 20 deletions

View File

@ -319,7 +319,10 @@ class QueueNodeStartedEvent(AppQueueEvent):
# FIXME(-LAN-): only for ToolNode, need to refactor
provider_type: str # should be a core.tools.entities.tool_entities.ToolProviderType
provider_id: str
is_resumption: bool = False
is_resumption: bool = Field(
default=False,
description="True only when this node had already started and execution resumed after a pause.",
)
class QueueNodeSucceededEvent(AppQueueEvent):