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

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

What an iterate callable receives: one slot per batched session (in batch order) and the stream the step runs on. Return one StepResult per slot, in the same order. Valid only during the call; a later access raises RuntimeError.

## `slots` (property)

The batched sessions' slots, in batch order.

## `stream` (property)

The stream the step runs on.

## `__init__`

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

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