Skip to content

LogWarningsOptions

Namespace: Vercel.AI.Util

public sealed class LogWarningsOptions

Arguments passed to Log(LogWarningsOptions).

Inheritance: object

View source

LogWarningsOptions(IReadOnlyList<ModelWarning>?, string?, string?)

Section titled “LogWarningsOptions(IReadOnlyList<ModelWarning>?, string?, string?)”
public LogWarningsOptions(IReadOnlyList<ModelWarning>? warnings, string? provider = null, string? model = null)

Creates the options.

Parameters

Name Type Description
warnings IReadOnlyList<ModelWarning>
provider string
model string

View source

public string? Model { get; }

Model id, when the call was scoped to one.

Value: string

View source

public string? Provider { get; }

Provider id, when the call was scoped to one.

Value: string

View source

public IReadOnlyList<ModelWarning> Warnings { get; }

Warnings returned by the provider.

Value: IReadOnlyList<ModelWarning>

View source

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