Appearance
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
| Parameter | Type |
|---|---|
content | ChildBlock[] |
Returns
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
| Parameter | Type |
|---|---|
options | ChainOfThoughtBlockProps |
content | ChildBlock[] |
Returns
Example
ts
ChainOfThought([
ChainOfThoughtStep([Text({content: 'Identify request'})]),
ChainOfThoughtStep([Text({content: 'Fetch related docs'})]),
]);