Documentation
¶
Index ¶
- func MemoryTools(opts MemoryToolOptions) []types.Tool
- func RunIngestLoop(ctx context.Context, opts IngestLoopOptions)
- func SharedSQLiteManager(persistDir, sqliteFile string) (memkit.Manager, error)
- type IngestContentFilter
- type IngestExtractItem
- type IngestLoopOptions
- type IngestRule
- type IngestRuntime
- type MemoryToolOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MemoryTools ¶
func MemoryTools(opts MemoryToolOptions) []types.Tool
func RunIngestLoop ¶
func RunIngestLoop(ctx context.Context, opts IngestLoopOptions)
Types ¶
type IngestContentFilter ¶
type IngestExtractItem ¶
type IngestExtractItem struct {
Content string `json:"content"`
Category string `json:"category"`
Tags []string `json:"tags"`
}
func ParseIngestItemsTab ¶
func ParseIngestItemsTab(s string) ([]IngestExtractItem, error)
type IngestLoopOptions ¶
type IngestLoopOptions struct {
WaitReady func(ctx context.Context) error
StartParams func() (persistDir, sqliteFile string, interval time.Duration, err error)
TickParams func() (enabled bool, batchMax, minNew int, rt IngestRuntime)
Log *slog.Logger
NewLLM func(ctx context.Context, rt IngestRuntime) (types.LLMProvider, error)
}
type IngestRule ¶
type IngestRuntime ¶
type IngestRuntime struct {
Rules []IngestRule
SystemExtra string
ContentFilter IngestContentFilter
}
Click to show internal directories.
Click to hide internal directories.