Documentation
¶
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.
type XMLParser ¶
XMLParser implements schema.OutputParser[T] for any XML-tagged LLM output.
func NewXMLParser ¶
Click to show internal directories.
Click to hide internal directories.