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:51


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

props.finish

props.input: string

props.signal: AbortSignal

props.update

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