Appearance
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
| Parameter | Type |
|---|---|
props | Readonly<{ content: string; markdown?: boolean; isStreaming?: boolean; className?: string; }> & RefAttributes<HTMLDivElement> |
Returns
Example
ts
Response({content: 'Here is **the** answer.'});
Response({content: 'Streaming…', isStreaming: true});