pub enum LimitType {
TotalTokens {
used: u64,
limit: u64,
},
PromptTokens {
used: u64,
limit: u64,
},
CompletionTokens {
used: u64,
limit: u64,
},
LlmCalls {
used: u64,
limit: u64,
},
SearchCalls {
used: u64,
limit: u64,
},
FetchCalls {
used: u64,
limit: u64,
},
WebbrowserCalls {
used: u64,
limit: u64,
},
CustomToolCalls {
used: u64,
limit: u64,
},
ToolCalls {
used: u64,
limit: u64,
},
}Expand description
Type of limit that was exceeded.
Variants§
TotalTokens
Total tokens limit exceeded.
PromptTokens
Prompt tokens limit exceeded.
CompletionTokens
Completion tokens limit exceeded.
LlmCalls
LLM calls limit exceeded.
SearchCalls
Search calls limit exceeded.
FetchCalls
Fetch calls limit exceeded.
WebbrowserCalls
Web browser calls limit exceeded.
CustomToolCalls
Custom tool calls limit exceeded.
ToolCalls
Tool calls limit exceeded.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LimitType
impl<'de> Deserialize<'de> for LimitType
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 LimitType
impl StructuralPartialEq for LimitType
Auto Trait Implementations§
impl Freeze for LimitType
impl RefUnwindSafe for LimitType
impl Send for LimitType
impl Sync for LimitType
impl Unpin for LimitType
impl UnsafeUnpin for LimitType
impl UnwindSafe for LimitType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.