pub struct Decision {
pub id: String,
pub timestamp: u64,
pub context: DecisionContext,
pub reasoning: String,
pub action: Action,
pub outcome: Option<DecisionOutcome>,
pub confidence_score: Option<f64>,
}
Expand description
Represents a single decision made by the agent
Fields§
§id: String
§timestamp: u64
§context: DecisionContext
§reasoning: String
§action: Action
§outcome: Option<DecisionOutcome>
§confidence_score: Option<f64>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Decision
impl<'de> Deserialize<'de> for Decision
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
Auto Trait Implementations§
impl Freeze for Decision
impl RefUnwindSafe for Decision
impl Send for Decision
impl Sync for Decision
impl Unpin 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