config

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Key = "memory"
	// The agent's own notes, MEMORY.md, and what it knows of the user, USER.md
	MemoryEnabled = Key + ".memory_enabled"
	UserEnabled   = Key + ".user_profile_enabled"
	MemoryLimit   = Key + ".memory_char_limit"
	UserLimit     = Key + ".user_char_limit"
	// Outside service the built-in memory works beside, empty for none
	Service = Key + ".service"
	// Each write of the agent asks the user first, or waits for them when nobody can be asked, and how long such a write waits
	WriteApproval = Key + ".write_approval"
	PendingExpiry = Key + ".pending_expiry"
	// Turns between reviews of the conversation for what to save, 0 for none
	NudgeInterval = Key + ".nudge_interval"
	// What the user is told when a review saved something: on, verbose or off
	Notices = Key + ".notices"
	// Longest the outside service may take to recall for a message, past which the message goes without
	RecallTimeout = Key + ".recall_timeout"
	// A long recall of the outside service is saved to a file the agent reads, the message carrying where
	PrefetchSpill = Key + ".prefetch_spill_enabled"
)
View Source
const (
	NoticesOn      = "on"
	NoticesVerbose = "verbose"
	NoticesOff     = "off"
)

Values of memory.notices

View Source
const (
	RewriteTask    = "memory_query_rewrite"
	RewriteEnabled = "enabled"
)

Helper model task that turns a message into the question memory is searched with, and its setting that turns it on or off, below auxiliary.memory_query_rewrite

View Source
const (
	// Reviews start on their own every so many turns or tool calls
	ReviewEnabled = "enabled"
	// Whether a review waits until the session it reviews stops replying: auto or never
	ReviewDefer = "defer"
	// Longest a held review waits before it starts anyway
	ReviewDeferAge = "defer_max_age_s"
	// Tools a review may call besides the memory and skill tools, file reading and search
	ReviewExtraTools = "extra_tools"
	// Most input tokens one review may send in all, 0 for three quarters of the model's window
	ReviewBudget = "max_input_tokens"
)

Settings of the review task, each below auxiliary.background_review

View Source
const (
	DeferAuto  = "auto"
	DeferNever = "never"
)

Values of the review's defer

View Source
const (
	DefaultMemoryLimit = 2200
	DefaultUserLimit   = 1375
)

Built-in limits of the two files, in characters

View Source
const DefaultRecallTimeout = 8 * time.Second

Longest the outside service recalls for a message when nothing says, alpha's bound on one external prefetch

View Source
const ReviewTask = "background_review"

Helper model task of the reviews of a conversation for what to keep

View Source
const RewriteTimeout = 8

Seconds the rewrite may take when its time limit is not set, alpha's, past which the message itself is the query

Variables

This section is empty.

Functions

func Register

func Register(cfg *config.Config, services func(values *config.Config) []config.Option)

Registers the settings of memory, services the outside services the profile of the settings may pick

func Section

func Section(name string) string

Section of the settings of an outside service, memory.<service>

Types

This section is empty.

Jump to

Keyboard shortcuts

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