# StreamState

> **Class** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/non_interactive/StreamState)

Mutable state accumulated while iterating over the agent stream.

## Signature

```python
StreamState(
    self,
    quiet: bool = False,
    stream: bool = True,
    full_response: list[str] = list(),
    tool_call_buffers: dict[int | str, dict[str, str | None]] = dict(),
    pending_interrupts: dict[str, HITLRequest] = dict(),
    hitl_response: dict[str, dict[str, list[dict[str, str]]]] = dict(),
    interrupt_occurred: bool = False,
    stats: SessionStats = SessionStats(),
    spinner: _ConsoleSpinner | None = None,
)
```

## Constructors

```python
__init__(
    self,
    quiet: bool = False,
    stream: bool = True,
    full_response: list[str] = list(),
    tool_call_buffers: dict[int | str, dict[str, str | None]] = dict(),
    pending_interrupts: dict[str, HITLRequest] = dict(),
    hitl_response: dict[str, dict[str, list[dict[str, str]]]] = dict(),
    interrupt_occurred: bool = False,
    stats: SessionStats = SessionStats(),
    spinner: _ConsoleSpinner | None = None,
) -> None
```

| Name | Type |
|------|------|
| `quiet` | `bool` |
| `stream` | `bool` |
| `full_response` | `list[str]` |
| `tool_call_buffers` | `dict[int \| str, dict[str, str \| None]]` |
| `pending_interrupts` | `dict[str, HITLRequest]` |
| `hitl_response` | `dict[str, dict[str, list[dict[str, str]]]]` |
| `interrupt_occurred` | `bool` |
| `stats` | `SessionStats` |
| `spinner` | `_ConsoleSpinner \| None` |


## Properties

- `quiet`
- `stream`
- `full_response`
- `tool_call_buffers`
- `pending_interrupts`
- `hitl_response`
- `interrupt_occurred`
- `stats`
- `spinner`

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/88c2b5cb874dc1d093acf54d2a967ba6e085c99b/libs/cli/deepagents_cli/non_interactive.py#L155)