pub struct Pricing {
pub input_per_mtok: f64,
pub output_per_mtok: f64,
}Expand description
Per-token pricing, in US dollars per million tokens. Required by the agent builder whenever a cost budget is declared.
Fields§
§input_per_mtok: f64Dollars per million input tokens.
output_per_mtok: f64Dollars per million output tokens.
Implementations§
Trait Implementations§
impl Copy for Pricing
impl StructuralPartialEq for Pricing
Auto Trait Implementations§
impl Freeze for Pricing
impl RefUnwindSafe for Pricing
impl Send for Pricing
impl Sync for Pricing
impl Unpin for Pricing
impl UnsafeUnpin for Pricing
impl UnwindSafe for Pricing
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