Kizuki
    Preparing search index...

    Function askWithShapeInPrompt

    • Asks for a reply in a fixed shape on a server that does not enforce shapes: the shape goes into the instructions, and Kizuki reads and checks the reply. After a broken reply it asks once more, saying what was wrong; a second broken reply is an error.

      Type Parameters

      • T

      Parameters

      • generate: (system: string, prompt: string) => Promise<string>
      • request: { prompt: string; schema: ZodType<T>; system: string }

      Returns Promise<T>