Skip to content

Function: Reasoning()

ts
function Reasoning(props: Readonly<{
  content: string;
  isStreaming?: boolean;
  duration?: number;
  defaultOpen?: boolean;
  className?: string;
}> & RefAttributes<HTMLDivElement>): Block;

Defined in: src/renderer/blocks/index.ts:2269

Experimental

Reasoning — collapsible "thinking" block. Shows a shimmer while isStreaming is true and the elapsed duration once complete.

Parameters

ParameterType
propsReadonly<{ content: string; isStreaming?: boolean; duration?: number; defaultOpen?: boolean; className?: string; }> & RefAttributes<HTMLDivElement>

Returns

Block

Example

ts
Reasoning({content: 'First, I considered…', isStreaming: false, duration: 8});

Matterway Assistant SDK Documentation