agent

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2025 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

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

func NewAgent

func NewAgent(
	runner *interp.Runner,
	historyManager *history.HistoryManager,
	logger *zap.Logger,
) *Agent

func (*Agent) Chat

func (agent *Agent) Chat(prompt string) (<-chan string, error)

func (*Agent) PrintTokenStats added in v0.18.0

func (agent *Agent) PrintTokenStats()

func (*Agent) ResetChat added in v0.18.0

func (agent *Agent) ResetChat()

func (*Agent) UpdateContext added in v0.9.0

func (agent *Agent) UpdateContext(context *map[string]string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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