Skip to content

Function: ChainOfThought()

Call Signature

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

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

Experimental

ChainOfThought — collapsible list of numbered reasoning steps. Drop ChainOfThoughtStep blocks inside.

Parameters

ParameterType
contentChildBlock[]

Returns

Block

Example

ts
ChainOfThought([
  ChainOfThoughtStep([Text({content: 'Identify request'})]),
  ChainOfThoughtStep([Text({content: 'Fetch related docs'})]),
]);

Call Signature

ts
function ChainOfThought(options: ChainOfThoughtBlockProps, content: ChildBlock[]): Block;

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

Experimental

ChainOfThought — collapsible list of numbered reasoning steps. Drop ChainOfThoughtStep blocks inside.

Parameters

ParameterType
optionsChainOfThoughtBlockProps
contentChildBlock[]

Returns

Block

Example

ts
ChainOfThought([
  ChainOfThoughtStep([Text({content: 'Identify request'})]),
  ChainOfThoughtStep([Text({content: 'Fetch related docs'})]),
]);

Matterway Assistant SDK Documentation