> ## 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.

# Gateway Runtime Seams • AI Agent SDK

> GatewayRuntimeSeams: The gateway reliability seams handed to a channel adapter at build time.

# GatewayRuntimeSeams

> Defined in the [**protocols**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/protocols.md) module.

AI Agent

The gateway reliability seams handed to a channel adapter at build time.

A single, typed carrier for the four runtime seams the gateway injects so
an adapter wires them up in one place instead of via four duck-typed
private-attribute splices:

Attributes:
identity\_resolver: Cross-platform identity resolver; unifies the same
human across platforms onto one session key.
identity\_canonicalizer: Identity-canonicalization seam (Issue #4661) —
an :class:`IdentityCanonicalizerProtocol`
(`canonicalize(platform, raw_user_id) -&gt; str`) applied *before*
the resolver, e.g. an adapter itself (see
:meth:`BasePlatformAdapter.canonicalize`). Stabilises a volatile
platform id (WhatsApp JID→LID, a number↔UUID alias flip) so the same
human keeps one session instead of silently forking.
delivery\_router: Backing router for the built-in `send_message` tool,
so an agent turn can proactively reach the user mid-task.
admission\_gate: Gateway-wide admission control (concurrency ceiling /
fair queue / backpressure) applied to inbound runs.
turn\_lock\_map: Shared per-turn lock map for cross-platform turn
serialisation on the resolved session id.

A seam left `None` means the gateway has nothing to inject for it and the
adapter should keep whatever it already has.

## Properties

**identity\_resolver** `Optional`

No description available.

**identity\_canonicalizer** `Optional`

No description available.

**delivery\_router** `Optional`

No description available.

**admission\_gate** `Optional`

No description available.

**turn\_lock\_map** `Optional`

No description available.

## Source

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

***

## 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.