modelservice

package
v0.0.63 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidModel = errors.New("invalid model data")

Functions

This section is empty.

Types

type Service

type Service interface {
	Append(ctx context.Context, model *runtimetypes.Model) error
	Update(ctx context.Context, data *runtimetypes.Model) error
	List(ctx context.Context, createdAtCursor *time.Time, limit int) ([]*runtimetypes.Model, error)
	Delete(ctx context.Context, modelName string) error
}

func New

func New(db libdb.DBManager, embedModel string) Service

func WithActivityTracker

func WithActivityTracker(service Service, tracker libtracker.ActivityTracker) Service

Jump to

Keyboard shortcuts

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