pub struct CoderRun {
pub emission_shape: String,
pub model_id: String,
pub files_written: Vec<String>,
pub raw_reply: String,
pub first_emission: String,
}Expand description
Outcome of one Coder::run turn. Surfaced via the ACP worker’s
TaskReply.emission_shape so the foreman’s scorecard can
distinguish T0a / T0b / T0c instead of lumping them as “empty
diff”.
Fields§
§emission_shape: StringWire-stable shape label: “whole_files”, “unified_diff”, “prose”.
model_id: StringModel id the inference backend returned.
files_written: Vec<String>Relative paths of files the run wrote (empty for prose / diff — the diff path doesn’t tell us which files it touched without re-parsing).
raw_reply: StringThe raw model reply. Useful for audit logs and post-mortem.
NOTE: when the whole-file re-prompt fallback fires this becomes a
composite first+retry transcript — use Self::first_emission
when you need just the model’s initial output.
first_emission: StringThe model’s first raw emission, before any re-prompt fallback.
Always the initial reply (never a composite), so the eval
scorecard can judge it with git apply --check (#30B) to tell a
clean diff from a sloppy one the fuzzy worker merely rescued.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CoderRun
impl RefUnwindSafe for CoderRun
impl Send for CoderRun
impl Sync for CoderRun
impl Unpin for CoderRun
impl UnsafeUnpin for CoderRun
impl UnwindSafe for CoderRun
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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