recall

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxPrivateNoteSearchResults = maxPrivateNoteSearchResults
	MaxPrivateNoteReadBytes     = maxPrivateNoteReadBytes
)

Variables

This section is empty.

Functions

func BackendPath

func BackendPath(value string) string

func MemoryUnifiedDiff

func MemoryUnifiedDiff(p, oldText, newText string, maxBytes int) string

func RecallRequestTimeout

func RecallRequestTimeout(endpoint string) time.Duration

Types

type ConfigProvider

type ConfigProvider func() config.Config

type MemoryCardSpec

type MemoryCardSpec struct {
	Title      string
	Content    string
	CardType   string
	Scope      string
	Project    string
	Status     string
	Confidence string
	Source     string
	Evidence   string
	Tags       []string
	Boundary   string
}

func ParseMemoryCard

func ParseMemoryCard(args map[string]any, requireEvidenceForActive bool) (MemoryCardSpec, []string, error)

type MemoryLintFinding

type MemoryLintFinding struct {
	Path string `json:"path"`
	Line int    `json:"line"`
	Term string `json:"term"`
	Text string `json:"text"`
}

type Result

type Result = toolcore.Result

type Service

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

func New

func New(configProvider ConfigProvider) *Service

func (*Service) Bootstrap

func (svc *Service) Bootstrap(ctx context.Context, args map[string]any) (Result, error)

func (*Service) Maintain

func (svc *Service) Maintain(ctx context.Context, args map[string]any) (Result, error)

func (*Service) MemoryBootstrap

func (s *Service) MemoryBootstrap(ctx context.Context, args map[string]any) (Result, error)

func (*Service) MemoryCardCapture

func (s *Service) MemoryCardCapture(ctx context.Context, args map[string]any) (Result, error)

func (*Service) MemoryCardWrite

func (s *Service) MemoryCardWrite(ctx context.Context, args map[string]any) (Result, error)

func (*Service) MemoryDiff

func (s *Service) MemoryDiff(ctx context.Context, args map[string]any) (Result, error)

func (*Service) MemoryLint

func (s *Service) MemoryLint(ctx context.Context, args map[string]any) (Result, error)

func (*Service) MemoryPatch

func (s *Service) MemoryPatch(ctx context.Context, args map[string]any) (Result, error)

func (*Service) MemoryRead

func (s *Service) MemoryRead(ctx context.Context, args map[string]any) (Result, error)

func (*Service) MemoryUpdateFact

func (s *Service) MemoryUpdateFact(ctx context.Context, args map[string]any) (Result, error)

func (*Service) PrivateNoteManage

func (svc *Service) PrivateNoteManage(ctx context.Context, args map[string]any) (Result, error)

func (*Service) Read

func (svc *Service) Read(ctx context.Context, args map[string]any) (Result, error)

func (*Service) Request

func (svc *Service) Request(ctx context.Context, method, endpoint string, payload any) (Result, error)

func (*Service) Search

func (svc *Service) Search(ctx context.Context, args map[string]any) (Result, error)

func (*Service) Write

func (svc *Service) Write(ctx context.Context, args map[string]any) (Result, error)

type ToolError

type ToolError = toolcore.ToolError

Jump to

Keyboard shortcuts

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