A component for displaying AI-driven assessments, decisions, and explanations with intent-based visual theming. Ideal for security assessments, code reviews, policy decisions, and any AI-generated rationale that needs clear visual distinction.

Installation
Schema & Prompt Control
Conversation
Instructions
# Initialize HAX in your projecthax init# Add the componenthax add artifact inline-rationale
The inline rationale component integrates with AI agents through CopilotKit. Agents automatically create rationale cards with appropriate intent-based theming based on the assessment type.
Setup
import { HAXInlineRationale, useInlineRationaleAction } from "@/hax/artifacts/inline-rationale";export function AssessmentPage() {const [artifacts, setArtifacts] = useState([]);// Register inline rationale actions for AI agentsuseInlineRationaleAction({addOrUpdateArtifact: (type, data) => {setArtifacts(prev => [...prev, { type, data, id: Date.now() }]);}});return (<HAXInlineRationaleassessmentType="security_assessment"intent="block"title="SQL Injection Vulnerability Detected"description="A critical vulnerability was found."summary={{ impact: "critical", exploitability: "high" }}rationale={[{ label: "Location", value: "src/api/users.ts:45" }]}confidence={95}/>);}
© 2025 Outshift. All Rights Reserved.
A component for displaying AI-driven assessments, decisions, and explanations with intent-based visual theming. Ideal for security assessments, code reviews, policy decisions, and any AI-generated rationale that needs clear visual distinction.

Installation
Schema & Prompt Control
Conversation
Instructions
# Initialize HAX in your projecthax init# Add the componenthax add artifact inline-rationale
The inline rationale component integrates with AI agents through CopilotKit. Agents automatically create rationale cards with appropriate intent-based theming based on the assessment type.
Setup
import { HAXInlineRationale, useInlineRationaleAction } from "@/hax/artifacts/inline-rationale";export function AssessmentPage() {const [artifacts, setArtifacts] = useState([]);// Register inline rationale actions for AI agentsuseInlineRationaleAction({addOrUpdateArtifact: (type, data) => {setArtifacts(prev => [...prev, { type, data, id: Date.now() }]);}});return (<HAXInlineRationaleassessmentType="security_assessment"intent="block"title="SQL Injection Vulnerability Detected"description="A critical vulnerability was found."summary={{ impact: "critical", exploitability: "high" }}rationale={[{ label: "Location", value: "src/api/users.ts:45" }]}confidence={95}/>);}
© 2025 Outshift. All Rights Reserved.