Skip to content

Function: Conversation()

Call Signature

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

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

Experimental

Conversation — scrollable transcript container. Auto-scrolls to the latest child unless the user has scrolled up.

Parameters

ParameterType
contentChildBlock[]

Returns

Block

Example

ts
Conversation([
  Message({from: 'user'}, [MessageBody({content: 'Hi'})]),
  Message({from: 'assistant'}, [MessageBody({content: 'Hello!'})]),
]);

Call Signature

ts
function Conversation(options: ConversationProps, content: ChildBlock[]): Block;

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

Experimental

Conversation — scrollable transcript container. Auto-scrolls to the latest child unless the user has scrolled up.

Parameters

ParameterType
optionsConversationProps
contentChildBlock[]

Returns

Block

Example

ts
Conversation([
  Message({from: 'user'}, [MessageBody({content: 'Hi'})]),
  Message({from: 'assistant'}, [MessageBody({content: 'Hello!'})]),
]);

Matterway Assistant SDK Documentation