aiseats

package
v2.34.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: AGPL-3.0 Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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