Skip to content

@sqlrooms/documents / createBlockDocumentCommandAiAdapter

Function: createBlockDocumentCommandAiAdapter() ​

createBlockDocumentCommandAiAdapter<TRoomState>(__namedParameters): BlockDocumentAiAdapter & Pick<BlockDocumentAiAdapter, "ensureBlockDocument"> & object

Creates a block-document AI adapter that mutates blocks through canonical block-document commands.

Type Parameters ​

Type Parameter
TRoomState extends BlockDocumentCommandAiAdapterState

Parameters ​

ParameterType
__namedParametersCreateBlockDocumentCommandAiAdapterOptions<TRoomState>

Returns ​