Skip to content

LanguageModelRequestMetadata

Namespace: Vercel.AI

public sealed class LanguageModelRequestMetadata

Metadata for a language model request. Maps to LanguageModelRequestMetadata.

Inheritance: object

View source

public JsonElement? Body { get; init; }

Request HTTP body that was sent to the provider API.

Value: JsonElement?

View source

public static LanguageModelRequestMetadata Empty { get; }

Request metadata with no messages and no body.

Value: LanguageModelRequestMetadata

View source

public IReadOnlyList<ModelMessage>? Messages { get; init; }

The input messages that were sent to the model for this step.

Value: IReadOnlyList<ModelMessage>

View source

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