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

Method RecordAndCheck

internal/usage/usage.go:11–11  ·  view source on GitHub ↗

RecordAndCheck records a usage event. Always returns true.

(ctx context.Context, userID, agentID, domain, direction string)

Source from the content-addressed store, hash-verified

9type UsageTracker interface {
10 // RecordAndCheck records a usage event. Always returns true.
11 RecordAndCheck(ctx context.Context, userID, agentID, domain, direction string) (allowed bool, err error)
12}
13
14// LiveUsageTracker is the real implementation backed by the billing store.

Callers 7

autoApproveMethod · 0.65
deliverToAgentMethod · 0.65
DeliverOutboundMethod · 0.65
magicApproveMethod · 0.65
ApprovePendingCoreMethod · 0.65

Implementers 2

LiveUsageTrackerinternal/usage/usage.go
NoopUsageTrackerinternal/usage/usage.go

Calls

no outgoing calls