Skip to main content

RecordParams

Struct RecordParams 

Source
pub struct RecordParams<'a> {
Show 18 fields pub trace_id: &'a str, pub query: Option<&'a str>, pub output: Option<&'a str>, pub output_summary: Option<&'a str>, pub outcome: Option<&'a str>, pub used: Option<&'a [String]>, pub used_attribution: &'a str, pub used_complete: Option<bool>, pub feedback_up: Option<&'a [String]>, pub feedback_down: Option<&'a [String]>, pub feedback_kind: &'a str, pub feedback_actor: Option<&'a str>, pub feedback_reason: Option<&'a str>, pub nomination: Option<&'a str>, pub priority: i64, pub task_state: Option<&'a str>, pub source: &'a str, pub verdict_heeded: bool,
}
Expand description

Parameters for KnowledgeBase::record.

Borrowed, Default-able: construct with RecordParams { trace_id, source, ..Default::default() } and set only the fields you need. Behavioural defaults are applied inside record: used_attribution empty → "explicit", feedback_kind empty → "user", used_complete Nonetrue (a complete snapshot).

Fields§

§trace_id: &'a str§query: Option<&'a str>§output: Option<&'a str>§output_summary: Option<&'a str>§outcome: Option<&'a str>§used: Option<&'a [String]>§used_attribution: &'a str§used_complete: Option<bool>§feedback_up: Option<&'a [String]>§feedback_down: Option<&'a [String]>§feedback_kind: &'a str§feedback_actor: Option<&'a str>§feedback_reason: Option<&'a str>§nomination: Option<&'a str>§priority: i64§task_state: Option<&'a str>§source: &'a str§verdict_heeded: bool

方案 H — 反事实审查:此 trace 若来自一次 appraise,且 actor 因警告回避了动作 (没有真正采取该步,outcome 反映的是回避后的世界),则该结果不能当作直觉对错的 证据 —— 标记为 counterfactual_censored,不计入校准映射 / ECE。默认 false (actor 实际采取动作并观测到结果 → observed,计入校准)。

Trait Implementations§

Source§

impl<'a> Clone for RecordParams<'a>

Source§

fn clone(&self) -> RecordParams<'a>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for RecordParams<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Default for RecordParams<'a>

Source§

fn default() -> RecordParams<'a>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for RecordParams<'a>

§

impl<'a> RefUnwindSafe for RecordParams<'a>

§

impl<'a> Send for RecordParams<'a>

§

impl<'a> Sync for RecordParams<'a>

§

impl<'a> Unpin for RecordParams<'a>

§

impl<'a> UnsafeUnpin for RecordParams<'a>

§

impl<'a> UnwindSafe for RecordParams<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.