pub struct Decision {Show 14 fields
pub id: Uuid,
pub session_id: Uuid,
pub prompt: String,
pub profile: Profile,
pub conclusion: String,
pub confidence: f64,
pub steps: Vec<ReasoningStep>,
pub total_tokens: TokenUsage,
pub total_duration_ms: u64,
pub memory_context: Option<MemoryContext>,
pub success: bool,
pub insights: Vec<String>,
pub caveats: Vec<String>,
pub timestamp: DateTime<Utc>,
}Expand description
Final decision from reasoning loop
Fields§
§id: UuidUnique decision ID
session_id: UuidSession ID this decision belongs to
prompt: StringOriginal prompt
profile: ProfileProfile used
conclusion: StringFinal conclusion/answer
confidence: f64Overall confidence (0.0-1.0)
steps: Vec<ReasoningStep>All reasoning steps taken
total_tokens: TokenUsageTotal token usage
total_duration_ms: u64Total duration in milliseconds
memory_context: Option<MemoryContext>Memory context used (if any)
success: boolWhether reasoning succeeded
insights: Vec<String>Key insights extracted
caveats: Vec<String>Caveats or limitations noted
timestamp: DateTime<Utc>Timestamp
Implementations§
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
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 more