pub struct LogContent {
pub tool_calls: usize,
pub tool_results: usize,
pub user_text: usize,
pub assistant_text: usize,
}Expand description
The log’s own wire bytes by category — each message counted once, the content the billed split re-sends once per request. The system prompt, the skills section, and the tool definitions ride every request but live in no message, so they have no figure here.
Fields§
§tool_calls: usizeTool-call arguments in assistant messages.
tool_results: usizeTool results in tool messages.
user_text: usizeUser text, the compaction block included.
assistant_text: usizeAssistant text.
Trait Implementations§
Source§impl Clone for LogContent
impl Clone for LogContent
impl Copy for LogContent
Source§impl Debug for LogContent
impl Debug for LogContent
Source§impl Default for LogContent
impl Default for LogContent
Source§impl<'de> Deserialize<'de> for LogContent
impl<'de> Deserialize<'de> for LogContent
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 LogContent
Source§impl PartialEq for LogContent
impl PartialEq for LogContent
Source§impl Serialize for LogContent
impl Serialize for LogContent
impl StructuralPartialEq for LogContent
Auto Trait Implementations§
impl Forget for LogContent
impl Freeze for LogContent
impl RefUnwindSafe for LogContent
impl Send for LogContent
impl Sync for LogContent
impl Unpin for LogContent
impl UnsafeUnpin for LogContent
impl UnwindSafe for LogContent
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