pub struct OutcomeRecord {
pub id: String,
pub task_id: Option<String>,
pub tool_run_id: Option<String>,
pub kind: String,
pub label: String,
pub reward: Option<f64>,
pub source: String,
pub detail_json: Option<String>,
pub created_at: String,
}Expand description
A verifiable outcome / reward signal attached to a trajectory (a task, and
optionally a specific tool run). The other durable tables record what
happened (messages, tool_runs, checkpoints=diffs); outcomes records how
good it was and who says so (source) — the enrichment
that turns logs into a training set for the self-improving loop.
Fields§
§id: String§task_id: Option<String>§tool_run_id: Option<String>§kind: StringSignal type, e.g. task_terminal, build, test, tool_exec,
user_edit, git_survival, preference. Free-form.
label: StringGraded result — one of the OUTCOME_LABEL_* values.
reward: Option<f64>Optional scalar reward (convention: roughly -1.0..=1.0). None when
the signal is categorical only.
source: StringProvenance — one of the OUTCOME_SOURCE_* values.
detail_json: Option<String>Optional structured payload: test counts, a git sha, or a preference
pair { "chosen": ..., "rejected": ... } for DPO.
created_at: StringTrait Implementations§
Source§impl Clone for OutcomeRecord
impl Clone for OutcomeRecord
Source§fn clone(&self) -> OutcomeRecord
fn clone(&self) -> OutcomeRecord
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 OutcomeRecord
impl Debug for OutcomeRecord
Source§impl<'de> Deserialize<'de> for OutcomeRecord
impl<'de> Deserialize<'de> for OutcomeRecord
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OutcomeRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OutcomeRecord, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for OutcomeRecord
impl PartialEq for OutcomeRecord
Source§impl Serialize for OutcomeRecord
impl Serialize for OutcomeRecord
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for OutcomeRecord
Auto Trait Implementations§
impl Freeze for OutcomeRecord
impl RefUnwindSafe for OutcomeRecord
impl Send for OutcomeRecord
impl Sync for OutcomeRecord
impl Unpin for OutcomeRecord
impl UnsafeUnpin for OutcomeRecord
impl UnwindSafe for OutcomeRecord
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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