pub struct ContextAgent {
pub agent_type: String,
pub source: String,
pub tokens: u64,
}Expand description
An agent definition’s token contribution, in ContextUsage::agents.
Fields§
§agent_type: String§source: StringRaw source identifier, e.g. "projectSettings", "plugin".
tokens: u64Trait Implementations§
Source§impl Clone for ContextAgent
impl Clone for ContextAgent
Source§fn clone(&self) -> ContextAgent
fn clone(&self) -> ContextAgent
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 ContextAgent
impl Debug for ContextAgent
Source§impl<'de> Deserialize<'de> for ContextAgent
impl<'de> Deserialize<'de> for ContextAgent
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
Source§impl PartialEq for ContextAgent
impl PartialEq for ContextAgent
Source§impl Serialize for ContextAgent
impl Serialize for ContextAgent
impl StructuralPartialEq for ContextAgent
Auto Trait Implementations§
impl Freeze for ContextAgent
impl RefUnwindSafe for ContextAgent
impl Send for ContextAgent
impl Sync for ContextAgent
impl Unpin for ContextAgent
impl UnsafeUnpin for ContextAgent
impl UnwindSafe for ContextAgent
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