pub struct EscalationContext {
pub top_candidates: Vec<CandidateProbability>,
pub margin: Option<f64>,
pub uncertainty_reason: String,
pub prompt_template: Option<String>,
}Expand description
大型自己回帰 LLM (System 2) へのエスカレーション用コンテキスト。
Fields§
§top_candidates: Vec<CandidateProbability>確率上位の候補一覧 (降順、最大3候補)。
margin: Option<f64>1位候補と2位候補の確率差。
uncertainty_reason: String不確実性および迷いが生じた理由の説明文。
prompt_template: Option<String>大型 LLM への入力プロンプト案。
Trait Implementations§
Source§impl Clone for EscalationContext
impl Clone for EscalationContext
Source§fn clone(&self) -> EscalationContext
fn clone(&self) -> EscalationContext
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 ComposeSchema for EscalationContext
impl ComposeSchema for EscalationContext
Source§impl Debug for EscalationContext
impl Debug for EscalationContext
Source§impl<'de> Deserialize<'de> for EscalationContext
impl<'de> Deserialize<'de> for EscalationContext
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 EscalationContext
impl PartialEq for EscalationContext
Source§impl Serialize for EscalationContext
impl Serialize for EscalationContext
impl StructuralPartialEq for EscalationContext
Auto Trait Implementations§
impl Freeze for EscalationContext
impl RefUnwindSafe for EscalationContext
impl Send for EscalationContext
impl Sync for EscalationContext
impl Unpin for EscalationContext
impl UnsafeUnpin for EscalationContext
impl UnwindSafe for EscalationContext
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