@resolveio/server-lib 22.3.158 → 22.3.160
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/methods/ai-terminal.d.ts +1 -0
- package/methods/ai-terminal.js +133 -3
- package/methods/ai-terminal.js.map +1 -1
- package/package.json +1 -1
- package/util/ai-run-evidence-adapters.d.ts +37 -0
- package/util/ai-run-evidence-adapters.js +988 -79
- package/util/ai-run-evidence-adapters.js.map +1 -1
- package/util/ai-run-evidence.d.ts +1 -1
- package/util/ai-run-evidence.js.map +1 -1
- package/util/ai-runner-manager-autopilot.d.ts +99 -1
- package/util/ai-runner-manager-autopilot.js +370 -41
- package/util/ai-runner-manager-autopilot.js.map +1 -1
- package/util/ai-runner-manager-policy.d.ts +159 -0
- package/util/ai-runner-manager-policy.js +782 -30
- package/util/ai-runner-manager-policy.js.map +1 -1
- package/util/aicoder-runner-v6.d.ts +93 -3
- package/util/aicoder-runner-v6.js +699 -27
- package/util/aicoder-runner-v6.js.map +1 -1
- package/util/support-runner-v5.d.ts +192 -2
- package/util/support-runner-v5.js +1140 -74
- package/util/support-runner-v5.js.map +1 -1
package/package.json
CHANGED
|
@@ -29,8 +29,45 @@ export interface AssistantAIRunAdapterInput {
|
|
|
29
29
|
issueReports?: Array<Record<string, any>>;
|
|
30
30
|
usageLedger?: Array<Record<string, any>>;
|
|
31
31
|
correctnessChecks?: Array<Record<string, any>>;
|
|
32
|
+
answerQuality?: Record<string, any>;
|
|
32
33
|
now?: Date | string;
|
|
33
34
|
}
|
|
35
|
+
export type AssistantAnswerQualityStatus = 'ready' | 'missing_data_source' | 'date_incorrect' | 'missing_date_window' | 'illegal_query_shape' | 'missing_query_proof' | 'query_error' | 'permission_error' | 'no_data_unverified' | 'missing_citations' | 'low_confidence' | 'missing_next_action' | 'incorrect' | 'blocked';
|
|
36
|
+
export interface AssistantAnswerQualityInput {
|
|
37
|
+
answerQuality?: Record<string, any>;
|
|
38
|
+
correctnessChecks?: Array<Record<string, any>>;
|
|
39
|
+
now?: Date | string;
|
|
40
|
+
}
|
|
41
|
+
export interface AssistantAnswerQualityDecision {
|
|
42
|
+
ready: boolean;
|
|
43
|
+
status: AssistantAnswerQualityStatus;
|
|
44
|
+
reason: string;
|
|
45
|
+
blockers: string[];
|
|
46
|
+
queryStatus: 'ok' | 'no_data' | 'query_error' | 'permission_error' | 'unknown';
|
|
47
|
+
confidenceLevel: 'high' | 'medium' | 'low' | 'unknown';
|
|
48
|
+
dateBasis?: string;
|
|
49
|
+
expectedCurrentDate?: string;
|
|
50
|
+
dateWindowRequired: boolean;
|
|
51
|
+
dateWindowPresent: boolean;
|
|
52
|
+
dateWindow?: {
|
|
53
|
+
startDate?: string;
|
|
54
|
+
endDate?: string;
|
|
55
|
+
mode?: string;
|
|
56
|
+
months?: number;
|
|
57
|
+
};
|
|
58
|
+
noDataConfirmed: boolean;
|
|
59
|
+
legalQueryShape: boolean;
|
|
60
|
+
citationRefs: string[];
|
|
61
|
+
queryEvidenceRequired: boolean;
|
|
62
|
+
queryEvidencePresent: boolean;
|
|
63
|
+
queryEvidenceRefs: string[];
|
|
64
|
+
queryExecutionCount: number;
|
|
65
|
+
nextActions: string[];
|
|
66
|
+
evidenceRefs: string[];
|
|
67
|
+
failedChecks: string[];
|
|
68
|
+
recordedAt: string;
|
|
69
|
+
}
|
|
70
|
+
export declare function evaluateAssistantAnswerQuality(input?: AssistantAnswerQualityInput): AssistantAnswerQualityDecision;
|
|
34
71
|
export declare function buildSupportAIRunFromEvidence(input: SupportAIRunAdapterInput): AIRun;
|
|
35
72
|
export declare function buildAICoderAIRunFromEvidence(input: AICoderAIRunAdapterInput): AIRun;
|
|
36
73
|
export declare function buildAssistantAIRunFromEvidence(input: AssistantAIRunAdapterInput): AIRun;
|