component: thinking process artifact #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thinking Process Artifact
A HAX SDK component for visualizing AI reasoning, decision-making steps, and workflow progress.
Installation
Via HAX CLI (Recommended)
First, ensure your project is initialized with HAX:
Then add the thinking-process artifact:
This will automatically:
hax.config.jsonDependencies
The following dependencies will be installed automatically:
Usage
Basic Component Usage
With CopilotKit Action
HAX Wrapper Component
Components
ThinkingProcess
Main card component displaying the complete thinking process.
titlestring"Thinking Process"badgestringstepsReasoningStep[]metricsStepMetric[][]showTogglebooleanfalsetoggleLabelstring"Show reasoning process"showReasoningbooleantrueonToggleReasoning(show: boolean) => voidreasoningCollapsiblebooleantrueclassNamestringAgentReasoning
Collapsible section showing reasoning steps with purple theme.
titlestring"Agent Reasoning"stepsReasoningStep[]expandedbooleantrueonExpandedChange(expanded: boolean) => voidcollapsiblebooleantrueclassNamestringProcessStep
Individual step in the reasoning process.
titlestringdescriptionstringstatusProcessStepStatus"pending"showIconbooleantrueflipIconbooleanfalseclassNamestringConfidenceChip
Displays metrics with label and value badge.
labelstring"Steps Completed"valuestringvariant"default" | "badge""badge"classNamestringSchema
ReasoningStep Type
StepMetric Type
ProcessStepStatus
Status visual indicators:
completed: Green checkmarkin-progress: Spinning loaderpending: Gray circleerror: Red XZod Schema
CopilotKit Action
The
useThinkingProcessActionhook registers acreate_thinking_processaction with CopilotKit.Action Parameters
titlestringbadgestringstepsJsonstringmetricsJsonstringshowTogglebooleanreasoningCollapsiblebooleanstepsJson Format
[ { "id": "step-1", "title": "Analyzing data", "description": "Processing input parameters", "status": "completed" }, { "id": "step-2", "title": "Running analysis", "status": "in-progress" } ]metricsJson Format
[ { "label": "Steps Completed", "value": "2/5" }, { "label": "Confidence", "value": "85%" } ]Best Practices
When to Use
Use thinking process artifacts for:
Avoid using thinking process for:
Exports
License
Apache License 2.0 - Copyright 2025 Cisco Systems, Inc. and its affiliates