businessmemory

package
v0.0.0-...-a2105d0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: AGPL-3.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JudgeName = "business_memory"
)

Variables

This section is empty.

Functions

func Attach

func Attach(mux goahttp.Muxer, service *Service)

Types

type Judge

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

Judge extracts and stores first-pass organization memories from a completed session. Inserts are keyed by evaluation and candidate index so Temporal and score-sink retries are idempotent.

func NewJudge

func NewJudge(
	logger *slog.Logger,
	tracerProvider trace.TracerProvider,
	db *pgxpool.Pool,
	client openrouter.CompletionClient,
	limiter *ratelimit.Limiter,
) *Judge

func (*Judge) Judge

func (*Judge) Name

func (j *Judge) Name() string

func (*Judge) SkipScoreSink

func (j *Judge) SkipScoreSink() bool

type Service

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

func NewService

func NewService(
	logger *slog.Logger,
	tracerProvider trace.TracerProvider,
	db *pgxpool.Pool,
	sessionManager *sessions.Manager,
	authzEngine *authz.Engine,
	completions openrouter.CompletionClient,
) *Service

func (*Service) APIKeyAuth

func (s *Service) APIKeyAuth(ctx context.Context, key string, schema *security.APIKeyScheme) (context.Context, error)

func (*Service) ListBusinessMemories

func (s *Service) ListBusinessMemories(ctx context.Context, payload *gen.ListBusinessMemoriesPayload) (*gen.ListBusinessMemoriesResult, error)

func (*Service) SearchBusinessMemories

func (s *Service) SearchBusinessMemories(ctx context.Context, payload *gen.SearchBusinessMemoriesPayload) (*gen.SearchBusinessMemoriesResult, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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