outputparser

package
v0.0.45 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package outputparser provides utilities for parsing and processing the output generated by LLMs and other tools.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FencedCodeBlock added in v0.0.11

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

func NewFencedCodeBlock added in v0.0.11

func NewFencedCodeBlock(fence string) *FencedCodeBlock

func (*FencedCodeBlock) GetFormatInstructions added in v0.0.11

func (p *FencedCodeBlock) GetFormatInstructions() (string, error)

func (*FencedCodeBlock) Parse added in v0.0.11

func (p *FencedCodeBlock) Parse(text string) (any, error)

func (*FencedCodeBlock) ParseResult added in v0.0.22

func (p *FencedCodeBlock) ParseResult(result schema.Generation) (any, error)

func (*FencedCodeBlock) ParseWithPrompt added in v0.0.11

func (p *FencedCodeBlock) ParseWithPrompt(text string, prompt schema.PromptValue) (any, error)

func (*FencedCodeBlock) Type added in v0.0.11

func (p *FencedCodeBlock) Type() string

type NoOpt added in v0.0.22

type NoOpt struct{}

func NewNoOpt added in v0.0.22

func NewNoOpt() *NoOpt

func (*NoOpt) GetFormatInstructions added in v0.0.22

func (p *NoOpt) GetFormatInstructions() (string, error)

func (*NoOpt) Parse added in v0.0.22

func (p *NoOpt) Parse(text string) (any, error)

func (*NoOpt) ParseResult added in v0.0.22

func (p *NoOpt) ParseResult(result schema.Generation) (any, error)

func (*NoOpt) ParseWithPrompt added in v0.0.22

func (p *NoOpt) ParseWithPrompt(text string, prompt schema.PromptValue) (any, error)

func (*NoOpt) Type added in v0.0.22

func (p *NoOpt) Type() string

Jump to

Keyboard shortcuts

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