Reasoning

A model's reasoning behind a quiet disclosure: “Thought for 4.2 s” when it is done, “Thinking” with its latest line while it streams.

View source
import { Reasoning } from "@logicplanes/kaeso-ui/playground";

Props

  • children
    ReactNode

    What the open disclosure shows in place of text, such as why the reasoning can't be shown.

  • defaultOpen
    boolean

    Whether it starts open.

  • duration
    number

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

  • hint
    ReactNode

    A short note beside the title, such as “Redacted by the provider”; while live, the latest line of the reasoning shows there instead.

  • live
    boolean = false

    The reasoning is still arriving: “Thinking” pulses quietly and its latest line shows beside it.

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

    Called when it opens or closes.

  • open
    boolean

    Whether it is open, when you control it.

  • text
    string

    The reasoning, as Markdown.

  • title
    ReactNode

    The title in place of “Thinking” or “Thought for …”, such as “Reasoning” in a request log.