Version: NextOn this pagePydanticAiUsageStats A lightweight accumulator of token usage across extraction calls.Index MethodsaddPropertiesinput_tokensoutput_tokensrequeststotal_tokensMethods add add(usage): NoneAccumulate the usage reported by a single run.Parametersusage: RunUsageReturns NoneProperties input_tokensinput_tokens: intoutput_tokensoutput_tokens: intrequestsrequests: inttotal_tokenstotal_tokens: intThe sum of input and output tokens.
A lightweight accumulator of token usage across extraction calls.