pub struct Task {
pub attempts: Vec<TaskAttempt>,
pub completed_at: Option<i64>,
pub created_at: i64,
pub id: String,
pub objective: String,
pub session_id: SessionId,
}Expand description
A desired outcome with retained attempt history, scoped to one session.
Successful execution does not establish that the objective is satisfied.
Only explicit completion sets completed_at. Clarification, cancellation,
and failed or interrupted attempts leave the task open.
Fields§
§attempts: Vec<TaskAttempt>Attempts in admission order; execution status comes from operations.
completed_at: Option<i64>Time the caller explicitly accepted the outcome, if complete.
created_at: i64Time the task was created, possibly before its first attempt.
id: StringStable task identity.
objective: StringDesired outcome, separate from an individual attempt’s prompt.
session_id: SessionIdConversation and workspace used by every attempt.
Implementations§
Trait Implementations§
impl Eq for Task
impl StructuralPartialEq for Task
Auto Trait Implementations§
impl Forget for Task
impl Freeze for Task
impl Move for Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnsafeUnpin for Task
impl UnwindSafe for Task
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.