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

Defined in

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


copy?

optional copy: CopyConfig

Defined in

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


discardCallback()?

optional discardCallback: () => void

Returns

void

Defined in

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


errorStateConfig

errorStateConfig: AIPanelErrorConfig

Defined in

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


finishStateConfig

finishStateConfig: AIPanelAnswerConfig

Defined in

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


generateAnswer()?

optional generateAnswer: (props) => void

Parameters

props
finish

(type, err?) => void

input

string

signal

AbortSignal

update

(answer) => void

Returns

void

Defined in

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


generatingStateConfig

generatingStateConfig: AIPanelGeneratingConfig

Defined in

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


hideCallback()?

optional hideCallback: () => void

Returns

void

Defined in

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


inputCallback()?

optional inputCallback: (input) => void

Parameters

input

string

Returns

void

Defined in

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