BatchModelUsage
Namespace: Vercel.AI.Operations
public sealed class BatchModelUsageProvider token usage before it is reshaped.
Inheritance: object
Constructors
Section titled “Constructors”BatchModelUsage(int?, int?, int?, int?, int?, int?, int?, JsonElement?)
Section titled “BatchModelUsage(int?, int?, int?, int?, int?, int?, int?, JsonElement?)”public BatchModelUsage(int? inputTotal = null, int? noCache = null, int? cacheRead = null, int? cacheWrite = null, int? outputTotal = null, int? text = null, int? reasoning = null, JsonElement? raw = null)Creates provider usage.
Parameters
| Name | Type | Description |
|---|---|---|
inputTotal |
int? | |
noCache |
int? | |
cacheRead |
int? | |
cacheWrite |
int? | |
outputTotal |
int? | |
text |
int? | |
reasoning |
int? | |
raw |
JsonElement? |
Properties
Section titled “Properties”CacheRead
Section titled “CacheRead”public int? CacheRead { get; }Cache-read tokens.
Value: int?
CacheWrite
Section titled “CacheWrite”public int? CacheWrite { get; }Cache-write tokens.
Value: int?
InputTotal
Section titled “InputTotal”public int? InputTotal { get; }Input total.
Value: int?
NoCache
Section titled “NoCache”public int? NoCache { get; }Uncached input tokens.
Value: int?
OutputTotal
Section titled “OutputTotal”public int? OutputTotal { get; }Output total.
Value: int?
public JsonElement? Raw { get; }Raw usage.
Value: JsonElement?
Reasoning
Section titled “Reasoning”public int? Reasoning { get; }Reasoning tokens.
Value: int?
public int? Text { get; }Text tokens.
Value: int?
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product