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)
| 455 | // environments that don't have postgres wired or want to disable |
| 456 | // the feature. The cmd/e2a runtime always sets it. |
| 457 | func (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 |
no outgoing calls