reader

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 3, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STRATEGY_NONE      = "none"
	STRATEGY_SENTENCE  = "sentence"
	STRATEGY_PARAGRAPH = "paragraph"
	STRATEGY_CHUNK     = "chunk"
)

Variables

This section is empty.

Functions

func New

func New(kind string, chars string, size int, r io.Reader) scanner.Scanner

func Process

func Process(ctx context.Context, agt Agent, req *viper.Viper, r scanner.Scanner, w io.Writer) error

Types

type Agent

type Agent interface {
	PromptOnce(context.Context, *viper.Viper, ...chatter.Opt) ([]byte, error)
}

Jump to

Keyboard shortcuts

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