pub struct WorkflowStats {
pub workflow_id: String,
pub total_requests: u64,
pub total_tokens: u64,
pub prompt_tokens: u64,
pub completion_tokens: u64,
pub total_cost_cents: u64,
pub total_cost_usd: f64,
pub budget_limit: Option<BudgetLimit>,
pub budget_remaining_cents: Option<u64>,
pub budget_remaining_percent: Option<f64>,
}Expand description
Statistics for a workflow
Fields§
§workflow_id: StringWorkflow ID
total_requests: u64Total requests made
total_tokens: u64Total tokens used (prompt + completion)
prompt_tokens: u64Total prompt tokens
completion_tokens: u64Total completion tokens
total_cost_cents: u64Total cost in cents
total_cost_usd: f64Total cost in USD
budget_limit: Option<BudgetLimit>Budget limit (if any)
budget_remaining_cents: Option<u64>Budget remaining (if budget set)
budget_remaining_percent: Option<f64>Budget remaining percentage (0-100, if budget set)
Trait Implementations§
Source§impl Clone for WorkflowStats
impl Clone for WorkflowStats
Source§fn clone(&self) -> WorkflowStats
fn clone(&self) -> WorkflowStats
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 moreAuto Trait Implementations§
impl Freeze for WorkflowStats
impl RefUnwindSafe for WorkflowStats
impl Send for WorkflowStats
impl Sync for WorkflowStats
impl Unpin for WorkflowStats
impl UnwindSafe for WorkflowStats
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