Reference/Autoevals library/Typescript/Modules

Namespace: ValidJSON

A binary scorer that evaluates the validity of JSON output, optionally validating against a JSON Schema definition (see https://json-schema.org/learn/getting-started-step-by-step#create).

Functions

partial

partial<T>(args): Scorer<string, Omit<{ schema?: any }, T> & Partial<Pick<{ schema?: any }, T>>>

Type parameters

NameType
Textends "schema"

Parameters

NameType
args{ [K in "schema"]: Object[K] }

Returns

Scorer<string, Omit<{ schema?: any }, T> & Partial<Pick<{ schema?: any }, T>>>

Defined in

autoevals/js/partial.ts:5

On this page