pub struct Decision {
pub orders: Vec<Order>,
pub reasoning: String,
pub cost: Option<DecisionCost>,
}Expand description
What the agent returns.
Fields§
§orders: Vec<Order>§reasoning: StringFree-text rationale, captured into the trajectory for auditability.
cost: Option<DecisionCost>Optional self-reported compute/token spend for producing this decision.
The engine accumulates it into the run’s cost, which drives the
cost-normalized leaderboard columns (return_per_cost / dsr_per_cost =
skill-per-dollar-of-compute). None = not reported, so existing agents
need no change and the cost columns stay None (back-compat).
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 UnsafeUnpin 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