Skip to content
BENIBIX Learn

Streaming Input Mode

AI🧩 Claude Agent SDKAgent SDK Basics

Also known as streaming input, Agent SDK streaming mode, Claude Agent SDK Streaming Input Mode

The mode that keeps one session open. You can send more, add images and stop it.

Think of it like

It is like a walkie-talkie left on. You can talk again at any time, and cut in.

Example

Mia's chat app sends each new user message into the same stream. Users can add a screenshot or stop Claude mid-answer.

Why it matters

Real apps need follow-ups, images and a stop button. Only this mode has all three.

Definition

Streaming input mode is the way of using the Agent SDK where you feed prompts to one long-lived session as a stream. You can send more messages while the agent works, attach images, stop a turn and change the model mid-session. The docs call it the preferred mode. A limit such as max turns ends a turn but leaves the session alive.
The two input modes side by side.

Common mistake

Using a single prompt string and then wondering why you cannot attach an image. That needs streaming input.

Key takeaways

  1. 1
    One long session. Many messages.
  2. 2
    Images and interrupts. Supported.
  3. 3
    Preferred mode. Per the docs.

Compare