Skip to main content

SupportsGatewayRuntime

Defined in the protocols module.
AI Agent Contract for channel adapters that accept the gateway runtime seams. Instead of the gateway reaching into an adapter’s private session and splicing _identity_resolver / _delivery_router / _admission_gate / _locks via getattr/hasattr (which silently no-ops on any adapter whose session does not match the built-in shape), an adapter — in tree or pip-installed — implements this one method. The gateway calls it once with a :class:GatewayRuntimeSeams, so the same reliability guarantees (admission/backpressure, delivery routing, cross-platform turn locking) hold for every adapter. Adapters whose __init__ creates a BotSessionManager get this for free — the session manager implements attach_gateway_runtime and the adapter can simply delegate to self._session.attach_gateway_runtime(...).

Methods

attach_gateway_runtime()

Wire the gateway runtime seams into this adapter.

Source

View on GitHub

praisonaiagents/bots/protocols.py at line 348

Gateway Feature