@asyra/ai-agent-runtime 0.5.1 → 0.6.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/CHANGELOG.md +73 -0
- package/README.md +9 -5
- package/dist/action-batch.d.ts.map +1 -1
- package/dist/action-batch.js.map +1 -1
- package/dist/action-registry.d.ts +2 -2
- package/dist/action-registry.d.ts.map +1 -1
- package/dist/action-registry.js +100 -65
- package/dist/action-registry.js.map +1 -1
- package/dist/audit.d.ts.map +1 -1
- package/dist/audit.js.map +1 -1
- package/dist/batch-exchange-types.d.ts +21 -0
- package/dist/batch-exchange-types.d.ts.map +1 -0
- package/dist/batch-exchange-types.js +2 -0
- package/dist/batch-exchange-types.js.map +1 -0
- package/dist/capability-search.d.ts +46 -0
- package/dist/capability-search.d.ts.map +1 -0
- package/dist/capability-search.js +210 -0
- package/dist/capability-search.js.map +1 -0
- package/dist/index.d.ts +37 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +28 -2
- package/dist/index.js.map +1 -1
- package/dist/invocation.d.ts +46 -0
- package/dist/invocation.d.ts.map +1 -0
- package/dist/invocation.js +71 -0
- package/dist/invocation.js.map +1 -0
- package/dist/json-value.d.ts +3 -0
- package/dist/json-value.d.ts.map +1 -0
- package/dist/json-value.js +50 -0
- package/dist/json-value.js.map +1 -0
- package/dist/knowledge-types.d.ts +81 -0
- package/dist/knowledge-types.d.ts.map +1 -0
- package/dist/knowledge-types.js +2 -0
- package/dist/knowledge-types.js.map +1 -0
- package/dist/knowledge.d.ts +17 -0
- package/dist/knowledge.d.ts.map +1 -0
- package/dist/knowledge.js +585 -0
- package/dist/knowledge.js.map +1 -0
- package/dist/named-result-inputs.d.ts +9 -0
- package/dist/named-result-inputs.d.ts.map +1 -0
- package/dist/named-result-inputs.js +94 -0
- package/dist/named-result-inputs.js.map +1 -0
- package/dist/node/action-observation.d.ts +15 -0
- package/dist/node/action-observation.d.ts.map +1 -0
- package/dist/node/action-observation.js +126 -0
- package/dist/node/action-observation.js.map +1 -0
- package/dist/node/batch-exchange.d.ts +19 -0
- package/dist/node/batch-exchange.d.ts.map +1 -0
- package/dist/node/batch-exchange.js +105 -0
- package/dist/node/batch-exchange.js.map +1 -0
- package/dist/node/file-record-collector.d.ts +11 -0
- package/dist/node/file-record-collector.d.ts.map +1 -0
- package/dist/node/file-record-collector.js +142 -0
- package/dist/node/file-record-collector.js.map +1 -0
- package/dist/node/index.d.ts +22 -0
- package/dist/node/index.d.ts.map +1 -0
- package/dist/node/index.js +22 -0
- package/dist/node/index.js.map +1 -0
- package/dist/node/information-delivery.d.ts +90 -0
- package/dist/node/information-delivery.d.ts.map +1 -0
- package/dist/node/information-delivery.js +144 -0
- package/dist/node/information-delivery.js.map +1 -0
- package/dist/node/knowledge-file.d.ts +22 -0
- package/dist/node/knowledge-file.d.ts.map +1 -0
- package/dist/node/knowledge-file.js +106 -0
- package/dist/node/knowledge-file.js.map +1 -0
- package/dist/node/native-provider-config.d.ts +12 -0
- package/dist/node/native-provider-config.d.ts.map +1 -0
- package/dist/node/native-provider-config.js +58 -0
- package/dist/node/native-provider-config.js.map +1 -0
- package/dist/node/native-provider.d.ts +36 -0
- package/dist/node/native-provider.d.ts.map +1 -0
- package/dist/node/native-provider.js +209 -0
- package/dist/node/native-provider.js.map +1 -0
- package/dist/node/native-rpc-transport.d.ts +39 -0
- package/dist/node/native-rpc-transport.d.ts.map +1 -0
- package/dist/node/native-rpc-transport.js +171 -0
- package/dist/node/native-rpc-transport.js.map +1 -0
- package/dist/node/native-session.d.ts +50 -0
- package/dist/node/native-session.d.ts.map +1 -0
- package/dist/node/native-session.js +200 -0
- package/dist/node/native-session.js.map +1 -0
- package/dist/node/payload.d.ts +12 -0
- package/dist/node/payload.d.ts.map +1 -0
- package/dist/node/payload.js +69 -0
- package/dist/node/payload.js.map +1 -0
- package/dist/node/provider-content.d.ts +9 -0
- package/dist/node/provider-content.d.ts.map +1 -0
- package/dist/node/provider-content.js +2 -0
- package/dist/node/provider-content.js.map +1 -0
- package/dist/node/provider-conversations.d.ts +21 -0
- package/dist/node/provider-conversations.d.ts.map +1 -0
- package/dist/node/provider-conversations.js +98 -0
- package/dist/node/provider-conversations.js.map +1 -0
- package/dist/node/record-collector.d.ts +27 -0
- package/dist/node/record-collector.d.ts.map +1 -0
- package/dist/node/record-collector.js +175 -0
- package/dist/node/record-collector.js.map +1 -0
- package/dist/node/record-sink.d.ts +4 -0
- package/dist/node/record-sink.d.ts.map +1 -0
- package/dist/node/record-sink.js +218 -0
- package/dist/node/record-sink.js.map +1 -0
- package/dist/node/report-cli.d.ts +21 -0
- package/dist/node/report-cli.d.ts.map +1 -0
- package/dist/node/report-cli.js +285 -0
- package/dist/node/report-cli.js.map +1 -0
- package/dist/node/responses-provider.d.ts +53 -0
- package/dist/node/responses-provider.d.ts.map +1 -0
- package/dist/node/responses-provider.js +542 -0
- package/dist/node/responses-provider.js.map +1 -0
- package/dist/node/responses-tool-search.d.ts +74 -0
- package/dist/node/responses-tool-search.d.ts.map +1 -0
- package/dist/node/responses-tool-search.js +100 -0
- package/dist/node/responses-tool-search.js.map +1 -0
- package/dist/node/source-identity.d.ts +10 -0
- package/dist/node/source-identity.d.ts.map +1 -0
- package/dist/node/source-identity.js +85 -0
- package/dist/node/source-identity.js.map +1 -0
- package/dist/node/sqlite-tool-store.d.ts +18 -0
- package/dist/node/sqlite-tool-store.d.ts.map +1 -0
- package/dist/node/sqlite-tool-store.js +198 -0
- package/dist/node/sqlite-tool-store.js.map +1 -0
- package/dist/node/tool-host-library.d.ts +97 -0
- package/dist/node/tool-host-library.d.ts.map +1 -0
- package/dist/node/tool-host-library.js +368 -0
- package/dist/node/tool-host-library.js.map +1 -0
- package/dist/node/tool-provider.d.ts +65 -0
- package/dist/node/tool-provider.d.ts.map +1 -0
- package/dist/node/tool-provider.js +2 -0
- package/dist/node/tool-provider.js.map +1 -0
- package/dist/profiler/assessment.d.ts +30 -0
- package/dist/profiler/assessment.d.ts.map +1 -0
- package/dist/profiler/assessment.js +111 -0
- package/dist/profiler/assessment.js.map +1 -0
- package/dist/profiler/evaluation.d.ts +288 -0
- package/dist/profiler/evaluation.d.ts.map +1 -0
- package/dist/profiler/evaluation.js +513 -0
- package/dist/profiler/evaluation.js.map +1 -0
- package/dist/profiler/record-delivery.d.ts +20 -0
- package/dist/profiler/record-delivery.d.ts.map +1 -0
- package/dist/profiler/record-delivery.js +279 -0
- package/dist/profiler/record-delivery.js.map +1 -0
- package/dist/profiler/record-outbox.d.ts +48 -0
- package/dist/profiler/record-outbox.d.ts.map +1 -0
- package/dist/profiler/record-outbox.js +126 -0
- package/dist/profiler/record-outbox.js.map +1 -0
- package/dist/profiler/recorder.d.ts +35 -0
- package/dist/profiler/recorder.d.ts.map +1 -0
- package/dist/profiler/recorder.js +864 -0
- package/dist/profiler/recorder.js.map +1 -0
- package/dist/profiler/records.d.ts +89 -0
- package/dist/profiler/records.d.ts.map +1 -0
- package/dist/profiler/records.js +216 -0
- package/dist/profiler/records.js.map +1 -0
- package/dist/profiler/timing.d.ts +21 -0
- package/dist/profiler/timing.d.ts.map +1 -0
- package/dist/profiler/timing.js +197 -0
- package/dist/profiler/timing.js.map +1 -0
- package/dist/profiler/trace.d.ts +31 -0
- package/dist/profiler/trace.d.ts.map +1 -0
- package/dist/profiler/trace.js +66 -0
- package/dist/profiler/trace.js.map +1 -0
- package/dist/provider-retry.d.ts.map +1 -1
- package/dist/provider-retry.js +1 -0
- package/dist/provider-retry.js.map +1 -1
- package/dist/provider.d.ts +46 -1
- package/dist/provider.d.ts.map +1 -1
- package/dist/provider.js +34 -0
- package/dist/provider.js.map +1 -1
- package/dist/providers/exchange-provider.d.ts +32 -0
- package/dist/providers/exchange-provider.d.ts.map +1 -0
- package/dist/providers/exchange-provider.js +348 -0
- package/dist/providers/exchange-provider.js.map +1 -0
- package/dist/providers/generic-http.d.ts +2 -1
- package/dist/providers/generic-http.d.ts.map +1 -1
- package/dist/providers/generic-http.js +12 -5
- package/dist/providers/generic-http.js.map +1 -1
- package/dist/recipe-admission.d.ts +5 -0
- package/dist/recipe-admission.d.ts.map +1 -0
- package/dist/recipe-admission.js +533 -0
- package/dist/recipe-admission.js.map +1 -0
- package/dist/recipe-execution.d.ts +93 -0
- package/dist/recipe-execution.d.ts.map +1 -0
- package/dist/recipe-execution.js +562 -0
- package/dist/recipe-execution.js.map +1 -0
- package/dist/recipe-format.d.ts +18 -0
- package/dist/recipe-format.d.ts.map +1 -0
- package/dist/recipe-format.js +94 -0
- package/dist/recipe-format.js.map +1 -0
- package/dist/recipe-schema.d.ts +67 -0
- package/dist/recipe-schema.d.ts.map +1 -0
- package/dist/recipe-schema.js +959 -0
- package/dist/recipe-schema.js.map +1 -0
- package/dist/recipe-types.d.ts +86 -0
- package/dist/recipe-types.d.ts.map +1 -0
- package/dist/recipe-types.js +2 -0
- package/dist/recipe-types.js.map +1 -0
- package/dist/redaction.d.ts.map +1 -1
- package/dist/redaction.js.map +1 -1
- package/dist/result-context.d.ts +70 -0
- package/dist/result-context.d.ts.map +1 -0
- package/dist/result-context.js +186 -0
- package/dist/result-context.js.map +1 -0
- package/dist/result-delivery.d.ts +64 -0
- package/dist/result-delivery.d.ts.map +1 -0
- package/dist/result-delivery.js +212 -0
- package/dist/result-delivery.js.map +1 -0
- package/dist/result-media.d.ts +8 -0
- package/dist/result-media.d.ts.map +1 -0
- package/dist/result-media.js +14 -0
- package/dist/result-media.js.map +1 -0
- package/dist/runtime.d.ts +70 -10
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +811 -162
- package/dist/runtime.js.map +1 -1
- package/dist/schema/index.d.ts +6 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/index.js +6 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/schema/native-input.d.ts +2 -0
- package/dist/schema/native-input.d.ts.map +1 -0
- package/dist/schema/native-input.js +170 -0
- package/dist/schema/native-input.js.map +1 -0
- package/dist/schema/owner-invocation.d.ts +19 -0
- package/dist/schema/owner-invocation.d.ts.map +1 -0
- package/dist/schema/owner-invocation.js +40 -0
- package/dist/schema/owner-invocation.js.map +1 -0
- package/dist/schema/result-delivery.d.ts +57 -0
- package/dist/schema/result-delivery.d.ts.map +1 -0
- package/dist/schema/result-delivery.js +380 -0
- package/dist/schema/result-delivery.js.map +1 -0
- package/dist/schema/tool-leases.d.ts +63 -0
- package/dist/schema/tool-leases.d.ts.map +1 -0
- package/dist/schema/tool-leases.js +439 -0
- package/dist/schema/tool-leases.js.map +1 -0
- package/dist/schema/validation.d.ts +19 -0
- package/dist/schema/validation.d.ts.map +1 -0
- package/dist/schema/validation.js +502 -0
- package/dist/schema/validation.js.map +1 -0
- package/dist/tool-contract.d.ts +105 -0
- package/dist/tool-contract.d.ts.map +1 -0
- package/dist/tool-contract.js +318 -0
- package/dist/tool-contract.js.map +1 -0
- package/dist/tool-input-error.d.ts +8 -0
- package/dist/tool-input-error.d.ts.map +1 -0
- package/dist/tool-input-error.js +10 -0
- package/dist/tool-input-error.js.map +1 -0
- package/dist/tool-library.d.ts +43 -0
- package/dist/tool-library.d.ts.map +1 -0
- package/dist/tool-library.js +204 -0
- package/dist/tool-library.js.map +1 -0
- package/dist/tool-scheduler.d.ts +10 -0
- package/dist/tool-scheduler.d.ts.map +1 -0
- package/dist/tool-scheduler.js +46 -0
- package/dist/tool-scheduler.js.map +1 -0
- package/dist/tool-store.d.ts +109 -0
- package/dist/tool-store.d.ts.map +1 -0
- package/dist/tool-store.js +536 -0
- package/dist/tool-store.js.map +1 -0
- package/dist/types.d.ts +45 -8
- package/dist/types.d.ts.map +1 -1
- package/package.json +33 -3
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
export interface ExecutionReportPolicy {
|
|
2
|
+
readTools?: readonly string[];
|
|
3
|
+
reviewTool?: string;
|
|
4
|
+
validateEvidenceTool?: string;
|
|
5
|
+
}
|
|
6
|
+
import { parseExecutionRecord } from './records.js';
|
|
7
|
+
type ParsedExecution = ReturnType<typeof parseExecutionRecord>;
|
|
8
|
+
export interface ExecutionFinding {
|
|
9
|
+
requestId: string | null;
|
|
10
|
+
sequence: number | null;
|
|
11
|
+
callId: string | null;
|
|
12
|
+
relatedCallIds?: string[];
|
|
13
|
+
repeatedFields?: string[];
|
|
14
|
+
kind: 'tool-failure' | 'incomplete-step' | 'protocol-rejection' | 'unavailable-result' | 'repeat-query-candidate' | 'input-echo-candidate';
|
|
15
|
+
confidence: 'observed' | 'candidate';
|
|
16
|
+
observation: string;
|
|
17
|
+
possibleRemedy: string;
|
|
18
|
+
}
|
|
19
|
+
/** A read-only projection; timings rank investigation targets, not product quality. */
|
|
20
|
+
export declare const evaluateExecution: (run: ParsedExecution, options?: {
|
|
21
|
+
feedback?: string;
|
|
22
|
+
policy?: ExecutionReportPolicy;
|
|
23
|
+
}) => {
|
|
24
|
+
requestId: string | null;
|
|
25
|
+
metadata: Record<string, unknown>;
|
|
26
|
+
complete: boolean;
|
|
27
|
+
outcome: string;
|
|
28
|
+
issues: string[];
|
|
29
|
+
timing: {
|
|
30
|
+
durationMs: number;
|
|
31
|
+
breakdown: Record<"childProviderMs" | "appExchangeMs" | "toolExecutionMs" | "toolQueueMs" | "toolUnsplitMs" | "researchMs" | "nativeWaitMs" | "providerOrchestrationEventMs" | "providerReasoningEventMs" | "providerResponseEventMs" | "providerRequestMs" | "providerWaitMs" | "appOrchestrationMs" | "unattributedMs", number>;
|
|
32
|
+
owners: {
|
|
33
|
+
providerMs: number;
|
|
34
|
+
toolMs: number;
|
|
35
|
+
appMs: number;
|
|
36
|
+
recordingGapMs: number;
|
|
37
|
+
};
|
|
38
|
+
callDurations: {
|
|
39
|
+
callId: string;
|
|
40
|
+
kind: "lifecycle" | "provider" | "tool" | "action" | "research";
|
|
41
|
+
tool: string | null;
|
|
42
|
+
inclusiveMs: number;
|
|
43
|
+
ownMs: number;
|
|
44
|
+
}[];
|
|
45
|
+
appCallGaps: {
|
|
46
|
+
breakdown: Record<"childProviderMs" | "appExchangeMs" | "toolExecutionMs" | "toolQueueMs" | "toolUnsplitMs" | "researchMs" | "nativeWaitMs" | "providerOrchestrationEventMs" | "providerReasoningEventMs" | "providerResponseEventMs" | "providerRequestMs" | "providerWaitMs" | "appOrchestrationMs" | "unattributedMs", number>;
|
|
47
|
+
startMs: number;
|
|
48
|
+
endMs: number;
|
|
49
|
+
durationMs: number;
|
|
50
|
+
beforeTool: string | null;
|
|
51
|
+
afterTool: string | null;
|
|
52
|
+
}[];
|
|
53
|
+
observedToolAndResearchMs: number;
|
|
54
|
+
outsideToolAndResearchMs: number;
|
|
55
|
+
unattributedMs: number;
|
|
56
|
+
};
|
|
57
|
+
usage: {} | null;
|
|
58
|
+
usageStatus: {};
|
|
59
|
+
transport: {} | null;
|
|
60
|
+
findings: ExecutionFinding[];
|
|
61
|
+
toolCalls: {
|
|
62
|
+
execution: {
|
|
63
|
+
status: "failed" | "partial" | "unknown" | "usable" | "rejected";
|
|
64
|
+
stage: string | null;
|
|
65
|
+
code: string | null;
|
|
66
|
+
settlement: string | null;
|
|
67
|
+
};
|
|
68
|
+
tool: string | null;
|
|
69
|
+
phase: string | null;
|
|
70
|
+
selectors: unknown;
|
|
71
|
+
diagnostics: {
|
|
72
|
+
input?: unknown;
|
|
73
|
+
output?: unknown;
|
|
74
|
+
attribution?: unknown;
|
|
75
|
+
};
|
|
76
|
+
status: "completed" | "failed" | "incomplete";
|
|
77
|
+
durationMs: number | null;
|
|
78
|
+
queueMs: number | null;
|
|
79
|
+
executionMs: number | null;
|
|
80
|
+
responseTextBytes: number | null;
|
|
81
|
+
code: string | null;
|
|
82
|
+
ownerTiming: Record<string, unknown>;
|
|
83
|
+
requestId: string | null;
|
|
84
|
+
sequence: number | null;
|
|
85
|
+
callId: string;
|
|
86
|
+
}[];
|
|
87
|
+
toolOutcomes: {
|
|
88
|
+
usable: number;
|
|
89
|
+
partial: number;
|
|
90
|
+
rejected: number;
|
|
91
|
+
failed: number;
|
|
92
|
+
unknown: number;
|
|
93
|
+
};
|
|
94
|
+
actions: {
|
|
95
|
+
callId: string;
|
|
96
|
+
tool: string | null;
|
|
97
|
+
status: "completed" | "failed" | "incomplete";
|
|
98
|
+
exchangeStartedMs: number | null;
|
|
99
|
+
exchangeEndedMs: number | null;
|
|
100
|
+
handlerMs: number | null;
|
|
101
|
+
diagnostics: {
|
|
102
|
+
input?: unknown;
|
|
103
|
+
output?: unknown;
|
|
104
|
+
attribution?: unknown;
|
|
105
|
+
};
|
|
106
|
+
}[];
|
|
107
|
+
orchestration: {
|
|
108
|
+
modelRoundCount: null;
|
|
109
|
+
programChildLinks: "unavailable";
|
|
110
|
+
reason: string;
|
|
111
|
+
nativeTurnIds: string[];
|
|
112
|
+
programs: {
|
|
113
|
+
callId: string;
|
|
114
|
+
tool: string | null;
|
|
115
|
+
startedMs: number | null;
|
|
116
|
+
endedMs: number | null;
|
|
117
|
+
status: "completed" | "failed" | "incomplete";
|
|
118
|
+
}[];
|
|
119
|
+
};
|
|
120
|
+
modelReview: {
|
|
121
|
+
status: string;
|
|
122
|
+
current: boolean;
|
|
123
|
+
certifiesVisuals: boolean;
|
|
124
|
+
callId: string | null;
|
|
125
|
+
sequence: number | null;
|
|
126
|
+
criteria: {} | null;
|
|
127
|
+
detailRequired: {} | null;
|
|
128
|
+
inspectionIds: {} | null;
|
|
129
|
+
checks: {} | null;
|
|
130
|
+
accepted: {} | null;
|
|
131
|
+
};
|
|
132
|
+
userFeedback: string | null;
|
|
133
|
+
};
|
|
134
|
+
export declare const createExecutionPeriodReport: (records: ParsedExecution[], options?: {
|
|
135
|
+
from?: string;
|
|
136
|
+
to?: string;
|
|
137
|
+
now?: Date;
|
|
138
|
+
feedback?: Record<string, string>;
|
|
139
|
+
policy?: ExecutionReportPolicy;
|
|
140
|
+
}) => {
|
|
141
|
+
from: string;
|
|
142
|
+
to: string;
|
|
143
|
+
runs: {
|
|
144
|
+
requestId: string | null;
|
|
145
|
+
metadata: Record<string, unknown>;
|
|
146
|
+
complete: boolean;
|
|
147
|
+
outcome: string;
|
|
148
|
+
issues: string[];
|
|
149
|
+
timing: {
|
|
150
|
+
durationMs: number;
|
|
151
|
+
breakdown: Record<"childProviderMs" | "appExchangeMs" | "toolExecutionMs" | "toolQueueMs" | "toolUnsplitMs" | "researchMs" | "nativeWaitMs" | "providerOrchestrationEventMs" | "providerReasoningEventMs" | "providerResponseEventMs" | "providerRequestMs" | "providerWaitMs" | "appOrchestrationMs" | "unattributedMs", number>;
|
|
152
|
+
owners: {
|
|
153
|
+
providerMs: number;
|
|
154
|
+
toolMs: number;
|
|
155
|
+
appMs: number;
|
|
156
|
+
recordingGapMs: number;
|
|
157
|
+
};
|
|
158
|
+
callDurations: {
|
|
159
|
+
callId: string;
|
|
160
|
+
kind: "lifecycle" | "provider" | "tool" | "action" | "research";
|
|
161
|
+
tool: string | null;
|
|
162
|
+
inclusiveMs: number;
|
|
163
|
+
ownMs: number;
|
|
164
|
+
}[];
|
|
165
|
+
appCallGaps: {
|
|
166
|
+
breakdown: Record<"childProviderMs" | "appExchangeMs" | "toolExecutionMs" | "toolQueueMs" | "toolUnsplitMs" | "researchMs" | "nativeWaitMs" | "providerOrchestrationEventMs" | "providerReasoningEventMs" | "providerResponseEventMs" | "providerRequestMs" | "providerWaitMs" | "appOrchestrationMs" | "unattributedMs", number>;
|
|
167
|
+
startMs: number;
|
|
168
|
+
endMs: number;
|
|
169
|
+
durationMs: number;
|
|
170
|
+
beforeTool: string | null;
|
|
171
|
+
afterTool: string | null;
|
|
172
|
+
}[];
|
|
173
|
+
observedToolAndResearchMs: number;
|
|
174
|
+
outsideToolAndResearchMs: number;
|
|
175
|
+
unattributedMs: number;
|
|
176
|
+
};
|
|
177
|
+
usage: {} | null;
|
|
178
|
+
usageStatus: {};
|
|
179
|
+
transport: {} | null;
|
|
180
|
+
findings: ExecutionFinding[];
|
|
181
|
+
toolCalls: {
|
|
182
|
+
execution: {
|
|
183
|
+
status: "failed" | "partial" | "unknown" | "usable" | "rejected";
|
|
184
|
+
stage: string | null;
|
|
185
|
+
code: string | null;
|
|
186
|
+
settlement: string | null;
|
|
187
|
+
};
|
|
188
|
+
tool: string | null;
|
|
189
|
+
phase: string | null;
|
|
190
|
+
selectors: unknown;
|
|
191
|
+
diagnostics: {
|
|
192
|
+
input?: unknown;
|
|
193
|
+
output?: unknown;
|
|
194
|
+
attribution?: unknown;
|
|
195
|
+
};
|
|
196
|
+
status: "completed" | "failed" | "incomplete";
|
|
197
|
+
durationMs: number | null;
|
|
198
|
+
queueMs: number | null;
|
|
199
|
+
executionMs: number | null;
|
|
200
|
+
responseTextBytes: number | null;
|
|
201
|
+
code: string | null;
|
|
202
|
+
ownerTiming: Record<string, unknown>;
|
|
203
|
+
requestId: string | null;
|
|
204
|
+
sequence: number | null;
|
|
205
|
+
callId: string;
|
|
206
|
+
}[];
|
|
207
|
+
toolOutcomes: {
|
|
208
|
+
usable: number;
|
|
209
|
+
partial: number;
|
|
210
|
+
rejected: number;
|
|
211
|
+
failed: number;
|
|
212
|
+
unknown: number;
|
|
213
|
+
};
|
|
214
|
+
actions: {
|
|
215
|
+
callId: string;
|
|
216
|
+
tool: string | null;
|
|
217
|
+
status: "completed" | "failed" | "incomplete";
|
|
218
|
+
exchangeStartedMs: number | null;
|
|
219
|
+
exchangeEndedMs: number | null;
|
|
220
|
+
handlerMs: number | null;
|
|
221
|
+
diagnostics: {
|
|
222
|
+
input?: unknown;
|
|
223
|
+
output?: unknown;
|
|
224
|
+
attribution?: unknown;
|
|
225
|
+
};
|
|
226
|
+
}[];
|
|
227
|
+
orchestration: {
|
|
228
|
+
modelRoundCount: null;
|
|
229
|
+
programChildLinks: "unavailable";
|
|
230
|
+
reason: string;
|
|
231
|
+
nativeTurnIds: string[];
|
|
232
|
+
programs: {
|
|
233
|
+
callId: string;
|
|
234
|
+
tool: string | null;
|
|
235
|
+
startedMs: number | null;
|
|
236
|
+
endedMs: number | null;
|
|
237
|
+
status: "completed" | "failed" | "incomplete";
|
|
238
|
+
}[];
|
|
239
|
+
};
|
|
240
|
+
modelReview: {
|
|
241
|
+
status: string;
|
|
242
|
+
current: boolean;
|
|
243
|
+
certifiesVisuals: boolean;
|
|
244
|
+
callId: string | null;
|
|
245
|
+
sequence: number | null;
|
|
246
|
+
criteria: {} | null;
|
|
247
|
+
detailRequired: {} | null;
|
|
248
|
+
inspectionIds: {} | null;
|
|
249
|
+
checks: {} | null;
|
|
250
|
+
accepted: {} | null;
|
|
251
|
+
};
|
|
252
|
+
userFeedback: string | null;
|
|
253
|
+
}[];
|
|
254
|
+
groups: {
|
|
255
|
+
configuration: Record<string, string | null>;
|
|
256
|
+
requestIds: string[];
|
|
257
|
+
}[];
|
|
258
|
+
investigationTargets: {
|
|
259
|
+
requestIds: string[];
|
|
260
|
+
configuration: Record<string, string | null>;
|
|
261
|
+
tool: string | null;
|
|
262
|
+
phase: string | null;
|
|
263
|
+
code: string | null;
|
|
264
|
+
kind: ExecutionFinding["kind"];
|
|
265
|
+
confidence: ExecutionFinding["confidence"];
|
|
266
|
+
occurrences: number;
|
|
267
|
+
evidence: {
|
|
268
|
+
requestId: string | null;
|
|
269
|
+
callId: string | null;
|
|
270
|
+
sequence: number | null;
|
|
271
|
+
}[];
|
|
272
|
+
possibleRemedy: string;
|
|
273
|
+
}[];
|
|
274
|
+
excluded: {
|
|
275
|
+
requestId: string | null;
|
|
276
|
+
reason: string;
|
|
277
|
+
}[];
|
|
278
|
+
outsidePeriod: number;
|
|
279
|
+
partialRuns: number;
|
|
280
|
+
frequencies: {
|
|
281
|
+
requestIds: string[];
|
|
282
|
+
kind: string;
|
|
283
|
+
occurrences: number;
|
|
284
|
+
}[];
|
|
285
|
+
limitations: string[];
|
|
286
|
+
};
|
|
287
|
+
export {};
|
|
288
|
+
//# sourceMappingURL=evaluation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evaluation.d.ts","sourceRoot":"","sources":["../../src/profiler/evaluation.ts"],"names":[],"mappings":"AAaA,MAAM,WAAW,qBAAq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