BlockSuite API Documentation / @blocksuite/presets / createTextRenderer
Function: createTextRenderer()
createTextRenderer(
host
): (answer
,state
?) => typeofnothing
|TemplateResult
<1
>
Parameters
• host: EditorHost
Returns
Function
Parameters
• answer:
string
• state?:
AffineAIPanelState
Returns
typeof
nothing
|TemplateResult
<1
>
Source
packages/presets/src/ai/messages/text.ts:98