sqlite

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLiteContextManager

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

SQLiteContextManager manages conversation context using local embedded SQLite through GORM.

func NewSQLiteContextManager

func NewSQLiteContextManager(dbPath string) (*SQLiteContextManager, error)

NewSQLiteContextManager creates a local SQLite-backed context manager and migrates its tables. If dbPath is empty, data/goat_context.sqlite is used.

func (*SQLiteContextManager) Append

func (m *SQLiteContextManager) Append(ctx context.Context, contextUID common.ContextUID, message *schema.AgenticMessage) error

func (*SQLiteContextManager) CommitFinal

func (m *SQLiteContextManager) CommitFinal(
	ctx context.Context,
	contextUID common.ContextUID,
	message *schema.AgenticMessage,
) error

func (*SQLiteContextManager) CommitTurn

func (m *SQLiteContextManager) CommitTurn(
	ctx context.Context,
	contextUID common.ContextUID,
	turnMessages []*schema.AgenticMessage,
) (*contextmgr.TurnCommitResult, error)

func (*SQLiteContextManager) Delete

func (m *SQLiteContextManager) Delete(ctx context.Context, contextUID common.ContextUID) error

func (*SQLiteContextManager) EnqueuePendingMessages

func (m *SQLiteContextManager) EnqueuePendingMessages(
	ctx context.Context,
	contextUID common.ContextUID,
	messages []*schema.AgenticMessage,
) error

func (*SQLiteContextManager) GetAll

func (*SQLiteContextManager) InitNew

func (*SQLiteContextManager) Len

func (m *SQLiteContextManager) Len(ctx context.Context, contextUID common.ContextUID) int

func (*SQLiteContextManager) NewContextUID

func (*SQLiteContextManager) Reset

func (m *SQLiteContextManager) Reset(ctx context.Context, contextUID common.ContextUID, messages []*schema.AgenticMessage)

Jump to

Keyboard shortcuts

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