Documentation
¶
Index ¶
Constants ¶
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" )
const ( NoticesOn = "on" NoticesVerbose = "verbose" NoticesOff = "off" )
Values of memory.notices
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
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
const ( DeferAuto = "auto" DeferNever = "never" )
Values of the review's defer
const ( DefaultMemoryLimit = 2200 DefaultUserLimit = 1375 )
Built-in limits of the two files, in characters
const DefaultRecallTimeout = 8 * time.Second
Longest the outside service recalls for a message when nothing says, alpha's bound on one external prefetch
const ReviewTask = "background_review"
Helper model task of the reviews of a conversation for what to keep
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 ¶
Types ¶
This section is empty.