Skip to content

BlockSuite API Documentation / @blocksuite/blocks / AffineAIPanelWidgetConfig

Interface: AffineAIPanelWidgetConfig

Properties

answerRenderer()

answerRenderer: (answer, state?) => TemplateResult<1> | typeof nothing

Parameters

answer: string

state?: AffineAIPanelState

Returns

TemplateResult<1> | typeof nothing

Source

packages/blocks/src/root-block/widgets/ai-panel/ai-panel.ts:31


discardCallback()?

optional discardCallback: () => void

Returns

void

Source

packages/blocks/src/root-block/widgets/ai-panel/ai-panel.ts:45


errorStateConfig

errorStateConfig: AIPanelErrorConfig

Source

packages/blocks/src/root-block/widgets/ai-panel/ai-panel.ts:44


finishStateConfig

finishStateConfig: AIPanelAnswerConfig

Source

packages/blocks/src/root-block/widgets/ai-panel/ai-panel.ts:43


generateAnswer()?

optional generateAnswer: (props) => void

Parameters

props

props.finish

props.input: string

props.signal: AbortSignal

props.update

Returns

void

Source

packages/blocks/src/root-block/widgets/ai-panel/ai-panel.ts:35