pub struct Decision { /* private fields */ }Expand description
A routing choice produced by an algorithm.
Implementations§
Source§impl Decision
impl Decision
Sourcepub fn new(
selected_model_id: impl Into<String>,
reasoning: Option<String>,
is_answer_call: bool,
) -> Self
pub fn new( selected_model_id: impl Into<String>, reasoning: Option<String>, is_answer_call: bool, ) -> Self
Creates a decision and records whether its call produces the answer.
Sourcepub fn selected_model_id(&self) -> &str
pub fn selected_model_id(&self) -> &str
The model identifier selected for the call.
Sourcepub fn is_answer_call(&self) -> bool
pub fn is_answer_call(&self) -> bool
Whether this call generates an answer rather than a routing verdict.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Decision
impl RefUnwindSafe for Decision
impl Send for Decision
impl Sync for Decision
impl Unpin for Decision
impl UnsafeUnpin for Decision
impl UnwindSafe for Decision
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