pub struct BackendBudgets {
pub max_tokens: usize,
pub max_iterations: usize,
pub latency_ceiling_ms: u64,
pub cost_ceiling_microdollars: u64,
}Expand description
Resource budgets for the invocation.
Fields§
§max_tokens: usizeMaximum tokens to generate
max_iterations: usizeMaximum iterations (for multi-step)
latency_ceiling_ms: u64Latency ceiling in milliseconds (0 = no limit)
cost_ceiling_microdollars: u64Maximum cost in microdollars (0 = no limit)
Trait Implementations§
Source§impl Clone for BackendBudgets
impl Clone for BackendBudgets
Source§fn clone(&self) -> BackendBudgets
fn clone(&self) -> BackendBudgets
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 moreSource§impl Debug for BackendBudgets
impl Debug for BackendBudgets
Source§impl Default for BackendBudgets
impl Default for BackendBudgets
Source§impl<'de> Deserialize<'de> for BackendBudgets
impl<'de> Deserialize<'de> for BackendBudgets
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
Auto Trait Implementations§
impl Freeze for BackendBudgets
impl RefUnwindSafe for BackendBudgets
impl Send for BackendBudgets
impl Sync for BackendBudgets
impl Unpin for BackendBudgets
impl UnwindSafe for BackendBudgets
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