component: findings artifact #3
Open
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" } ] } ]