Skip to content

Function: Response()

ts
function Response(props: Readonly<{
  content: string;
  markdown?: boolean;
  isStreaming?: boolean;
  className?: string;
}> & RefAttributes<HTMLDivElement>): Block;

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

Experimental

Response — streaming-aware markdown body for an assistant message. Set isStreaming to true while tokens are still arriving and a blinking cursor is appended.

Parameters

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

Returns

Block

Example

ts
Response({content: 'Here is **the** answer.'});
Response({content: 'Streaming…', isStreaming: true});

Matterway Assistant SDK Documentation