Skip to content

ErrorMarkerBag

Namespace: Vercel.AI.Util

public sealed class ErrorMarkerBag : IErrorMarkers

Plain marker bag used to recognize an error shape copied across packages.

Inheritance: object

Implements: IErrorMarkers

View source

ErrorMarkerBag(params KeyValuePair<string, bool>[])

Section titled “ErrorMarkerBag(params KeyValuePair<string, bool>[])”
public ErrorMarkerBag(params KeyValuePair<string, bool>[] markers)

Creates a bag with the given marker values.

Parameters

Name Type Description
markers KeyValuePair<string, bool>[]

View source

public ErrorMarkerBag(string marker, bool value)

Creates a bag with one marker.

Parameters

Name Type Description
marker string
value bool

View source

public bool HasMarker(string marker)

Returns whether <code class=“paramref”>marker</code> is set to true.

Parameters

Name Type Description
marker string

Returns: bool

View source

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