ResponseView

A model's response as it arrives: nothing until the first token, Markdown as it streams, reasoning in a Thinking disclosure, and calm stopped, cut-off and failed states.

View source

Subject: Your order #4471 is on its way — and we’re sorry it’s late

Hi Maya,

Your order #4471 left our warehouse on time, but a delay with our carrier held it up for three days. That’s not the experience we want for you, and I’m sorry.

It’s moving again and should arrive by Thursday. As a thank-you for your patience, your next order ships free — the code is applied to your account automatically.

Warmly,
The Northwind team

First token
1.18 s
Total
6.12 s
import { ResponseView, UserMessage, Thread } from "@logicplanes/kaeso-ui/playground";

Props

  • aria-label
    string

    The response's accessible name ("GPT-5 response" in a comparison). Defaults to "Response" in the provider's language.

  • defaultReasoningOpen
    boolean

    Whether the reasoning starts expanded.

  • error
    string

    Why the reply failed, shown under "No response" with status "error": the gateway's message in the reader's language; code spans render as code.

  • footer
    ReactNode

    Under the response, after Copy and Retry on their row: its metrics.

  • incompleteReason
    string

    Why the model cut the reply off, with status "incomplete": max_output_tokens reads "Stopped at the output limit", content_filter names the filter.

  • onReasoningOpenChange
    ((open: boolean) => void)

    Called when the reasoning is expanded or collapsed.

  • onRetry
    (() => void)

    Sends the turn again: a Retry button after a stop, a cut-off reply or an error, and a quiet Retry circle under a finished reply.

  • reasoning
    string

    The reasoning summary so far, as Markdown. A "Thinking" disclosure shows it, closed by default.

  • reasoningDuration
    number

    How long the model reasoned, in milliseconds: "Thought for 4.2 s".

  • reasoningOpen
    boolean

    Whether the reasoning is expanded, when you control it.

  • status
    "done" | "error" | "streaming" | "pending" | "stopped" | "incomplete" = done

    Where the reply stands: waiting, streaming, done, stopped, cut off by the model (incomplete) or failed.

  • text
    string

    The output text so far, as Markdown.