WarningLogContext
Namespace: Vercel.AI.Operations
public sealed class WarningLogContextArguments passed to the warning logger.
Inheritance: object
Constructors
Section titled “Constructors”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 |
Properties
Section titled “Properties”public string? Model { get; }Model id.
Value: string
Provider
Section titled “Provider”public string? Provider { get; }Provider id.
Value: string
Warnings
Section titled “Warnings”public IReadOnlyList<OperationWarning> Warnings { get; }Warnings from the call.
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product