mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-13 17:52:38 +02:00
chat-messages: add timeline module with builder, grouping, items, and rendering.
This commit is contained in:
parent
9e451a5907
commit
48c4df822a
12 changed files with 879 additions and 0 deletions
|
|
@ -0,0 +1,15 @@
|
|||
import type { FC } from "react";
|
||||
import type { ReasoningItem as ReasoningItemModel } from "../types";
|
||||
import { ItemHeader } from "./item-header";
|
||||
|
||||
/**
|
||||
* Renders a ``kind: "reasoning"`` row — pure agent narration with no
|
||||
* tool component beneath it. Just the shared header.
|
||||
*
|
||||
* Native ``<think>`` blocks (model-level reasoning) are NOT rendered
|
||||
* here — they live in the body via assistant-ui's ``Reasoning``
|
||||
* component.
|
||||
*/
|
||||
export const ReasoningItem: FC<{ item: ReasoningItemModel }> = ({ item }) => (
|
||||
<ItemHeader title={item.title} status={item.status} items={item.items} itemKey={item.id} />
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue