persistence

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PersistenceManager

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

PersistenceManager handles loading and saving persistence files

func NewPersistenceManager

func NewPersistenceManager(baseDir string) (*PersistenceManager, error)

NewPersistenceManager creates a new persistence manager If baseDir is empty, uses the current working directory

func (*PersistenceManager) BuildSystemPrompt

func (pm *PersistenceManager) BuildSystemPrompt(basePrompt string) string

BuildSystemPrompt constructs a system prompt from persistence files

func (*PersistenceManager) GetBaseDir

func (pm *PersistenceManager) GetBaseDir() string

GetBaseDir returns the base directory

func (*PersistenceManager) GetLocale

func (pm *PersistenceManager) GetLocale() string

GetLocale returns the current locale setting

func (*PersistenceManager) SetLocale

func (pm *PersistenceManager) SetLocale(locale string) error

SetLocale sets the locale for internationalized prompt loading Only "en" and "zh" locales are currently supported

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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