engine

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

	DeliveryBootstrap = t.DeliveryBootstrap
	DeliveryOnDemand  = t.DeliveryOnDemand
	DeliveryPinned    = t.DeliveryPinned
)

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 Delivery added in v0.5.0

type Delivery = t.Delivery

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