# NotificationActionRequested

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/tui/widgets/notification_center/NotificationActionRequested)

Posted for an action that opens a follow-up modal in place.

Some actions (those in `IN_PLACE_ACTIONS`, currently `ENTER_API_KEY`)
push another modal, such as the API-key prompt, on top of the
still-open center. Dismissing the center first would drop that stack,
so Esc in the follow-up modal would fall through to the base screen
instead of returning here. The app handles this message by dispatching
the action while the center stays mounted, then reloading it with the
refreshed registry snapshot.

## Signature

```python
NotificationActionRequested(
    self,
    key: str,
    action_id: ActionId,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `key` | `str` | Yes | Registry key of the notification the action targets. |
| `action_id` | `ActionId` | Yes | The in-place action the user selected. Must be a member of `IN_PLACE_ACTIONS`. |

## Extends

- `Message`

## Constructors

```python
__init__(
    self,
    key: str,
    action_id: ActionId,
) -> None
```

| Name | Type |
|------|------|
| `key` | `str` |
| `action_id` | `ActionId` |


## Properties

- `key`
- `action_id`

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/4bfa52000ef65ac623d8ada0cb67f67cbdd663ea/libs/code/deepagents_code/tui/widgets/notification_center.py#L131)