Help us shape the future of Go! Take the 2026 Go Developer Survey

longterm

package
v1.11.3 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

type Entity = internallongterm.Entity

Entity is a named thing with a type and a list of observations. Modelled after the MCP memory server reference (servers/src/memory).

type EntityInput

type EntityInput = internallongterm.EntityInput

EntityInput is used for upsert operations.

type Extractor

type Extractor = internallongterm.Extractor

Extractor runs LLM-powered extraction of entities and observations from session transcripts and persists them in the long-term memory graph.

Extraction is designed to be asynchronous and best-effort: any error is logged at DEBUG level and not surfaced to the user.

func NewExtractor

func NewExtractor(store Store, caller internallongterm.LLMCaller, cfg ExtractorConfig) *Extractor

NewExtractor creates an Extractor. Zero-value config fields are replaced with defaults.

type ExtractorConfig

type ExtractorConfig = internallongterm.ExtractorConfig

ExtractorConfig controls extraction behaviour.

func DefaultExtractorConfig

func DefaultExtractorConfig() ExtractorConfig

DefaultExtractorConfig returns sensible defaults.

type Graph

type Graph = internallongterm.Graph

Graph is a result set containing entities and the relations that touch them.

type ObservationInput

type ObservationInput = internallongterm.ObservationInput

ObservationInput appends observations to an existing entity.

type ObservationResult

type ObservationResult = internallongterm.ObservationResult

ObservationResult reports what was actually added after deduplication.

type Relation

type Relation = internallongterm.Relation

Relation is a directed edge between two entities (active-voice convention).

type RelationInput

type RelationInput = internallongterm.RelationInput

RelationInput is used for create operations.

type Store

type Store = internallongterm.Store

Store is the persistence interface for the long-term memory knowledge graph. Concrete persistence implementations are injected by the embedding runtime. All operations are scoped to a single user via userID.

Jump to

Keyboard shortcuts

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