component: thinking process artifact#5
Closed
jaswantsingh09 wants to merge 1 commit intooutshift-open:mainfrom
Closed
component: thinking process artifact#5jaswantsingh09 wants to merge 1 commit intooutshift-open:mainfrom
jaswantsingh09 wants to merge 1 commit intooutshift-open:mainfrom
Conversation
5f4321e to
0e96ae2
Compare
Signed-off-by: Rishikesh Chandra <rishikesh@intelligaia.com>
0e96ae2 to
77bcb84
Compare
juliarvalenti
added a commit
that referenced
this pull request
Feb 11, 2026
Fixes applied to original PR #5: - types.ts: named zod import, exported sub-schemas, .describe() annotations, removed ArtifactTabZod - action.ts: Zod validation on parsed JSON, direct type reference - index.ts: added description and sub-schema exports Signed-off-by: Julia Valenti (julvalen) <julvalen@cisco.com>
4 tasks
Collaborator
|
Thank you for this contribution! We've incorporated your work with some pattern fixes in PR #17. Closing this in favor of that PR. |
juliarvalenti
added a commit
that referenced
this pull request
Feb 12, 2026
Fixes applied to original PR #5: - types.ts: named zod import, exported sub-schemas, .describe() annotations, removed ArtifactTabZod - action.ts: Zod validation on parsed JSON, direct type reference - index.ts: added description and sub-schema exports Signed-off-by: Julia Valenti (julvalen) <julvalen@cisco.com>
juliarvalenti
added a commit
that referenced
this pull request
Feb 12, 2026
Fixes applied to original PR #5: - types.ts: named zod import, exported sub-schemas, .describe() annotations, removed ArtifactTabZod - action.ts: Zod validation on parsed JSON, direct type reference - index.ts: added description and sub-schema exports Signed-off-by: Julia Valenti (julvalen) <julvalen@cisco.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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