#[non_exhaustive]pub struct ItemCostInput {
pub state: Tokens,
pub schema: Tokens,
pub images: u64,
pub image_tokens_each: u64,
pub overhead_tokens: u64,
pub pass_tokens: Option<u64>,
}Expand description
What one item’s provider call is estimated from.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.state: TokensThe item’s state.
schema: TokensThe schema sent with every item (fields or questions).
images: u64How many images the item carries.
image_tokens_each: u64The module’s bound on the tokens one image costs. Required; a module that does not know it states a bound, never zero.
overhead_tokens: u64The module’s bound on its per-request overhead (prompt template, system text). Required; never defaulted to zero.
pass_tokens: Option<u64>The provider’s per-pass token budget, when it splits a schema into
passes; None for a provider that answers in one pass.
Implementations§
Source§impl ItemCostInput
impl ItemCostInput
Trait Implementations§
Source§impl Clone for ItemCostInput
impl Clone for ItemCostInput
impl Copy for ItemCostInput
Source§impl Debug for ItemCostInput
impl Debug for ItemCostInput
impl Eq for ItemCostInput
Source§impl PartialEq for ItemCostInput
impl PartialEq for ItemCostInput
impl StructuralPartialEq for ItemCostInput
Auto Trait Implementations§
impl Freeze for ItemCostInput
impl RefUnwindSafe for ItemCostInput
impl Send for ItemCostInput
impl Sync for ItemCostInput
impl Unpin for ItemCostInput
impl UnsafeUnpin for ItemCostInput
impl UnwindSafe for ItemCostInput
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