@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
| Parameter | Type |
|---|---|
__namedParameters | CreateBlockDocumentCommandAiAdapterOptions<TRoomState> |