---
title: "StreamingDecoder"
sidebar_label: "StreamingDecoder"
description: "The clika_runtime.tokenizer StreamingDecoder class."
---

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


## `__init__`

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

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

## `finish`

```python
finishfinish(self) -> str
```

finish(self) -> str

Flush everything not yet emitted; the decoder resets, reusable for a fresh stream.

## `push`

```python
pushpush(self, token_id: int) -> str
```

push(self, token_id: int) -> str

Append one generated id; returns the newly-stable text (often empty until a boundary lands).
