BlockSuite API Documentation / @blocksuite/presets / AIChatBlockSchema
Variable: AIChatBlockSchema
const
AIChatBlockSchema:object
Type declaration
model
model:
object
&object
Type declaration
flavour
flavour:
"affine:embed-ai-chat"
props
props:
PropsGetter
<AIChatProps
>
Type declaration
children
children:
never
[] =[]
role
role:
"content"
='content'
version
version:
number
=1
onUpgrade()?
optional
onUpgrade: (data
,previousVersion
,latestVersion
) =>void
Parameters
• data: AIChatProps
• previousVersion: number
• latestVersion: number
Returns
void
transformer()?
optional
transformer: () =>BaseBlockTransformer
<AIChatProps
>
Returns
BaseBlockTransformer
<AIChatProps
>
version
version:
number
Defined in
packages/presets/src/blocks/ai-chat-block/ai-chat-model.ts:16