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

# autogen.events.deprecated_by

<code class="doc-symbol doc-symbol-heading doc-symbol-function" />

#### deprecated\_by

```python theme={null}
deprecated_by(new_class: type[BaseModel], param_mapping: dict[str, str] = None) -> Callable[[type[BaseModel]], Callable[..., BaseModel]]
```

<b>Parameters:</b>

| Name            | Description                                            |
| --------------- | ------------------------------------------------------ |
| `new_class`     | **Type:** type\[pydantic.main.BaseModel]               |
| `param_mapping` | **Type:** dict\[str, str]<br /><br />**Default:** None |

<br />
