pub struct AgentUsage {
pub pages: u64,
pub pages_failed: u64,
pub searches: u64,
pub maps: u64,
pub llm_calls: u64,
pub tokens: u64,
pub tokens_estimated: bool,
}Fields§
§pages: u64§pages_failed: u64§searches: u64§maps: u64§llm_calls: u64§tokens: u64§tokens_estimated: bool有的调用服务没报用量,用的是估计值。
Implementations§
Trait Implementations§
Source§impl Clone for AgentUsage
impl Clone for AgentUsage
Source§impl Debug for AgentUsage
impl Debug for AgentUsage
Source§impl Default for AgentUsage
impl Default for AgentUsage
Source§impl<'de> Deserialize<'de> for AgentUsagewhere
AgentUsage: Default,
impl<'de> Deserialize<'de> for AgentUsagewhere
AgentUsage: Default,
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 AgentUsage
Source§impl PartialEq for AgentUsage
impl PartialEq for AgentUsage
Source§impl Serialize for AgentUsage
impl Serialize for AgentUsage
impl StructuralPartialEq for AgentUsage
Auto Trait Implementations§
impl Forget for AgentUsage
impl Freeze for AgentUsage
impl Move for AgentUsage
impl RefUnwindSafe for AgentUsage
impl Send for AgentUsage
impl Sync for AgentUsage
impl Unpin for AgentUsage
impl UnsafeUnpin for AgentUsage
impl UnwindSafe for AgentUsage
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.