Skip to content

Function: Sources()

Call Signature

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

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

Experimental

Sources — collapsible list of cited URLs shown beneath a Message. Drop Source blocks inside.

Parameters

ParameterType
contentChildBlock[]

Returns

Block

Example

ts
Sources([
  Source({href: 'https://example.com', title: 'Example article'}),
]);

Call Signature

ts
function Sources(options: SourcesBlockProps, content: ChildBlock[]): Block;

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

Experimental

Sources — collapsible list of cited URLs shown beneath a Message. Drop Source blocks inside.

Parameters

ParameterType
optionsSourcesBlockProps
contentChildBlock[]

Returns

Block

Example

ts
Sources([
  Source({href: 'https://example.com', title: 'Example article'}),
]);

Matterway Assistant SDK Documentation