providerservice

package
v0.0.26 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ProviderTypeOpenAI = "openai"
	ProviderTypeGemini = "gemini"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	SetProviderConfig(ctx context.Context, providerType string, upsert bool, config *runtimestate.ProviderConfig) error
	GetProviderConfig(ctx context.Context, providerType string) (*runtimestate.ProviderConfig, error)
	DeleteProviderConfig(ctx context.Context, providerType string) error
	ListProviderConfigs(ctx context.Context, createdAtCursor *time.Time, limit int) ([]*runtimestate.ProviderConfig, error)
}

func New

func New(dbInstance libdb.DBManager) Service

func WithActivityTracker

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

Jump to

Keyboard shortcuts

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