parser

package
v1.17.70 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: GPL-3.0 Imports: 10 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
}

func NewParser

func NewParser(opts ...ParserOption) *Parser

func (*Parser) Parse

func (p *Parser) Parse(prompt, context string, output any) (time.Duration, int, error)

func (*Parser) ParseChat added in v1.16.40

func (p *Parser) ParseChat(messages []models.AIMessage, output any) error

type ParserOption

type ParserOption func(*Parser)

func WithAIClient

func WithAIClient(client *ai.KarmaAI) ParserOption

func WithDebug added in v1.7.65

func WithDebug(debug bool) ParserOption

func WithMaxRetries

func WithMaxRetries(retries int) ParserOption

Jump to

Keyboard shortcuts

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