pub struct ReasonRequest {
pub observation: ObservationInput,
pub depth: u32,
pub confidence_threshold: f32,
pub session_filter: Option<Vec<WireSessionId>>,
pub max_inferences: u32,
pub budget_wall_time_ms: u32,
pub request_id: Option<WireUuid>,
pub txn_id: Option<WireUuid>,
pub trace: bool,
pub act_as: Option<ActAs>,
}Expand description
REASON (0x0023).
Fields§
§observation: ObservationInput§depth: u32§confidence_threshold: f32§session_filter: Option<Vec<WireSessionId>>§max_inferences: u32§budget_wall_time_ms: u32§request_id: Option<WireUuid>§txn_id: Option<WireUuid>§trace: boolOpt-in per-stage observability. When true, the final response frame
carries a populated trace: ReasonTrace describing the full
base-candidate set, every edge the outward walk considered (and why
each was pruned), the un-collapsed per-item score components, and
whether topic-alignment centroid computation ran. When false (the
default) the field is absent and the reason pays nothing. Mirrors
RecallRequest.trace.
act_as: Option<ActAs>Effective identity this reason runs as. None (omitted on the wire)
means the op runs as the connection’s own key-bound identity.
Trait Implementations§
Source§impl Clone for ReasonRequest
impl Clone for ReasonRequest
Source§impl Debug for ReasonRequest
impl Debug for ReasonRequest
Source§impl<'de> Deserialize<'de> for ReasonRequest
impl<'de> Deserialize<'de> for ReasonRequest
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
Source§impl PartialEq for ReasonRequest
impl PartialEq for ReasonRequest
Source§impl Serialize for ReasonRequest
impl Serialize for ReasonRequest
impl StructuralPartialEq for ReasonRequest
Auto Trait Implementations§
impl Freeze for ReasonRequest
impl RefUnwindSafe for ReasonRequest
impl Send for ReasonRequest
impl Sync for ReasonRequest
impl Unpin for ReasonRequest
impl UnsafeUnpin for ReasonRequest
impl UnwindSafe for ReasonRequest
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