pub struct DecisionStatement {Show 13 fields
pub type_: String,
pub timestamp: String,
pub actor: String,
pub parent_id: Option<String>,
pub model: Option<String>,
pub model_version: Option<String>,
pub tokens_in: Option<u64>,
pub tokens_out: Option<u64>,
pub prompt_digest: Option<String>,
pub summary: Option<String>,
pub confidence: Option<f64>,
pub alternatives: Option<Vec<String>>,
pub meta: Option<Value>,
}Expand description
Records an agent’s reasoning and decision context.
This is the “why” layer – agents provide this explicitly to explain inference decisions, model usage, and confidence levels.
Fields§
§type_: StringAlways TYPE_DECISION
timestamp: StringRFC 3339 timestamp, set at sign time.
actor: StringDID-style actor URI. e.g. “agent://analyst”
parent_id: Option<String>Links this artifact to its parent in the chain.
model: Option<String>Model used for inference. e.g. “claude-opus-4”
model_version: Option<String>Model version if known.
tokens_in: Option<u64>Number of input tokens consumed.
tokens_out: Option<u64>Number of output tokens produced.
prompt_digest: Option<String>SHA-256 digest of the full prompt (not the prompt itself).
summary: Option<String>Human-readable summary of the decision.
confidence: Option<f64>Confidence level 0.0-1.0 if the agent provides it.
alternatives: Option<Vec<String>>Other options the agent considered.
meta: Option<Value>Arbitrary additional metadata.
Implementations§
Trait Implementations§
Source§impl Clone for DecisionStatement
impl Clone for DecisionStatement
Source§fn clone(&self) -> DecisionStatement
fn clone(&self) -> DecisionStatement
Returns a duplicate of the value. Read more
1.0.0 · 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 DecisionStatement
impl Debug for DecisionStatement
Source§impl<'de> Deserialize<'de> for DecisionStatement
impl<'de> Deserialize<'de> for DecisionStatement
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 DecisionStatement
impl RefUnwindSafe for DecisionStatement
impl Send for DecisionStatement
impl Sync for DecisionStatement
impl Unpin for DecisionStatement
impl UnsafeUnpin for DecisionStatement
impl UnwindSafe for DecisionStatement
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