# ExtensionRuntimeMiddleware

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/extensions/hosting/ExtensionRuntimeMiddleware)

Expose tools registered after the agent graph was built.

## Signature

```python
ExtensionRuntimeMiddleware(
    self,
    registry: ExtensionRegistry,
)
```

## Extends

- `AgentMiddleware`

## Constructors

```python
__init__(
    self,
    registry: ExtensionRegistry,
) -> None
```

| Name | Type |
|------|------|
| `registry` | `ExtensionRegistry` |


## Properties

- `name`

## Methods

- [`wrap_model_call()`](https://reference.langchain.com/python/deepagents-code/extensions/hosting/ExtensionRuntimeMiddleware/wrap_model_call)
- [`awrap_model_call()`](https://reference.langchain.com/python/deepagents-code/extensions/hosting/ExtensionRuntimeMiddleware/awrap_model_call)
- [`wrap_tool_call()`](https://reference.langchain.com/python/deepagents-code/extensions/hosting/ExtensionRuntimeMiddleware/wrap_tool_call)
- [`awrap_tool_call()`](https://reference.langchain.com/python/deepagents-code/extensions/hosting/ExtensionRuntimeMiddleware/awrap_tool_call)

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/2069079e09546060f5b52b2cd4f0e3c813e820f3/libs/code/deepagents_code/extensions/hosting.py#L38)