Appearance
Function: code()
ts
function code(source: string, opts?: {
language?: string;
filename?: string;
}): ReplyFragment;Defined in: packages/sdk/src/renderer/templates/chat-tools.ts:51
A syntax-highlighted code block.
Parameters
| Parameter | Type |
|---|---|
source | string |
opts | { language?: string; filename?: string; } |
opts.language? | string |
opts.filename? | string |