pub struct OutputSummary {
pub stop_reason: ModelStopReason,
pub usage: Option<ModelUsage>,
pub tool_call_count: usize,
pub response_text_bytes: usize,
}Expand description
Summary of the model output that closed a round, recorded before any tool dispatch.
Fields§
§stop_reason: ModelStopReasonThe model’s stop reason (EndTurn, ToolUse, MaxTokens, Refusal).
usage: Option<ModelUsage>Token usage reported by the gateway, when the provider supplied it.
tool_call_count: usizeNumber of tool calls in the model’s response payload.
response_text_bytes: usizeByte length of the response text.
Trait Implementations§
Source§impl Clone for OutputSummary
impl Clone for OutputSummary
Source§fn clone(&self) -> OutputSummary
fn clone(&self) -> OutputSummary
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 OutputSummary
impl Debug for OutputSummary
Source§impl<'de> Deserialize<'de> for OutputSummary
impl<'de> Deserialize<'de> for OutputSummary
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
Auto Trait Implementations§
impl Freeze for OutputSummary
impl RefUnwindSafe for OutputSummary
impl Send for OutputSummary
impl Sync for OutputSummary
impl Unpin for OutputSummary
impl UnsafeUnpin for OutputSummary
impl UnwindSafe for OutputSummary
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