pub struct ActAnswer<'a> {
pub action: &'a str,
pub answer: &'a str,
pub confidence: f64,
pub calibration: &'a str,
pub expected_costs: &'a IndexMap<String, f64>,
pub probabilities: &'a IndexMap<String, f64>,
pub evidence: &'a [EvidenceSpan],
pub raw: &'a Answer,
}Expand description
Checked act answer.
Fields§
§action: &'a strChosen action, never optional.
answer: &'a strMost probable outcome.
confidence: f64Native confidence.
calibration: &'a strCalibration status.
expected_costs: &'a IndexMap<String, f64>Expected cost per action.
probabilities: &'a IndexMap<String, f64>Native probabilities.
evidence: &'a [EvidenceSpan]Supporting spans, empty if none were returned.
raw: &'a AnswerOriginal answer.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ActAnswer<'a>
impl<'a> RefUnwindSafe for ActAnswer<'a>
impl<'a> Send for ActAnswer<'a>
impl<'a> Sync for ActAnswer<'a>
impl<'a> Unpin for ActAnswer<'a>
impl<'a> UnsafeUnpin for ActAnswer<'a>
impl<'a> UnwindSafe for ActAnswer<'a>
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