Step Reasoning Playground

Watch the AI think step-by-step. Choose a reasoning style and visualize the thought process.

Linear step-by-step reasoning

Click "Start Reasoning" to watch the AI think

Code Example

import { createReasoningAgent, chainOfThought } from 'agent-tools-kit/reasoning'

// Quick analysis
const result = await chainOfThought('Is this transaction suspicious?', {
  model: 'openai/gpt-5',
  maxSteps: 10,
})

console.log(result.steps)      // Array of { type, content, confidence }
console.log(result.conclusion) // Final answer
console.log(result.confidence) // 0-1 overall confidence

// Or use the full agent with streaming
const agent = createReasoningAgent({
  model: 'openai/gpt-5',
  reasoningStyle: 'chain-of-thought',
  maxSteps: 10,
})

for await (const step of agent.streamReason({ problem: '...' })) {
  console.log(`[${step.type}] ${step.content}`)
}