Path: redb-route/redb.Route.Llm/LlmStreamMode.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Llm/LlmStreamMode.cs
----
namespace redb.Route.Llm;
/// How an llm: step streams (stream=).
public enum LlmStreamMode
{
/// No streaming (the option is absent): every model call waits for the whole answer.
Off,
///
/// stream=calls: the agent engine makes every model call as a stream, inside the route. Tools, the
/// conversation, the budget and the route's transaction work as without streaming; the pieces go to
/// , and Out.Body is the final text. The
/// connection carries data while the model writes, which keeps long calls alive through tunnels and proxies.
///
Calls,
///
/// stream=body: Out.Body is an of strings, and the agent run —
/// tools, conversation, budget — happens when the body is read, after the route, the way a streamed SQL result is
/// read. The visible text of every model call streams as the model writes it, for HTTP (SSE), WebSocket and gRPC
/// consumers to forward; the summary headers arrive after the run. The body belongs to its exchange: it is read
/// once, released with the exchange, and refused by RequestBody. Refused inside .Transacted(): the
/// block would commit before the answer exists; use there.
///
Body
}