Agentic
Agent Thinking
Shows a model working before it answers: the current step, the sources it reads, and its reasoning, folding into Thought for Ns.
Usage
With the AI SDK
Join the reasoning parts of the latest assistant message. It is thinking while the request is pending or streaming and no answer text has arrived, so the thinking indicator also covers the wait before the first token.
With TanStack AI
Reasoning arrives as thinking parts with content. The same rule decides when thinking ends: the first answer text.
Examples
Recommendations
| Guidance | Practice |
|---|---|
| Do | Pass the reasoning so far with status streaming, name the current step in stage, and set status to complete when the answer starts. Pass duration when showing a reply from history. |
Usage boundaries
| Guidance | Boundary |
|---|---|
| Scope | The application owns the reasoning stream and decides which steps to name. Agent Thinking shows them; it does not run tools or fetch sources. |
| Scope | Show reasoning the model chose to expose. Some providers only return a summary, or nothing. |
API reference
Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.
| Prop | Type | Default | Description |
|---|---|---|---|
| | — | streaming shows the current step with a thinking indicator and the newest lines of reasoning; complete folds into Thought for Ns, which opens to the full reasoning. |
| | "" | The reasoning so far. Paragraphs are separated by blank lines; new words resolve out of blur. |
| | "Thinking" | What the model is doing now. Each change is announced politely. |
| | [] | Sources the model is reading, shown as citation chips as they arrive. |
| | Measured | Seconds spent thinking. Measured while the component watches the stream; pass it for a reply loaded from history. |