Skip to content

Type Alias: GbnfJsonEnumSchema

ts
type GbnfJsonEnumSchema = {
  enum: readonly (string | number | boolean | null)[];
  description: string;
};

Defined in: utils/gbnfJson/types.ts:25

Type declaration

enum

ts
readonly enum: readonly (string | number | boolean | null)[];

description?

ts
readonly optional description: string;

A description of what you expect the model to set this value to.

Only passed to the model when using function calling, and has no effect when using JSON Schema grammar directly.