Versions in this module Expand all Collapse all v0 v0.1.1 Mar 2, 2024 v0.1.0 Feb 29, 2024 Changes in this version + type BooleanParser struct + FalseStr string + TrueStr string + func NewBooleanParser() BooleanParser + func (p BooleanParser) GetFormatInstructions() string + func (p BooleanParser) Parse(text string) (any, error) + func (p BooleanParser) ParseWithPrompt(text string, _ schema.PromptValue) (any, error) + func (p BooleanParser) Type() string + type Combining struct + Parsers []schema.OutputParser[any] + func NewCombining(parsers []schema.OutputParser[any]) Combining + func (p Combining) GetFormatInstructions() string + func (p Combining) Parse(text string) (any, error) + func (p Combining) ParseWithPrompt(text string, _ schema.PromptValue) (any, error) + func (p Combining) Type() string + type CommaSeparatedList struct + func NewCommaSeparatedList() CommaSeparatedList + func (p CommaSeparatedList) GetFormatInstructions() string + func (p CommaSeparatedList) Parse(text string) ([]string, error) + func (p CommaSeparatedList) ParseWithPrompt(text string, _ schema.PromptValue) ([]string, error) + func (p CommaSeparatedList) Type() string + type ParseError struct + Reason string + Text string + func (e ParseError) Error() string + type RegexDict struct + NoUpdateValue string + OutputKeyToFormat map[string]string + func NewRegexDict(outputKeyToFormat map[string]string, noUpdateValue string) RegexDict + func (p RegexDict) GetFormatInstructions() string + func (p RegexDict) Parse(text string) (any, error) + func (p RegexDict) ParseWithPrompt(text string, _ schema.PromptValue) (any, error) + func (p RegexDict) Type() string + type RegexParser struct + Expression *regexp.Regexp + OutputKeys []string + func NewRegexParser(expressionStr string) RegexParser + func (p RegexParser) GetFormatInstructions() string + func (p RegexParser) Parse(text string) (any, error) + func (p RegexParser) ParseWithPrompt(text string, _ schema.PromptValue) (any, error) + func (p RegexParser) Type() string + type ResponseSchema struct + Description string + Name string + type Simple struct + func NewSimple() Simple + func (p Simple) GetFormatInstructions() string + func (p Simple) Parse(text string) (any, error) + func (p Simple) ParseWithPrompt(text string, _ schema.PromptValue) (any, error) + func (p Simple) Type() string + type Structured struct + ResponseSchemas []ResponseSchema + func NewStructured(schema []ResponseSchema) Structured + func (p Structured) GetFormatInstructions() string + func (p Structured) Parse(text string) (any, error) + func (p Structured) ParseWithPrompt(text string, _ schema.PromptValue) (any, error) + func (p Structured) Type() string