ErrorMarkerBag
Namespace: Vercel.AI.Util
public sealed class ErrorMarkerBag : IErrorMarkersPlain marker bag used to recognize an error shape copied across packages.
Inheritance: object
Implements: IErrorMarkers
Constructors
Section titled “Constructors”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>[] |
ErrorMarkerBag(string, bool)
Section titled “ErrorMarkerBag(string, bool)”public ErrorMarkerBag(string marker, bool value)Creates a bag with one marker.
Parameters
| Name | Type | Description |
|---|---|---|
marker |
string | |
value |
bool |
Methods
Section titled “Methods”HasMarker(string)
Section titled “HasMarker(string)”public bool HasMarker(string marker)Returns whether <code class=“paramref”>marker</code> is set to true.
Parameters
| Name | Type | Description |
|---|---|---|
marker |
string |
Returns: bool
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product