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 Reason ¶
type Reason struct {
EventType database.AiSeatUsageReason
Description string
}
func ReasonAIBridge ¶
ReasonAIBridge constructs a reason for usage originating from AI Bridge.
func ReasonTask ¶
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.
Click to show internal directories.
Click to hide internal directories.