Skip to content

BatchModelUsage

Namespace: Vercel.AI.Operations

public sealed class BatchModelUsage

Provider token usage before it is reshaped.

Inheritance: object

View source

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?

View source

public int? CacheRead { get; }

Cache-read tokens.

Value: int?

View source

public int? CacheWrite { get; }

Cache-write tokens.

Value: int?

View source

public int? InputTotal { get; }

Input total.

Value: int?

View source

public int? NoCache { get; }

Uncached input tokens.

Value: int?

View source

public int? OutputTotal { get; }

Output total.

Value: int?

View source

public JsonElement? Raw { get; }

Raw usage.

Value: JsonElement?

View source

public int? Reasoning { get; }

Reasoning tokens.

Value: int?

View source

public int? Text { get; }

Text tokens.

Value: int?

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product