Documentation
¶
Overview ¶
Package agentmemory attaches Orb's bounded persistent memory to a plain engine.Agent. The bundled memory plugin delegates to the same runtime.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
Runtime owns one session's view of an agent's memory and the four memory tools. The view is a frozen snapshot, so the prompt prefix stays cacheable, plus the changes made elsewhere since, which Changes hands over turn by turn. Different runtimes never share a lock; callers must pass a tenant-scoped, concurrent Store when multiple sessions share the same durable backend.
func (*Runtime) Changes ¶ added in v0.17.3
Changes lists what the agent's memory gained, replaced or lost since this session last saw it, made by its other sessions on any front or process, and counts it as seen; empty when nothing changed.
func (*Runtime) SystemPrompt ¶
SystemPrompt appends the frozen profile to base.