boolparser

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

Parser is an output parser used to parse the output of an LLM as a boolean.

func New

func New() Parser

New returns a bool Parser.

func (Parser) FormatInstructions

func (p Parser) FormatInstructions() string

FormatInstructions returns instructions on the expected output format.

func (Parser) Parse

func (p Parser) Parse(text string) (any, error)

Parse parses the output of an LLM into a map of strings.

func (Parser) Type

func (p Parser) Type() string

Type returns the type of the parser.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL