Documentation
¶
Overview ¶
Package vector implements the memory.vector capability: a per-agent semantic-recall store separate from nexus.memory.longterm (which is a file-per-entry notes store). This plugin:
Listens on io.input: embeds the latest user message, queries the agent's namespace, stashes hits in an internal buffer that the registered PromptSectionFunc renders into the system prompt.
Listens on agent.turn.start: publishes the stashed hits as rag.retrieved stamped with that turn, so nexus.rag.citations can validate <cite/> tags naming a recalled entry. Recall itself cannot stamp the turn — io.input fires before any agent loop mints one.
Auto-stores on memory.compacted: writes the summary message so that context summaries remain recallable after compaction.
Provides an explicit memory.vector.store event for plugins (or tools) that want to deliberately record a piece of content.
Fully independent of nexus.memory.longterm — separate code, separate capability, separate storage. They coexist: longterm is structured notes with keys; memory.vector is fuzzy semantic recall keyed by embedding.
Index ¶
- func New() engine.Plugin
- type Plugin
- func (p *Plugin) Capabilities() []engine.Capability
- func (p *Plugin) ConfigSchema() []byte
- func (p *Plugin) Dependencies() []string
- func (p *Plugin) Emissions() []string
- func (p *Plugin) ID() string
- func (p *Plugin) Init(ctx engine.PluginContext) error
- func (p *Plugin) Name() string
- func (p *Plugin) Ready() error
- func (p *Plugin) Requires() []engine.Requirement
- func (p *Plugin) Shutdown(_ context.Context) error
- func (p *Plugin) Subscriptions() []engine.EventSubscription
- func (p *Plugin) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin implements vector-backed memory.
func (*Plugin) Capabilities ¶
func (p *Plugin) Capabilities() []engine.Capability
func (*Plugin) ConfigSchema ¶
ConfigSchema implements engine.ConfigSchemaProvider.
func (*Plugin) Dependencies ¶
func (*Plugin) Requires ¶
func (p *Plugin) Requires() []engine.Requirement
func (*Plugin) Subscriptions ¶
func (p *Plugin) Subscriptions() []engine.EventSubscription