pub struct FinishTaskArgs {
pub status: FinishStatus,
pub summary: String,
pub changes: Vec<ChangeEntry>,
pub tests_run: Option<i64>,
pub tests_passed: Option<i64>,
}Expand description
Parsed, validated arguments to a finish_task call.
Why: A typed shape is easier for both execute and agent_loop’s
loop-termination path to work with than a raw serde_json::Value.
What: status and summary are required (matching the schema’s required
array); changes defaults to empty when absent; tests_run/tests_passed
are optional integers. tests_run/tests_passed are signed (i64) rather
than unsigned so an out-of-range value the JSON-Schema-subset validator does
not itself reject (it declares no minimum) still deserialises instead of
hard-failing execute for a shape the schema layer already accepted.
Test: tests::execute_valid_args_renders_summary,
tests::execute_with_changes_and_tests_renders_all_fields.
Fields§
§status: FinishStatusCompletion status.
summary: StringFree-text summary of what was done.
changes: Vec<ChangeEntry>Files/changes made, if reported.
tests_run: Option<i64>Number of tests run, if reported.
tests_passed: Option<i64>Number of tests that passed, if reported.
Trait Implementations§
Source§impl Clone for FinishTaskArgs
impl Clone for FinishTaskArgs
Source§fn clone(&self) -> FinishTaskArgs
fn clone(&self) -> FinishTaskArgs
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 FinishTaskArgs
impl Debug for FinishTaskArgs
Source§impl<'de> Deserialize<'de> for FinishTaskArgs
impl<'de> Deserialize<'de> for FinishTaskArgs
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>,
Auto Trait Implementations§
impl Freeze for FinishTaskArgs
impl RefUnwindSafe for FinishTaskArgs
impl Send for FinishTaskArgs
impl Sync for FinishTaskArgs
impl Unpin for FinishTaskArgs
impl UnsafeUnpin for FinishTaskArgs
impl UnwindSafe for FinishTaskArgs
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