ResponseView

模型正在输出的回复:带低调光标的 Markdown,推理放在“思考中”折叠区内,停止和失败状态保持平静。

查看源码

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

首个 Token
1.18 s
总计
6.12 s
import { ResponseView, UserMessage, Thread } from "@logicplanes/kaeso-ui/playground";

属性

  • aria-label
    string

    回复的无障碍名称(对比时如“GPT-5 回复”)。默认为 LocaleProvider 语言中的“回复”。

  • defaultReasoningOpen
    boolean

    推理过程是否初始展开。

  • footer
    ReactNode

    回复下方:数据和操作。

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

    推理过程展开或收起时调用。

  • onRetry
    (() => void)

    重新发送本轮;出错或停止时显示。

  • reasoning
    string

    目前为止的推理摘要,为 Markdown。由“思考中”折叠区显示,默认收起。

  • reasoningDuration
    number

    模型推理的时长(毫秒):“思考了 4.2 秒”。

  • reasoningOpen
    boolean

    受控时,推理过程是否展开。

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

    回复所处的状态:等待中、流式输出中、已完成、已停止或失败。

  • text
    string

    目前为止的输出文本,为 Markdown。