Skip to content

Function: Sources()

Call Signature

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

Defined in: packages/sdk/src/renderer/blocks/index.ts:2303

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: packages/sdk/src/renderer/blocks/index.ts:2304

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