pub struct ResponseBudgetConfig {
pub max_ai_credits: Option<f64>,
pub max_model_iterations: Option<i64>,
}Expand description
Optional response budget limits.
Fields§
§max_ai_credits: Option<f64>Maximum AI Credits allowed while responding to one top-level user message.
max_model_iterations: Option<i64>Maximum model-call iterations allowed while responding to one top-level user message.
Trait Implementations§
Source§impl Clone for ResponseBudgetConfig
impl Clone for ResponseBudgetConfig
Source§fn clone(&self) -> ResponseBudgetConfig
fn clone(&self) -> ResponseBudgetConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ResponseBudgetConfig
impl Debug for ResponseBudgetConfig
Source§impl Default for ResponseBudgetConfig
impl Default for ResponseBudgetConfig
Source§fn default() -> ResponseBudgetConfig
fn default() -> ResponseBudgetConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResponseBudgetConfig
impl<'de> Deserialize<'de> for ResponseBudgetConfig
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 ResponseBudgetConfig
impl RefUnwindSafe for ResponseBudgetConfig
impl Send for ResponseBudgetConfig
impl Sync for ResponseBudgetConfig
impl Unpin for ResponseBudgetConfig
impl UnsafeUnpin for ResponseBudgetConfig
impl UnwindSafe for ResponseBudgetConfig
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