vector

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 13 Imported by: 0

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.

  • 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

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() engine.Plugin

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

func (p *Plugin) ConfigSchema() []byte

ConfigSchema implements engine.ConfigSchemaProvider.

func (*Plugin) Dependencies

func (p *Plugin) Dependencies() []string

func (*Plugin) Emissions

func (p *Plugin) Emissions() []string

func (*Plugin) ID

func (p *Plugin) ID() string

func (*Plugin) Init

func (p *Plugin) Init(ctx engine.PluginContext) error

func (*Plugin) Name

func (p *Plugin) Name() string

func (*Plugin) Ready

func (p *Plugin) Ready() error

func (*Plugin) Requires

func (p *Plugin) Requires() []engine.Requirement

func (*Plugin) Shutdown

func (p *Plugin) Shutdown(_ context.Context) error

func (*Plugin) Subscriptions

func (p *Plugin) Subscriptions() []engine.EventSubscription

func (*Plugin) Version

func (p *Plugin) Version() string

Jump to

Keyboard shortcuts

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