Function: reasoning()
@providerprotocol/ai / @providerprotocol/ai / reasoning
Function: reasoning()
Section titled “Function: reasoning()”reasoning(
content):ReasoningBlock
Defined in: src/types/content.ts:451
Creates a reasoning content block from a string.
Parameters
Section titled “Parameters”content
Section titled “content”string
The reasoning/thinking content
Returns
Section titled “Returns”A ReasoningBlock containing the provided text
Example
Section titled “Example”const block = reasoning('Let me think step by step...');// { type: 'reasoning', text: 'Let me think step by step...' }