Appearance
Function: reply()
ts
function reply(text: string, ...content: ReplyContent[]): ChatReply;Defined in: packages/sdk/src/renderer/templates/chat-tools.ts:180
A skill-authored reply. text is shown to the user verbatim (the model never rephrases it); the turn ends. Optional content — built with code, sources, speech, image, webPreview, task, reasoning, or any renderer block — renders beneath the text.
Parameters
| Parameter | Type |
|---|---|
text | string |
...content | ReplyContent[] |
Returns
Example
ts
return reply(`Deleted ${path}.`);
return reply('Here is the helper:', code(src, {language: 'ts', filename: 'debounce.ts'}));
return reply('Reading it aloud…', speech('Hello there.'));