Appearance
Function: Response()
ts
function Response(props: Readonly<{
content: string;
className?: string;
isStreaming?: boolean;
markdown?: boolean;
}> & RefAttributes<HTMLDivElement>): Block;Defined in: packages/sdk/src/renderer/blocks/index.ts:2141
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; className?: string; isStreaming?: boolean; markdown?: boolean; }> & RefAttributes<HTMLDivElement> |
Returns
Example
ts
Response({content: 'Here is **the** answer.'});
Response({content: 'Streaming…', isStreaming: true});