@absolutejs/voice 0.0.22-beta.40 → 0.0.22-beta.42
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/dist/evalRoutes.d.ts +83 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1142 -892
- package/dist/opsConsoleRoutes.d.ts +77 -0
- package/package.json +1 -1
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { Elysia } from 'elysia';
|
|
2
|
+
import { type VoiceQualityReport, type VoiceQualityThresholds } from './qualityRoutes';
|
|
3
|
+
import { summarizeVoiceTrace, type StoredVoiceTraceEvent, type VoiceTraceEventStore } from './trace';
|
|
4
|
+
export type VoiceEvalStatus = 'pass' | 'fail';
|
|
5
|
+
export type VoiceEvalSessionReport = {
|
|
6
|
+
endedAt?: number;
|
|
7
|
+
eventCount: number;
|
|
8
|
+
quality: VoiceQualityReport;
|
|
9
|
+
scenarioId?: string;
|
|
10
|
+
sessionId: string;
|
|
11
|
+
startedAt?: number;
|
|
12
|
+
status: VoiceEvalStatus;
|
|
13
|
+
summary: ReturnType<typeof summarizeVoiceTrace>;
|
|
14
|
+
};
|
|
15
|
+
export type VoiceEvalTrendBucket = {
|
|
16
|
+
endedAt: number;
|
|
17
|
+
failed: number;
|
|
18
|
+
key: string;
|
|
19
|
+
passed: number;
|
|
20
|
+
total: number;
|
|
21
|
+
};
|
|
22
|
+
export type VoiceEvalReport = {
|
|
23
|
+
checkedAt: number;
|
|
24
|
+
failed: number;
|
|
25
|
+
passed: number;
|
|
26
|
+
sessions: VoiceEvalSessionReport[];
|
|
27
|
+
status: VoiceEvalStatus;
|
|
28
|
+
total: number;
|
|
29
|
+
trend: VoiceEvalTrendBucket[];
|
|
30
|
+
};
|
|
31
|
+
export type VoiceEvalLink = {
|
|
32
|
+
href: string;
|
|
33
|
+
label: string;
|
|
34
|
+
};
|
|
35
|
+
export type VoiceEvalRoutesOptions = {
|
|
36
|
+
events?: StoredVoiceTraceEvent[];
|
|
37
|
+
headers?: HeadersInit;
|
|
38
|
+
links?: VoiceEvalLink[];
|
|
39
|
+
limit?: number;
|
|
40
|
+
name?: string;
|
|
41
|
+
path?: string;
|
|
42
|
+
store?: VoiceTraceEventStore;
|
|
43
|
+
thresholds?: VoiceQualityThresholds;
|
|
44
|
+
title?: string;
|
|
45
|
+
};
|
|
46
|
+
export declare const runVoiceSessionEvals: (options?: {
|
|
47
|
+
events?: StoredVoiceTraceEvent[];
|
|
48
|
+
limit?: number;
|
|
49
|
+
store?: VoiceTraceEventStore;
|
|
50
|
+
thresholds?: VoiceQualityThresholds;
|
|
51
|
+
}) => Promise<VoiceEvalReport>;
|
|
52
|
+
export declare const renderVoiceEvalHTML: (report: VoiceEvalReport, options?: {
|
|
53
|
+
links?: VoiceEvalLink[];
|
|
54
|
+
title?: string;
|
|
55
|
+
}) => string;
|
|
56
|
+
export declare const createVoiceEvalRoutes: (options: VoiceEvalRoutesOptions) => Elysia<"", {
|
|
57
|
+
decorator: {};
|
|
58
|
+
store: {};
|
|
59
|
+
derive: {};
|
|
60
|
+
resolve: {};
|
|
61
|
+
}, {
|
|
62
|
+
typebox: {};
|
|
63
|
+
error: {};
|
|
64
|
+
}, {
|
|
65
|
+
schema: {};
|
|
66
|
+
standaloneSchema: {};
|
|
67
|
+
macro: {};
|
|
68
|
+
macroFn: {};
|
|
69
|
+
parser: {};
|
|
70
|
+
response: {};
|
|
71
|
+
}, {}, {
|
|
72
|
+
derive: {};
|
|
73
|
+
resolve: {};
|
|
74
|
+
schema: {};
|
|
75
|
+
standaloneSchema: {};
|
|
76
|
+
response: {};
|
|
77
|
+
}, {
|
|
78
|
+
derive: {};
|
|
79
|
+
resolve: {};
|
|
80
|
+
schema: {};
|
|
81
|
+
standaloneSchema: {};
|
|
82
|
+
response: {};
|
|
83
|
+
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,12 +2,14 @@ export { voice } from './plugin';
|
|
|
2
2
|
export { createVoiceAssistant, createVoiceExperiment, summarizeVoiceAssistantRuns } from './assistant';
|
|
3
3
|
export { createVoiceAssistantHealthHTMLHandler, createVoiceAssistantHealthJSONHandler, createVoiceAssistantHealthRoutes, renderVoiceAssistantHealthHTML, summarizeVoiceAssistantHealth } from './assistantHealth';
|
|
4
4
|
export { buildVoiceDiagnosticsMarkdown, createVoiceDiagnosticsRoutes, resolveVoiceDiagnosticsTraceFilter } from './diagnosticsRoutes';
|
|
5
|
+
export { createVoiceEvalRoutes, renderVoiceEvalHTML, runVoiceSessionEvals } from './evalRoutes';
|
|
5
6
|
export { createVoiceSessionListRoutes, createVoiceSessionReplayHTMLHandler, createVoiceSessionReplayJSONHandler, createVoiceSessionReplayRoutes, createVoiceSessionsHTMLHandler, createVoiceSessionsJSONHandler, renderVoiceSessionsHTML, summarizeVoiceSessions, summarizeVoiceSessionReplay } from './sessionReplay';
|
|
6
7
|
export { createVoiceAgent, createVoiceAgentSquad, createVoiceAgentTool } from './agent';
|
|
7
8
|
export { createStoredVoiceCallReviewArtifact, createStoredVoiceExternalObjectMap, createStoredVoiceIntegrationEvent, createStoredVoiceOpsTask, createVoiceFileExternalObjectMapStore, createVoiceFileAssistantMemoryStore, createVoiceFileIntegrationEventStore, createVoiceFileReviewStore, createVoiceFileRuntimeStorage, createVoiceFileSessionStore, createVoiceFileTaskStore, createVoiceFileTraceSinkDeliveryStore, createVoiceFileTraceEventStore } from './fileStore';
|
|
8
9
|
export { createVoiceAssistantMemoryHandle, createVoiceAssistantMemoryRecord, createVoiceMemoryAssistantMemoryStore, resolveVoiceAssistantMemoryNamespace } from './assistantMemory';
|
|
9
10
|
export { createAnthropicVoiceAssistantModel, createGeminiVoiceAssistantModel, createJSONVoiceAssistantModel, createOpenAIVoiceAssistantModel, createVoiceProviderRouter } from './modelAdapters';
|
|
10
11
|
export { createVoiceProviderHealthHTMLHandler, createVoiceProviderHealthJSONHandler, createVoiceProviderHealthRoutes, renderVoiceProviderHealthHTML, summarizeVoiceProviderHealth } from './providerHealth';
|
|
12
|
+
export { buildVoiceOpsConsoleReport, createVoiceOpsConsoleRoutes, renderVoiceOpsConsoleHTML } from './opsConsoleRoutes';
|
|
11
13
|
export { createVoiceQualityRoutes, evaluateVoiceQuality, renderVoiceQualityHTML } from './qualityRoutes';
|
|
12
14
|
export { createVoiceResilienceRoutes, listVoiceRoutingEvents, renderVoiceResilienceHTML } from './resilienceRoutes';
|
|
13
15
|
export { createVoiceSTTProviderRouter, createVoiceTTSProviderRouter } from './providerAdapters';
|
|
@@ -38,9 +40,11 @@ export type { VoiceAssistant, VoiceAssistantArtifactPlan, VoiceAssistantExperime
|
|
|
38
40
|
export type { VoiceAssistantHealthFailure, VoiceAssistantHealthHTMLHandlerOptions, VoiceAssistantHealthRoutesOptions, VoiceAssistantHealthSummary, VoiceAssistantHealthSummaryOptions } from './assistantHealth';
|
|
39
41
|
export type { VoiceAssistantMemoryBinding, VoiceAssistantMemoryHandle, VoiceAssistantMemoryOptions, VoiceAssistantMemoryRecord, VoiceAssistantMemoryStore } from './assistantMemory';
|
|
40
42
|
export type { VoiceDiagnosticsRoutesOptions } from './diagnosticsRoutes';
|
|
43
|
+
export type { VoiceEvalLink, VoiceEvalReport, VoiceEvalRoutesOptions, VoiceEvalSessionReport, VoiceEvalStatus, VoiceEvalTrendBucket } from './evalRoutes';
|
|
41
44
|
export type { VoiceSessionListHTMLHandlerOptions, VoiceSessionListItem, VoiceSessionListOptions, VoiceSessionListRoutesOptions, VoiceSessionListStatus, VoiceSessionReplay, VoiceSessionReplayHTMLHandlerOptions, VoiceSessionReplayOptions, VoiceSessionReplayRoutesOptions, VoiceSessionReplayTurn } from './sessionReplay';
|
|
42
45
|
export type { AnthropicVoiceAssistantModelOptions, GeminiVoiceAssistantModelOptions, OpenAIVoiceAssistantModelOptions, VoiceProviderRouterEvent, VoiceProviderRouterFallbackMode, VoiceProviderRouterHealthOptions, VoiceProviderRouterOptions, VoiceProviderRouterPolicy, VoiceProviderRouterProviderHealth, VoiceProviderRouterProviderProfile, VoiceJSONAssistantModelHandler, VoiceJSONAssistantModelOptions } from './modelAdapters';
|
|
43
46
|
export type { VoiceProviderHealthStatus, VoiceProviderHealthSummary, VoiceProviderHealthSummaryOptions } from './providerHealth';
|
|
47
|
+
export type { VoiceOpsConsoleLink, VoiceOpsConsoleReport, VoiceOpsConsoleRoutesOptions } from './opsConsoleRoutes';
|
|
44
48
|
export type { VoiceQualityLink, VoiceQualityMetric, VoiceQualityReport, VoiceQualityRoutesOptions, VoiceQualityStatus, VoiceQualityThresholds } from './qualityRoutes';
|
|
45
49
|
export type { VoiceResilienceIOSimulator, VoiceResilienceLink, VoiceResiliencePageData, VoiceResilienceRoutesOptions, VoiceResilienceSimulationProvider, VoiceRoutingEvent, VoiceRoutingEventKind } from './resilienceRoutes';
|
|
46
50
|
export type { VoiceIOProviderRouterEvent, VoiceSTTProviderRouterOptions, VoiceTTSProviderRouterOptions } from './providerAdapters';
|