# StreamState

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/client/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[ToolCallBufferKey, ToolCallBuffer] = dict(),
    in_flight_tool_calls: dict[str, InFlightToolCall] = dict(),
    displayed_tool_call_ids: set[str] = set(),
    emitted_tool_use_ids: set[str] = set(),
    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,
    show_rubric_iterations: bool = False,
)
```

## Constructors

```python
__init__(
    self,
    quiet: bool = False,
    stream: bool = True,
    full_response: list[str] = list(),
    tool_call_buffers: dict[ToolCallBufferKey, ToolCallBuffer] = dict(),
    in_flight_tool_calls: dict[str, InFlightToolCall] = dict(),
    displayed_tool_call_ids: set[str] = set(),
    emitted_tool_use_ids: set[str] = set(),
    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,
    show_rubric_iterations: bool = False,
) -> None
```

| Name | Type |
|------|------|
| `quiet` | `bool` |
| `stream` | `bool` |
| `full_response` | `list[str]` |
| `tool_call_buffers` | `dict[ToolCallBufferKey, ToolCallBuffer]` |
| `in_flight_tool_calls` | `dict[str, InFlightToolCall]` |
| `displayed_tool_call_ids` | `set[str]` |
| `emitted_tool_use_ids` | `set[str]` |
| `pending_interrupts` | `dict[str, HITLRequest]` |
| `hitl_response` | `dict[str, dict[str, list[dict[str, str]]]]` |
| `interrupt_occurred` | `bool` |
| `stats` | `SessionStats` |
| `spinner` | `_ConsoleSpinner \| None` |
| `show_rubric_iterations` | `bool` |


## Properties

- `quiet`
- `stream`
- `full_response`
- `tool_call_buffers`
- `in_flight_tool_calls`
- `displayed_tool_call_ids`
- `emitted_tool_use_ids`
- `pending_interrupts`
- `hitl_response`
- `interrupt_occurred`
- `stats`
- `spinner`
- `show_rubric_iterations`

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/e14e0adcbe78565ed3650e7f24b2a775d5437d25/libs/code/deepagents_code/client/non_interactive.py#L299)