hoangs commited on
Commit
feb903b
·
verified ·
1 Parent(s): 294d395

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +23 -3
README.md CHANGED
@@ -1,3 +1,23 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # viet-robot-task-priority-sorter
2
+
3
+ A tiny helper that sorts robot tasks by priority and deadline, so that a
4
+ scheduler or agent can pick the next best task to execute.
5
+
6
+ Function:
7
+
8
+ ```python
9
+ sort_tasks(tasks: list[TaskItem]) -> list[TaskItem]
10
+ ```
11
+
12
+ where each `TaskItem` has:
13
+
14
+ - `task_id`: string
15
+ - `priority`: `low`, `normal`, `high`, or `urgent`
16
+ - `deadline_local`: datetime string parseable by `datetime.fromisoformat`
17
+
18
+ Tasks are ordered primarily by priority (urgent → high → normal → low),
19
+ then by earliest deadline.
20
+
21
+ ## License
22
+
23
+ MIT