Task Initialization State Design #3094
coolbeevip
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, in
camel/tasks/task.py
, the default state for a newTask
is set toTaskState.FAILED
. This seems counterintuitive, as a freshly created task should not be considered failed.Current Implementation
Suggestions
1. Use
OPEN
as the Default StateWe could change the default state to
TaskState.OPEN
, which better reflects the typical task lifecycle. A new task should start in an "open" or "pending" state, ready to be processed.2. Introduce an
IDLE
StateAlternatively, we could introduce an
IDLE
state to represent tasks that have just been created but are not yet activated or assigned. This provides a clearer distinction between a task that is simply created and one that is actively being processed.Benefits:
IDLE
) and those "ready for work" (OPEN
).Beta Was this translation helpful? Give feedback.
All reactions