pub struct DecisionSurface {
pub decisions: Vec<Decision>,
pub truncated: Option<TruncationNote>,
pub emitted_signal_ids: Vec<String>,
}Expand description
The ranked, capped decision surface plus the set of signal_ids the deterministic layer emitted (the anti-hallucination allowlist).
Fields§
§decisions: Vec<Decision>Ranked decisions, highest consequence first.
truncated: Option<TruncationNote>Present when more than the cap were extracted.
emitted_signal_ids: Vec<String>Every signal_id the deterministic layer emitted, INCLUDING those whose decision was collapsed below the cap or suppressed. The anti-hallucination allowlist: an agent decision whose id is absent is rejected.
Implementations§
Source§impl DecisionSurface
impl DecisionSurface
Sourcepub fn accept_signal_id(&self, signal_id: &str) -> bool
pub fn accept_signal_id(&self, signal_id: &str) -> bool
Accept an agent-proposed signal_id only if fallow emitted it.
Trait Implementations§
Source§impl Clone for DecisionSurface
impl Clone for DecisionSurface
Source§fn clone(&self) -> DecisionSurface
fn clone(&self) -> DecisionSurface
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 DecisionSurface
impl Debug for DecisionSurface
Source§impl Default for DecisionSurface
impl Default for DecisionSurface
Source§fn default() -> DecisionSurface
fn default() -> DecisionSurface
Returns the “default value” for a type. Read more
Source§impl Serialize for DecisionSurface
impl Serialize for DecisionSurface
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,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for DecisionSurface
impl RefUnwindSafe for DecisionSurface
impl Send for DecisionSurface
impl Sync for DecisionSurface
impl Unpin for DecisionSurface
impl UnsafeUnpin for DecisionSurface
impl UnwindSafe for DecisionSurface
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
Converts
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> ⓘ
Converts
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