LanguageModelResponseMetadata
Namespace: Vercel.AI
public class LanguageModelResponseMetadataMetadata for a language model response, as the finish-step part carries it.
Maps to Omit<LanguageModelResponseMetadata, 'messages' | 'body'>.
Inheritance: object
Derived: StepResponse
Constructors
Section titled “Constructors”LanguageModelResponseMetadata(string, DateTimeOffset, string, IReadOnlyDictionary<string, string>?)
Section titled “LanguageModelResponseMetadata(string, DateTimeOffset, string, IReadOnlyDictionary<string, string>?)”public LanguageModelResponseMetadata(string id, DateTimeOffset timestamp, string modelId, IReadOnlyDictionary<string, string>? headers = null)Creates response metadata.
Parameters
| Name | Type | Description |
|---|---|---|
id |
string | |
timestamp |
DateTimeOffset | |
modelId |
string | |
headers |
IReadOnlyDictionary<string, string> |
Properties
Section titled “Properties”Headers
Section titled “Headers”public IReadOnlyDictionary<string, string>? Headers { get; }Response headers. <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> for providers that do not use HTTP.
Value: IReadOnlyDictionary<string, string>
public string Id { get; }ID for the generated response.
Value: string
ModelId
Section titled “ModelId”public string ModelId { get; }The ID of the response model that was used to generate the response.
Value: string
Timestamp
Section titled “Timestamp”public DateTimeOffset Timestamp { get; }Timestamp for the start of the generated response.
Value: DateTimeOffset
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product