Skip to content

WarningLogContext

Namespace: Vercel.AI.Operations

public sealed class WarningLogContext

Arguments passed to the warning logger.

Inheritance: object

View source

WarningLogContext(IReadOnlyList<OperationWarning>, string?, string?)

Section titled “WarningLogContext(IReadOnlyList<OperationWarning>, string?, string?)”
public WarningLogContext(IReadOnlyList<OperationWarning> warnings, string? provider, string? model)

Creates a log context.

Parameters

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

View source

public string? Model { get; }

Model id.

Value: string

View source

public string? Provider { get; }

Provider id.

Value: string

View source

public IReadOnlyList<OperationWarning> Warnings { get; }

Warnings from the call.

Value: IReadOnlyList<OperationWarning>

View source

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