Documentation
¶
Overview ¶
Package memory is the public facade over Recollect's memory engine. It exposes only the types, constants, and constructors that external adapters need. The implementation lives in recollect/internal/memory.
Index ¶
- Constants
- Variables
- type CaptureAttempt
- type CaptureAttempts
- type CaptureOp
- type CapturePhase
- type CaptureResult
- type CaptureState
- type ChainRevision
- type Digest
- type DigestRetention
- type Error
- type Fact
- type FactMatch
- type IndexInput
- type JournalEntry
- type Limits
- type LinksField
- type ManifestEntry
- type Match
- type MigrateResult
- type Options
- type Page
- type PageDraft
- type PageDraftResult
- type PageSpec
- type ProjectMeta
- type ScoredFactForTest
- type Store
Constants ¶
const ( CaptureConsolidationPrompt = internalmemory.CaptureConsolidationPrompt CaptureDigestPrompt = internalmemory.CaptureDigestPrompt CaptureOverflowTopic = internalmemory.CaptureOverflowTopic CapturePhaseDigest = internalmemory.CapturePhaseDigest CapturePhaseTyped = internalmemory.CapturePhaseTyped CodeCaptureTimeout = internalmemory.CodeCaptureTimeout CodeDigestNotFound = internalmemory.CodeDigestNotFound CodeDisabled = internalmemory.CodeDisabled CodeFactNotFound = internalmemory.CodeFactNotFound CodeInvalidOperation = internalmemory.CodeInvalidOperation CodeInvalidReply = internalmemory.CodeInvalidReply CodeIO = internalmemory.CodeIO CodeMissingField = internalmemory.CodeMissingField CodeOldAmbiguous = internalmemory.CodeOldAmbiguous CodeOldNotFound = internalmemory.CodeOldNotFound CodeReasonRequired = internalmemory.CodeReasonRequired CodeSecretRejected = internalmemory.CodeSecretRejected DefaultDigestMaxBytes = internalmemory.DefaultDigestMaxBytes DefaultDigestTTLDays = internalmemory.DefaultDigestTTLDays DefaultMaxDigests = internalmemory.DefaultMaxDigests DefaultPagesInjectBytes = internalmemory.DefaultPagesInjectBytes EvolvePagesPrompt = internalmemory.EvolvePagesPrompt EvolvePrompt = internalmemory.EvolvePrompt FactSceneChat = internalmemory.FactSceneChat FactSceneCoding = internalmemory.FactSceneCoding FactSceneWorking = internalmemory.FactSceneWorking FactTypeExperience = internalmemory.FactTypeExperience FactTypeProject = internalmemory.FactTypeProject IndexLineLimit = internalmemory.IndexLineLimit MemoryInstructions = internalmemory.MemoryInstructions RedactedPlaceholder = internalmemory.RedactedPlaceholder AgentMemoryScopeLine = internalmemory.AgentMemoryScopeLine FactNodeType = internalmemory.FactNodeType MinDigestSummaryBytes = internalmemory.MinDigestSummaryBytes ArchiveDigestKeepForTest = internalmemory.ArchiveDigestKeepForTest JournalPrevFileForTest = internalmemory.JournalPrevFileForTest JournalRotateBytesForTest = internalmemory.JournalRotateBytesForTest MaxFactLinksForTest = internalmemory.MaxFactLinksForTest MaxFactNameBytesForTest = internalmemory.MaxFactNameBytesForTest )
Constants used by tool contracts, capture, and prompt rendering.
Variables ¶
var ( AgentMemoriesRoot = internalmemory.AgentMemoriesRoot AgentMemoryPromptSection = internalmemory.AgentMemoryPromptSection AgentMemoryRoot = internalmemory.AgentMemoryRoot ApplyCaptureOp = internalmemory.ApplyCaptureOp ArchiveDir = internalmemory.ArchiveDir ArchiveSessionsDir = internalmemory.ArchiveSessionsDir BuildIndex = internalmemory.BuildIndex ChainBackfillCandidates = internalmemory.ChainBackfillCandidates CodeOf = internalmemory.CodeOf CollapseLine = internalmemory.CollapseLine CountFacts = internalmemory.CountFacts DetectProjectRoot = internalmemory.DetectProjectRoot DigestLine = internalmemory.DigestLine DigestUsable = internalmemory.DigestUsable Errorf = internalmemory.Errorf FactSlug = internalmemory.FactSlug FilterEvolveOps = internalmemory.FilterEvolveOps FilterPageDrafts = internalmemory.FilterPageDrafts FormatDigest = internalmemory.FormatDigest FormatFact = internalmemory.FormatFact FormatPage = internalmemory.FormatPage HeadBytes = internalmemory.HeadBytes IndexFile = internalmemory.IndexFile JournalFile = internalmemory.JournalFile MemoryRoot = internalmemory.MemoryRoot NewStore = internalmemory.NewStore NewReadOnlyStore = internalmemory.NewReadOnlyStore NextKey = internalmemory.NextKey NormalizeFactType = internalmemory.NormalizeFactType NormalizeNewlines = internalmemory.NormalizeNewlines NormalizeScene = internalmemory.NormalizeScene PageCatalog = internalmemory.PageCatalog PageQuestion = internalmemory.PageQuestion PagesDir = internalmemory.PagesDir ParseCaptureDigest = internalmemory.ParseCaptureDigest ParseCaptureResult = internalmemory.ParseCaptureResult ParsePageDrafts = internalmemory.ParsePageDrafts ProjectDir = internalmemory.ProjectDir ProjectDirForKey = internalmemory.ProjectDirForKey ProjectKey = internalmemory.ProjectKey ProjectMetaFor = internalmemory.ProjectMetaFor Redact = internalmemory.Redact SanitizeAgentMemoryKey = internalmemory.SanitizeAgentMemoryKey SecretHoldback = internalmemory.SecretHoldback SecretLike = internalmemory.SecretLike SecretPatterns = internalmemory.SecretPatterns SessionsDir = internalmemory.SessionsDir TailBytes = internalmemory.TailBytes TopicsDir = internalmemory.TopicsDir UserFile = internalmemory.UserFile ApplyEdit = internalmemory.ApplyEdit CaptureAttemptFile = internalmemory.CaptureAttemptFile CaptureStateFile = internalmemory.CaptureStateFile ChainFile = internalmemory.ChainFile DefaultLimits = internalmemory.DefaultLimits IsFullyPrivate = internalmemory.IsFullyPrivate ParseDigest = internalmemory.ParseDigest ParseFact = internalmemory.ParseFact ParsePage = internalmemory.ParsePage ProjectMetaFile = internalmemory.ProjectMetaFile RenderIndex = internalmemory.RenderIndex RenderManifest = internalmemory.RenderManifest RetainDigests = internalmemory.RetainDigests SearchLines = internalmemory.SearchLines SlugKey = internalmemory.SlugKey StripPrivateContent = internalmemory.StripPrivateContent TruncateIndex = internalmemory.TruncateIndex ValidTopicName = internalmemory.ValidTopicName RankFactsForTest = internalmemory.RankFactsForTest PrepareFactForTest = internalmemory.PrepareFactForTest ManifestKindRankForTest = internalmemory.ManifestKindRankForTest ContainPathForTest = internalmemory.ContainPathForTest DecodeJournalLineForTest = internalmemory.DecodeJournalLineForTest ExtractJSONObjectForTest = internalmemory.ExtractJSONObjectForTest RepairJSONEscapesForTest = internalmemory.RepairJSONEscapesForTest SlugifyForTest = internalmemory.SlugifyForTest )
Functions forwarded to the implementation. Each is a variable alias so the facade adds no second implementation of any rule.
Functions ¶
This section is empty.
Types ¶
type CaptureAttempt ¶
type CaptureAttempt = internalmemory.CaptureAttempt
Types shared between the engine and its adapters.
type CaptureAttempts ¶
type CaptureAttempts = internalmemory.CaptureAttempts
Types shared between the engine and its adapters.
type CaptureOp ¶
type CaptureOp = internalmemory.CaptureOp
Types shared between the engine and its adapters.
type CapturePhase ¶
type CapturePhase = internalmemory.CapturePhase
Types shared between the engine and its adapters.
type CaptureResult ¶
type CaptureResult = internalmemory.CaptureResult
Types shared between the engine and its adapters.
type CaptureState ¶
type CaptureState = internalmemory.CaptureState
Types shared between the engine and its adapters.
type ChainRevision ¶
type ChainRevision = internalmemory.ChainRevision
Types shared between the engine and its adapters.
type DigestRetention ¶
type DigestRetention = internalmemory.DigestRetention
Types shared between the engine and its adapters.
type FactMatch ¶
type FactMatch = internalmemory.FactMatch
Types shared between the engine and its adapters.
type IndexInput ¶
type IndexInput = internalmemory.IndexInput
Types shared between the engine and its adapters.
type JournalEntry ¶
type JournalEntry = internalmemory.JournalEntry
Types shared between the engine and its adapters.
type LinksField ¶
type LinksField = internalmemory.LinksField
Types shared between the engine and its adapters.
type ManifestEntry ¶
type ManifestEntry = internalmemory.ManifestEntry
Types shared between the engine and its adapters.
type MigrateResult ¶
type MigrateResult = internalmemory.MigrateResult
Types shared between the engine and its adapters.
type Options ¶
type Options = internalmemory.Options
Types shared between the engine and its adapters.
type PageDraft ¶
type PageDraft = internalmemory.PageDraft
Types shared between the engine and its adapters.
type PageDraftResult ¶
type PageDraftResult = internalmemory.PageDraftResult
Types shared between the engine and its adapters.
type PageSpec ¶
type PageSpec = internalmemory.PageSpec
Types shared between the engine and its adapters.
type ProjectMeta ¶
type ProjectMeta = internalmemory.ProjectMeta
Types shared between the engine and its adapters.
type ScoredFactForTest ¶
type ScoredFactForTest = internalmemory.ScoredFactForTest
Types shared between the engine and its adapters.