> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Supports Gateway Runtime • AI Agent SDK

> SupportsGatewayRuntime: Contract for channel adapters that accept the gateway runtime seams.

# SupportsGatewayRuntime

> Defined in the [**protocols**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/protocols.md) 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

> [card] [attach\_gateway\_runtime()](https://praison.ai/docs/sdk/reference/praisonaiagents/functions/SupportsGatewayRuntime-attach_gateway_runtime.md)
>
> Wire the gateway runtime seams into this adapter.

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/bots/protocols.py#L389)
>
> `praisonaiagents/bots/protocols.py` at line 389

***

## Related Documentation

> [card] [Gateway Feature](https://praison.ai/docs/docs/features/gateway)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.