Skip to content
Developer Preview

NotificationObserver

Hears one server notification frame. Read-only at the top level, and do not change nested values: the session folds the same frame, possibly after the listener runs. An async def listener is run as a task.

Type alias in muse_code

NotificationObserver = Callable[[Mapping[str, Any]], 'None | Awaitable[None]']

Source

clients/sdk-py/src/muse_code/facade/client.py:381