Gateway Adapter Contract Error • AI Agent SDK
GatewayAdapterContractError: Raised when a channel adapter cannot receive the gateway runtime seams.
GatewayAdapterContractError
Defined in the protocols module.
AI Agent
Raised when a channel adapter cannot receive the gateway runtime seams.
The gateway wires four reliability seams into every channel adapter — the cross-platform identity resolver, the delivery router, the admission gate, and the shared per-turn lock map. When the gateway has these seams to inject but the adapter neither implements :class:SupportsGatewayRuntime nor exposes a compatible session, the wiring would silently no-op and the adapter would run without admission control, durable delivery routing, or cross-platform turn locking. Failing loudly with this error surfaces the missing contract instead.
Source
View on GitHubpraisonaiagents/bots/protocols.py at line 338