ResponseView

Die Antwort eines Modells, während sie einläuft: Markdown mit leisem Cursor, Reasoning in einem „Denkt nach“-Bereich und ruhige Zustände für Abbruch und Fehler.

Quelltext

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

Erstes Token
1,18 s
Gesamt
6,12 s
import { ResponseView, UserMessage, Thread } from "@logicplanes/kaeso-ui/playground";

Props

  • aria-label
    string

    Der zugängliche Name der Antwort („GPT-5-Antwort“ in einem Vergleich). Standardmäßig „Antwort“ in der Sprache des LocaleProvider.

  • defaultReasoningOpen
    boolean

    Ob das Reasoning zu Beginn ausgeklappt ist.

  • footer
    ReactNode

    Unter der Antwort: ihre Kennzahlen, Aktionen.

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

    Wird aufgerufen, wenn das Reasoning aus- oder eingeklappt wird.

  • onRetry
    (() => void)

    Sendet den Durchgang erneut; erscheint bei einem Fehler oder Abbruch.

  • reasoning
    string

    Die bisherige Reasoning-Zusammenfassung als Markdown. Ein „Denkt nach“-Bereich zeigt sie, standardmäßig zugeklappt.

  • reasoningDuration
    number

    Wie lange das Modell nachgedacht hat, in Millisekunden: „4,2 s nachgedacht“.

  • reasoningOpen
    boolean

    Ob das Reasoning ausgeklappt ist, bei gesteuertem Zustand.

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

    Wo die Antwort steht: wartend, streamend, fertig, gestoppt oder fehlgeschlagen.

  • text
    string

    Der bisherige Ausgabetext als Markdown.