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/type.ts:27


copy?

optional copy: CopyConfig

Source

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


discardCallback()?

optional discardCallback: () => void

Returns

void

Source

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


errorStateConfig

errorStateConfig: AIPanelErrorConfig

Source

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


finishStateConfig

finishStateConfig: AIPanelAnswerConfig

Source

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


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/type.ts:31


generatingIcon

generatingIcon: TemplateResult<1>

Source

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


hideCallback()?

optional hideCallback: () => void

Returns

void

Source

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