Documentation
¶
Index ¶
- Constants
- func Attach(mux goahttp.Muxer, service *Service)
- type Judge
- type Service
- func (s *Service) APIKeyAuth(ctx context.Context, key string, schema *security.APIKeyScheme) (context.Context, error)
- func (s *Service) ListBusinessMemories(ctx context.Context, payload *gen.ListBusinessMemoriesPayload) (*gen.ListBusinessMemoriesResult, error)
- func (s *Service) ListBusinessMemoryContentScopes(ctx context.Context, _ *gen.ListBusinessMemoryContentScopesPayload) (*gen.ListBusinessMemoryContentScopesResult, error)
- func (s *Service) SearchBusinessMemories(ctx context.Context, payload *gen.SearchBusinessMemoriesPayload) (*gen.SearchBusinessMemoriesResult, error)
Constants ¶
View Source
const (
JudgeName = "business_memory"
)
Variables ¶
This section is empty.
Functions ¶
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 (j *Judge) Judge(ctx context.Context, in analysis.JudgeInput) (analysis.JudgeResult, error)
func (*Judge) SkipScoreSink ¶
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 (*Service) ListBusinessMemories ¶
func (s *Service) ListBusinessMemories(ctx context.Context, payload *gen.ListBusinessMemoriesPayload) (*gen.ListBusinessMemoriesResult, error)
func (*Service) ListBusinessMemoryContentScopes ¶
func (s *Service) ListBusinessMemoryContentScopes(ctx context.Context, _ *gen.ListBusinessMemoryContentScopesPayload) (*gen.ListBusinessMemoryContentScopesResult, error)
func (*Service) SearchBusinessMemories ¶
func (s *Service) SearchBusinessMemories(ctx context.Context, payload *gen.SearchBusinessMemoriesPayload) (*gen.SearchBusinessMemoriesResult, error)
Click to show internal directories.
Click to hide internal directories.