@happyvertical/smrt-inference 0.74.7 → 0.75.0
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.
- package/AGENTS.md +4 -0
- package/agents/settings.md +13 -0
- package/dist/chunks/{InferenceOverrideCollection-Xch71Ltt.js → InferenceOverrideCollection-C9bY01Rv.js} +2 -2
- package/dist/chunks/{InferenceOverrideCollection-Xch71Ltt.js.map → InferenceOverrideCollection-C9bY01Rv.js.map} +1 -1
- package/dist/i18n/catalog.d.ts +3 -0
- package/dist/i18n/catalog.d.ts.map +1 -0
- package/dist/i18n/catalog.generated.d.ts +3 -0
- package/dist/i18n/catalog.generated.d.ts.map +1 -0
- package/dist/i18n/catalog.js +280 -0
- package/dist/i18n/catalog.js.map +1 -0
- package/dist/manifest.json +1 -1
- package/dist/models.js +1 -1
- package/dist/server.d.ts +1 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +419 -137
- package/dist/server.js.map +1 -1
- package/dist/settings/controller.d.ts +18 -0
- package/dist/settings/controller.d.ts.map +1 -1
- package/dist/settings/history.d.ts +210 -0
- package/dist/settings/history.d.ts.map +1 -0
- package/dist/settings/settings-service.d.ts +5 -1
- package/dist/settings/settings-service.d.ts.map +1 -1
- package/dist/smrt-knowledge.json +11 -8
- package/dist/svelte/components/InferencePromptHistory.svelte +200 -0
- package/dist/svelte/components/InferencePromptHistory.svelte.d.ts +12 -0
- package/dist/svelte/components/InferencePromptHistory.svelte.d.ts.map +1 -0
- package/dist/svelte/components/InferenceSettingsPanel.svelte +19 -1
- package/dist/svelte/components/InferenceSettingsPanel.svelte.d.ts +3 -1
- package/dist/svelte/components/InferenceSettingsPanel.svelte.d.ts.map +1 -1
- package/dist/svelte/history.messages.d.ts +57 -0
- package/dist/svelte/history.messages.d.ts.map +1 -0
- package/dist/svelte/history.messages.js +58 -0
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.d.ts.map +1 -1
- package/dist/svelte/types.d.ts +73 -0
- package/dist/svelte/types.d.ts.map +1 -1
- package/package.json +15 -10
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { useI18n } from '@happyvertical/smrt-ui/i18n';
|
|
3
|
+
import { M } from '../history.messages.js';
|
|
4
|
+
import type {
|
|
5
|
+
InferenceCompareRequestView,
|
|
6
|
+
InferenceCompareSelector,
|
|
7
|
+
InferenceCompareSideView,
|
|
8
|
+
InferenceComparisonView,
|
|
9
|
+
InferenceHistoryRequestView,
|
|
10
|
+
InferenceHistoryView,
|
|
11
|
+
InferenceTranscriptLinkFilters,
|
|
12
|
+
} from '../types.js';
|
|
13
|
+
|
|
14
|
+
const { t } = useI18n();
|
|
15
|
+
|
|
16
|
+
export interface InferencePromptHistoryProps {
|
|
17
|
+
contextKey?: unknown;
|
|
18
|
+
busy?: boolean;
|
|
19
|
+
onHistory?: (
|
|
20
|
+
request: InferenceHistoryRequestView,
|
|
21
|
+
) => Promise<InferenceHistoryView>;
|
|
22
|
+
onCompare?: (
|
|
23
|
+
request: InferenceCompareRequestView,
|
|
24
|
+
) => Promise<InferenceComparisonView>;
|
|
25
|
+
transcriptHref?: (
|
|
26
|
+
filters: InferenceTranscriptLinkFilters,
|
|
27
|
+
) => string | null | undefined;
|
|
28
|
+
}
|
|
29
|
+
const {
|
|
30
|
+
contextKey,
|
|
31
|
+
busy = false,
|
|
32
|
+
onHistory,
|
|
33
|
+
onCompare,
|
|
34
|
+
transcriptHref,
|
|
35
|
+
}: InferencePromptHistoryProps = $props();
|
|
36
|
+
let promptKey = $state('');
|
|
37
|
+
let since = $state('');
|
|
38
|
+
let until = $state('');
|
|
39
|
+
let aKind = $state('templateHash');
|
|
40
|
+
let bKind = $state('templateHash');
|
|
41
|
+
let aValue = $state('');
|
|
42
|
+
let bValue = $state('');
|
|
43
|
+
let history = $state<InferenceHistoryView | null>(null);
|
|
44
|
+
let comparison = $state<InferenceComparisonView | null>(null);
|
|
45
|
+
let pending = $state(false);
|
|
46
|
+
let error = $state<string | null>(null);
|
|
47
|
+
let generation = 0;
|
|
48
|
+
let historyWindow = $state({ since: '', until: '' });
|
|
49
|
+
$effect(() => {
|
|
50
|
+
void contextKey;
|
|
51
|
+
generation += 1;
|
|
52
|
+
promptKey = since = until = aValue = bValue = '';
|
|
53
|
+
history = comparison = null;
|
|
54
|
+
historyWindow = { since: '', until: '' };
|
|
55
|
+
pending = false;
|
|
56
|
+
error = null;
|
|
57
|
+
});
|
|
58
|
+
function windowRequest(): InferenceHistoryRequestView {
|
|
59
|
+
return {
|
|
60
|
+
promptKey: promptKey.trim(),
|
|
61
|
+
...(since ? { since: new Date(since).toISOString() } : {}),
|
|
62
|
+
...(until ? { until: new Date(until).toISOString() } : {}),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function side(kind: string, value: string): InferenceCompareSelector {
|
|
66
|
+
if (kind === 'model') return { model: value.trim() };
|
|
67
|
+
if (kind === 'tier') return { tier: value.trim() };
|
|
68
|
+
return { templateHash: value.trim() };
|
|
69
|
+
}
|
|
70
|
+
async function read(compare: boolean) {
|
|
71
|
+
const current = ++generation;
|
|
72
|
+
pending = true;
|
|
73
|
+
error = null;
|
|
74
|
+
comparison = null;
|
|
75
|
+
if (!compare) history = null;
|
|
76
|
+
try {
|
|
77
|
+
const request = windowRequest();
|
|
78
|
+
if (compare && onCompare) {
|
|
79
|
+
const result = await onCompare({
|
|
80
|
+
...request,
|
|
81
|
+
a: side(aKind, aValue),
|
|
82
|
+
b: side(bKind, bValue),
|
|
83
|
+
});
|
|
84
|
+
if (current === generation) comparison = result;
|
|
85
|
+
} else if (onHistory) {
|
|
86
|
+
const result = await onHistory(request);
|
|
87
|
+
if (current === generation) {
|
|
88
|
+
history = result;
|
|
89
|
+
historyWindow = { since, until };
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
} catch {
|
|
93
|
+
if (current === generation)
|
|
94
|
+
error = t(M['inference.prompt_history.load_error']);
|
|
95
|
+
} finally {
|
|
96
|
+
if (current === generation) pending = false;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
function metric(side: InferenceCompareSideView, key: string): string {
|
|
100
|
+
const value = /^p(50|90|95|99)$/.test(key)
|
|
101
|
+
? side.latencyMs[key as keyof typeof side.latencyMs]
|
|
102
|
+
: side[key as keyof InferenceCompareSideView];
|
|
103
|
+
if (value === null || value === undefined) return '–';
|
|
104
|
+
if (typeof value !== 'number') return String(value);
|
|
105
|
+
if (key.endsWith('Rate')) return `${(value * 100).toFixed(1)}%`;
|
|
106
|
+
if (key === 'estimatedCost' || key === 'meanCost')
|
|
107
|
+
return `$${value.toFixed(4)}`;
|
|
108
|
+
return String(value);
|
|
109
|
+
}
|
|
110
|
+
const metrics = [
|
|
111
|
+
[M['inference.prompt_history.metric_calls'], 'calls'],
|
|
112
|
+
[M['inference.prompt_history.metric_blocked'], 'blocked'],
|
|
113
|
+
[M['inference.prompt_history.metric_promptTokens'], 'promptTokens'],
|
|
114
|
+
[M['inference.prompt_history.metric_completionTokens'], 'completionTokens'],
|
|
115
|
+
[M['inference.prompt_history.metric_totalTokens'], 'totalTokens'],
|
|
116
|
+
[M['inference.prompt_history.metric_estimatedCost'], 'estimatedCost'],
|
|
117
|
+
[M['inference.prompt_history.metric_uncostedCalls'], 'uncostedCalls'],
|
|
118
|
+
[M['inference.prompt_history.metric_meanCost'], 'meanCost'],
|
|
119
|
+
[M['inference.prompt_history.metric_p50'], 'p50'],
|
|
120
|
+
[M['inference.prompt_history.metric_p90'], 'p90'],
|
|
121
|
+
[M['inference.prompt_history.metric_p95'], 'p95'],
|
|
122
|
+
[M['inference.prompt_history.metric_p99'], 'p99'],
|
|
123
|
+
[M['inference.prompt_history.metric_fallbackRate'], 'fallbackRate'],
|
|
124
|
+
[M['inference.prompt_history.metric_degradedRate'], 'degradedRate'],
|
|
125
|
+
[M['inference.prompt_history.metric_meanScore'], 'meanScore'],
|
|
126
|
+
[M['inference.prompt_history.metric_transcriptCount'], 'transcriptCount'],
|
|
127
|
+
];
|
|
128
|
+
function link(callId: string): string | null {
|
|
129
|
+
if (!comparison || !transcriptHref) return null;
|
|
130
|
+
return (
|
|
131
|
+
transcriptHref({
|
|
132
|
+
callId,
|
|
133
|
+
...(comparison.since
|
|
134
|
+
? { since: new Date(comparison.since).toISOString() }
|
|
135
|
+
: {}),
|
|
136
|
+
...(comparison.until
|
|
137
|
+
? { until: new Date(comparison.until).toISOString() }
|
|
138
|
+
: {}),
|
|
139
|
+
}) || null
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
</script>
|
|
143
|
+
|
|
144
|
+
<section class="smrt-inference-prompt-history__root" data-smrt-component="InferencePromptHistory" data-testid="inference-prompt-history">
|
|
145
|
+
<h3>{t(M['inference.prompt_history.heading'])}</h3>
|
|
146
|
+
<p>{t(M['inference.prompt_history.intro'])}</p>
|
|
147
|
+
<form onsubmit={(event) => { event.preventDefault(); void read(false); }}>
|
|
148
|
+
<label>{t(M['inference.prompt_history.prompt_key'])} <input name="promptKey" required bind:value={promptKey} disabled={busy || pending} /></label>
|
|
149
|
+
<label>{t(M['inference.prompt_history.since'])} <input type="datetime-local" bind:value={since} disabled={busy || pending} /></label>
|
|
150
|
+
<label>{t(M['inference.prompt_history.until'])} <input type="datetime-local" bind:value={until} disabled={busy || pending} /></label>
|
|
151
|
+
<button type="submit" disabled={busy || pending || !onHistory}>{t(M['inference.prompt_history.load_history'])}</button>
|
|
152
|
+
</form>
|
|
153
|
+
{#if pending}<p role="status">{t(M['inference.prompt_history.loading'])}</p>{/if}
|
|
154
|
+
{#if error}<p role="alert">{error}</p>{/if}
|
|
155
|
+
{#if history}
|
|
156
|
+
<h4>{t(M['inference.prompt_history.history_title'], { promptKey: history.promptKey })}</h4>
|
|
157
|
+
<table data-smrt-part="table">
|
|
158
|
+
<thead><tr><th scope="col">{t(M['inference.prompt_history.hash'])}</th><th scope="col">{t(M['inference.prompt_history.first_seen'])}</th><th scope="col">{t(M['inference.prompt_history.last_seen'])}</th><th scope="col">{t(M['inference.prompt_history.calls'])}</th><th scope="col">{t(M['inference.prompt_history.blocked'])}</th><th scope="col">{t(M['inference.prompt_history.layers'])}</th><th scope="col">{t(M['inference.prompt_history.models'])}</th><th scope="col">{t(M['inference.prompt_history.compare'])}</th></tr></thead>
|
|
159
|
+
<tbody>
|
|
160
|
+
{#each history.hashes as entry (entry.templateHash)}
|
|
161
|
+
<tr><td>{entry.templateHash ?? t(M['inference.prompt_history.unattributed'])}</td><td>{new Date(entry.firstSeen).toISOString()}</td><td>{new Date(entry.lastSeen).toISOString()}</td><td>{entry.calls}</td><td>{entry.blocked}</td><td>{entry.layers.join(', ')}</td><td>{entry.models.join(', ')}</td><td>
|
|
162
|
+
<button type="button" disabled={busy || pending || !entry.templateHash || !onCompare} onclick={() => { promptKey = history!.promptKey; since = historyWindow.since; until = historyWindow.until; aKind = 'templateHash'; aValue = entry.templateHash!; }}>{t(M['inference.prompt_history.use_a'])}</button>
|
|
163
|
+
<button type="button" disabled={busy || pending || !entry.templateHash || !onCompare} onclick={() => { promptKey = history!.promptKey; since = historyWindow.since; until = historyWindow.until; bKind = 'templateHash'; bValue = entry.templateHash!; }}>{t(M['inference.prompt_history.use_b'])}</button>
|
|
164
|
+
</td></tr>
|
|
165
|
+
{:else}<tr><td colspan="8">{t(M['inference.prompt_history.empty_history'])}</td></tr>{/each}
|
|
166
|
+
</tbody>
|
|
167
|
+
</table>
|
|
168
|
+
{/if}
|
|
169
|
+
{#if onCompare}
|
|
170
|
+
<form onsubmit={(event) => { event.preventDefault(); void read(true); }}>
|
|
171
|
+
<label>{t(M['inference.prompt_history.side_a'])} <select bind:value={aKind} disabled={busy || pending}><option value="templateHash">{t(M['inference.prompt_history.hash'])}</option><option value="model">{t(M['inference.prompt_history.model'])}</option><option value="tier">{t(M['inference.prompt_history.tier'])}</option></select><input aria-label={t(M['inference.prompt_history.side_a_value'])} required bind:value={aValue} disabled={busy || pending} /></label>
|
|
172
|
+
<label>{t(M['inference.prompt_history.side_b'])} <select bind:value={bKind} disabled={busy || pending}><option value="templateHash">{t(M['inference.prompt_history.hash'])}</option><option value="model">{t(M['inference.prompt_history.model'])}</option><option value="tier">{t(M['inference.prompt_history.tier'])}</option></select><input aria-label={t(M['inference.prompt_history.side_b_value'])} required bind:value={bValue} disabled={busy || pending} /></label>
|
|
173
|
+
<button type="submit" disabled={busy || pending || !promptKey.trim()}>{t(M['inference.prompt_history.run_compare'])}</button>
|
|
174
|
+
</form>
|
|
175
|
+
{/if}
|
|
176
|
+
{#if comparison}
|
|
177
|
+
<h4>{t(M['inference.prompt_history.comparison_title'], { promptKey: comparison.promptKey })}</h4>
|
|
178
|
+
<p>{t(M['inference.prompt_history.comparison_summary'], { costBasis: comparison.costBasis, rows: comparison.rows, unmatched: comparison.unmatched, inBoth: comparison.inBoth, externalAgent: comparison.excluded.externalAgent })}</p>
|
|
179
|
+
<table data-smrt-part="table"><thead><tr><th scope="col">{t(M['inference.prompt_history.metric'])}</th><th scope="col">{t(M['inference.prompt_history.selector_a'], { selector: Object.values(comparison.a.selector)[0] })}</th><th scope="col">{t(M['inference.prompt_history.selector_b'], { selector: Object.values(comparison.b.selector)[0] })}</th></tr></thead><tbody>
|
|
180
|
+
{#each metrics as [label, key] (key)}<tr><th scope="row">{t(label)}</th><td>{metric(comparison.a, key)}</td><td>{metric(comparison.b, key)}</td></tr>{/each}
|
|
181
|
+
<tr><th scope="row">{t(M['inference.prompt_history.outcomes'])}</th><td>{JSON.stringify(comparison.a.evaluations)}</td><td>{JSON.stringify(comparison.b.evaluations)}</td></tr>
|
|
182
|
+
</tbody></table>
|
|
183
|
+
{#each [comparison.a, comparison.b] as result, index (index)}
|
|
184
|
+
<h4>{t(M['inference.prompt_history.transcripts_title'], { side: index === 0 ? 'A' : 'B' })}</h4>
|
|
185
|
+
<ul>{#each result.transcripts as ref (ref.id)}
|
|
186
|
+
{@const href = link(ref.callId)}
|
|
187
|
+
<li>{#if href}<a {href}>{ref.id}</a>{:else}{ref.id}{/if} — {t(M['inference.prompt_history.transcript_summary'], { labels: ref.labels.join(', ') || t(M['inference.prompt_history.unlabelled']), score: ref.worstScore ?? '–' })}</li>
|
|
188
|
+
{:else}<li>{t(M['inference.prompt_history.empty_transcripts'])}</li>{/each}</ul>
|
|
189
|
+
{/each}
|
|
190
|
+
{/if}
|
|
191
|
+
</section>
|
|
192
|
+
|
|
193
|
+
<style>
|
|
194
|
+
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
195
|
+
@layer smrt.structure {
|
|
196
|
+
.smrt-inference-prompt-history__root { display: flex; flex-direction: column; gap: var(--smrt-spacing-md); overflow-x: auto; }
|
|
197
|
+
form { display: flex; flex-wrap: wrap; gap: var(--smrt-spacing-md); align-items: end; }
|
|
198
|
+
label { display: flex; flex-direction: column; gap: var(--smrt-spacing-xs); }
|
|
199
|
+
}
|
|
200
|
+
</style>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { InferenceCompareRequestView, InferenceComparisonView, InferenceHistoryRequestView, InferenceHistoryView, InferenceTranscriptLinkFilters } from '../types.js';
|
|
2
|
+
export interface InferencePromptHistoryProps {
|
|
3
|
+
contextKey?: unknown;
|
|
4
|
+
busy?: boolean;
|
|
5
|
+
onHistory?: (request: InferenceHistoryRequestView) => Promise<InferenceHistoryView>;
|
|
6
|
+
onCompare?: (request: InferenceCompareRequestView) => Promise<InferenceComparisonView>;
|
|
7
|
+
transcriptHref?: (filters: InferenceTranscriptLinkFilters) => string | null | undefined;
|
|
8
|
+
}
|
|
9
|
+
declare const InferencePromptHistory: import("svelte").Component<InferencePromptHistoryProps, {}, "">;
|
|
10
|
+
type InferencePromptHistory = ReturnType<typeof InferencePromptHistory>;
|
|
11
|
+
export default InferencePromptHistory;
|
|
12
|
+
//# sourceMappingURL=InferencePromptHistory.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InferencePromptHistory.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/InferencePromptHistory.svelte.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,2BAA2B,EAG3B,uBAAuB,EACvB,2BAA2B,EAC3B,oBAAoB,EACpB,8BAA8B,EAC/B,MAAM,aAAa,CAAC;AAGrB,MAAM,WAAW,2BAA2B;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,CACV,OAAO,EAAE,2BAA2B,KACjC,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACnC,SAAS,CAAC,EAAE,CACV,OAAO,EAAE,2BAA2B,KACjC,OAAO,CAAC,uBAAuB,CAAC,CAAC;IACtC,cAAc,CAAC,EAAE,CACf,OAAO,EAAE,8BAA8B,KACpC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAChC;AAgLD,QAAA,MAAM,sBAAsB,iEAAwC,CAAC;AACrE,KAAK,sBAAsB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACxE,eAAe,sBAAsB,CAAC"}
|
|
@@ -18,6 +18,8 @@ import type {
|
|
|
18
18
|
InferenceAssistantSettingsChange,
|
|
19
19
|
InferenceAssistantSettingsView,
|
|
20
20
|
InferenceCandidateView,
|
|
21
|
+
InferenceCompareRequestView,
|
|
22
|
+
InferenceComparisonView,
|
|
21
23
|
InferenceConnectionRequest,
|
|
22
24
|
InferenceDefaultsChange,
|
|
23
25
|
InferenceDefaultsView,
|
|
@@ -26,6 +28,8 @@ import type {
|
|
|
26
28
|
InferenceDiscoveryView,
|
|
27
29
|
InferenceFusionChange,
|
|
28
30
|
InferenceFusionView,
|
|
31
|
+
InferenceHistoryRequestView,
|
|
32
|
+
InferenceHistoryView,
|
|
29
33
|
InferenceKeyChange,
|
|
30
34
|
InferenceProviderView,
|
|
31
35
|
InferenceSettingsScope,
|
|
@@ -49,6 +53,7 @@ import InferenceAliasEditor from './InferenceAliasEditor.svelte';
|
|
|
49
53
|
import InferenceAssistantSettings from './InferenceAssistantSettings.svelte';
|
|
50
54
|
import InferenceDefaultView from './InferenceDefaultView.svelte';
|
|
51
55
|
import InferenceFusionList from './InferenceFusionList.svelte';
|
|
56
|
+
import InferencePromptHistory from './InferencePromptHistory.svelte';
|
|
52
57
|
import InferenceTierRow from './InferenceTierRow.svelte';
|
|
53
58
|
import InferenceTranscriptSettings from './InferenceTranscriptSettings.svelte';
|
|
54
59
|
import InferenceUsageTable from './InferenceUsageTable.svelte';
|
|
@@ -70,6 +75,12 @@ export interface InferenceSettingsPanelProps {
|
|
|
70
75
|
fusions?: InferenceFusionView[];
|
|
71
76
|
/** Usage report (`usage()`); the Usage tab shows when this or `onUsageGroupBy` is set. */
|
|
72
77
|
usage?: InferenceUsageView | null;
|
|
78
|
+
onHistory?: (
|
|
79
|
+
request: InferenceHistoryRequestView,
|
|
80
|
+
) => Promise<InferenceHistoryView>;
|
|
81
|
+
onCompare?: (
|
|
82
|
+
request: InferenceCompareRequestView,
|
|
83
|
+
) => Promise<InferenceComparisonView>;
|
|
73
84
|
/**
|
|
74
85
|
* The app's transcript setting (`getTranscriptSettings()`, #4781), shown
|
|
75
86
|
* in Advanced and, when off, as a status line in the Usage tab.
|
|
@@ -143,6 +154,8 @@ const {
|
|
|
143
154
|
aliases = [],
|
|
144
155
|
fusions = [],
|
|
145
156
|
usage = null,
|
|
157
|
+
onHistory,
|
|
158
|
+
onCompare,
|
|
146
159
|
transcripts = null,
|
|
147
160
|
appEditable = false,
|
|
148
161
|
transcriptHref,
|
|
@@ -172,7 +185,9 @@ let tab = $state<'settings' | 'usage'>('settings');
|
|
|
172
185
|
// svelte-ignore state_referenced_locally
|
|
173
186
|
let advanced = $state(advancedOpen);
|
|
174
187
|
|
|
175
|
-
const showUsage = $derived(
|
|
188
|
+
const showUsage = $derived(
|
|
189
|
+
usage !== null || onUsageGroupBy !== undefined || !!onHistory || !!onCompare,
|
|
190
|
+
);
|
|
176
191
|
const definitionsEditable = $derived(scope === 'app');
|
|
177
192
|
// Remount on a context change so unsaved edits never cross tenants/users.
|
|
178
193
|
const defaultsKey = $derived(contextKey ?? defaults);
|
|
@@ -225,6 +240,9 @@ function tierAllowed(tier: InferenceSettingsTier): boolean {
|
|
|
225
240
|
|
|
226
241
|
{#if tab === 'usage' && showUsage}
|
|
227
242
|
<div role="tabpanel">
|
|
243
|
+
{#if onHistory || onCompare}
|
|
244
|
+
<InferencePromptHistory {onHistory} {onCompare} {transcriptHref} {busy} {contextKey} />
|
|
245
|
+
{/if}
|
|
228
246
|
<InferenceUsageTable
|
|
229
247
|
{usage}
|
|
230
248
|
{busy}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* not rendered until opened. Keys leave only through `onSaveKey`; the panel
|
|
12
12
|
* never receives one back (`defaults.keySet` says whether one is stored).
|
|
13
13
|
*/
|
|
14
|
-
import type { InferenceAliasChange, InferenceAliasView, InferenceAssistantSettingsChange, InferenceAssistantSettingsView, InferenceCandidateView, InferenceConnectionRequest, InferenceDefaultsChange, InferenceDefaultsView, InferenceDefaultTierChange, InferenceDefaultTierView, InferenceDiscoveryView, InferenceFusionChange, InferenceFusionView, InferenceKeyChange, InferenceProviderView, InferenceSettingsScope, InferenceTestResultView, InferenceTierChange, InferenceTierView, InferenceTranscriptLinkFilters, InferenceTranscriptSettingsChange, InferenceTranscriptSettingsView, InferenceUsageDimension, InferenceUsageView } from '../types.js';
|
|
14
|
+
import type { InferenceAliasChange, InferenceAliasView, InferenceAssistantSettingsChange, InferenceAssistantSettingsView, InferenceCandidateView, InferenceCompareRequestView, InferenceComparisonView, InferenceConnectionRequest, InferenceDefaultsChange, InferenceDefaultsView, InferenceDefaultTierChange, InferenceDefaultTierView, InferenceDiscoveryView, InferenceFusionChange, InferenceFusionView, InferenceHistoryRequestView, InferenceHistoryView, InferenceKeyChange, InferenceProviderView, InferenceSettingsScope, InferenceTestResultView, InferenceTierChange, InferenceTierView, InferenceTranscriptLinkFilters, InferenceTranscriptSettingsChange, InferenceTranscriptSettingsView, InferenceUsageDimension, InferenceUsageView } from '../types.js';
|
|
15
15
|
export interface InferenceSettingsPanelProps {
|
|
16
16
|
/** The current user (or tenant) choices for the default view. */
|
|
17
17
|
defaults?: InferenceDefaultsView;
|
|
@@ -29,6 +29,8 @@ export interface InferenceSettingsPanelProps {
|
|
|
29
29
|
fusions?: InferenceFusionView[];
|
|
30
30
|
/** Usage report (`usage()`); the Usage tab shows when this or `onUsageGroupBy` is set. */
|
|
31
31
|
usage?: InferenceUsageView | null;
|
|
32
|
+
onHistory?: (request: InferenceHistoryRequestView) => Promise<InferenceHistoryView>;
|
|
33
|
+
onCompare?: (request: InferenceCompareRequestView) => Promise<InferenceComparisonView>;
|
|
32
34
|
/**
|
|
33
35
|
* The app's transcript setting (`getTranscriptSettings()`, #4781), shown
|
|
34
36
|
* in Advanced and, when off, as a status line in the Usage tab.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InferenceSettingsPanel.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/InferenceSettingsPanel.svelte.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EACV,oBAAoB,EACpB,kBAAkB,EAClB,gCAAgC,EAChC,8BAA8B,EAC9B,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,EACvB,qBAAqB,EACrB,0BAA0B,EAC1B,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,EACrB,sBAAsB,EAEtB,uBAAuB,EACvB,mBAAmB,EACnB,iBAAiB,EACjB,8BAA8B,EAC9B,iCAAiC,EACjC,+BAA+B,EAC/B,uBAAuB,EACvB,kBAAkB,EACnB,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"InferenceSettingsPanel.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/InferenceSettingsPanel.svelte.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;GAY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iB,CAAC,EAAE,CAAC,MAAM,EAAE,iCAAiC,KAAK,IAAI,CAAC;IACxE;;;;OAIG;IACH,SAAS,CAAC,EAAE,8BAA8B,GAAG,IAAI,CAAC;IAClD,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,gCAAgC,KAAK,IAAI,CAAC;IACrE,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B;AA6LD,QAAA,MAAM,sBAAsB,iEAAwC,CAAC;AACrE,KAAK,sBAAsB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACxE,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export declare const M: {
|
|
2
|
+
readonly 'inference.prompt_history.blocked': "inference.prompt_history.blocked";
|
|
3
|
+
readonly 'inference.prompt_history.calls': "inference.prompt_history.calls";
|
|
4
|
+
readonly 'inference.prompt_history.compare': "inference.prompt_history.compare";
|
|
5
|
+
readonly 'inference.prompt_history.comparison_summary': "inference.prompt_history.comparison_summary";
|
|
6
|
+
readonly 'inference.prompt_history.comparison_title': "inference.prompt_history.comparison_title";
|
|
7
|
+
readonly 'inference.prompt_history.empty_history': "inference.prompt_history.empty_history";
|
|
8
|
+
readonly 'inference.prompt_history.empty_transcripts': "inference.prompt_history.empty_transcripts";
|
|
9
|
+
readonly 'inference.prompt_history.first_seen': "inference.prompt_history.first_seen";
|
|
10
|
+
readonly 'inference.prompt_history.hash': "inference.prompt_history.hash";
|
|
11
|
+
readonly 'inference.prompt_history.heading': "inference.prompt_history.heading";
|
|
12
|
+
readonly 'inference.prompt_history.history_title': "inference.prompt_history.history_title";
|
|
13
|
+
readonly 'inference.prompt_history.intro': "inference.prompt_history.intro";
|
|
14
|
+
readonly 'inference.prompt_history.last_seen': "inference.prompt_history.last_seen";
|
|
15
|
+
readonly 'inference.prompt_history.layers': "inference.prompt_history.layers";
|
|
16
|
+
readonly 'inference.prompt_history.load_error': "inference.prompt_history.load_error";
|
|
17
|
+
readonly 'inference.prompt_history.load_history': "inference.prompt_history.load_history";
|
|
18
|
+
readonly 'inference.prompt_history.loading': "inference.prompt_history.loading";
|
|
19
|
+
readonly 'inference.prompt_history.metric': "inference.prompt_history.metric";
|
|
20
|
+
readonly 'inference.prompt_history.metric_blocked': "inference.prompt_history.metric_blocked";
|
|
21
|
+
readonly 'inference.prompt_history.metric_calls': "inference.prompt_history.metric_calls";
|
|
22
|
+
readonly 'inference.prompt_history.metric_completionTokens': "inference.prompt_history.metric_completionTokens";
|
|
23
|
+
readonly 'inference.prompt_history.metric_degradedRate': "inference.prompt_history.metric_degradedRate";
|
|
24
|
+
readonly 'inference.prompt_history.metric_estimatedCost': "inference.prompt_history.metric_estimatedCost";
|
|
25
|
+
readonly 'inference.prompt_history.metric_fallbackRate': "inference.prompt_history.metric_fallbackRate";
|
|
26
|
+
readonly 'inference.prompt_history.metric_meanCost': "inference.prompt_history.metric_meanCost";
|
|
27
|
+
readonly 'inference.prompt_history.metric_meanScore': "inference.prompt_history.metric_meanScore";
|
|
28
|
+
readonly 'inference.prompt_history.metric_p50': "inference.prompt_history.metric_p50";
|
|
29
|
+
readonly 'inference.prompt_history.metric_p90': "inference.prompt_history.metric_p90";
|
|
30
|
+
readonly 'inference.prompt_history.metric_p95': "inference.prompt_history.metric_p95";
|
|
31
|
+
readonly 'inference.prompt_history.metric_p99': "inference.prompt_history.metric_p99";
|
|
32
|
+
readonly 'inference.prompt_history.metric_promptTokens': "inference.prompt_history.metric_promptTokens";
|
|
33
|
+
readonly 'inference.prompt_history.metric_totalTokens': "inference.prompt_history.metric_totalTokens";
|
|
34
|
+
readonly 'inference.prompt_history.metric_transcriptCount': "inference.prompt_history.metric_transcriptCount";
|
|
35
|
+
readonly 'inference.prompt_history.metric_uncostedCalls': "inference.prompt_history.metric_uncostedCalls";
|
|
36
|
+
readonly 'inference.prompt_history.model': "inference.prompt_history.model";
|
|
37
|
+
readonly 'inference.prompt_history.models': "inference.prompt_history.models";
|
|
38
|
+
readonly 'inference.prompt_history.outcomes': "inference.prompt_history.outcomes";
|
|
39
|
+
readonly 'inference.prompt_history.prompt_key': "inference.prompt_history.prompt_key";
|
|
40
|
+
readonly 'inference.prompt_history.run_compare': "inference.prompt_history.run_compare";
|
|
41
|
+
readonly 'inference.prompt_history.selector_a': "inference.prompt_history.selector_a";
|
|
42
|
+
readonly 'inference.prompt_history.selector_b': "inference.prompt_history.selector_b";
|
|
43
|
+
readonly 'inference.prompt_history.side_a': "inference.prompt_history.side_a";
|
|
44
|
+
readonly 'inference.prompt_history.side_a_value': "inference.prompt_history.side_a_value";
|
|
45
|
+
readonly 'inference.prompt_history.side_b': "inference.prompt_history.side_b";
|
|
46
|
+
readonly 'inference.prompt_history.side_b_value': "inference.prompt_history.side_b_value";
|
|
47
|
+
readonly 'inference.prompt_history.since': "inference.prompt_history.since";
|
|
48
|
+
readonly 'inference.prompt_history.tier': "inference.prompt_history.tier";
|
|
49
|
+
readonly 'inference.prompt_history.transcript_summary': "inference.prompt_history.transcript_summary";
|
|
50
|
+
readonly 'inference.prompt_history.transcripts_title': "inference.prompt_history.transcripts_title";
|
|
51
|
+
readonly 'inference.prompt_history.unattributed': "inference.prompt_history.unattributed";
|
|
52
|
+
readonly 'inference.prompt_history.unlabelled': "inference.prompt_history.unlabelled";
|
|
53
|
+
readonly 'inference.prompt_history.until': "inference.prompt_history.until";
|
|
54
|
+
readonly 'inference.prompt_history.use_a': "inference.prompt_history.use_a";
|
|
55
|
+
readonly 'inference.prompt_history.use_b': "inference.prompt_history.use_b";
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=history.messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"history.messages.d.ts","sourceRoot":"","sources":["../../src/svelte/history.messages.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6DZ,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/** Registered English defaults for recorded prompt history and comparison. */
|
|
2
|
+
import { defineMessages } from '@happyvertical/smrt-ui/i18n';
|
|
3
|
+
export const M = defineMessages({
|
|
4
|
+
'inference.prompt_history.blocked': 'Blocked',
|
|
5
|
+
'inference.prompt_history.calls': 'Calls',
|
|
6
|
+
'inference.prompt_history.compare': 'Compare',
|
|
7
|
+
'inference.prompt_history.comparison_summary': 'Cost basis: {costBasis}. Rows: {rows}; unmatched: {unmatched}; in both sides: {inBoth}; external-agent rows excluded: {externalAgent}.',
|
|
8
|
+
'inference.prompt_history.comparison_title': 'Comparison: {promptKey}',
|
|
9
|
+
'inference.prompt_history.empty_history': 'No recorded templates for this prompt and window.',
|
|
10
|
+
'inference.prompt_history.empty_transcripts': 'No stored transcripts for this side.',
|
|
11
|
+
'inference.prompt_history.first_seen': 'First seen',
|
|
12
|
+
'inference.prompt_history.hash': 'Template hash',
|
|
13
|
+
'inference.prompt_history.heading': 'Prompt history and comparison',
|
|
14
|
+
'inference.prompt_history.history_title': 'Template history: {promptKey}',
|
|
15
|
+
'inference.prompt_history.intro': 'Explore recorded usage. These views never run prompts.',
|
|
16
|
+
'inference.prompt_history.last_seen': 'Last seen',
|
|
17
|
+
'inference.prompt_history.layers': 'Layers',
|
|
18
|
+
'inference.prompt_history.load_error': 'Recorded prompt history could not be loaded. Try again.',
|
|
19
|
+
'inference.prompt_history.load_history': 'Load template history',
|
|
20
|
+
'inference.prompt_history.loading': 'Loading recorded usage…',
|
|
21
|
+
'inference.prompt_history.metric': 'Metric',
|
|
22
|
+
'inference.prompt_history.metric_blocked': 'Blocked',
|
|
23
|
+
'inference.prompt_history.metric_calls': 'Calls',
|
|
24
|
+
'inference.prompt_history.metric_completionTokens': 'Completion tokens',
|
|
25
|
+
'inference.prompt_history.metric_degradedRate': 'Degraded rate',
|
|
26
|
+
'inference.prompt_history.metric_estimatedCost': 'Estimated cost (USD)',
|
|
27
|
+
'inference.prompt_history.metric_fallbackRate': 'Fallback rate',
|
|
28
|
+
'inference.prompt_history.metric_meanCost': 'Mean cost (costed calls)',
|
|
29
|
+
'inference.prompt_history.metric_meanScore': 'Mean score',
|
|
30
|
+
'inference.prompt_history.metric_p50': 'Latency p50 (ms)',
|
|
31
|
+
'inference.prompt_history.metric_p90': 'Latency p90 (ms)',
|
|
32
|
+
'inference.prompt_history.metric_p95': 'Latency p95 (ms)',
|
|
33
|
+
'inference.prompt_history.metric_p99': 'Latency p99 (ms)',
|
|
34
|
+
'inference.prompt_history.metric_promptTokens': 'Prompt tokens',
|
|
35
|
+
'inference.prompt_history.metric_totalTokens': 'Total tokens',
|
|
36
|
+
'inference.prompt_history.metric_transcriptCount': 'Stored transcripts',
|
|
37
|
+
'inference.prompt_history.metric_uncostedCalls': 'Uncosted calls',
|
|
38
|
+
'inference.prompt_history.model': 'Model (provider:model)',
|
|
39
|
+
'inference.prompt_history.models': 'Models',
|
|
40
|
+
'inference.prompt_history.outcomes': 'Outcome distribution',
|
|
41
|
+
'inference.prompt_history.prompt_key': 'Prompt key',
|
|
42
|
+
'inference.prompt_history.run_compare': 'Compare recorded runs',
|
|
43
|
+
'inference.prompt_history.selector_a': 'A: {selector}',
|
|
44
|
+
'inference.prompt_history.selector_b': 'B: {selector}',
|
|
45
|
+
'inference.prompt_history.side_a': 'Side A',
|
|
46
|
+
'inference.prompt_history.side_a_value': 'Side A value',
|
|
47
|
+
'inference.prompt_history.side_b': 'Side B',
|
|
48
|
+
'inference.prompt_history.side_b_value': 'Side B value',
|
|
49
|
+
'inference.prompt_history.since': 'Since',
|
|
50
|
+
'inference.prompt_history.tier': 'Tier',
|
|
51
|
+
'inference.prompt_history.transcript_summary': '{labels}; score {score}',
|
|
52
|
+
'inference.prompt_history.transcripts_title': 'Side {side} transcripts (worst-labelled first)',
|
|
53
|
+
'inference.prompt_history.unattributed': '(unattributed)',
|
|
54
|
+
'inference.prompt_history.unlabelled': 'Unlabelled',
|
|
55
|
+
'inference.prompt_history.until': 'Until',
|
|
56
|
+
'inference.prompt_history.use_a': 'Use as A',
|
|
57
|
+
'inference.prompt_history.use_b': 'Use as B',
|
|
58
|
+
});
|
package/dist/svelte/index.d.ts
CHANGED
|
@@ -13,5 +13,6 @@ import type { ComponentProps } from 'svelte';
|
|
|
13
13
|
import InferenceSettingsPanel from './components/InferenceSettingsPanel.svelte';
|
|
14
14
|
export { InferenceSettingsPanel };
|
|
15
15
|
export type InferenceSettingsPanelProps = ComponentProps<typeof InferenceSettingsPanel>;
|
|
16
|
+
export type { InferenceCompareRequestView, InferenceComparisonView, InferenceHistoryRequestView, InferenceHistoryView, } from './types.js';
|
|
16
17
|
export { candidateViewLabel, defaultTierRevertPreview, describeTargetView, INFERENCE_SETTINGS_MODES, INFERENCE_SETTINGS_TIERS, type InferenceAliasChange, type InferenceAliasView, type InferenceAssistantSettingsChange, type InferenceAssistantSettingsView, type InferenceCandidateView, type InferenceConnectionRequest, type InferenceDefaultsChange, type InferenceDefaultsView, type InferenceDefaultTierChange, type InferenceDefaultTierView, type InferenceDiscoveryView, type InferenceFusionChange, type InferenceFusionView, type InferenceKeyChange, type InferenceProviderView, type InferenceSettingsLevelView, type InferenceSettingsMode, type InferenceSettingsScope, type InferenceSettingsTier, type InferenceTargetView, type InferenceTestResultView, type InferenceTierChange, type InferenceTierView, type InferenceTranscriptLinkFilters, type InferenceTranscriptSettingsChange, type InferenceTranscriptSettingsView, type InferenceTranscriptValuesView, type InferenceUsageDimension, type InferenceUsageView, inferenceLevelLabel, isRefAllowed, targetViewRef, tierRevertPreview, transcriptLinkFilters, usageColumns, } from './types.js';
|
|
17
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/svelte/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,sBAAsB,MAA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AAC;AAEF,YAAY,EACV,2BAA2B,EAC3B,uBAAuB,EACvB,2BAA2B,EAC3B,oBAAoB,GACrB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACxB,kBAAkB,EAClB,wBAAwB,EACxB,wBAAwB,EACxB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,8BAA8B,EACnC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,EAClC,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,qBAAqB,EACrB,YAAY,GACb,MAAM,YAAY,CAAC"}
|
package/dist/svelte/types.d.ts
CHANGED
|
@@ -229,6 +229,8 @@ export interface InferenceTranscriptSettingsChange {
|
|
|
229
229
|
* `listAiTranscripts()` filters a bucket can name, plus the report window.
|
|
230
230
|
*/
|
|
231
231
|
export interface InferenceTranscriptLinkFilters {
|
|
232
|
+
/** Exact recorded call, used for model/tier comparisons too. */
|
|
233
|
+
callId?: string;
|
|
232
234
|
promptKey?: string;
|
|
233
235
|
templateHash?: string;
|
|
234
236
|
/** An evaluation label (`listAiTranscripts({ label })`). */
|
|
@@ -282,4 +284,75 @@ export declare function defaultTierRevertPreview(view: InferenceDefaultTierView,
|
|
|
282
284
|
export declare function transcriptLinkFilters(view: Pick<InferenceUsageView, 'since' | 'until'>, key: Record<string, string | null | undefined>, label?: string): InferenceTranscriptLinkFilters;
|
|
283
285
|
/** Usage columns to render: only the dimensions the report was grouped by. */
|
|
284
286
|
export declare function usageColumns(view: InferenceUsageView): string[];
|
|
287
|
+
/** Browser shapes for recorded history; no server imports or prompt execution. */
|
|
288
|
+
export type InferenceCompareSelector = {
|
|
289
|
+
templateHash: string;
|
|
290
|
+
} | {
|
|
291
|
+
model: string;
|
|
292
|
+
} | {
|
|
293
|
+
tier: string;
|
|
294
|
+
};
|
|
295
|
+
export interface InferenceHistoryRequestView {
|
|
296
|
+
promptKey: string;
|
|
297
|
+
since?: string;
|
|
298
|
+
until?: string;
|
|
299
|
+
}
|
|
300
|
+
export interface InferenceCompareRequestView extends InferenceHistoryRequestView {
|
|
301
|
+
a: InferenceCompareSelector;
|
|
302
|
+
b: InferenceCompareSelector;
|
|
303
|
+
}
|
|
304
|
+
export interface InferenceHistoryView {
|
|
305
|
+
promptKey: string;
|
|
306
|
+
hashes: Array<{
|
|
307
|
+
templateHash: string | null;
|
|
308
|
+
calls: number;
|
|
309
|
+
blocked: number;
|
|
310
|
+
layers: string[];
|
|
311
|
+
models: string[];
|
|
312
|
+
firstSeen: Date | string;
|
|
313
|
+
lastSeen: Date | string;
|
|
314
|
+
}>;
|
|
315
|
+
}
|
|
316
|
+
export interface InferenceCompareSideView {
|
|
317
|
+
selector: InferenceCompareSelector;
|
|
318
|
+
calls: number;
|
|
319
|
+
blocked: number;
|
|
320
|
+
promptTokens: number;
|
|
321
|
+
completionTokens: number;
|
|
322
|
+
totalTokens: number;
|
|
323
|
+
estimatedCost: number;
|
|
324
|
+
uncostedCalls: number;
|
|
325
|
+
meanCost: number | null;
|
|
326
|
+
latencyMs: {
|
|
327
|
+
p50: number | null;
|
|
328
|
+
p90: number | null;
|
|
329
|
+
p95: number | null;
|
|
330
|
+
p99: number | null;
|
|
331
|
+
};
|
|
332
|
+
fallbackRate: number | null;
|
|
333
|
+
degradedRate: number | null;
|
|
334
|
+
meanScore: number | null;
|
|
335
|
+
evaluations: Record<string, number>;
|
|
336
|
+
transcriptCount: number;
|
|
337
|
+
transcripts: Array<{
|
|
338
|
+
id: string;
|
|
339
|
+
callId: string;
|
|
340
|
+
labels: string[];
|
|
341
|
+
worstScore: number | null;
|
|
342
|
+
}>;
|
|
343
|
+
}
|
|
344
|
+
export interface InferenceComparisonView {
|
|
345
|
+
promptKey: string;
|
|
346
|
+
since: Date | string | null;
|
|
347
|
+
until: Date | string | null;
|
|
348
|
+
costBasis: string;
|
|
349
|
+
a: InferenceCompareSideView;
|
|
350
|
+
b: InferenceCompareSideView;
|
|
351
|
+
rows: number;
|
|
352
|
+
unmatched: number;
|
|
353
|
+
inBoth: number;
|
|
354
|
+
excluded: {
|
|
355
|
+
externalAgent: number;
|
|
356
|
+
};
|
|
357
|
+
}
|
|
285
358
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/svelte/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,wBAAwB,6CAK3B,CAAC;AACX,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9E,eAAO,MAAM,wBAAwB,4CAK3B,CAAC;AACX,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9E,MAAM,MAAM,0BAA0B,GAClC,SAAS,GACT,QAAQ,GACR,KAAK,GACL,QAAQ,CAAC;AACb,MAAM,MAAM,sBAAsB,GAAG,KAAK,GAAG,QAAQ,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EA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