agent

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 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,
	sessionID string,
) *Agent

func (*Agent) Chat

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

func (*Agent) GetTokenSummary added in v0.30.0

func (agent *Agent) GetTokenSummary() string

GetTokenSummary returns a compact string showing token usage for the last request

func (*Agent) PrintTokenStats

func (agent *Agent) PrintTokenStats()

func (*Agent) RefreshLLMClient

func (agent *Agent) RefreshLLMClient()

RefreshLLMClient reloads the LLM client configuration from runner vars. This allows config changes to take effect without restarting the shell.

func (*Agent) ResetChat

func (agent *Agent) ResetChat()

func (*Agent) UpdateContext

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