component: findings artifact#3
Open
jaswantsingh09 wants to merge 4 commits intooutshift-open:mainfrom
Open
Conversation
e290f75 to
4e269ab
Compare
5fb04eb to
8a6dc00
Compare
Signed-off-by: jaswantsingh09 <jaswant.singh@intelligaia.com> Signed-off-by: Jaswant Singh <jaswant.singh@intelligaia.com>
Signed-off-by: Jaswant Singh <jaswant.singh@intelligaia.com>
Signed-off-by: Jaswant Singh <jaswant.singh@intelligaia.com>
871a09d to
b90d7b7
Compare
- Simplified findings artifact to use @/components/findings - Added FindingsPanel, FindingsCard, SourceChips, SourceChip, AllSourcesPopover components - Added popover UI component - Updated registry dependencies for CLI integration - Updated description for research/factual queries Signed-off-by: Jaswant Singh <jaswant.singh@intelligaia.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.
Findings Artifact
A HAX SDK component for displaying key insights, recommendations, or discoveries with their supporting sources.
Installation
Via HAX CLI (Recommended)
First, ensure your project is initialized with HAX:
Then add the findings 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
FindingsPanel
Main container component for displaying multiple findings.
titlestringfindingsFinding[]sourcesLabelstring"Sources:"maxVisibleSourcesnumber2classNamestringFindingsCard
Individual finding card component.
titlestringdescriptionstringsourcesstring[][]showSourcesbooleantruesourcesLabelstring"Sources:"maxVisibleSourcesnumberSourceChips
Displays a row of source chips with overflow handling.
sourcesstring[]labelstring"Sources:"maxVisiblenumbermaxChipWidthnumber | stringSourceChip
Individual source chip component.
labelstringmaxWidthnumber | stringisCountChipbooleanfalsetruncatebooleanfalseSchema
Finding Type
Zod Schema
CopilotKit Action
The
useFindingsActionhook registers acreate_findingsaction with CopilotKit.Action Parameters
titlestringfindingsJsonstringsourcesLabelstringmaxVisibleSourcesnumberfindingsJson Format
[ { "id": "unique-id-1", "title": "Finding Title", "description": "Detailed description of the finding", "sources": [ { "label": "Source Name", "href": "https://example.com" }, { "label": "Another Source" } ] } ]