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

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

The chunks of one streamed session, as an iterator: each item is a ResponseChunk; iteration ends when the session finishes (a failed session raises RuntimeError where the failure lands in the sequence). wait() returns the final Response. close() stops delivery; the session itself runs to completion.

## `closed` (property)

True after close().

## `done` (property)

True once the session has finished (cleanly or not).

## `session` (property)

The session id.

## `__init__`

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

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

## `close`

```python
closeclose(self) -> None
```

close(self) -> None

Stop delivery: queued chunks are dropped and iteration ends. The session runs to completion; wait() still returns its Response.

## `wait`

```python
waitwait(self) -> clika_runtime._core.runtime.Response
```

wait(self) -> clika_runtime._core.runtime.Response

Block until the session completes; returns its final Response (a failed session raises RuntimeError). Chunks already queued stay readable.
