parser

package
v0.0.0-...-14e3c9d Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAvailableParsers

func GetAvailableParsers() []string

func GetParserDescription

func GetParserDescription(parserType string) string

Types

type ActionParser

type ActionParser struct{}

func NewActionParser

func NewActionParser() *ActionParser

func (*ActionParser) Parse

func (p *ActionParser) Parse(modelOutput map[string]interface{}, availableCommands []*tools.Command) (string, string, error)

type FunctionCallingParser

type FunctionCallingParser struct{}

func NewFunctionCallingParser

func NewFunctionCallingParser() *FunctionCallingParser

func (*FunctionCallingParser) Parse

func (p *FunctionCallingParser) Parse(modelOutput map[string]interface{}, availableCommands []*tools.Command) (string, string, error)

type Parser

type Parser interface {
	Parse(modelOutput map[string]interface{}, availableCommands []*tools.Command) (thought string, action string, err error)
}

func ParserFactory

func ParserFactory(parserType string) Parser

type ThoughtActionParser

type ThoughtActionParser struct{}

func NewThoughtActionParser

func NewThoughtActionParser() *ThoughtActionParser

func (*ThoughtActionParser) Parse

func (p *ThoughtActionParser) Parse(modelOutput map[string]interface{}, availableCommands []*tools.Command) (string, string, error)

type XMLThoughtActionParser

type XMLThoughtActionParser struct{}

func NewXMLThoughtActionParser

func NewXMLThoughtActionParser() *XMLThoughtActionParser

func (*XMLThoughtActionParser) Parse

func (p *XMLThoughtActionParser) Parse(modelOutput map[string]interface{}, availableCommands []*tools.Command) (string, string, error)

Jump to

Keyboard shortcuts

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