pub struct DecisionItem {
pub description: String,
pub context: String,
pub alternatives: Vec<String>,
pub confidence: f32,
pub timestamp: DateTime<Utc>,
}Expand description
A decision made during the conversation.
Tracks what was decided, the context around the decision, alternatives considered, and confidence level.
Fields§
§description: StringDescription of the decision made.
context: StringContext explaining why this decision was needed.
alternatives: Vec<String>Alternative options that were considered.
confidence: f32Confidence level in the decision (0.0 to 1.0). Values outside this range are clamped automatically.
timestamp: DateTime<Utc>When the decision was made.
Implementations§
Trait Implementations§
Source§impl Clone for DecisionItem
impl Clone for DecisionItem
Source§fn clone(&self) -> DecisionItem
fn clone(&self) -> DecisionItem
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 DecisionItem
impl Debug for DecisionItem
Source§impl Default for DecisionItem
impl Default for DecisionItem
Source§fn default() -> DecisionItem
fn default() -> DecisionItem
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DecisionItem
impl<'de> Deserialize<'de> for DecisionItem
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DecisionItem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DecisionItem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DecisionItem
impl PartialEq for DecisionItem
Source§fn eq(&self, other: &DecisionItem) -> bool
fn eq(&self, other: &DecisionItem) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DecisionItem
impl Serialize for DecisionItem
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
impl StructuralPartialEq for DecisionItem
Auto Trait Implementations§
impl Freeze for DecisionItem
impl RefUnwindSafe for DecisionItem
impl Send for DecisionItem
impl Sync for DecisionItem
impl Unpin for DecisionItem
impl UnsafeUnpin for DecisionItem
impl UnwindSafe for DecisionItem
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request