Documentation
    Preparing search index...
    • Create a reusable validator from LLM parameters schema.

      When validation fails, format the failure with stringify for LLM auto-correction feedback.

      Parameters

      • parameters: ILlmSchema.IParameters

        LLM function parameters schema

      • Optionalequals: boolean

        If true, reject extraneous properties not defined in the schema. Otherwise, extra properties are ignored.

      Returns (value: unknown) => IValidation<unknown>

      Validator function that checks data against the schema