pub enum CorrectionTarget {
RunEvent {
run_id: String,
event_id: String,
},
Memory {
memory_id: String,
},
Prompt {
prompt_hash: String,
},
}Expand description
What a correction corrects. Closed enum — the three targets the design names; consumers match exhaustively.
Variants§
RunEvent
A journaled run event ({run_id}:{seq}). The correction also yields
an example-kind record — the input the run saw (read from the
journaled event, never re-asked of the world) plus the corrected
behavior — which the distiller folds into a versioned dataset: the
correction is both the fix and the regression test.
Fields
Memory
A memory record, by content address. The derived record inherits the target’s key, so a same-key correction auto-supersedes the prior record (open question 5).
Prompt
A pinned prompt hash from the run manifest
(crate::record::RunManifest::pin_prompt).
Trait Implementations§
Source§impl Clone for CorrectionTarget
impl Clone for CorrectionTarget
Source§fn clone(&self) -> CorrectionTarget
fn clone(&self) -> CorrectionTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CorrectionTarget
impl Debug for CorrectionTarget
Source§impl<'de> Deserialize<'de> for CorrectionTarget
impl<'de> Deserialize<'de> for CorrectionTarget
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CorrectionTarget
Source§impl PartialEq for CorrectionTarget
impl PartialEq for CorrectionTarget
Source§impl Serialize for CorrectionTarget
impl Serialize for CorrectionTarget
impl StructuralPartialEq for CorrectionTarget
Auto Trait Implementations§
impl Freeze for CorrectionTarget
impl RefUnwindSafe for CorrectionTarget
impl Send for CorrectionTarget
impl Sync for CorrectionTarget
impl Unpin for CorrectionTarget
impl UnsafeUnpin for CorrectionTarget
impl UnwindSafe for CorrectionTarget
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