Documentation
¶
Overview ¶
Package output provides parsers for structured LLM output.
Contains JSON and XML parsers that handle common LLM output artifacts like markdown code blocks, conversational text, and malformed markup.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONParser ¶
type JSONParser[T any] struct{}
JSONParser implements schema.OutputParser[T] for JSON-formatted LLM output. It is designed to be robust against common LLM artifacts like markdown fences and conversational preambles/postambles.
func NewJSONParser ¶
func NewJSONParser[T any]() *JSONParser[T]
NewJSONParser creates a new JSON parser for the specified type.
Click to show internal directories.
Click to hide internal directories.