MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / NewUsageTracker

Function NewUsageTracker

internal/usage/usage.go:19–21  ·  view source on GitHub ↗
(store *Store)

Source from the content-addressed store, hash-verified

17}
18
19func NewUsageTracker(store *Store) *LiveUsageTracker {
20 return &LiveUsageTracker{store: store}
21}
22
23func (t *LiveUsageTracker) RecordAndCheck(ctx context.Context, userID, agentID, domain, direction string) (bool, error) {
24 // Metering gate: resolve the account class once and short-circuit

Callers 3

mainFunction · 0.92

Calls

no outgoing calls