capture

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Capturer

type Capturer interface {
	Extract(ctx context.Context, userMsg, assistantMsg string) ([]models.CapturedMemory, error)
}

Capturer extracts structured memories from conversation text.

type ClaudeCapturer

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

ClaudeCapturer uses Claude Haiku to extract memories.

func NewCapturer

func NewCapturer(apiKey, model string, logger *slog.Logger) *ClaudeCapturer

NewCapturer creates a new Claude-based memory capturer.

func (*ClaudeCapturer) Extract

func (c *ClaudeCapturer) Extract(ctx context.Context, userMsg, assistantMsg string) ([]models.CapturedMemory, error)

Jump to

Keyboard shortcuts

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