pub struct SessionCostGuardrailInput {
pub largest_prompt_turn_tokens: u64,
pub largest_prompt_turn_label: Option<String>,
pub prompt_tokens: u64,
pub cached_input_ratio: Option<f64>,
pub fresh_restart_occurrences: usize,
pub auto_trigger_timeout_occurrences: usize,
pub ctrl_d_restart_loop_occurrences: usize,
pub noop_closeout_occurrences: usize,
pub max_restart_count: Option<usize>,
}Fields§
§largest_prompt_turn_tokens: u64§largest_prompt_turn_label: Option<String>§prompt_tokens: u64§cached_input_ratio: Option<f64>§fresh_restart_occurrences: usize§auto_trigger_timeout_occurrences: usize§ctrl_d_restart_loop_occurrences: usize§noop_closeout_occurrences: usize§max_restart_count: Option<usize>Trait Implementations§
Source§impl Clone for SessionCostGuardrailInput
impl Clone for SessionCostGuardrailInput
Source§fn clone(&self) -> SessionCostGuardrailInput
fn clone(&self) -> SessionCostGuardrailInput
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 SessionCostGuardrailInput
impl Debug for SessionCostGuardrailInput
Source§impl Default for SessionCostGuardrailInput
impl Default for SessionCostGuardrailInput
Source§fn default() -> SessionCostGuardrailInput
fn default() -> SessionCostGuardrailInput
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SessionCostGuardrailInput
impl RefUnwindSafe for SessionCostGuardrailInput
impl Send for SessionCostGuardrailInput
impl Sync for SessionCostGuardrailInput
impl Unpin for SessionCostGuardrailInput
impl UnsafeUnpin for SessionCostGuardrailInput
impl UnwindSafe for SessionCostGuardrailInput
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