Skip to content

Function: Artifact()

Call Signature

ts
function Artifact(content: ChildBlock[]): Block;

Defined in: src/renderer/blocks/index.ts:2458

Experimental

Artifact — bordered container with header (title/description/close) and a content area. Drop generated content (image, code, …) inside.

Parameters

ParameterType
contentChildBlock[]

Returns

Block

Example

ts
Artifact({title: 'Generated image', closable: true}, [
  GeneratedImage({base64: '…', mediaType: 'image/png', alt: 'logo'}),
]);

Call Signature

ts
function Artifact(options: ArtifactBlockProps, content: ChildBlock[]): Block;

Defined in: src/renderer/blocks/index.ts:2459

Experimental

Artifact — bordered container with header (title/description/close) and a content area. Drop generated content (image, code, …) inside.

Parameters

ParameterType
optionsArtifactBlockProps
contentChildBlock[]

Returns

Block

Example

ts
Artifact({title: 'Generated image', closable: true}, [
  GeneratedImage({base64: '…', mediaType: 'image/png', alt: 'logo'}),
]);

Matterway Assistant SDK Documentation