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

Method SetIdempotencyStore

internal/agent/api.go:457–457  ·  view source on GitHub ↗

SetIdempotencyStore enables Idempotency-Key processing on the outbound /send and /reply endpoints. When nil (the default) the header is silently ignored — keeps the agent package usable in environments that don't have postgres wired or want to disable the feature. The cmd/e2a runtime always sets it.

(s *idempotency.Store)

Source from the content-addressed store, hash-verified

455// environments that don't have postgres wired or want to disable
456// the feature. The cmd/e2a runtime always sets it.
457func (a *API) SetIdempotencyStore(s *idempotency.Store) { a.idempotency = s }
458
459// SetEnforcer wires in the resource-limits enforcer. When nil (the
460// default) every check passes — handlers behave as if every user has

Callers 9

TestServerFunction · 0.95
NewEventsAPIHarnessFunction · 0.95
StartContractServerFunction · 0.95
setupAPIFunction · 0.95
setupAPIWithSMTPFunction · 0.95
newAPIWithIdempotencyFunction · 0.95
newConsentFixtureFunction · 0.95
mainFunction · 0.95

Calls

no outgoing calls

Tested by 6

TestServerFunction · 0.76
setupAPIFunction · 0.76
setupAPIWithSMTPFunction · 0.76
newAPIWithIdempotencyFunction · 0.76
newConsentFixtureFunction · 0.76