pub struct ProviderRequestSummary {Show 13 fields
pub iteration: usize,
pub model_id: Option<String>,
pub temperature: Option<f32>,
pub max_output_tokens: Option<u32>,
pub system_prompt_bytes: usize,
pub system_prompt_chars: usize,
pub message_count: usize,
pub message_counts: ProviderMessageCounts,
pub content_counts: ProviderContentCounts,
pub tool_count: usize,
pub tool_names: Vec<String>,
pub tool_schema_bytes: usize,
pub last_message_role: Option<String>,
}Expand description
Redacted, durable metadata for one provider request.
This deliberately excludes free-form prompt, message, image URL, tool-description, and schema content. It keeps the dimensions needed to debug “what shape did we send?” without leaking user text or hidden/private reasoning.
Fields§
§iteration: usize§model_id: Option<String>§temperature: Option<f32>§max_output_tokens: Option<u32>§system_prompt_bytes: usize§system_prompt_chars: usize§message_count: usize§message_counts: ProviderMessageCounts§content_counts: ProviderContentCounts§tool_count: usize§tool_names: Vec<String>§tool_schema_bytes: usize§last_message_role: Option<String>Implementations§
Source§impl ProviderRequestSummary
impl ProviderRequestSummary
pub fn from_parts( iteration: usize, model_id: Option<&str>, temperature: Option<f32>, max_output_tokens: Option<u32>, system_prompt: &str, messages: &[AgentMessage], tools: &[ToolSchema], ) -> Self
Trait Implementations§
Source§impl Clone for ProviderRequestSummary
impl Clone for ProviderRequestSummary
Source§fn clone(&self) -> ProviderRequestSummary
fn clone(&self) -> ProviderRequestSummary
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 ProviderRequestSummary
impl Debug for ProviderRequestSummary
Source§impl<'de> Deserialize<'de> for ProviderRequestSummary
impl<'de> Deserialize<'de> for ProviderRequestSummary
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 ProviderRequestSummary
impl PartialEq for ProviderRequestSummary
Source§fn eq(&self, other: &ProviderRequestSummary) -> bool
fn eq(&self, other: &ProviderRequestSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProviderRequestSummary
impl Serialize for ProviderRequestSummary
impl StructuralPartialEq for ProviderRequestSummary
Auto Trait Implementations§
impl Freeze for ProviderRequestSummary
impl RefUnwindSafe for ProviderRequestSummary
impl Send for ProviderRequestSummary
impl Sync for ProviderRequestSummary
impl Unpin for ProviderRequestSummary
impl UnsafeUnpin for ProviderRequestSummary
impl UnwindSafe for ProviderRequestSummary
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