Skip to content

@sqlrooms/documents / CreateBlockDocumentCommandAiAdapterOptions

Type Alias: CreateBlockDocumentCommandAiAdapterOptions<TRoomState>

CreateBlockDocumentCommandAiAdapterOptions<TRoomState> = object

Type Parameters

Type Parameter
TRoomState extends BlockDocumentCommandAiAdapterState

Properties

store

store: StoreApi<TRoomState>

Store with artifacts, block documents, and command slices mounted.


isBlockDocumentArtifact?

optional isBlockDocumentArtifact?: (artifact) => boolean

Optional host predicate for persisted artifact compatibility.

Omit this for plain block-document artifacts. Hosts that temporarily persist another artifact type can provide a predicate without leaking that type into the reusable adapter API.

Parameters

ParameterType
artifactArtifactMetadataType

Returns

boolean