service

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prompter

type Prompter struct {
	*agent.Automata[*viper.Viper, []byte]
	// contains filtered or unexported fields
}

func NewPrompter

func NewPrompter(llm chatter.Chatter, c *viper.Viper, maxEpoch int) (*Prompter, error)

type Worker

type Worker struct {
	*agent.Worker[*viper.Viper]
}

func NewWorker

func NewWorker(llm chatter.Chatter, c *viper.Viper, workdir string, maxEpoch int) (w *Worker, err error)

func (*Worker) Prompt

func (w *Worker) Prompt(ctx context.Context, input *viper.Viper, opt ...chatter.Opt) ([]byte, error)

func (*Worker) PromptOnce

func (w *Worker) PromptOnce(ctx context.Context, input *viper.Viper, opt ...chatter.Opt) ([]byte, error)

Jump to

Keyboard shortcuts

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