Skip to content

PartialJsonResult

Namespace: Vercel.AI.Util

public sealed class PartialJsonResult

Outcome of Parse(string).

Inheritance: object

View source

public PartialJsonResult(JsonNode? value, string state)

Creates a parse outcome.

Parameters

Name Type Description
value JsonNode
state string

View source

public string State { get; }

undefined-input, successful-parse, repaired-parse, or failed-parse.

Value: string

View source

public JsonNode? Value { get; }

Parsed value, or null when parsing failed or the input was undefined.

Value: JsonNode

View source

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