@anh3d0nic/ice 1.0.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/src/types.ts ADDED
@@ -0,0 +1,81 @@
1
+ /**
2
+ * ICE v4.3 — Type Definitions
3
+ */
4
+
5
+ export interface IntentResult {
6
+ primary_intent: string;
7
+ secondary_intents: string[];
8
+ confidence: number;
9
+ entities: Record<string, unknown>;
10
+ rephrased_request: string;
11
+ needs_clarification: boolean;
12
+ clarifying_questions: string[] | null;
13
+ reasoning: string;
14
+ }
15
+
16
+ export interface Entity {
17
+ type: string;
18
+ value: string;
19
+ start_pos: number;
20
+ end_pos: number;
21
+ confidence: number;
22
+ }
23
+
24
+ export interface ICEConfig {
25
+ groqApiKey?: string;
26
+ geminiApiKey?: string;
27
+ storagePath: string;
28
+ memoryPath: string;
29
+ models: {
30
+ groq_primary: string;
31
+ groq_fast: string;
32
+ gemini: string;
33
+ };
34
+ temperature: number;
35
+ maxTokens: number;
36
+ timeout: number;
37
+ }
38
+
39
+ export interface ProcessingResult {
40
+ intent: IntentResult;
41
+ complexity: string;
42
+ crews: string[];
43
+ provider: string;
44
+ model: string;
45
+ response: string;
46
+ time: number;
47
+ user: string;
48
+ reasoning?: {
49
+ mode: 'cot' | 'tot' | 'direct';
50
+ reflectionApplied: boolean;
51
+ confidenceGain: number;
52
+ };
53
+ }
54
+
55
+ export interface Agent {
56
+ id: string;
57
+ name: string;
58
+ role: string;
59
+ specialty: string;
60
+ status: string;
61
+ tasks_completed: number;
62
+ }
63
+
64
+ export interface Crew {
65
+ name: string;
66
+ agents: Agent[];
67
+ trigger_keywords: string[];
68
+ }
69
+
70
+ export enum IntentType {
71
+ QUESTION = 'question',
72
+ CODE_REQUEST = 'code_request',
73
+ MATH_PROBLEM = 'math_problem',
74
+ CAUSAL = 'causal',
75
+ HOW_TO = 'how_to',
76
+ COMPARISON = 'comparison',
77
+ COMMAND = 'command',
78
+ CREATIVE = 'creative',
79
+ OPINION = 'opinion',
80
+ UNKNOWN = 'unknown'
81
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "ESNext",
5
+ "lib": ["ES2022"],
6
+ "moduleResolution": "node",
7
+ "outDir": "./dist",
8
+ "rootDir": "./src",
9
+ "declaration": true,
10
+ "declarationMap": true,
11
+ "sourceMap": true,
12
+ "strict": true,
13
+ "esModuleInterop": true,
14
+ "skipLibCheck": true,
15
+ "forceConsistentCasingInFileNames": true,
16
+ "resolveJsonModule": true,
17
+ "isolatedModules": true,
18
+ "noUnusedLocals": true,
19
+ "noUnusedParameters": true,
20
+ "noImplicitReturns": true,
21
+ "noFallthroughCasesInSwitch": true
22
+ },
23
+ "include": ["src/**/*"],
24
+ "exclude": ["node_modules", "dist", "tests"]
25
+ }