pub struct RunCostEstimate {
pub model: String,
pub estimate: RunCostEstimateEstimate,
pub basis: RunCostEstimateBasis,
}Expand description
What a run is likely to cost before it is started. Nothing is dispatched and nothing is stored — this is a read.
The numbers are an estimate built from the agent’s own recent runs, and the basis block
says what they rest on so a client can present them honestly instead of showing every figure
with the same confidence.
Fields§
§model: StringThe model the estimate was priced against, after any per-session override.
estimate: RunCostEstimateEstimate§basis: RunCostEstimateBasisWhat the estimate was computed from. A zero sample is not an error — it means the agent has no history yet and the defaults were used.
Trait Implementations§
Source§impl Clone for RunCostEstimate
impl Clone for RunCostEstimate
Source§fn clone(&self) -> RunCostEstimate
fn clone(&self) -> RunCostEstimate
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 RunCostEstimate
impl Debug for RunCostEstimate
Source§impl Default for RunCostEstimate
impl Default for RunCostEstimate
Source§fn default() -> RunCostEstimate
fn default() -> RunCostEstimate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RunCostEstimate
impl<'de> Deserialize<'de> for RunCostEstimate
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
Source§impl PartialEq for RunCostEstimate
impl PartialEq for RunCostEstimate
Source§impl Serialize for RunCostEstimate
impl Serialize for RunCostEstimate
impl StructuralPartialEq for RunCostEstimate
Auto Trait Implementations§
impl Freeze for RunCostEstimate
impl RefUnwindSafe for RunCostEstimate
impl Send for RunCostEstimate
impl Sync for RunCostEstimate
impl Unpin for RunCostEstimate
impl UnsafeUnpin for RunCostEstimate
impl UnwindSafe for RunCostEstimate
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