ekairos

Chain of Thought

Collapsible component to visualize AI reasoning steps.

installation
npx ekairos@latest add chain-of-thought

Disponible en registry.ekairos.dev/chain-of-thought

**Retrieving Fibonacci sequence** The user asked for the Fibonacci sequence in Spanish. I need to call a function first, likely the createMessage tool since I'm answering the user. Even though it's a generic math question, I still have to use a tool. I'll prepare to send a message with a brief explanation, even though the tool call won't be visible to the user. I should respond in Spanish and provide the first few terms of the sequence along with the formula.
**Planning Fibonacci response** I should ask the user how many terms they want, but since the prompt is straightforward, I could simply provide the first 15 or 20 terms along with a definition. I don't want to make it too verbose, so brevity is key. First, I'll call functions.createMessage to send a markdown message that summarizes the definition of the Fibonacci sequence.
api reference
proptypedefaultdescription
defaultOpenbooleanfalseWhether the thought process is visible initially.
status'pending' | 'active' | 'complete'completeState of the specific reasoning step.