> ## 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.

# CortexExecutionEvent

> One phase of a client ``run`` call, correlated by ``call_id``

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

One phase of a client `run` call, correlated by `call_id`.

`payload` contains the caller's inputs before model preprocessing;
`response` is the exact returned value, including when `raw_response` is
requested. Observers must not mutate these objects, and must snapshot anything
they retain. `route` is absent if model resolution failed before a request
could be prepared. `error_type` names the exception delivered to the caller.

## Fields

<ResponseField name="call_id" type="str" />

<ResponseField name="model" type="str" />

<ResponseField name="route" type="str | None" />

<ResponseField name="phase" type="Literal['request', 'response', 'error']" />

<ResponseField name="payload" type="dict[str, Any] | None" default="None" />

<ResponseField name="response" type="Any" default="None" />

<ResponseField name="error_type" type="str | None" default="None" />

## Constructor

```python Signature theme={null}
CortexExecutionEvent(
    call_id: str,
    model: str,
    route: str | None,
    phase: Literal['request', 'response', 'error'],
    payload: dict[str, Any] | None = None,
    response: Any = None,
    error_type: str | None = None,
)
```


## Related topics

- [MonitorEvent](/python-api/grid-nexus-client/monitorevent.md)
- [RemoteDeployment](/python-api/grid-nexus-client/remotedeployment.md)
- [Customizing RL Training](/simulation/isaac/reinforcement-learning/customizing-training.md)
- [Your first skill](/get-started/first-skill.md)
- [grid-nexus-client](/python-api/grid-nexus-client/overview.md)
