pub struct AgentHistoryEntry {
pub unit_id: String,
pub title: String,
pub attempt: u32,
pub success: bool,
pub duration_secs: u64,
pub tokens: u64,
pub cost: f64,
pub tool_count: usize,
pub error: Option<String>,
pub model: String,
pub timestamp: String,
}Fields§
§unit_id: String§title: String§attempt: u32§success: bool§duration_secs: u64§tokens: u64§cost: f64§tool_count: usize§error: Option<String>§model: String§timestamp: StringTrait Implementations§
Source§impl Debug for AgentHistoryEntry
impl Debug for AgentHistoryEntry
Source§impl Serialize for AgentHistoryEntry
impl Serialize for AgentHistoryEntry
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for AgentHistoryEntry
impl RefUnwindSafe for AgentHistoryEntry
impl Send for AgentHistoryEntry
impl Sync for AgentHistoryEntry
impl Unpin for AgentHistoryEntry
impl UnsafeUnpin for AgentHistoryEntry
impl UnwindSafe for AgentHistoryEntry
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more