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

# RuntimeObserver

> Caller-owned observer, invoked synchronously by observing clients

```python theme={null}
from grid_cortex_client import RuntimeObserver
```

Caller-owned observer, invoked synchronously by observing clients.

Methods should finish quickly, for example by queuing a snapshot for a
background writer. The SDK neither flushes nor closes the observer. An
observer shared across clients must support their calling threads/tasks.
Ordinary observer exceptions never replace inference results or exceptions.

## Methods

### `on_error()`

```python Signature theme={null}
on_error() -> None
```

Mark recording incomplete after event construction or delivery failed.

### `on_event()`

```python Signature theme={null}
on_event(event: CortexExecutionEvent) -> None
```

Receive a request, response, or error event.


## Related topics

- [Session Configuration](/simulation/airgen/session_configuration.md)
- [CLI reference](/cli/reference.md)
- [GRID Cortex Client](/models/cortex.md)
- [Common FAQs](/faq/common-faqs.md)
- [IsaacArm](/python-api/isaac-robots/isaacarm.md)
