fix(sdk): add error thread state

This commit is contained in:
Tat Dat Duong
2024-10-24 18:16:21 +02:00
parent 7fd6b1b4be
commit 5c44dcef81
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ type RunStatus =
| "timeout"
| "interrupted";
type ThreadStatus = "idle" | "busy" | "interrupted";
type ThreadStatus = "idle" | "busy" | "interrupted" | "error";
type MultitaskStrategy = "reject" | "interrupt" | "rollback" | "enqueue";
+2 -1
View File
@@ -17,12 +17,13 @@ Represents the status of a run:
- "interrupted": The run was manually stopped or interrupted.
"""
ThreadStatus = Literal["idle", "busy", "interrupted"]
ThreadStatus = Literal["idle", "busy", "interrupted", "error"]
"""
Represents the status of a thread:
- "idle": The thread is not currently processing any task.
- "busy": The thread is actively processing a task.
- "interrupted": The thread's execution was interrupted.
- "error": An exception occurred during task processing.
"""
StreamMode = Literal["values", "messages", "updates", "events", "debug", "custom"]