@paro.io/expert-shared-components 1.14.50 → 1.14.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11,6 +11,18 @@ export interface LlmStrategy {
|
|
|
11
11
|
summary: string;
|
|
12
12
|
implementationSteps: string[];
|
|
13
13
|
requiredForms: string[];
|
|
14
|
+
strategyId?: string;
|
|
15
|
+
status?: "COMPLETE" | "FAILED";
|
|
16
|
+
error?: string;
|
|
17
|
+
weightedScore?: number;
|
|
18
|
+
quickWin?: boolean;
|
|
19
|
+
calculationTrace?: Record<string, unknown>;
|
|
20
|
+
}
|
|
21
|
+
export interface LlmExcludedStrategy {
|
|
22
|
+
strategy_id: string;
|
|
23
|
+
status?: "EXCLUDED";
|
|
24
|
+
reason: string;
|
|
25
|
+
irs_cite?: string;
|
|
14
26
|
}
|
|
15
27
|
export interface LlmResult {
|
|
16
28
|
strategies: LlmStrategy[];
|
|
@@ -22,14 +34,25 @@ export interface LlmResult {
|
|
|
22
34
|
notEligibleCount: number;
|
|
23
35
|
estimatedSavingsMin: number;
|
|
24
36
|
estimatedSavingsMax: number;
|
|
37
|
+
failedCount?: number;
|
|
38
|
+
top3?: string[];
|
|
25
39
|
};
|
|
26
40
|
meta: {
|
|
27
41
|
provider: string;
|
|
28
|
-
tokenCount
|
|
42
|
+
tokenCount?: number;
|
|
43
|
+
totalTokens?: number;
|
|
44
|
+
inputTokens?: number;
|
|
45
|
+
outputTokens?: number;
|
|
46
|
+
latencyMs?: number;
|
|
29
47
|
sourceDocumentCount: number;
|
|
30
48
|
parsedDocumentCount: number;
|
|
31
49
|
detectedDocumentTypes: string[];
|
|
50
|
+
modelId?: string;
|
|
51
|
+
promptVersion?: string;
|
|
32
52
|
};
|
|
53
|
+
excludedStrategies?: LlmExcludedStrategy[];
|
|
54
|
+
engineOutput?: Record<string, unknown>;
|
|
55
|
+
rawOutput?: Record<string, unknown>;
|
|
33
56
|
}
|
|
34
57
|
export interface TaxAxisDashboardProps extends TaxAxisScreenProps {
|
|
35
58
|
profile: ClientProfile;
|
|
@@ -156,7 +156,11 @@ function TaxAxisDashboard({ profile, llmResult, onDownloadClient, onDownloadPrep
|
|
|
156
156
|
" · ",
|
|
157
157
|
((_b = llmResult.meta.detectedDocumentTypes) === null || _b === void 0 ? void 0 : _b.length) || 0,
|
|
158
158
|
" document types detected"),
|
|
159
|
-
react_1.default.createElement("span", { className: "text-tax-axis-text-4" },
|
|
159
|
+
react_1.default.createElement("span", { className: "text-tax-axis-text-4" }, (() => {
|
|
160
|
+
var _a, _b;
|
|
161
|
+
const tokens = (_b = (_a = llmResult.meta.totalTokens) !== null && _a !== void 0 ? _a : llmResult.meta.tokenCount) !== null && _b !== void 0 ? _b : 0;
|
|
162
|
+
return tokens > 0 ? `${tokens} tokens` : "";
|
|
163
|
+
})()))),
|
|
160
164
|
react_1.default.createElement(DashboardSummary_1.DashboardSummary, { profile: profile, dashEligible: dashEligible, computed: computed, dataConfirmed: dataConfirmed, reviewUnreviewed: reviewStatus.unreviewed }),
|
|
161
165
|
react_1.default.createElement(DashboardTopBar_1.DashboardTopBar, { topTab: topTab, setTopTab: setTopTab, dataConfirmed: dataConfirmed, reviewUnreviewed: reviewStatus.unreviewed }),
|
|
162
166
|
topTab === "extraction" && (react_1.default.createElement("div", null,
|