Skip to main content

usage_of

Function usage_of 

Source
pub fn usage_of(response: &MessageResponse) -> TokenUsage
Expand description

The TokenUsage a completion records for response: its input and output counts, each narrowed with clamp_tokens. This is the exact usage field a ModelCallCompleted carries.