InfiniaxAI commited on
Commit
9ef99c4
·
verified ·
1 Parent(s): 2fd49d3

Create ARDR_Types.ts

Browse files
Files changed (1) hide show
  1. ARDR_Types.ts +64 -0
ARDR_Types.ts ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export type NexusTier = "low" | "high" | "max";
2
+ export type TaskType = "code" | "math" | "writing" | "reasoning" | "world_knowledge" | "multi_step" | "data_analysis" | "conversation";
3
+
4
+ export interface ReasoningBudget {
5
+ taskType: TaskType;
6
+ complexity: "low" | "medium" | "high" | "extreme";
7
+ riskScore: number;
8
+ allowedDepth: number;
9
+ branches: string[];
10
+ chiefModel: string;
11
+ }
12
+
13
+ export interface TriStructurePack {
14
+ symbolic: string;
15
+ invariants: string;
16
+ formal: string;
17
+ }
18
+
19
+ export interface BranchOutput {
20
+ branchName: string;
21
+ hypotheses: string[];
22
+ artifacts: string[];
23
+ notes: string;
24
+ contradictions: string[];
25
+ confidence: number;
26
+ }
27
+
28
+ export interface ScratchpadEntry {
29
+ branch: string;
30
+ timestamp: number;
31
+ content: string;
32
+ type: "hypothesis" | "artifact" | "note" | "contradiction";
33
+ }
34
+
35
+ export interface Scratchpad {
36
+ entries: ScratchpadEntry[];
37
+ sharedArtifacts: Map<string, string>;
38
+ }
39
+
40
+ export interface VerificationResult {
41
+ branchScores: Map<string, number>;
42
+ counterexamples: string[];
43
+ contradictions: string[];
44
+ provenInvariants: string[];
45
+ uncertaintyScore: number;
46
+ weakPoints: string[];
47
+ }
48
+
49
+ export interface ARDRState {
50
+ originalPrompt: string;
51
+ tier: NexusTier;
52
+ budget: ReasoningBudget;
53
+ triPack: TriStructurePack;
54
+ scratchpad: Scratchpad;
55
+ branchOutputs: BranchOutput[];
56
+ verification: VerificationResult;
57
+ recurrenceCount: number;
58
+ finalResponse: string;
59
+ }
60
+
61
+ export interface BranchConfig {
62
+ model: string;
63
+ systemPrompt: string;
64
+ }