Skip to content

Interface: PartialParseResult

@providerprotocol/ai


@providerprotocol/ai / utils / PartialParseResult

Defined in: src/utils/partial-json.ts:16

Result of parsing partial JSON.

T = unknown

The expected type of the parsed value

isComplete: boolean

Defined in: src/utils/partial-json.ts:20

Whether the JSON was complete and valid


value: T | undefined

Defined in: src/utils/partial-json.ts:18

The parsed value, or undefined if parsing failed