Documentation
¶
Index ¶
- Constants
- type ContradictionMatch
- type ListInput
- type Memory
- type MemoryType
- type RecallInput
- type RecallResult
- type RememberInput
- type RememberResult
- type Scope
- type Service
- func (s *Service) CleanExpired(ctx context.Context) (int, error)
- func (s *Service) Forget(ctx context.Context, id string) error
- func (s *Service) List(ctx context.Context, input ListInput) ([]Memory, error)
- func (s *Service) Recall(ctx context.Context, input RecallInput) ([]RecallResult, error)
- func (s *Service) Remember(ctx context.Context, input RememberInput) (*RememberResult, error)
- func (s *Service) Stats(ctx context.Context) (*StatsResult, error)
- func (s *Service) Update(ctx context.Context, id string, content string) (*Memory, error)
- type StatsResult
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 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 Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(pgClient *pg.Client, embed embeddings.Embedder) *Service
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)
type StatsResult ¶
type StatsResult = t.StatsResult
Re-export types for backward compatibility with MCP tools and API
Click to show internal directories.
Click to hide internal directories.