agent

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const CONTEXT_WINDOW int64 = 128_000

const DEBUG = false

View Source
const MaxIterations = 25
View Source
const UPDATE_SUMMARIZATION_PROMPT = `` /* 1258-byte string literal not displayed */

Variables

View Source
var COMPACTION_PROMPT = `` /* 879-byte string literal not displayed */

Functions

func CompactMemory added in v0.1.13

func CompactMemory(chats []llmModel.Chat) (models.StoredMessageData, error)

func ReadAgentsMd added in v0.1.1

func ReadAgentsMd(dir string) (string, error)

Types

type Agent

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

func New

func New(db *gorm.DB) *Agent

func (*Agent) Run

func (a *Agent) Run(ctx context.Context, model config.ResModel, prompt string, b64_imgs [][]byte, session_id string, mode string) <-chan models.StoredMessageData

Jump to

Keyboard shortcuts

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