Skip to content

Commit 824538d

Browse files
Add TaskTrackerStatusType type alias for task tracker status (#1263)
Co-authored-by: openhands <openhands@all-hands.dev>
1 parent 771eecc commit 824538d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

openhands-tools/openhands/tools/task_tracker/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
TaskTrackerAction,
33
TaskTrackerExecutor,
44
TaskTrackerObservation,
5+
TaskTrackerStatusType,
56
TaskTrackerTool,
67
)
78

@@ -10,5 +11,6 @@
1011
"TaskTrackerAction",
1112
"TaskTrackerExecutor",
1213
"TaskTrackerObservation",
14+
"TaskTrackerStatusType",
1315
"TaskTrackerTool",
1416
]

openhands-tools/openhands/tools/task_tracker/definition.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,14 @@
2525

2626
logger = get_logger(__name__)
2727

28+
# Type alias for task tracker status
29+
TaskTrackerStatusType = Literal["todo", "in_progress", "done"]
30+
2831

2932
class TaskItem(BaseModel):
3033
title: str = Field(..., description="A brief title for the task.")
3134
notes: str = Field("", description="Additional details or notes about the task.")
32-
status: Literal["todo", "in_progress", "done"] = Field(
35+
status: TaskTrackerStatusType = Field(
3336
"todo",
3437
description="The current status of the task. "
3538
"One of 'todo', 'in_progress', or 'done'.",

0 commit comments

Comments
 (0)