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

# Attach Gateway Runtime • AI Agent SDK

> attach_gateway_runtime: Wire the gateway runtime seams into this adapter.

# attach\_gateway\_runtime

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**SupportsGatewayRuntime**](../classes/SupportsGatewayRuntime) class in the [**protocols**](../modules/protocols) module.

Wire the gateway runtime seams into this adapter.

Only seams present (non-`None`) on `runtime` should be applied;
seams left `None` mean the gateway has nothing to inject and the
adapter must keep its existing value.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def attach_gateway_runtime(runtime: 'GatewayRuntimeSeams') -> None
```

## Parameters

<ParamField query="runtime" type="GatewayRuntimeSeams" required={true}>
  The gateway reliability seams to attach.
</ParamField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/bots/protocols.py#L365">
  `praisonaiagents/bots/protocols.py` at line 365
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Gateway Feature" icon="tower-broadcast" href="/docs/docs/features/gateway" />
</CardGroup>
