pub struct FinalizeJudgment {
pub retitle: bool,
pub title: String,
pub done: bool,
pub outcome_tag: String,
pub outcome: String,
pub reason: String,
}Expand description
The model’s verdict on a task, distilled from its events.
Fields§
§retitle: boolTrue when the current title is a poor description of the task and
should be replaced by title. False echoes a good human title back.
title: StringA short human-readable title (≈5–10 words).
done: boolTrue only when the events clearly show the task was finished. When
unclear, the model leaves it false and complete keeps it open.
outcome_tag: Stringdone | abandoned | superseded — only used when done is true.
outcome: StringOne sentence: what actually happened / where the task ended.
reason: StringShort rationale for done / still-open — shown to the user.
Implementations§
Source§impl FinalizeJudgment
impl FinalizeJudgment
Sourcepub fn should_apply_title(&self, current_title: &str) -> bool
pub fn should_apply_title(&self, current_title: &str) -> bool
Apply the proposed title only when the model flagged the current one as poor AND offered a non-empty, genuinely different replacement.
Sourcepub fn normalized_tag(&self) -> &str
pub fn normalized_tag(&self) -> &str
Map the model’s tag to the validated close enum; falls back to done
for an empty/unknown tag so the close path never rejects it.
Trait Implementations§
Source§impl Clone for FinalizeJudgment
impl Clone for FinalizeJudgment
Source§fn clone(&self) -> FinalizeJudgment
fn clone(&self) -> FinalizeJudgment
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FinalizeJudgment
impl Debug for FinalizeJudgment
Source§impl<'de> Deserialize<'de> for FinalizeJudgment
impl<'de> Deserialize<'de> for FinalizeJudgment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for FinalizeJudgment
impl PartialEq for FinalizeJudgment
Source§fn eq(&self, other: &FinalizeJudgment) -> bool
fn eq(&self, other: &FinalizeJudgment) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FinalizeJudgment
Auto Trait Implementations§
impl Freeze for FinalizeJudgment
impl RefUnwindSafe for FinalizeJudgment
impl Send for FinalizeJudgment
impl Sync for FinalizeJudgment
impl Unpin for FinalizeJudgment
impl UnsafeUnpin for FinalizeJudgment
impl UnwindSafe for FinalizeJudgment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more