Skip to content

Type Alias: GbnfJsonEnumSchema ​

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

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

Properties ​

enum ​

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

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


description? ​

ts
readonly optional description: string;

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

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.