Skip to content

Function: reasoning()

@providerprotocol/ai


@providerprotocol/ai / @providerprotocol/ai / reasoning

reasoning(content): ReasoningBlock

Defined in: src/types/content.ts:451

Creates a reasoning content block from a string.

string

The reasoning/thinking content

ReasoningBlock

A ReasoningBlock containing the provided text

const block = reasoning('Let me think step by step...');
// { type: 'reasoning', text: 'Let me think step by step...' }