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

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

One session's outcome of an iterate step: keep stepping (Continue), done (Finish), or failed (Error), with this step's outputs for the session.

## `disposition` (property)

(self) -> clika_runtime._core.runtime.Disposition

## `error` (property)

The failure message when the disposition is Error, else None.

## `outputs` (property)

This step's outputs for the session, as a dict of tensors.

## `__init__`

```python
__init____init__(self, disposition: clika_runtime._core.runtime.Disposition = Disposition.Continue, *, outputs: dict | None = None, error: str | None = None) -> None
```

__init__(self, disposition: clika_runtime._core.runtime.Disposition = Disposition.Continue, *, outputs: dict | None = None, error: str | None = None) -> None

outputs is a dict of tensors keyed by the node's output names; an error message sets the disposition to Error.

## `fail`

```python
failfail(message: str) -> clika_runtime._core.runtime.StepResult
```

fail(message: str) -> clika_runtime._core.runtime.StepResult

An Error result: this session fails with `message`; the rest of the batch is undisturbed.

## `finish`

```python
finishfinish(outputs: dict | None = None) -> clika_runtime._core.runtime.StepResult
```

finish(outputs: dict | None = None) -> clika_runtime._core.runtime.StepResult

A Finish result carrying the session's final outputs.
