#[non_exhaustive]pub struct BudgetReport {
pub model_calls: u32,
pub prompt_tokens: u64,
pub max_depth: u8,
pub exhausted: Option<String>,
}Expand description
What a turn’s model calls spent, and which bound stopped them if one did.
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.model_calls: u32Calls reserved.
prompt_tokens: u64Prompt tokens the providers reported.
max_depth: u8The longest chain of dependent calls.
exhausted: Option<String>The bound that stopped the turn’s model calls, when one did.
Trait Implementations§
Source§impl Clone for BudgetReport
impl Clone for BudgetReport
Source§impl Debug for BudgetReport
impl Debug for BudgetReport
Source§impl Default for BudgetReport
impl Default for BudgetReport
Source§impl<'de> Deserialize<'de> for BudgetReport
impl<'de> Deserialize<'de> for BudgetReport
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
impl Eq for BudgetReport
Source§impl PartialEq for BudgetReport
impl PartialEq for BudgetReport
Source§impl Serialize for BudgetReport
impl Serialize for BudgetReport
impl StructuralPartialEq for BudgetReport
Auto Trait Implementations§
impl Freeze for BudgetReport
impl RefUnwindSafe for BudgetReport
impl Send for BudgetReport
impl Sync for BudgetReport
impl Unpin for BudgetReport
impl UnsafeUnpin for BudgetReport
impl UnwindSafe for BudgetReport
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.