BlockSuite API Documentation / @blocksuite/presets / actionToGenerateAnswer
Function: actionToGenerateAnswer()
actionToGenerateAnswer<
T
>(id
,variants
?): (host
) => (__namedParameters
) =>void
Type parameters
• T extends keyof AIActions
Parameters
• id: T
• variants?: Omit
<Parameters
<AIActions
[T
]>[0
], keyof AITextActionOptions
>
Returns
Function
Parameters
• host: EditorHost
Returns
Function
Parameters
• __namedParameters
• __namedParameters.finish
• __namedParameters.input: string
• __namedParameters.signal?: AbortSignal
• __namedParameters.update
Returns
void
Source
packages/presets/src/ai/actions/doc-handler.ts:106