aiseats

package
v2.33.3 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package aiseats is the AGPL version the package. The actual implementation is in `enterprise/aiseats`.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Noop

type Noop struct{}

Noop is an AGPL seat tracker that does nothing.

func (Noop) RecordUsage

func (Noop) RecordUsage(context.Context, uuid.UUID, Reason)

type Reason

type Reason struct {
	EventType   database.AiSeatUsageReason
	Description string
}

func ReasonAIBridge

func ReasonAIBridge(description string) Reason

ReasonAIBridge constructs a reason for usage originating from AI Bridge.

func ReasonTask

func ReasonTask(description string) Reason

ReasonTask constructs a reason for usage originating from tasks.

type SeatTracker

type SeatTracker interface {
	// RecordUsage does not return an error to prevent blocking the user from using
	// AI features. This method is used to record usage, not enforce it.
	RecordUsage(ctx context.Context, userID uuid.UUID, reason Reason)
}

SeatTracker records AI seat consumption state.

Jump to

Keyboard shortcuts

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