mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-09-28 15:36:18 +00:00
* feat(threads): number branched conversation titles * feat(frontend): show branch lineage in recent chats * fix(threads): allocate unique branch suffixes * fix(threads): preserve suffix and filter semantics
32 lines
678 B
Python
32 lines
678 B
Python
"""Run status and disconnect mode enums."""
|
|
|
|
from enum import StrEnum
|
|
|
|
|
|
class ThreadOperationKind(StrEnum):
|
|
"""Kind of operation holding exclusive admission for a thread."""
|
|
|
|
run = "run"
|
|
checkpoint_write = "checkpoint_write"
|
|
artifact_write = "artifact_write"
|
|
branch = "branch"
|
|
delete = "delete"
|
|
|
|
|
|
class RunStatus(StrEnum):
|
|
"""Lifecycle status of a single run."""
|
|
|
|
pending = "pending"
|
|
running = "running"
|
|
success = "success"
|
|
error = "error"
|
|
timeout = "timeout"
|
|
interrupted = "interrupted"
|
|
|
|
|
|
class DisconnectMode(StrEnum):
|
|
"""Behaviour when the SSE consumer disconnects."""
|
|
|
|
cancel = "cancel"
|
|
continue_ = "continue"
|