---
title: "PhaseContext"
sidebar_label: "PhaseContext"
description: "The clika_runtime.runtime PhaseContext class."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

What a run-once callable receives: the session's inputs (read), its outputs (write), its state object, and the stream the phase runs on. Valid only during the call; a later access raises RuntimeError.

## `inputs` (property)

The request inputs, as a dict of tensors (a fresh dict of handles each time).

## `outputs` (property)

The output mapping to write this phase's outputs into.

## `state` (property)

The object make_state returned for this session, or None for a stateless node.

## `stream` (property)

The stream the phase runs on.

## `__init__`

```python
__init__(self, /, *args, **kwargs)
```

Initialize self.  See help(type(self)) for accurate signature.
