Functions

buildDefaultInstruction

Function: buildDefaultInstruction()

buildDefaultInstruction(parser): string

Defined in: src/core/outputSchema.ts:125

Default instruction template — used when opts.instruction is not provided. Concatenates the parser's .description (if present) so Zod schemas authored with .describe('...') propagate naturally.

Parameters

parser

OutputSchemaParser<unknown>

Returns

string

On this page