Returns a markdown code snippet with a JSON object formatted according to the schema.
Optional
options: JsonMarkdownFormatInstructionsOptionsOptional. The options for formatting the instructions
A markdown code snippet with a JSON object formatted according to the schema.
Static
fromCreates a new StructuredOutputParser from a set of names and descriptions.
An object where each key is a name and each value is a description
A new instance of StructuredOutputParser.
Static
fromCreates a new StructuredOutputParser from a Zod schema.
The Zod schema which the output should match
A new instance of StructuredOutputParser.
A specific type of
StructuredOutputParser
that parses JSON data formatted as a markdown code snippet.