#[non_exhaustive]pub enum Frequency {
PerProcess,
PerSession,
PerTurn,
PerToolCall,
PerModelCall,
PerStreamChunk,
}Expand description
How often it fires, to an order of magnitude.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PerProcess
Once per process.
PerSession
Once per session.
PerTurn
Once or twice a turn.
PerToolCall
Once per tool call — tens per turn.
PerModelCall
Once per model request — a few per turn.
PerStreamChunk
Per streamed chunk — thousands per turn.
Implementations§
Trait Implementations§
impl Copy for Frequency
impl Eq for Frequency
impl StructuralPartialEq for Frequency
Auto Trait Implementations§
impl Forget for Frequency
impl Freeze for Frequency
impl Move for Frequency
impl RefUnwindSafe for Frequency
impl Send for Frequency
impl Sync for Frequency
impl Unpin for Frequency
impl UnsafeUnpin for Frequency
impl UnwindSafe for Frequency
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