engine

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScopeGlobal  = t.ScopeGlobal
	ScopeProject = t.ScopeProject
	TypeFact     = t.TypeFact
	TypeRule     = t.TypeRule
	TypeDecision = t.TypeDecision
	TypeFeedback = t.TypeFeedback
	TypeContext  = t.TypeContext
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ContradictionMatch

type ContradictionMatch = t.ContradictionMatch

Re-export types for backward compatibility with MCP tools and API

type ListInput

type ListInput = t.ListInput

Re-export types for backward compatibility with MCP tools and API

type Memory

type Memory = t.Memory

Re-export types for backward compatibility with MCP tools and API

type MemoryType

type MemoryType = t.MemoryType

Re-export types for backward compatibility with MCP tools and API

type RecallInput

type RecallInput = t.RecallInput

Re-export types for backward compatibility with MCP tools and API

type RecallResult

type RecallResult = t.RecallResult

Re-export types for backward compatibility with MCP tools and API

type RememberInput

type RememberInput = t.RememberInput

Re-export types for backward compatibility with MCP tools and API

type RememberResult

type RememberResult = t.RememberResult

Re-export types for backward compatibility with MCP tools and API

type Scope

type Scope = t.Scope

Re-export types for backward compatibility with MCP tools and API

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(pgClient *pg.Client, embed embeddings.Embedder) *Service

func (*Service) CleanExpired

func (s *Service) CleanExpired(ctx context.Context) (int, error)

func (*Service) Forget

func (s *Service) Forget(ctx context.Context, id string) error

func (*Service) List

func (s *Service) List(ctx context.Context, input ListInput) ([]Memory, error)

func (*Service) Recall

func (s *Service) Recall(ctx context.Context, input RecallInput) ([]RecallResult, error)

func (*Service) Remember

func (s *Service) Remember(ctx context.Context, input RememberInput) (*RememberResult, error)

func (*Service) Stats

func (s *Service) Stats(ctx context.Context) (*StatsResult, error)

func (*Service) Update

func (s *Service) Update(ctx context.Context, id string, content string) (*Memory, error)

type StatsResult

type StatsResult = t.StatsResult

Re-export types for backward compatibility with MCP tools and API

Jump to

Keyboard shortcuts

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