gthinking 1.2.1 → 2.1.1

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.
Files changed (271) hide show
  1. package/.eslintrc.js +34 -0
  2. package/ANALYSIS_SUMMARY.md +363 -0
  3. package/README.md +230 -245
  4. package/dist/analysis/analysis-engine.d.ts +63 -0
  5. package/dist/analysis/analysis-engine.d.ts.map +1 -0
  6. package/dist/analysis/analysis-engine.js +322 -0
  7. package/dist/analysis/analysis-engine.js.map +1 -0
  8. package/dist/core/config.d.ts +1419 -0
  9. package/dist/core/config.d.ts.map +1 -0
  10. package/dist/core/config.js +361 -0
  11. package/dist/core/config.js.map +1 -0
  12. package/dist/core/engine.d.ts +176 -0
  13. package/dist/core/engine.d.ts.map +1 -0
  14. package/dist/core/engine.js +604 -0
  15. package/dist/core/engine.js.map +1 -0
  16. package/dist/core/errors.d.ts +153 -0
  17. package/dist/core/errors.d.ts.map +1 -0
  18. package/dist/core/errors.js +287 -0
  19. package/dist/core/errors.js.map +1 -0
  20. package/dist/core/index.d.ts +7 -0
  21. package/dist/core/index.d.ts.map +1 -0
  22. package/dist/{types.js → core/index.js} +8 -4
  23. package/dist/core/index.js.map +1 -0
  24. package/dist/core/pipeline.d.ts +121 -0
  25. package/dist/core/pipeline.d.ts.map +1 -0
  26. package/dist/core/pipeline.js +289 -0
  27. package/dist/core/pipeline.js.map +1 -0
  28. package/dist/core/rate-limiter.d.ts +58 -0
  29. package/dist/core/rate-limiter.d.ts.map +1 -0
  30. package/dist/core/rate-limiter.js +133 -0
  31. package/dist/core/rate-limiter.js.map +1 -0
  32. package/dist/core/session-manager.d.ts +96 -0
  33. package/dist/core/session-manager.d.ts.map +1 -0
  34. package/dist/core/session-manager.js +223 -0
  35. package/dist/core/session-manager.js.map +1 -0
  36. package/dist/creativity/creativity-engine.d.ts +6 -0
  37. package/dist/creativity/creativity-engine.d.ts.map +1 -0
  38. package/dist/creativity/creativity-engine.js +17 -0
  39. package/dist/creativity/creativity-engine.js.map +1 -0
  40. package/dist/index.d.ts +24 -32
  41. package/dist/index.d.ts.map +1 -1
  42. package/dist/index.js +130 -104
  43. package/dist/index.js.map +1 -1
  44. package/dist/learning/learning-engine.d.ts +6 -0
  45. package/dist/learning/learning-engine.d.ts.map +1 -0
  46. package/dist/learning/learning-engine.js +17 -0
  47. package/dist/learning/learning-engine.js.map +1 -0
  48. package/dist/llm/index.d.ts +10 -0
  49. package/dist/llm/index.d.ts.map +1 -0
  50. package/dist/llm/index.js +26 -0
  51. package/dist/llm/index.js.map +1 -0
  52. package/dist/llm/llm-service.d.ts +109 -0
  53. package/dist/llm/llm-service.d.ts.map +1 -0
  54. package/dist/llm/llm-service.js +224 -0
  55. package/dist/llm/llm-service.js.map +1 -0
  56. package/dist/llm/providers/base.d.ts +85 -0
  57. package/dist/llm/providers/base.d.ts.map +1 -0
  58. package/dist/llm/providers/base.js +57 -0
  59. package/dist/llm/providers/base.js.map +1 -0
  60. package/dist/llm/providers/cli.d.ts +23 -0
  61. package/dist/llm/providers/cli.d.ts.map +1 -0
  62. package/dist/llm/providers/cli.js +158 -0
  63. package/dist/llm/providers/cli.js.map +1 -0
  64. package/dist/llm/providers/gemini.d.ts +30 -0
  65. package/dist/llm/providers/gemini.d.ts.map +1 -0
  66. package/dist/llm/providers/gemini.js +168 -0
  67. package/dist/llm/providers/gemini.js.map +1 -0
  68. package/dist/llm/sanitization.d.ts +50 -0
  69. package/dist/llm/sanitization.d.ts.map +1 -0
  70. package/dist/llm/sanitization.js +149 -0
  71. package/dist/llm/sanitization.js.map +1 -0
  72. package/dist/{server.d.ts.map → mcp/server.d.ts.map} +1 -1
  73. package/dist/mcp/server.js +108 -0
  74. package/dist/mcp/server.js.map +1 -0
  75. package/dist/planning/planning-engine.d.ts +6 -0
  76. package/dist/planning/planning-engine.d.ts.map +1 -0
  77. package/dist/planning/planning-engine.js +17 -0
  78. package/dist/planning/planning-engine.js.map +1 -0
  79. package/dist/reasoning/reasoning-engine.d.ts +6 -0
  80. package/dist/reasoning/reasoning-engine.d.ts.map +1 -0
  81. package/dist/reasoning/reasoning-engine.js +17 -0
  82. package/dist/reasoning/reasoning-engine.js.map +1 -0
  83. package/dist/search/search-engine.d.ts +99 -0
  84. package/dist/search/search-engine.d.ts.map +1 -0
  85. package/dist/search/search-engine.js +271 -0
  86. package/dist/search/search-engine.js.map +1 -0
  87. package/dist/synthesis/synthesis-engine.d.ts +6 -0
  88. package/dist/synthesis/synthesis-engine.d.ts.map +1 -0
  89. package/dist/synthesis/synthesis-engine.js +17 -0
  90. package/dist/synthesis/synthesis-engine.js.map +1 -0
  91. package/dist/types/analysis.d.ts +1534 -49
  92. package/dist/types/analysis.d.ts.map +1 -1
  93. package/dist/types/analysis.js +250 -0
  94. package/dist/types/analysis.js.map +1 -1
  95. package/dist/types/core.d.ts +257 -30
  96. package/dist/types/core.d.ts.map +1 -1
  97. package/dist/types/core.js +148 -18
  98. package/dist/types/core.js.map +1 -1
  99. package/dist/types/creativity.d.ts +2871 -56
  100. package/dist/types/creativity.d.ts.map +1 -1
  101. package/dist/types/creativity.js +195 -0
  102. package/dist/types/creativity.js.map +1 -1
  103. package/dist/types/index.d.ts +6 -2
  104. package/dist/types/index.d.ts.map +1 -1
  105. package/dist/types/index.js +17 -2
  106. package/dist/types/index.js.map +1 -1
  107. package/dist/types/learning.d.ts +851 -61
  108. package/dist/types/learning.d.ts.map +1 -1
  109. package/dist/types/learning.js +155 -0
  110. package/dist/types/learning.js.map +1 -1
  111. package/dist/types/planning.d.ts +2223 -71
  112. package/dist/types/planning.d.ts.map +1 -1
  113. package/dist/types/planning.js +190 -0
  114. package/dist/types/planning.js.map +1 -1
  115. package/dist/types/reasoning.d.ts +2209 -72
  116. package/dist/types/reasoning.d.ts.map +1 -1
  117. package/dist/types/reasoning.js +200 -1
  118. package/dist/types/reasoning.js.map +1 -1
  119. package/dist/types/search.d.ts +981 -53
  120. package/dist/types/search.d.ts.map +1 -1
  121. package/dist/types/search.js +137 -0
  122. package/dist/types/search.js.map +1 -1
  123. package/dist/types/synthesis.d.ts +583 -37
  124. package/dist/types/synthesis.d.ts.map +1 -1
  125. package/dist/types/synthesis.js +138 -0
  126. package/dist/types/synthesis.js.map +1 -1
  127. package/dist/utils/cache.d.ts +144 -0
  128. package/dist/utils/cache.d.ts.map +1 -0
  129. package/dist/utils/cache.js +288 -0
  130. package/dist/utils/cache.js.map +1 -0
  131. package/dist/utils/id-generator.d.ts +89 -0
  132. package/dist/utils/id-generator.d.ts.map +1 -0
  133. package/dist/utils/id-generator.js +132 -0
  134. package/dist/utils/id-generator.js.map +1 -0
  135. package/dist/utils/index.d.ts +11 -0
  136. package/dist/utils/index.d.ts.map +1 -0
  137. package/dist/utils/index.js +33 -0
  138. package/dist/utils/index.js.map +1 -0
  139. package/dist/utils/logger.d.ts +142 -0
  140. package/dist/utils/logger.d.ts.map +1 -0
  141. package/dist/utils/logger.js +248 -0
  142. package/dist/utils/logger.js.map +1 -0
  143. package/dist/utils/metrics.d.ts +149 -0
  144. package/dist/utils/metrics.d.ts.map +1 -0
  145. package/dist/utils/metrics.js +296 -0
  146. package/dist/utils/metrics.js.map +1 -0
  147. package/dist/utils/timer.d.ts +7 -0
  148. package/dist/utils/timer.d.ts.map +1 -0
  149. package/dist/utils/timer.js +17 -0
  150. package/dist/utils/timer.js.map +1 -0
  151. package/dist/utils/validation.d.ts +147 -0
  152. package/dist/utils/validation.d.ts.map +1 -0
  153. package/dist/utils/validation.js +275 -0
  154. package/dist/utils/validation.js.map +1 -0
  155. package/docs/API.md +411 -0
  156. package/docs/ARCHITECTURE.md +271 -0
  157. package/docs/CHANGELOG.md +283 -0
  158. package/jest.config.js +28 -0
  159. package/package.json +43 -30
  160. package/src/analysis/analysis-engine.ts +383 -0
  161. package/src/core/config.ts +406 -0
  162. package/src/core/engine.ts +785 -0
  163. package/src/core/errors.ts +349 -0
  164. package/src/core/index.ts +12 -0
  165. package/src/core/pipeline.ts +424 -0
  166. package/src/core/rate-limiter.ts +155 -0
  167. package/src/core/session-manager.ts +269 -0
  168. package/src/creativity/creativity-engine.ts +14 -0
  169. package/src/index.ts +178 -0
  170. package/src/learning/learning-engine.ts +14 -0
  171. package/src/llm/index.ts +10 -0
  172. package/src/llm/llm-service.ts +285 -0
  173. package/src/llm/providers/base.ts +146 -0
  174. package/src/llm/providers/cli.ts +186 -0
  175. package/src/llm/providers/gemini.ts +201 -0
  176. package/src/llm/sanitization.ts +178 -0
  177. package/src/mcp/server.ts +117 -0
  178. package/src/planning/planning-engine.ts +14 -0
  179. package/src/reasoning/reasoning-engine.ts +14 -0
  180. package/src/search/search-engine.ts +333 -0
  181. package/src/synthesis/synthesis-engine.ts +14 -0
  182. package/src/types/analysis.ts +337 -0
  183. package/src/types/core.ts +342 -0
  184. package/src/types/creativity.ts +268 -0
  185. package/src/types/index.ts +31 -0
  186. package/src/types/learning.ts +215 -0
  187. package/src/types/planning.ts +251 -0
  188. package/src/types/reasoning.ts +288 -0
  189. package/src/types/search.ts +192 -0
  190. package/src/types/synthesis.ts +187 -0
  191. package/src/utils/cache.ts +363 -0
  192. package/src/utils/id-generator.ts +135 -0
  193. package/src/utils/index.ts +22 -0
  194. package/src/utils/logger.ts +290 -0
  195. package/src/utils/metrics.ts +380 -0
  196. package/src/utils/timer.ts +15 -0
  197. package/src/utils/validation.ts +297 -0
  198. package/tests/setup.ts +22 -0
  199. package/tests/unit/cache.test.ts +189 -0
  200. package/tests/unit/engine.test.ts +179 -0
  201. package/tests/unit/validation.test.ts +218 -0
  202. package/tsconfig.json +17 -12
  203. package/GEMINI.md +0 -68
  204. package/analysis.ts +0 -1063
  205. package/creativity.ts +0 -1055
  206. package/dist/analysis.d.ts +0 -54
  207. package/dist/analysis.d.ts.map +0 -1
  208. package/dist/analysis.js +0 -866
  209. package/dist/analysis.js.map +0 -1
  210. package/dist/creativity.d.ts +0 -81
  211. package/dist/creativity.d.ts.map +0 -1
  212. package/dist/creativity.js +0 -828
  213. package/dist/creativity.js.map +0 -1
  214. package/dist/engine.d.ts +0 -90
  215. package/dist/engine.d.ts.map +0 -1
  216. package/dist/engine.js +0 -677
  217. package/dist/engine.js.map +0 -1
  218. package/dist/examples.d.ts +0 -7
  219. package/dist/examples.d.ts.map +0 -1
  220. package/dist/examples.js +0 -506
  221. package/dist/examples.js.map +0 -1
  222. package/dist/learning.d.ts +0 -72
  223. package/dist/learning.d.ts.map +0 -1
  224. package/dist/learning.js +0 -615
  225. package/dist/learning.js.map +0 -1
  226. package/dist/llm-service.d.ts +0 -21
  227. package/dist/llm-service.d.ts.map +0 -1
  228. package/dist/llm-service.js +0 -100
  229. package/dist/llm-service.js.map +0 -1
  230. package/dist/planning.d.ts +0 -58
  231. package/dist/planning.d.ts.map +0 -1
  232. package/dist/planning.js +0 -824
  233. package/dist/planning.js.map +0 -1
  234. package/dist/reasoning.d.ts +0 -73
  235. package/dist/reasoning.d.ts.map +0 -1
  236. package/dist/reasoning.js +0 -845
  237. package/dist/reasoning.js.map +0 -1
  238. package/dist/search-discovery.d.ts +0 -73
  239. package/dist/search-discovery.d.ts.map +0 -1
  240. package/dist/search-discovery.js +0 -548
  241. package/dist/search-discovery.js.map +0 -1
  242. package/dist/server.js +0 -113
  243. package/dist/server.js.map +0 -1
  244. package/dist/types/engine.d.ts +0 -55
  245. package/dist/types/engine.d.ts.map +0 -1
  246. package/dist/types/engine.js +0 -3
  247. package/dist/types/engine.js.map +0 -1
  248. package/dist/types.d.ts +0 -6
  249. package/dist/types.d.ts.map +0 -1
  250. package/dist/types.js.map +0 -1
  251. package/engine.ts +0 -947
  252. package/examples.ts +0 -717
  253. package/index.ts +0 -106
  254. package/learning.ts +0 -779
  255. package/llm-service.ts +0 -120
  256. package/planning.ts +0 -1028
  257. package/reasoning.ts +0 -1079
  258. package/search-discovery.ts +0 -700
  259. package/server.ts +0 -115
  260. package/types/analysis.ts +0 -69
  261. package/types/core.ts +0 -90
  262. package/types/creativity.ts +0 -72
  263. package/types/engine.ts +0 -60
  264. package/types/index.ts +0 -9
  265. package/types/learning.ts +0 -69
  266. package/types/planning.ts +0 -85
  267. package/types/reasoning.ts +0 -92
  268. package/types/search.ts +0 -58
  269. package/types/synthesis.ts +0 -42
  270. package/types.ts +0 -6
  271. /package/dist/{server.d.ts → mcp/server.d.ts} +0 -0
@@ -1,5 +1,11 @@
1
- import { TaskStatus } from './core';
2
- import { Evidence } from './analysis';
1
+ /**
2
+ * Reasoning Types for gthinking v2.0.0
3
+ * Types for reasoning and logical inference functionality
4
+ */
5
+ import { z } from 'zod';
6
+ /**
7
+ * Reasoning Type Enum
8
+ */
3
9
  export declare enum ReasoningType {
4
10
  DEDUCTIVE = "deductive",
5
11
  INDUCTIVE = "inductive",
@@ -8,76 +14,2207 @@ export declare enum ReasoningType {
8
14
  CAUSAL = "causal",
9
15
  COUNTERFACTUAL = "counterfactual"
10
16
  }
11
- export interface ReasoningSession {
12
- id: string;
13
- problem: string;
14
- type: ReasoningType;
15
- steps: ReasoningStep[];
17
+ /**
18
+ * Reasoning Type Schema
19
+ */
20
+ export declare const ReasoningTypeSchema: z.ZodNativeEnum<typeof ReasoningType>;
21
+ /**
22
+ * Reasoning Request Schema
23
+ */
24
+ export declare const ReasoningRequestSchema: z.ZodObject<{
25
+ problem: z.ZodString;
26
+ type: z.ZodDefault<z.ZodNativeEnum<typeof ReasoningType>>;
27
+ context: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
28
+ constraints: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
29
+ options: z.ZodDefault<z.ZodObject<{
30
+ maxSteps: z.ZodDefault<z.ZodNumber>;
31
+ confidence: z.ZodDefault<z.ZodNumber>;
32
+ useLLM: z.ZodDefault<z.ZodBoolean>;
33
+ includeChainOfThought: z.ZodDefault<z.ZodBoolean>;
34
+ generateHypotheses: z.ZodDefault<z.ZodBoolean>;
35
+ decomposeProblem: z.ZodDefault<z.ZodBoolean>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ confidence?: number;
38
+ maxSteps?: number;
39
+ useLLM?: boolean;
40
+ includeChainOfThought?: boolean;
41
+ generateHypotheses?: boolean;
42
+ decomposeProblem?: boolean;
43
+ }, {
44
+ confidence?: number;
45
+ maxSteps?: number;
46
+ useLLM?: boolean;
47
+ includeChainOfThought?: boolean;
48
+ generateHypotheses?: boolean;
49
+ decomposeProblem?: boolean;
50
+ }>>;
51
+ }, "strip", z.ZodTypeAny, {
52
+ options?: {
53
+ confidence?: number;
54
+ maxSteps?: number;
55
+ useLLM?: boolean;
56
+ includeChainOfThought?: boolean;
57
+ generateHypotheses?: boolean;
58
+ decomposeProblem?: boolean;
59
+ };
60
+ type?: ReasoningType;
61
+ problem?: string;
62
+ context?: string[];
63
+ constraints?: string[];
64
+ }, {
65
+ options?: {
66
+ confidence?: number;
67
+ maxSteps?: number;
68
+ useLLM?: boolean;
69
+ includeChainOfThought?: boolean;
70
+ generateHypotheses?: boolean;
71
+ decomposeProblem?: boolean;
72
+ };
73
+ type?: ReasoningType;
74
+ problem?: string;
75
+ context?: string[];
76
+ constraints?: string[];
77
+ }>;
78
+ /**
79
+ * Reasoning Request Type
80
+ */
81
+ export type ReasoningRequest = z.infer<typeof ReasoningRequestSchema>;
82
+ /**
83
+ * Reasoning Step Schema
84
+ */
85
+ export declare const ReasoningStepSchema: z.ZodObject<{
86
+ id: z.ZodString;
87
+ stepNumber: z.ZodNumber;
88
+ type: z.ZodEnum<["premise", "observation", "inference", "conclusion", "hypothesis", "evidence"]>;
89
+ content: z.ZodString;
90
+ premise: z.ZodOptional<z.ZodString>;
91
+ inference: z.ZodOptional<z.ZodString>;
92
+ conclusion: z.ZodOptional<z.ZodString>;
93
+ confidence: z.ZodNumber;
94
+ supportingEvidence: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
95
+ counterEvidence: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
96
+ assumptions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
97
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
98
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
99
+ }, "strip", z.ZodTypeAny, {
100
+ type?: "premise" | "observation" | "inference" | "conclusion" | "hypothesis" | "evidence";
101
+ confidence?: number;
102
+ id?: string;
103
+ metadata?: Record<string, unknown>;
104
+ content?: string;
105
+ stepNumber?: number;
106
+ premise?: string;
107
+ inference?: string;
16
108
  conclusion?: string;
17
- confidence: number;
18
- startTime: Date;
19
- endTime?: Date;
20
- }
21
- export interface ReasoningStep {
22
- id: string;
23
- stepNumber: number;
24
- premise: string;
25
- inference: string;
26
- evidence: Evidence[];
27
- assumptions: string[];
28
- confidence: number;
29
- nextSteps: string[];
30
- }
31
- export interface Hypothesis {
32
- id: string;
33
- statement: string;
34
- supportingEvidence: Evidence[];
35
- contradictingEvidence: Evidence[];
36
- tests: HypothesisTest[];
37
- status: 'proposed' | 'testing' | 'confirmed' | 'rejected';
38
- confidence: number;
39
- }
40
- export interface HypothesisTest {
41
- id: string;
42
- description: string;
43
- expectedOutcome: string;
44
- actualOutcome?: string;
45
- passed?: boolean;
46
- }
47
- export interface ChainOfThought {
48
- id: string;
49
- initialQuestion: string;
50
- thoughts: ThoughtNode[];
51
- finalAnswer?: string;
52
- completeness: number;
53
- }
54
- export interface ThoughtNode {
55
- id: string;
56
- content: string;
109
+ supportingEvidence?: string[];
110
+ counterEvidence?: string[];
111
+ assumptions?: string[];
112
+ dependencies?: string[];
113
+ }, {
114
+ type?: "premise" | "observation" | "inference" | "conclusion" | "hypothesis" | "evidence";
115
+ confidence?: number;
116
+ id?: string;
117
+ metadata?: Record<string, unknown>;
118
+ content?: string;
119
+ stepNumber?: number;
120
+ premise?: string;
121
+ inference?: string;
122
+ conclusion?: string;
123
+ supportingEvidence?: string[];
124
+ counterEvidence?: string[];
125
+ assumptions?: string[];
126
+ dependencies?: string[];
127
+ }>;
128
+ /**
129
+ * Reasoning Step Type
130
+ */
131
+ export type ReasoningStep = z.infer<typeof ReasoningStepSchema>;
132
+ /**
133
+ * Hypothesis Schema
134
+ */
135
+ export declare const HypothesisSchema: z.ZodObject<{
136
+ id: z.ZodString;
137
+ statement: z.ZodString;
138
+ plausibility: z.ZodNumber;
139
+ evidence: z.ZodArray<z.ZodObject<{
140
+ description: z.ZodString;
141
+ supports: z.ZodBoolean;
142
+ strength: z.ZodNumber;
143
+ }, "strip", z.ZodTypeAny, {
144
+ description?: string;
145
+ supports?: boolean;
146
+ strength?: number;
147
+ }, {
148
+ description?: string;
149
+ supports?: boolean;
150
+ strength?: number;
151
+ }>, "many">;
152
+ testable: z.ZodBoolean;
153
+ tested: z.ZodDefault<z.ZodBoolean>;
154
+ testResult: z.ZodOptional<z.ZodEnum<["confirmed", "rejected", "inconclusive"]>>;
155
+ }, "strip", z.ZodTypeAny, {
156
+ id?: string;
157
+ evidence?: {
158
+ description?: string;
159
+ supports?: boolean;
160
+ strength?: number;
161
+ }[];
162
+ statement?: string;
163
+ plausibility?: number;
164
+ testable?: boolean;
165
+ tested?: boolean;
166
+ testResult?: "confirmed" | "rejected" | "inconclusive";
167
+ }, {
168
+ id?: string;
169
+ evidence?: {
170
+ description?: string;
171
+ supports?: boolean;
172
+ strength?: number;
173
+ }[];
174
+ statement?: string;
175
+ plausibility?: number;
176
+ testable?: boolean;
177
+ tested?: boolean;
178
+ testResult?: "confirmed" | "rejected" | "inconclusive";
179
+ }>;
180
+ /**
181
+ * Hypothesis Type
182
+ */
183
+ export type Hypothesis = z.infer<typeof HypothesisSchema>;
184
+ /**
185
+ * Chain of Thought Node Schema
186
+ */
187
+ export declare const ChainOfThoughtNodeSchema: z.ZodObject<{
188
+ id: z.ZodString;
189
+ content: z.ZodString;
190
+ type: z.ZodEnum<["question", "observation", "inference", "conclusion", "assumption"]>;
191
+ parentId: z.ZodOptional<z.ZodString>;
192
+ children: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
193
+ depth: z.ZodNumber;
194
+ confidence: z.ZodNumber;
195
+ supportingEvidence: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
196
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
197
+ }, "strip", z.ZodTypeAny, {
198
+ type?: "observation" | "inference" | "conclusion" | "question" | "assumption";
199
+ confidence?: number;
200
+ depth?: number;
201
+ id?: string;
202
+ metadata?: Record<string, unknown>;
203
+ content?: string;
204
+ children?: string[];
205
+ supportingEvidence?: string[];
57
206
  parentId?: string;
58
- children: string[];
59
- depth: number;
60
- confidence: number;
61
- type: 'question' | 'observation' | 'inference' | 'conclusion';
62
- }
63
- export interface ProblemDecomposition {
64
- id: string;
65
- originalProblem: string;
66
- subProblems: SubProblem[];
67
- dependencies: Dependency[];
68
- solutionStrategy: string;
69
- }
70
- export interface SubProblem {
71
- id: string;
72
- description: string;
73
- difficulty: number;
74
- estimatedTime: number;
75
- prerequisites: string[];
76
- status: TaskStatus;
77
- }
78
- export interface Dependency {
79
- from: string;
80
- to: string;
81
- type: 'requires' | 'enables' | 'conflicts';
82
- }
207
+ }, {
208
+ type?: "observation" | "inference" | "conclusion" | "question" | "assumption";
209
+ confidence?: number;
210
+ depth?: number;
211
+ id?: string;
212
+ metadata?: Record<string, unknown>;
213
+ content?: string;
214
+ children?: string[];
215
+ supportingEvidence?: string[];
216
+ parentId?: string;
217
+ }>;
218
+ /**
219
+ * Chain of Thought Node Type
220
+ */
221
+ export type ChainOfThoughtNode = z.infer<typeof ChainOfThoughtNodeSchema>;
222
+ /**
223
+ * Chain of Thought Schema
224
+ */
225
+ export declare const ChainOfThoughtSchema: z.ZodObject<{
226
+ id: z.ZodString;
227
+ question: z.ZodString;
228
+ nodes: z.ZodArray<z.ZodObject<{
229
+ id: z.ZodString;
230
+ content: z.ZodString;
231
+ type: z.ZodEnum<["question", "observation", "inference", "conclusion", "assumption"]>;
232
+ parentId: z.ZodOptional<z.ZodString>;
233
+ children: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
234
+ depth: z.ZodNumber;
235
+ confidence: z.ZodNumber;
236
+ supportingEvidence: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
237
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
238
+ }, "strip", z.ZodTypeAny, {
239
+ type?: "observation" | "inference" | "conclusion" | "question" | "assumption";
240
+ confidence?: number;
241
+ depth?: number;
242
+ id?: string;
243
+ metadata?: Record<string, unknown>;
244
+ content?: string;
245
+ children?: string[];
246
+ supportingEvidence?: string[];
247
+ parentId?: string;
248
+ }, {
249
+ type?: "observation" | "inference" | "conclusion" | "question" | "assumption";
250
+ confidence?: number;
251
+ depth?: number;
252
+ id?: string;
253
+ metadata?: Record<string, unknown>;
254
+ content?: string;
255
+ children?: string[];
256
+ supportingEvidence?: string[];
257
+ parentId?: string;
258
+ }>, "many">;
259
+ rootNodeId: z.ZodString;
260
+ maxDepth: z.ZodNumber;
261
+ finalAnswer: z.ZodOptional<z.ZodString>;
262
+ completeness: z.ZodNumber;
263
+ coherence: z.ZodNumber;
264
+ }, "strip", z.ZodTypeAny, {
265
+ id?: string;
266
+ question?: string;
267
+ nodes?: {
268
+ type?: "observation" | "inference" | "conclusion" | "question" | "assumption";
269
+ confidence?: number;
270
+ depth?: number;
271
+ id?: string;
272
+ metadata?: Record<string, unknown>;
273
+ content?: string;
274
+ children?: string[];
275
+ supportingEvidence?: string[];
276
+ parentId?: string;
277
+ }[];
278
+ rootNodeId?: string;
279
+ maxDepth?: number;
280
+ finalAnswer?: string;
281
+ completeness?: number;
282
+ coherence?: number;
283
+ }, {
284
+ id?: string;
285
+ question?: string;
286
+ nodes?: {
287
+ type?: "observation" | "inference" | "conclusion" | "question" | "assumption";
288
+ confidence?: number;
289
+ depth?: number;
290
+ id?: string;
291
+ metadata?: Record<string, unknown>;
292
+ content?: string;
293
+ children?: string[];
294
+ supportingEvidence?: string[];
295
+ parentId?: string;
296
+ }[];
297
+ rootNodeId?: string;
298
+ maxDepth?: number;
299
+ finalAnswer?: string;
300
+ completeness?: number;
301
+ coherence?: number;
302
+ }>;
303
+ /**
304
+ * Chain of Thought Type
305
+ */
306
+ export type ChainOfThought = z.infer<typeof ChainOfThoughtSchema>;
307
+ /**
308
+ * Logical Rule Schema
309
+ */
310
+ export declare const LogicalRuleSchema: z.ZodObject<{
311
+ id: z.ZodString;
312
+ name: z.ZodString;
313
+ premises: z.ZodArray<z.ZodString, "many">;
314
+ conclusion: z.ZodString;
315
+ confidence: z.ZodNumber;
316
+ domain: z.ZodOptional<z.ZodString>;
317
+ }, "strip", z.ZodTypeAny, {
318
+ confidence?: number;
319
+ name?: string;
320
+ id?: string;
321
+ conclusion?: string;
322
+ premises?: string[];
323
+ domain?: string;
324
+ }, {
325
+ confidence?: number;
326
+ name?: string;
327
+ id?: string;
328
+ conclusion?: string;
329
+ premises?: string[];
330
+ domain?: string;
331
+ }>;
332
+ /**
333
+ * Logical Rule Type
334
+ */
335
+ export type LogicalRule = z.infer<typeof LogicalRuleSchema>;
336
+ /**
337
+ * Analogy Schema
338
+ */
339
+ export declare const AnalogySchema: z.ZodObject<{
340
+ id: z.ZodString;
341
+ sourceDomain: z.ZodString;
342
+ targetDomain: z.ZodString;
343
+ mapping: z.ZodArray<z.ZodObject<{
344
+ source: z.ZodString;
345
+ target: z.ZodString;
346
+ similarity: z.ZodNumber;
347
+ }, "strip", z.ZodTypeAny, {
348
+ source?: string;
349
+ target?: string;
350
+ similarity?: number;
351
+ }, {
352
+ source?: string;
353
+ target?: string;
354
+ similarity?: number;
355
+ }>, "many">;
356
+ strength: z.ZodNumber;
357
+ explanation: z.ZodString;
358
+ }, "strip", z.ZodTypeAny, {
359
+ id?: string;
360
+ explanation?: string;
361
+ strength?: number;
362
+ sourceDomain?: string;
363
+ targetDomain?: string;
364
+ mapping?: {
365
+ source?: string;
366
+ target?: string;
367
+ similarity?: number;
368
+ }[];
369
+ }, {
370
+ id?: string;
371
+ explanation?: string;
372
+ strength?: number;
373
+ sourceDomain?: string;
374
+ targetDomain?: string;
375
+ mapping?: {
376
+ source?: string;
377
+ target?: string;
378
+ similarity?: number;
379
+ }[];
380
+ }>;
381
+ /**
382
+ * Analogy Type
383
+ */
384
+ export type Analogy = z.infer<typeof AnalogySchema>;
385
+ /**
386
+ * Causal Chain Schema
387
+ */
388
+ export declare const CausalChainSchema: z.ZodObject<{
389
+ id: z.ZodString;
390
+ cause: z.ZodString;
391
+ effect: z.ZodString;
392
+ intermediates: z.ZodArray<z.ZodObject<{
393
+ event: z.ZodString;
394
+ confidence: z.ZodNumber;
395
+ }, "strip", z.ZodTypeAny, {
396
+ confidence?: number;
397
+ event?: string;
398
+ }, {
399
+ confidence?: number;
400
+ event?: string;
401
+ }>, "many">;
402
+ confidence: z.ZodNumber;
403
+ evidence: z.ZodArray<z.ZodString, "many">;
404
+ }, "strip", z.ZodTypeAny, {
405
+ confidence?: number;
406
+ id?: string;
407
+ evidence?: string[];
408
+ cause?: string;
409
+ effect?: string;
410
+ intermediates?: {
411
+ confidence?: number;
412
+ event?: string;
413
+ }[];
414
+ }, {
415
+ confidence?: number;
416
+ id?: string;
417
+ evidence?: string[];
418
+ cause?: string;
419
+ effect?: string;
420
+ intermediates?: {
421
+ confidence?: number;
422
+ event?: string;
423
+ }[];
424
+ }>;
425
+ /**
426
+ * Causal Chain Type
427
+ */
428
+ export type CausalChain = z.infer<typeof CausalChainSchema>;
429
+ /**
430
+ * Counterfactual Scenario Schema
431
+ */
432
+ export declare const CounterfactualScenarioSchema: z.ZodObject<{
433
+ id: z.ZodString;
434
+ original: z.ZodString;
435
+ alternative: z.ZodString;
436
+ changes: z.ZodArray<z.ZodString, "many">;
437
+ consequences: z.ZodArray<z.ZodObject<{
438
+ description: z.ZodString;
439
+ probability: z.ZodNumber;
440
+ impact: z.ZodEnum<["low", "medium", "high", "critical"]>;
441
+ }, "strip", z.ZodTypeAny, {
442
+ description?: string;
443
+ probability?: number;
444
+ impact?: "medium" | "low" | "high" | "critical";
445
+ }, {
446
+ description?: string;
447
+ probability?: number;
448
+ impact?: "medium" | "low" | "high" | "critical";
449
+ }>, "many">;
450
+ plausibility: z.ZodNumber;
451
+ }, "strip", z.ZodTypeAny, {
452
+ id?: string;
453
+ plausibility?: number;
454
+ original?: string;
455
+ alternative?: string;
456
+ changes?: string[];
457
+ consequences?: {
458
+ description?: string;
459
+ probability?: number;
460
+ impact?: "medium" | "low" | "high" | "critical";
461
+ }[];
462
+ }, {
463
+ id?: string;
464
+ plausibility?: number;
465
+ original?: string;
466
+ alternative?: string;
467
+ changes?: string[];
468
+ consequences?: {
469
+ description?: string;
470
+ probability?: number;
471
+ impact?: "medium" | "low" | "high" | "critical";
472
+ }[];
473
+ }>;
474
+ /**
475
+ * Counterfactual Scenario Type
476
+ */
477
+ export type CounterfactualScenario = z.infer<typeof CounterfactualScenarioSchema>;
478
+ /**
479
+ * Problem Component Schema
480
+ */
481
+ export declare const ProblemComponentSchema: z.ZodObject<{
482
+ id: z.ZodString;
483
+ name: z.ZodString;
484
+ description: z.ZodString;
485
+ type: z.ZodEnum<["subproblem", "constraint", "resource", "objective", "stakeholder"]>;
486
+ complexity: z.ZodNumber;
487
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
488
+ priority: z.ZodNumber;
489
+ }, "strip", z.ZodTypeAny, {
490
+ type?: "subproblem" | "constraint" | "resource" | "objective" | "stakeholder";
491
+ name?: string;
492
+ complexity?: number;
493
+ id?: string;
494
+ dependencies?: string[];
495
+ description?: string;
496
+ priority?: number;
497
+ }, {
498
+ type?: "subproblem" | "constraint" | "resource" | "objective" | "stakeholder";
499
+ name?: string;
500
+ complexity?: number;
501
+ id?: string;
502
+ dependencies?: string[];
503
+ description?: string;
504
+ priority?: number;
505
+ }>;
506
+ /**
507
+ * Problem Component Type
508
+ */
509
+ export type ProblemComponent = z.infer<typeof ProblemComponentSchema>;
510
+ /**
511
+ * Problem Decomposition Schema
512
+ */
513
+ export declare const ProblemDecompositionSchema: z.ZodObject<{
514
+ originalProblem: z.ZodString;
515
+ components: z.ZodArray<z.ZodObject<{
516
+ id: z.ZodString;
517
+ name: z.ZodString;
518
+ description: z.ZodString;
519
+ type: z.ZodEnum<["subproblem", "constraint", "resource", "objective", "stakeholder"]>;
520
+ complexity: z.ZodNumber;
521
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
522
+ priority: z.ZodNumber;
523
+ }, "strip", z.ZodTypeAny, {
524
+ type?: "subproblem" | "constraint" | "resource" | "objective" | "stakeholder";
525
+ name?: string;
526
+ complexity?: number;
527
+ id?: string;
528
+ dependencies?: string[];
529
+ description?: string;
530
+ priority?: number;
531
+ }, {
532
+ type?: "subproblem" | "constraint" | "resource" | "objective" | "stakeholder";
533
+ name?: string;
534
+ complexity?: number;
535
+ id?: string;
536
+ dependencies?: string[];
537
+ description?: string;
538
+ priority?: number;
539
+ }>, "many">;
540
+ relationships: z.ZodArray<z.ZodObject<{
541
+ from: z.ZodString;
542
+ to: z.ZodString;
543
+ type: z.ZodEnum<["depends_on", "blocks", "enables", "conflicts_with"]>;
544
+ }, "strip", z.ZodTypeAny, {
545
+ type?: "depends_on" | "blocks" | "enables" | "conflicts_with";
546
+ from?: string;
547
+ to?: string;
548
+ }, {
549
+ type?: "depends_on" | "blocks" | "enables" | "conflicts_with";
550
+ from?: string;
551
+ to?: string;
552
+ }>, "many">;
553
+ complexity: z.ZodNumber;
554
+ }, "strip", z.ZodTypeAny, {
555
+ complexity?: number;
556
+ originalProblem?: string;
557
+ components?: {
558
+ type?: "subproblem" | "constraint" | "resource" | "objective" | "stakeholder";
559
+ name?: string;
560
+ complexity?: number;
561
+ id?: string;
562
+ dependencies?: string[];
563
+ description?: string;
564
+ priority?: number;
565
+ }[];
566
+ relationships?: {
567
+ type?: "depends_on" | "blocks" | "enables" | "conflicts_with";
568
+ from?: string;
569
+ to?: string;
570
+ }[];
571
+ }, {
572
+ complexity?: number;
573
+ originalProblem?: string;
574
+ components?: {
575
+ type?: "subproblem" | "constraint" | "resource" | "objective" | "stakeholder";
576
+ name?: string;
577
+ complexity?: number;
578
+ id?: string;
579
+ dependencies?: string[];
580
+ description?: string;
581
+ priority?: number;
582
+ }[];
583
+ relationships?: {
584
+ type?: "depends_on" | "blocks" | "enables" | "conflicts_with";
585
+ from?: string;
586
+ to?: string;
587
+ }[];
588
+ }>;
589
+ /**
590
+ * Problem Decomposition Type
591
+ */
592
+ export type ProblemDecomposition = z.infer<typeof ProblemDecompositionSchema>;
593
+ /**
594
+ * Reasoning Session Schema
595
+ */
596
+ export declare const ReasoningSessionSchema: z.ZodObject<{
597
+ id: z.ZodString;
598
+ request: z.ZodObject<{
599
+ problem: z.ZodString;
600
+ type: z.ZodDefault<z.ZodNativeEnum<typeof ReasoningType>>;
601
+ context: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
602
+ constraints: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
603
+ options: z.ZodDefault<z.ZodObject<{
604
+ maxSteps: z.ZodDefault<z.ZodNumber>;
605
+ confidence: z.ZodDefault<z.ZodNumber>;
606
+ useLLM: z.ZodDefault<z.ZodBoolean>;
607
+ includeChainOfThought: z.ZodDefault<z.ZodBoolean>;
608
+ generateHypotheses: z.ZodDefault<z.ZodBoolean>;
609
+ decomposeProblem: z.ZodDefault<z.ZodBoolean>;
610
+ }, "strip", z.ZodTypeAny, {
611
+ confidence?: number;
612
+ maxSteps?: number;
613
+ useLLM?: boolean;
614
+ includeChainOfThought?: boolean;
615
+ generateHypotheses?: boolean;
616
+ decomposeProblem?: boolean;
617
+ }, {
618
+ confidence?: number;
619
+ maxSteps?: number;
620
+ useLLM?: boolean;
621
+ includeChainOfThought?: boolean;
622
+ generateHypotheses?: boolean;
623
+ decomposeProblem?: boolean;
624
+ }>>;
625
+ }, "strip", z.ZodTypeAny, {
626
+ options?: {
627
+ confidence?: number;
628
+ maxSteps?: number;
629
+ useLLM?: boolean;
630
+ includeChainOfThought?: boolean;
631
+ generateHypotheses?: boolean;
632
+ decomposeProblem?: boolean;
633
+ };
634
+ type?: ReasoningType;
635
+ problem?: string;
636
+ context?: string[];
637
+ constraints?: string[];
638
+ }, {
639
+ options?: {
640
+ confidence?: number;
641
+ maxSteps?: number;
642
+ useLLM?: boolean;
643
+ includeChainOfThought?: boolean;
644
+ generateHypotheses?: boolean;
645
+ decomposeProblem?: boolean;
646
+ };
647
+ type?: ReasoningType;
648
+ problem?: string;
649
+ context?: string[];
650
+ constraints?: string[];
651
+ }>;
652
+ steps: z.ZodArray<z.ZodObject<{
653
+ id: z.ZodString;
654
+ stepNumber: z.ZodNumber;
655
+ type: z.ZodEnum<["premise", "observation", "inference", "conclusion", "hypothesis", "evidence"]>;
656
+ content: z.ZodString;
657
+ premise: z.ZodOptional<z.ZodString>;
658
+ inference: z.ZodOptional<z.ZodString>;
659
+ conclusion: z.ZodOptional<z.ZodString>;
660
+ confidence: z.ZodNumber;
661
+ supportingEvidence: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
662
+ counterEvidence: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
663
+ assumptions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
664
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
665
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
666
+ }, "strip", z.ZodTypeAny, {
667
+ type?: "premise" | "observation" | "inference" | "conclusion" | "hypothesis" | "evidence";
668
+ confidence?: number;
669
+ id?: string;
670
+ metadata?: Record<string, unknown>;
671
+ content?: string;
672
+ stepNumber?: number;
673
+ premise?: string;
674
+ inference?: string;
675
+ conclusion?: string;
676
+ supportingEvidence?: string[];
677
+ counterEvidence?: string[];
678
+ assumptions?: string[];
679
+ dependencies?: string[];
680
+ }, {
681
+ type?: "premise" | "observation" | "inference" | "conclusion" | "hypothesis" | "evidence";
682
+ confidence?: number;
683
+ id?: string;
684
+ metadata?: Record<string, unknown>;
685
+ content?: string;
686
+ stepNumber?: number;
687
+ premise?: string;
688
+ inference?: string;
689
+ conclusion?: string;
690
+ supportingEvidence?: string[];
691
+ counterEvidence?: string[];
692
+ assumptions?: string[];
693
+ dependencies?: string[];
694
+ }>, "many">;
695
+ hypotheses: z.ZodArray<z.ZodObject<{
696
+ id: z.ZodString;
697
+ statement: z.ZodString;
698
+ plausibility: z.ZodNumber;
699
+ evidence: z.ZodArray<z.ZodObject<{
700
+ description: z.ZodString;
701
+ supports: z.ZodBoolean;
702
+ strength: z.ZodNumber;
703
+ }, "strip", z.ZodTypeAny, {
704
+ description?: string;
705
+ supports?: boolean;
706
+ strength?: number;
707
+ }, {
708
+ description?: string;
709
+ supports?: boolean;
710
+ strength?: number;
711
+ }>, "many">;
712
+ testable: z.ZodBoolean;
713
+ tested: z.ZodDefault<z.ZodBoolean>;
714
+ testResult: z.ZodOptional<z.ZodEnum<["confirmed", "rejected", "inconclusive"]>>;
715
+ }, "strip", z.ZodTypeAny, {
716
+ id?: string;
717
+ evidence?: {
718
+ description?: string;
719
+ supports?: boolean;
720
+ strength?: number;
721
+ }[];
722
+ statement?: string;
723
+ plausibility?: number;
724
+ testable?: boolean;
725
+ tested?: boolean;
726
+ testResult?: "confirmed" | "rejected" | "inconclusive";
727
+ }, {
728
+ id?: string;
729
+ evidence?: {
730
+ description?: string;
731
+ supports?: boolean;
732
+ strength?: number;
733
+ }[];
734
+ statement?: string;
735
+ plausibility?: number;
736
+ testable?: boolean;
737
+ tested?: boolean;
738
+ testResult?: "confirmed" | "rejected" | "inconclusive";
739
+ }>, "many">;
740
+ chainOfThought: z.ZodOptional<z.ZodObject<{
741
+ id: z.ZodString;
742
+ question: z.ZodString;
743
+ nodes: z.ZodArray<z.ZodObject<{
744
+ id: z.ZodString;
745
+ content: z.ZodString;
746
+ type: z.ZodEnum<["question", "observation", "inference", "conclusion", "assumption"]>;
747
+ parentId: z.ZodOptional<z.ZodString>;
748
+ children: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
749
+ depth: z.ZodNumber;
750
+ confidence: z.ZodNumber;
751
+ supportingEvidence: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
752
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
753
+ }, "strip", z.ZodTypeAny, {
754
+ type?: "observation" | "inference" | "conclusion" | "question" | "assumption";
755
+ confidence?: number;
756
+ depth?: number;
757
+ id?: string;
758
+ metadata?: Record<string, unknown>;
759
+ content?: string;
760
+ children?: string[];
761
+ supportingEvidence?: string[];
762
+ parentId?: string;
763
+ }, {
764
+ type?: "observation" | "inference" | "conclusion" | "question" | "assumption";
765
+ confidence?: number;
766
+ depth?: number;
767
+ id?: string;
768
+ metadata?: Record<string, unknown>;
769
+ content?: string;
770
+ children?: string[];
771
+ supportingEvidence?: string[];
772
+ parentId?: string;
773
+ }>, "many">;
774
+ rootNodeId: z.ZodString;
775
+ maxDepth: z.ZodNumber;
776
+ finalAnswer: z.ZodOptional<z.ZodString>;
777
+ completeness: z.ZodNumber;
778
+ coherence: z.ZodNumber;
779
+ }, "strip", z.ZodTypeAny, {
780
+ id?: string;
781
+ question?: string;
782
+ nodes?: {
783
+ type?: "observation" | "inference" | "conclusion" | "question" | "assumption";
784
+ confidence?: number;
785
+ depth?: number;
786
+ id?: string;
787
+ metadata?: Record<string, unknown>;
788
+ content?: string;
789
+ children?: string[];
790
+ supportingEvidence?: string[];
791
+ parentId?: string;
792
+ }[];
793
+ rootNodeId?: string;
794
+ maxDepth?: number;
795
+ finalAnswer?: string;
796
+ completeness?: number;
797
+ coherence?: number;
798
+ }, {
799
+ id?: string;
800
+ question?: string;
801
+ nodes?: {
802
+ type?: "observation" | "inference" | "conclusion" | "question" | "assumption";
803
+ confidence?: number;
804
+ depth?: number;
805
+ id?: string;
806
+ metadata?: Record<string, unknown>;
807
+ content?: string;
808
+ children?: string[];
809
+ supportingEvidence?: string[];
810
+ parentId?: string;
811
+ }[];
812
+ rootNodeId?: string;
813
+ maxDepth?: number;
814
+ finalAnswer?: string;
815
+ completeness?: number;
816
+ coherence?: number;
817
+ }>>;
818
+ decomposition: z.ZodOptional<z.ZodObject<{
819
+ originalProblem: z.ZodString;
820
+ components: z.ZodArray<z.ZodObject<{
821
+ id: z.ZodString;
822
+ name: z.ZodString;
823
+ description: z.ZodString;
824
+ type: z.ZodEnum<["subproblem", "constraint", "resource", "objective", "stakeholder"]>;
825
+ complexity: z.ZodNumber;
826
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
827
+ priority: z.ZodNumber;
828
+ }, "strip", z.ZodTypeAny, {
829
+ type?: "subproblem" | "constraint" | "resource" | "objective" | "stakeholder";
830
+ name?: string;
831
+ complexity?: number;
832
+ id?: string;
833
+ dependencies?: string[];
834
+ description?: string;
835
+ priority?: number;
836
+ }, {
837
+ type?: "subproblem" | "constraint" | "resource" | "objective" | "stakeholder";
838
+ name?: string;
839
+ complexity?: number;
840
+ id?: string;
841
+ dependencies?: string[];
842
+ description?: string;
843
+ priority?: number;
844
+ }>, "many">;
845
+ relationships: z.ZodArray<z.ZodObject<{
846
+ from: z.ZodString;
847
+ to: z.ZodString;
848
+ type: z.ZodEnum<["depends_on", "blocks", "enables", "conflicts_with"]>;
849
+ }, "strip", z.ZodTypeAny, {
850
+ type?: "depends_on" | "blocks" | "enables" | "conflicts_with";
851
+ from?: string;
852
+ to?: string;
853
+ }, {
854
+ type?: "depends_on" | "blocks" | "enables" | "conflicts_with";
855
+ from?: string;
856
+ to?: string;
857
+ }>, "many">;
858
+ complexity: z.ZodNumber;
859
+ }, "strip", z.ZodTypeAny, {
860
+ complexity?: number;
861
+ originalProblem?: string;
862
+ components?: {
863
+ type?: "subproblem" | "constraint" | "resource" | "objective" | "stakeholder";
864
+ name?: string;
865
+ complexity?: number;
866
+ id?: string;
867
+ dependencies?: string[];
868
+ description?: string;
869
+ priority?: number;
870
+ }[];
871
+ relationships?: {
872
+ type?: "depends_on" | "blocks" | "enables" | "conflicts_with";
873
+ from?: string;
874
+ to?: string;
875
+ }[];
876
+ }, {
877
+ complexity?: number;
878
+ originalProblem?: string;
879
+ components?: {
880
+ type?: "subproblem" | "constraint" | "resource" | "objective" | "stakeholder";
881
+ name?: string;
882
+ complexity?: number;
883
+ id?: string;
884
+ dependencies?: string[];
885
+ description?: string;
886
+ priority?: number;
887
+ }[];
888
+ relationships?: {
889
+ type?: "depends_on" | "blocks" | "enables" | "conflicts_with";
890
+ from?: string;
891
+ to?: string;
892
+ }[];
893
+ }>>;
894
+ analogies: z.ZodDefault<z.ZodArray<z.ZodObject<{
895
+ id: z.ZodString;
896
+ sourceDomain: z.ZodString;
897
+ targetDomain: z.ZodString;
898
+ mapping: z.ZodArray<z.ZodObject<{
899
+ source: z.ZodString;
900
+ target: z.ZodString;
901
+ similarity: z.ZodNumber;
902
+ }, "strip", z.ZodTypeAny, {
903
+ source?: string;
904
+ target?: string;
905
+ similarity?: number;
906
+ }, {
907
+ source?: string;
908
+ target?: string;
909
+ similarity?: number;
910
+ }>, "many">;
911
+ strength: z.ZodNumber;
912
+ explanation: z.ZodString;
913
+ }, "strip", z.ZodTypeAny, {
914
+ id?: string;
915
+ explanation?: string;
916
+ strength?: number;
917
+ sourceDomain?: string;
918
+ targetDomain?: string;
919
+ mapping?: {
920
+ source?: string;
921
+ target?: string;
922
+ similarity?: number;
923
+ }[];
924
+ }, {
925
+ id?: string;
926
+ explanation?: string;
927
+ strength?: number;
928
+ sourceDomain?: string;
929
+ targetDomain?: string;
930
+ mapping?: {
931
+ source?: string;
932
+ target?: string;
933
+ similarity?: number;
934
+ }[];
935
+ }>, "many">>;
936
+ causalChains: z.ZodDefault<z.ZodArray<z.ZodObject<{
937
+ id: z.ZodString;
938
+ cause: z.ZodString;
939
+ effect: z.ZodString;
940
+ intermediates: z.ZodArray<z.ZodObject<{
941
+ event: z.ZodString;
942
+ confidence: z.ZodNumber;
943
+ }, "strip", z.ZodTypeAny, {
944
+ confidence?: number;
945
+ event?: string;
946
+ }, {
947
+ confidence?: number;
948
+ event?: string;
949
+ }>, "many">;
950
+ confidence: z.ZodNumber;
951
+ evidence: z.ZodArray<z.ZodString, "many">;
952
+ }, "strip", z.ZodTypeAny, {
953
+ confidence?: number;
954
+ id?: string;
955
+ evidence?: string[];
956
+ cause?: string;
957
+ effect?: string;
958
+ intermediates?: {
959
+ confidence?: number;
960
+ event?: string;
961
+ }[];
962
+ }, {
963
+ confidence?: number;
964
+ id?: string;
965
+ evidence?: string[];
966
+ cause?: string;
967
+ effect?: string;
968
+ intermediates?: {
969
+ confidence?: number;
970
+ event?: string;
971
+ }[];
972
+ }>, "many">>;
973
+ counterfactuals: z.ZodDefault<z.ZodArray<z.ZodObject<{
974
+ id: z.ZodString;
975
+ original: z.ZodString;
976
+ alternative: z.ZodString;
977
+ changes: z.ZodArray<z.ZodString, "many">;
978
+ consequences: z.ZodArray<z.ZodObject<{
979
+ description: z.ZodString;
980
+ probability: z.ZodNumber;
981
+ impact: z.ZodEnum<["low", "medium", "high", "critical"]>;
982
+ }, "strip", z.ZodTypeAny, {
983
+ description?: string;
984
+ probability?: number;
985
+ impact?: "medium" | "low" | "high" | "critical";
986
+ }, {
987
+ description?: string;
988
+ probability?: number;
989
+ impact?: "medium" | "low" | "high" | "critical";
990
+ }>, "many">;
991
+ plausibility: z.ZodNumber;
992
+ }, "strip", z.ZodTypeAny, {
993
+ id?: string;
994
+ plausibility?: number;
995
+ original?: string;
996
+ alternative?: string;
997
+ changes?: string[];
998
+ consequences?: {
999
+ description?: string;
1000
+ probability?: number;
1001
+ impact?: "medium" | "low" | "high" | "critical";
1002
+ }[];
1003
+ }, {
1004
+ id?: string;
1005
+ plausibility?: number;
1006
+ original?: string;
1007
+ alternative?: string;
1008
+ changes?: string[];
1009
+ consequences?: {
1010
+ description?: string;
1011
+ probability?: number;
1012
+ impact?: "medium" | "low" | "high" | "critical";
1013
+ }[];
1014
+ }>, "many">>;
1015
+ conclusion: z.ZodOptional<z.ZodString>;
1016
+ confidence: z.ZodNumber;
1017
+ startedAt: z.ZodDate;
1018
+ completedAt: z.ZodOptional<z.ZodDate>;
1019
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1020
+ }, "strip", z.ZodTypeAny, {
1021
+ confidence?: number;
1022
+ id?: string;
1023
+ metadata?: Record<string, unknown>;
1024
+ request?: {
1025
+ options?: {
1026
+ confidence?: number;
1027
+ maxSteps?: number;
1028
+ useLLM?: boolean;
1029
+ includeChainOfThought?: boolean;
1030
+ generateHypotheses?: boolean;
1031
+ decomposeProblem?: boolean;
1032
+ };
1033
+ type?: ReasoningType;
1034
+ problem?: string;
1035
+ context?: string[];
1036
+ constraints?: string[];
1037
+ };
1038
+ conclusion?: string;
1039
+ steps?: {
1040
+ type?: "premise" | "observation" | "inference" | "conclusion" | "hypothesis" | "evidence";
1041
+ confidence?: number;
1042
+ id?: string;
1043
+ metadata?: Record<string, unknown>;
1044
+ content?: string;
1045
+ stepNumber?: number;
1046
+ premise?: string;
1047
+ inference?: string;
1048
+ conclusion?: string;
1049
+ supportingEvidence?: string[];
1050
+ counterEvidence?: string[];
1051
+ assumptions?: string[];
1052
+ dependencies?: string[];
1053
+ }[];
1054
+ hypotheses?: {
1055
+ id?: string;
1056
+ evidence?: {
1057
+ description?: string;
1058
+ supports?: boolean;
1059
+ strength?: number;
1060
+ }[];
1061
+ statement?: string;
1062
+ plausibility?: number;
1063
+ testable?: boolean;
1064
+ tested?: boolean;
1065
+ testResult?: "confirmed" | "rejected" | "inconclusive";
1066
+ }[];
1067
+ chainOfThought?: {
1068
+ id?: string;
1069
+ question?: string;
1070
+ nodes?: {
1071
+ type?: "observation" | "inference" | "conclusion" | "question" | "assumption";
1072
+ confidence?: number;
1073
+ depth?: number;
1074
+ id?: string;
1075
+ metadata?: Record<string, unknown>;
1076
+ content?: string;
1077
+ children?: string[];
1078
+ supportingEvidence?: string[];
1079
+ parentId?: string;
1080
+ }[];
1081
+ rootNodeId?: string;
1082
+ maxDepth?: number;
1083
+ finalAnswer?: string;
1084
+ completeness?: number;
1085
+ coherence?: number;
1086
+ };
1087
+ decomposition?: {
1088
+ complexity?: number;
1089
+ originalProblem?: string;
1090
+ components?: {
1091
+ type?: "subproblem" | "constraint" | "resource" | "objective" | "stakeholder";
1092
+ name?: string;
1093
+ complexity?: number;
1094
+ id?: string;
1095
+ dependencies?: string[];
1096
+ description?: string;
1097
+ priority?: number;
1098
+ }[];
1099
+ relationships?: {
1100
+ type?: "depends_on" | "blocks" | "enables" | "conflicts_with";
1101
+ from?: string;
1102
+ to?: string;
1103
+ }[];
1104
+ };
1105
+ analogies?: {
1106
+ id?: string;
1107
+ explanation?: string;
1108
+ strength?: number;
1109
+ sourceDomain?: string;
1110
+ targetDomain?: string;
1111
+ mapping?: {
1112
+ source?: string;
1113
+ target?: string;
1114
+ similarity?: number;
1115
+ }[];
1116
+ }[];
1117
+ causalChains?: {
1118
+ confidence?: number;
1119
+ id?: string;
1120
+ evidence?: string[];
1121
+ cause?: string;
1122
+ effect?: string;
1123
+ intermediates?: {
1124
+ confidence?: number;
1125
+ event?: string;
1126
+ }[];
1127
+ }[];
1128
+ counterfactuals?: {
1129
+ id?: string;
1130
+ plausibility?: number;
1131
+ original?: string;
1132
+ alternative?: string;
1133
+ changes?: string[];
1134
+ consequences?: {
1135
+ description?: string;
1136
+ probability?: number;
1137
+ impact?: "medium" | "low" | "high" | "critical";
1138
+ }[];
1139
+ }[];
1140
+ startedAt?: Date;
1141
+ completedAt?: Date;
1142
+ }, {
1143
+ confidence?: number;
1144
+ id?: string;
1145
+ metadata?: Record<string, unknown>;
1146
+ request?: {
1147
+ options?: {
1148
+ confidence?: number;
1149
+ maxSteps?: number;
1150
+ useLLM?: boolean;
1151
+ includeChainOfThought?: boolean;
1152
+ generateHypotheses?: boolean;
1153
+ decomposeProblem?: boolean;
1154
+ };
1155
+ type?: ReasoningType;
1156
+ problem?: string;
1157
+ context?: string[];
1158
+ constraints?: string[];
1159
+ };
1160
+ conclusion?: string;
1161
+ steps?: {
1162
+ type?: "premise" | "observation" | "inference" | "conclusion" | "hypothesis" | "evidence";
1163
+ confidence?: number;
1164
+ id?: string;
1165
+ metadata?: Record<string, unknown>;
1166
+ content?: string;
1167
+ stepNumber?: number;
1168
+ premise?: string;
1169
+ inference?: string;
1170
+ conclusion?: string;
1171
+ supportingEvidence?: string[];
1172
+ counterEvidence?: string[];
1173
+ assumptions?: string[];
1174
+ dependencies?: string[];
1175
+ }[];
1176
+ hypotheses?: {
1177
+ id?: string;
1178
+ evidence?: {
1179
+ description?: string;
1180
+ supports?: boolean;
1181
+ strength?: number;
1182
+ }[];
1183
+ statement?: string;
1184
+ plausibility?: number;
1185
+ testable?: boolean;
1186
+ tested?: boolean;
1187
+ testResult?: "confirmed" | "rejected" | "inconclusive";
1188
+ }[];
1189
+ chainOfThought?: {
1190
+ id?: string;
1191
+ question?: string;
1192
+ nodes?: {
1193
+ type?: "observation" | "inference" | "conclusion" | "question" | "assumption";
1194
+ confidence?: number;
1195
+ depth?: number;
1196
+ id?: string;
1197
+ metadata?: Record<string, unknown>;
1198
+ content?: string;
1199
+ children?: string[];
1200
+ supportingEvidence?: string[];
1201
+ parentId?: string;
1202
+ }[];
1203
+ rootNodeId?: string;
1204
+ maxDepth?: number;
1205
+ finalAnswer?: string;
1206
+ completeness?: number;
1207
+ coherence?: number;
1208
+ };
1209
+ decomposition?: {
1210
+ complexity?: number;
1211
+ originalProblem?: string;
1212
+ components?: {
1213
+ type?: "subproblem" | "constraint" | "resource" | "objective" | "stakeholder";
1214
+ name?: string;
1215
+ complexity?: number;
1216
+ id?: string;
1217
+ dependencies?: string[];
1218
+ description?: string;
1219
+ priority?: number;
1220
+ }[];
1221
+ relationships?: {
1222
+ type?: "depends_on" | "blocks" | "enables" | "conflicts_with";
1223
+ from?: string;
1224
+ to?: string;
1225
+ }[];
1226
+ };
1227
+ analogies?: {
1228
+ id?: string;
1229
+ explanation?: string;
1230
+ strength?: number;
1231
+ sourceDomain?: string;
1232
+ targetDomain?: string;
1233
+ mapping?: {
1234
+ source?: string;
1235
+ target?: string;
1236
+ similarity?: number;
1237
+ }[];
1238
+ }[];
1239
+ causalChains?: {
1240
+ confidence?: number;
1241
+ id?: string;
1242
+ evidence?: string[];
1243
+ cause?: string;
1244
+ effect?: string;
1245
+ intermediates?: {
1246
+ confidence?: number;
1247
+ event?: string;
1248
+ }[];
1249
+ }[];
1250
+ counterfactuals?: {
1251
+ id?: string;
1252
+ plausibility?: number;
1253
+ original?: string;
1254
+ alternative?: string;
1255
+ changes?: string[];
1256
+ consequences?: {
1257
+ description?: string;
1258
+ probability?: number;
1259
+ impact?: "medium" | "low" | "high" | "critical";
1260
+ }[];
1261
+ }[];
1262
+ startedAt?: Date;
1263
+ completedAt?: Date;
1264
+ }>;
1265
+ /**
1266
+ * Reasoning Session Type
1267
+ */
1268
+ export type ReasoningSession = z.infer<typeof ReasoningSessionSchema>;
1269
+ /**
1270
+ * Reasoning Result Schema
1271
+ */
1272
+ export declare const ReasoningResultSchema: z.ZodObject<{
1273
+ success: z.ZodBoolean;
1274
+ confidence: z.ZodNumber;
1275
+ timestamp: z.ZodDate;
1276
+ duration: z.ZodNumber;
1277
+ errors: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1278
+ } & {
1279
+ session: z.ZodObject<{
1280
+ id: z.ZodString;
1281
+ request: z.ZodObject<{
1282
+ problem: z.ZodString;
1283
+ type: z.ZodDefault<z.ZodNativeEnum<typeof ReasoningType>>;
1284
+ context: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1285
+ constraints: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1286
+ options: z.ZodDefault<z.ZodObject<{
1287
+ maxSteps: z.ZodDefault<z.ZodNumber>;
1288
+ confidence: z.ZodDefault<z.ZodNumber>;
1289
+ useLLM: z.ZodDefault<z.ZodBoolean>;
1290
+ includeChainOfThought: z.ZodDefault<z.ZodBoolean>;
1291
+ generateHypotheses: z.ZodDefault<z.ZodBoolean>;
1292
+ decomposeProblem: z.ZodDefault<z.ZodBoolean>;
1293
+ }, "strip", z.ZodTypeAny, {
1294
+ confidence?: number;
1295
+ maxSteps?: number;
1296
+ useLLM?: boolean;
1297
+ includeChainOfThought?: boolean;
1298
+ generateHypotheses?: boolean;
1299
+ decomposeProblem?: boolean;
1300
+ }, {
1301
+ confidence?: number;
1302
+ maxSteps?: number;
1303
+ useLLM?: boolean;
1304
+ includeChainOfThought?: boolean;
1305
+ generateHypotheses?: boolean;
1306
+ decomposeProblem?: boolean;
1307
+ }>>;
1308
+ }, "strip", z.ZodTypeAny, {
1309
+ options?: {
1310
+ confidence?: number;
1311
+ maxSteps?: number;
1312
+ useLLM?: boolean;
1313
+ includeChainOfThought?: boolean;
1314
+ generateHypotheses?: boolean;
1315
+ decomposeProblem?: boolean;
1316
+ };
1317
+ type?: ReasoningType;
1318
+ problem?: string;
1319
+ context?: string[];
1320
+ constraints?: string[];
1321
+ }, {
1322
+ options?: {
1323
+ confidence?: number;
1324
+ maxSteps?: number;
1325
+ useLLM?: boolean;
1326
+ includeChainOfThought?: boolean;
1327
+ generateHypotheses?: boolean;
1328
+ decomposeProblem?: boolean;
1329
+ };
1330
+ type?: ReasoningType;
1331
+ problem?: string;
1332
+ context?: string[];
1333
+ constraints?: string[];
1334
+ }>;
1335
+ steps: z.ZodArray<z.ZodObject<{
1336
+ id: z.ZodString;
1337
+ stepNumber: z.ZodNumber;
1338
+ type: z.ZodEnum<["premise", "observation", "inference", "conclusion", "hypothesis", "evidence"]>;
1339
+ content: z.ZodString;
1340
+ premise: z.ZodOptional<z.ZodString>;
1341
+ inference: z.ZodOptional<z.ZodString>;
1342
+ conclusion: z.ZodOptional<z.ZodString>;
1343
+ confidence: z.ZodNumber;
1344
+ supportingEvidence: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1345
+ counterEvidence: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1346
+ assumptions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1347
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1348
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1349
+ }, "strip", z.ZodTypeAny, {
1350
+ type?: "premise" | "observation" | "inference" | "conclusion" | "hypothesis" | "evidence";
1351
+ confidence?: number;
1352
+ id?: string;
1353
+ metadata?: Record<string, unknown>;
1354
+ content?: string;
1355
+ stepNumber?: number;
1356
+ premise?: string;
1357
+ inference?: string;
1358
+ conclusion?: string;
1359
+ supportingEvidence?: string[];
1360
+ counterEvidence?: string[];
1361
+ assumptions?: string[];
1362
+ dependencies?: string[];
1363
+ }, {
1364
+ type?: "premise" | "observation" | "inference" | "conclusion" | "hypothesis" | "evidence";
1365
+ confidence?: number;
1366
+ id?: string;
1367
+ metadata?: Record<string, unknown>;
1368
+ content?: string;
1369
+ stepNumber?: number;
1370
+ premise?: string;
1371
+ inference?: string;
1372
+ conclusion?: string;
1373
+ supportingEvidence?: string[];
1374
+ counterEvidence?: string[];
1375
+ assumptions?: string[];
1376
+ dependencies?: string[];
1377
+ }>, "many">;
1378
+ hypotheses: z.ZodArray<z.ZodObject<{
1379
+ id: z.ZodString;
1380
+ statement: z.ZodString;
1381
+ plausibility: z.ZodNumber;
1382
+ evidence: z.ZodArray<z.ZodObject<{
1383
+ description: z.ZodString;
1384
+ supports: z.ZodBoolean;
1385
+ strength: z.ZodNumber;
1386
+ }, "strip", z.ZodTypeAny, {
1387
+ description?: string;
1388
+ supports?: boolean;
1389
+ strength?: number;
1390
+ }, {
1391
+ description?: string;
1392
+ supports?: boolean;
1393
+ strength?: number;
1394
+ }>, "many">;
1395
+ testable: z.ZodBoolean;
1396
+ tested: z.ZodDefault<z.ZodBoolean>;
1397
+ testResult: z.ZodOptional<z.ZodEnum<["confirmed", "rejected", "inconclusive"]>>;
1398
+ }, "strip", z.ZodTypeAny, {
1399
+ id?: string;
1400
+ evidence?: {
1401
+ description?: string;
1402
+ supports?: boolean;
1403
+ strength?: number;
1404
+ }[];
1405
+ statement?: string;
1406
+ plausibility?: number;
1407
+ testable?: boolean;
1408
+ tested?: boolean;
1409
+ testResult?: "confirmed" | "rejected" | "inconclusive";
1410
+ }, {
1411
+ id?: string;
1412
+ evidence?: {
1413
+ description?: string;
1414
+ supports?: boolean;
1415
+ strength?: number;
1416
+ }[];
1417
+ statement?: string;
1418
+ plausibility?: number;
1419
+ testable?: boolean;
1420
+ tested?: boolean;
1421
+ testResult?: "confirmed" | "rejected" | "inconclusive";
1422
+ }>, "many">;
1423
+ chainOfThought: z.ZodOptional<z.ZodObject<{
1424
+ id: z.ZodString;
1425
+ question: z.ZodString;
1426
+ nodes: z.ZodArray<z.ZodObject<{
1427
+ id: z.ZodString;
1428
+ content: z.ZodString;
1429
+ type: z.ZodEnum<["question", "observation", "inference", "conclusion", "assumption"]>;
1430
+ parentId: z.ZodOptional<z.ZodString>;
1431
+ children: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1432
+ depth: z.ZodNumber;
1433
+ confidence: z.ZodNumber;
1434
+ supportingEvidence: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1435
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1436
+ }, "strip", z.ZodTypeAny, {
1437
+ type?: "observation" | "inference" | "conclusion" | "question" | "assumption";
1438
+ confidence?: number;
1439
+ depth?: number;
1440
+ id?: string;
1441
+ metadata?: Record<string, unknown>;
1442
+ content?: string;
1443
+ children?: string[];
1444
+ supportingEvidence?: string[];
1445
+ parentId?: string;
1446
+ }, {
1447
+ type?: "observation" | "inference" | "conclusion" | "question" | "assumption";
1448
+ confidence?: number;
1449
+ depth?: number;
1450
+ id?: string;
1451
+ metadata?: Record<string, unknown>;
1452
+ content?: string;
1453
+ children?: string[];
1454
+ supportingEvidence?: string[];
1455
+ parentId?: string;
1456
+ }>, "many">;
1457
+ rootNodeId: z.ZodString;
1458
+ maxDepth: z.ZodNumber;
1459
+ finalAnswer: z.ZodOptional<z.ZodString>;
1460
+ completeness: z.ZodNumber;
1461
+ coherence: z.ZodNumber;
1462
+ }, "strip", z.ZodTypeAny, {
1463
+ id?: string;
1464
+ question?: string;
1465
+ nodes?: {
1466
+ type?: "observation" | "inference" | "conclusion" | "question" | "assumption";
1467
+ confidence?: number;
1468
+ depth?: number;
1469
+ id?: string;
1470
+ metadata?: Record<string, unknown>;
1471
+ content?: string;
1472
+ children?: string[];
1473
+ supportingEvidence?: string[];
1474
+ parentId?: string;
1475
+ }[];
1476
+ rootNodeId?: string;
1477
+ maxDepth?: number;
1478
+ finalAnswer?: string;
1479
+ completeness?: number;
1480
+ coherence?: number;
1481
+ }, {
1482
+ id?: string;
1483
+ question?: string;
1484
+ nodes?: {
1485
+ type?: "observation" | "inference" | "conclusion" | "question" | "assumption";
1486
+ confidence?: number;
1487
+ depth?: number;
1488
+ id?: string;
1489
+ metadata?: Record<string, unknown>;
1490
+ content?: string;
1491
+ children?: string[];
1492
+ supportingEvidence?: string[];
1493
+ parentId?: string;
1494
+ }[];
1495
+ rootNodeId?: string;
1496
+ maxDepth?: number;
1497
+ finalAnswer?: string;
1498
+ completeness?: number;
1499
+ coherence?: number;
1500
+ }>>;
1501
+ decomposition: z.ZodOptional<z.ZodObject<{
1502
+ originalProblem: z.ZodString;
1503
+ components: z.ZodArray<z.ZodObject<{
1504
+ id: z.ZodString;
1505
+ name: z.ZodString;
1506
+ description: z.ZodString;
1507
+ type: z.ZodEnum<["subproblem", "constraint", "resource", "objective", "stakeholder"]>;
1508
+ complexity: z.ZodNumber;
1509
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1510
+ priority: z.ZodNumber;
1511
+ }, "strip", z.ZodTypeAny, {
1512
+ type?: "subproblem" | "constraint" | "resource" | "objective" | "stakeholder";
1513
+ name?: string;
1514
+ complexity?: number;
1515
+ id?: string;
1516
+ dependencies?: string[];
1517
+ description?: string;
1518
+ priority?: number;
1519
+ }, {
1520
+ type?: "subproblem" | "constraint" | "resource" | "objective" | "stakeholder";
1521
+ name?: string;
1522
+ complexity?: number;
1523
+ id?: string;
1524
+ dependencies?: string[];
1525
+ description?: string;
1526
+ priority?: number;
1527
+ }>, "many">;
1528
+ relationships: z.ZodArray<z.ZodObject<{
1529
+ from: z.ZodString;
1530
+ to: z.ZodString;
1531
+ type: z.ZodEnum<["depends_on", "blocks", "enables", "conflicts_with"]>;
1532
+ }, "strip", z.ZodTypeAny, {
1533
+ type?: "depends_on" | "blocks" | "enables" | "conflicts_with";
1534
+ from?: string;
1535
+ to?: string;
1536
+ }, {
1537
+ type?: "depends_on" | "blocks" | "enables" | "conflicts_with";
1538
+ from?: string;
1539
+ to?: string;
1540
+ }>, "many">;
1541
+ complexity: z.ZodNumber;
1542
+ }, "strip", z.ZodTypeAny, {
1543
+ complexity?: number;
1544
+ originalProblem?: string;
1545
+ components?: {
1546
+ type?: "subproblem" | "constraint" | "resource" | "objective" | "stakeholder";
1547
+ name?: string;
1548
+ complexity?: number;
1549
+ id?: string;
1550
+ dependencies?: string[];
1551
+ description?: string;
1552
+ priority?: number;
1553
+ }[];
1554
+ relationships?: {
1555
+ type?: "depends_on" | "blocks" | "enables" | "conflicts_with";
1556
+ from?: string;
1557
+ to?: string;
1558
+ }[];
1559
+ }, {
1560
+ complexity?: number;
1561
+ originalProblem?: string;
1562
+ components?: {
1563
+ type?: "subproblem" | "constraint" | "resource" | "objective" | "stakeholder";
1564
+ name?: string;
1565
+ complexity?: number;
1566
+ id?: string;
1567
+ dependencies?: string[];
1568
+ description?: string;
1569
+ priority?: number;
1570
+ }[];
1571
+ relationships?: {
1572
+ type?: "depends_on" | "blocks" | "enables" | "conflicts_with";
1573
+ from?: string;
1574
+ to?: string;
1575
+ }[];
1576
+ }>>;
1577
+ analogies: z.ZodDefault<z.ZodArray<z.ZodObject<{
1578
+ id: z.ZodString;
1579
+ sourceDomain: z.ZodString;
1580
+ targetDomain: z.ZodString;
1581
+ mapping: z.ZodArray<z.ZodObject<{
1582
+ source: z.ZodString;
1583
+ target: z.ZodString;
1584
+ similarity: z.ZodNumber;
1585
+ }, "strip", z.ZodTypeAny, {
1586
+ source?: string;
1587
+ target?: string;
1588
+ similarity?: number;
1589
+ }, {
1590
+ source?: string;
1591
+ target?: string;
1592
+ similarity?: number;
1593
+ }>, "many">;
1594
+ strength: z.ZodNumber;
1595
+ explanation: z.ZodString;
1596
+ }, "strip", z.ZodTypeAny, {
1597
+ id?: string;
1598
+ explanation?: string;
1599
+ strength?: number;
1600
+ sourceDomain?: string;
1601
+ targetDomain?: string;
1602
+ mapping?: {
1603
+ source?: string;
1604
+ target?: string;
1605
+ similarity?: number;
1606
+ }[];
1607
+ }, {
1608
+ id?: string;
1609
+ explanation?: string;
1610
+ strength?: number;
1611
+ sourceDomain?: string;
1612
+ targetDomain?: string;
1613
+ mapping?: {
1614
+ source?: string;
1615
+ target?: string;
1616
+ similarity?: number;
1617
+ }[];
1618
+ }>, "many">>;
1619
+ causalChains: z.ZodDefault<z.ZodArray<z.ZodObject<{
1620
+ id: z.ZodString;
1621
+ cause: z.ZodString;
1622
+ effect: z.ZodString;
1623
+ intermediates: z.ZodArray<z.ZodObject<{
1624
+ event: z.ZodString;
1625
+ confidence: z.ZodNumber;
1626
+ }, "strip", z.ZodTypeAny, {
1627
+ confidence?: number;
1628
+ event?: string;
1629
+ }, {
1630
+ confidence?: number;
1631
+ event?: string;
1632
+ }>, "many">;
1633
+ confidence: z.ZodNumber;
1634
+ evidence: z.ZodArray<z.ZodString, "many">;
1635
+ }, "strip", z.ZodTypeAny, {
1636
+ confidence?: number;
1637
+ id?: string;
1638
+ evidence?: string[];
1639
+ cause?: string;
1640
+ effect?: string;
1641
+ intermediates?: {
1642
+ confidence?: number;
1643
+ event?: string;
1644
+ }[];
1645
+ }, {
1646
+ confidence?: number;
1647
+ id?: string;
1648
+ evidence?: string[];
1649
+ cause?: string;
1650
+ effect?: string;
1651
+ intermediates?: {
1652
+ confidence?: number;
1653
+ event?: string;
1654
+ }[];
1655
+ }>, "many">>;
1656
+ counterfactuals: z.ZodDefault<z.ZodArray<z.ZodObject<{
1657
+ id: z.ZodString;
1658
+ original: z.ZodString;
1659
+ alternative: z.ZodString;
1660
+ changes: z.ZodArray<z.ZodString, "many">;
1661
+ consequences: z.ZodArray<z.ZodObject<{
1662
+ description: z.ZodString;
1663
+ probability: z.ZodNumber;
1664
+ impact: z.ZodEnum<["low", "medium", "high", "critical"]>;
1665
+ }, "strip", z.ZodTypeAny, {
1666
+ description?: string;
1667
+ probability?: number;
1668
+ impact?: "medium" | "low" | "high" | "critical";
1669
+ }, {
1670
+ description?: string;
1671
+ probability?: number;
1672
+ impact?: "medium" | "low" | "high" | "critical";
1673
+ }>, "many">;
1674
+ plausibility: z.ZodNumber;
1675
+ }, "strip", z.ZodTypeAny, {
1676
+ id?: string;
1677
+ plausibility?: number;
1678
+ original?: string;
1679
+ alternative?: string;
1680
+ changes?: string[];
1681
+ consequences?: {
1682
+ description?: string;
1683
+ probability?: number;
1684
+ impact?: "medium" | "low" | "high" | "critical";
1685
+ }[];
1686
+ }, {
1687
+ id?: string;
1688
+ plausibility?: number;
1689
+ original?: string;
1690
+ alternative?: string;
1691
+ changes?: string[];
1692
+ consequences?: {
1693
+ description?: string;
1694
+ probability?: number;
1695
+ impact?: "medium" | "low" | "high" | "critical";
1696
+ }[];
1697
+ }>, "many">>;
1698
+ conclusion: z.ZodOptional<z.ZodString>;
1699
+ confidence: z.ZodNumber;
1700
+ startedAt: z.ZodDate;
1701
+ completedAt: z.ZodOptional<z.ZodDate>;
1702
+ metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1703
+ }, "strip", z.ZodTypeAny, {
1704
+ confidence?: number;
1705
+ id?: string;
1706
+ metadata?: Record<string, unknown>;
1707
+ request?: {
1708
+ options?: {
1709
+ confidence?: number;
1710
+ maxSteps?: number;
1711
+ useLLM?: boolean;
1712
+ includeChainOfThought?: boolean;
1713
+ generateHypotheses?: boolean;
1714
+ decomposeProblem?: boolean;
1715
+ };
1716
+ type?: ReasoningType;
1717
+ problem?: string;
1718
+ context?: string[];
1719
+ constraints?: string[];
1720
+ };
1721
+ conclusion?: string;
1722
+ steps?: {
1723
+ type?: "premise" | "observation" | "inference" | "conclusion" | "hypothesis" | "evidence";
1724
+ confidence?: number;
1725
+ id?: string;
1726
+ metadata?: Record<string, unknown>;
1727
+ content?: string;
1728
+ stepNumber?: number;
1729
+ premise?: string;
1730
+ inference?: string;
1731
+ conclusion?: string;
1732
+ supportingEvidence?: string[];
1733
+ counterEvidence?: string[];
1734
+ assumptions?: string[];
1735
+ dependencies?: string[];
1736
+ }[];
1737
+ hypotheses?: {
1738
+ id?: string;
1739
+ evidence?: {
1740
+ description?: string;
1741
+ supports?: boolean;
1742
+ strength?: number;
1743
+ }[];
1744
+ statement?: string;
1745
+ plausibility?: number;
1746
+ testable?: boolean;
1747
+ tested?: boolean;
1748
+ testResult?: "confirmed" | "rejected" | "inconclusive";
1749
+ }[];
1750
+ chainOfThought?: {
1751
+ id?: string;
1752
+ question?: string;
1753
+ nodes?: {
1754
+ type?: "observation" | "inference" | "conclusion" | "question" | "assumption";
1755
+ confidence?: number;
1756
+ depth?: number;
1757
+ id?: string;
1758
+ metadata?: Record<string, unknown>;
1759
+ content?: string;
1760
+ children?: string[];
1761
+ supportingEvidence?: string[];
1762
+ parentId?: string;
1763
+ }[];
1764
+ rootNodeId?: string;
1765
+ maxDepth?: number;
1766
+ finalAnswer?: string;
1767
+ completeness?: number;
1768
+ coherence?: number;
1769
+ };
1770
+ decomposition?: {
1771
+ complexity?: number;
1772
+ originalProblem?: string;
1773
+ components?: {
1774
+ type?: "subproblem" | "constraint" | "resource" | "objective" | "stakeholder";
1775
+ name?: string;
1776
+ complexity?: number;
1777
+ id?: string;
1778
+ dependencies?: string[];
1779
+ description?: string;
1780
+ priority?: number;
1781
+ }[];
1782
+ relationships?: {
1783
+ type?: "depends_on" | "blocks" | "enables" | "conflicts_with";
1784
+ from?: string;
1785
+ to?: string;
1786
+ }[];
1787
+ };
1788
+ analogies?: {
1789
+ id?: string;
1790
+ explanation?: string;
1791
+ strength?: number;
1792
+ sourceDomain?: string;
1793
+ targetDomain?: string;
1794
+ mapping?: {
1795
+ source?: string;
1796
+ target?: string;
1797
+ similarity?: number;
1798
+ }[];
1799
+ }[];
1800
+ causalChains?: {
1801
+ confidence?: number;
1802
+ id?: string;
1803
+ evidence?: string[];
1804
+ cause?: string;
1805
+ effect?: string;
1806
+ intermediates?: {
1807
+ confidence?: number;
1808
+ event?: string;
1809
+ }[];
1810
+ }[];
1811
+ counterfactuals?: {
1812
+ id?: string;
1813
+ plausibility?: number;
1814
+ original?: string;
1815
+ alternative?: string;
1816
+ changes?: string[];
1817
+ consequences?: {
1818
+ description?: string;
1819
+ probability?: number;
1820
+ impact?: "medium" | "low" | "high" | "critical";
1821
+ }[];
1822
+ }[];
1823
+ startedAt?: Date;
1824
+ completedAt?: Date;
1825
+ }, {
1826
+ confidence?: number;
1827
+ id?: string;
1828
+ metadata?: Record<string, unknown>;
1829
+ request?: {
1830
+ options?: {
1831
+ confidence?: number;
1832
+ maxSteps?: number;
1833
+ useLLM?: boolean;
1834
+ includeChainOfThought?: boolean;
1835
+ generateHypotheses?: boolean;
1836
+ decomposeProblem?: boolean;
1837
+ };
1838
+ type?: ReasoningType;
1839
+ problem?: string;
1840
+ context?: string[];
1841
+ constraints?: string[];
1842
+ };
1843
+ conclusion?: string;
1844
+ steps?: {
1845
+ type?: "premise" | "observation" | "inference" | "conclusion" | "hypothesis" | "evidence";
1846
+ confidence?: number;
1847
+ id?: string;
1848
+ metadata?: Record<string, unknown>;
1849
+ content?: string;
1850
+ stepNumber?: number;
1851
+ premise?: string;
1852
+ inference?: string;
1853
+ conclusion?: string;
1854
+ supportingEvidence?: string[];
1855
+ counterEvidence?: string[];
1856
+ assumptions?: string[];
1857
+ dependencies?: string[];
1858
+ }[];
1859
+ hypotheses?: {
1860
+ id?: string;
1861
+ evidence?: {
1862
+ description?: string;
1863
+ supports?: boolean;
1864
+ strength?: number;
1865
+ }[];
1866
+ statement?: string;
1867
+ plausibility?: number;
1868
+ testable?: boolean;
1869
+ tested?: boolean;
1870
+ testResult?: "confirmed" | "rejected" | "inconclusive";
1871
+ }[];
1872
+ chainOfThought?: {
1873
+ id?: string;
1874
+ question?: string;
1875
+ nodes?: {
1876
+ type?: "observation" | "inference" | "conclusion" | "question" | "assumption";
1877
+ confidence?: number;
1878
+ depth?: number;
1879
+ id?: string;
1880
+ metadata?: Record<string, unknown>;
1881
+ content?: string;
1882
+ children?: string[];
1883
+ supportingEvidence?: string[];
1884
+ parentId?: string;
1885
+ }[];
1886
+ rootNodeId?: string;
1887
+ maxDepth?: number;
1888
+ finalAnswer?: string;
1889
+ completeness?: number;
1890
+ coherence?: number;
1891
+ };
1892
+ decomposition?: {
1893
+ complexity?: number;
1894
+ originalProblem?: string;
1895
+ components?: {
1896
+ type?: "subproblem" | "constraint" | "resource" | "objective" | "stakeholder";
1897
+ name?: string;
1898
+ complexity?: number;
1899
+ id?: string;
1900
+ dependencies?: string[];
1901
+ description?: string;
1902
+ priority?: number;
1903
+ }[];
1904
+ relationships?: {
1905
+ type?: "depends_on" | "blocks" | "enables" | "conflicts_with";
1906
+ from?: string;
1907
+ to?: string;
1908
+ }[];
1909
+ };
1910
+ analogies?: {
1911
+ id?: string;
1912
+ explanation?: string;
1913
+ strength?: number;
1914
+ sourceDomain?: string;
1915
+ targetDomain?: string;
1916
+ mapping?: {
1917
+ source?: string;
1918
+ target?: string;
1919
+ similarity?: number;
1920
+ }[];
1921
+ }[];
1922
+ causalChains?: {
1923
+ confidence?: number;
1924
+ id?: string;
1925
+ evidence?: string[];
1926
+ cause?: string;
1927
+ effect?: string;
1928
+ intermediates?: {
1929
+ confidence?: number;
1930
+ event?: string;
1931
+ }[];
1932
+ }[];
1933
+ counterfactuals?: {
1934
+ id?: string;
1935
+ plausibility?: number;
1936
+ original?: string;
1937
+ alternative?: string;
1938
+ changes?: string[];
1939
+ consequences?: {
1940
+ description?: string;
1941
+ probability?: number;
1942
+ impact?: "medium" | "low" | "high" | "critical";
1943
+ }[];
1944
+ }[];
1945
+ startedAt?: Date;
1946
+ completedAt?: Date;
1947
+ }>;
1948
+ conclusion: z.ZodString;
1949
+ recommendations: z.ZodArray<z.ZodString, "many">;
1950
+ confidenceBreakdown: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1951
+ }, "strip", z.ZodTypeAny, {
1952
+ success?: boolean;
1953
+ confidence?: number;
1954
+ timestamp?: Date;
1955
+ duration?: number;
1956
+ errors?: string[];
1957
+ conclusion?: string;
1958
+ session?: {
1959
+ confidence?: number;
1960
+ id?: string;
1961
+ metadata?: Record<string, unknown>;
1962
+ request?: {
1963
+ options?: {
1964
+ confidence?: number;
1965
+ maxSteps?: number;
1966
+ useLLM?: boolean;
1967
+ includeChainOfThought?: boolean;
1968
+ generateHypotheses?: boolean;
1969
+ decomposeProblem?: boolean;
1970
+ };
1971
+ type?: ReasoningType;
1972
+ problem?: string;
1973
+ context?: string[];
1974
+ constraints?: string[];
1975
+ };
1976
+ conclusion?: string;
1977
+ steps?: {
1978
+ type?: "premise" | "observation" | "inference" | "conclusion" | "hypothesis" | "evidence";
1979
+ confidence?: number;
1980
+ id?: string;
1981
+ metadata?: Record<string, unknown>;
1982
+ content?: string;
1983
+ stepNumber?: number;
1984
+ premise?: string;
1985
+ inference?: string;
1986
+ conclusion?: string;
1987
+ supportingEvidence?: string[];
1988
+ counterEvidence?: string[];
1989
+ assumptions?: string[];
1990
+ dependencies?: string[];
1991
+ }[];
1992
+ hypotheses?: {
1993
+ id?: string;
1994
+ evidence?: {
1995
+ description?: string;
1996
+ supports?: boolean;
1997
+ strength?: number;
1998
+ }[];
1999
+ statement?: string;
2000
+ plausibility?: number;
2001
+ testable?: boolean;
2002
+ tested?: boolean;
2003
+ testResult?: "confirmed" | "rejected" | "inconclusive";
2004
+ }[];
2005
+ chainOfThought?: {
2006
+ id?: string;
2007
+ question?: string;
2008
+ nodes?: {
2009
+ type?: "observation" | "inference" | "conclusion" | "question" | "assumption";
2010
+ confidence?: number;
2011
+ depth?: number;
2012
+ id?: string;
2013
+ metadata?: Record<string, unknown>;
2014
+ content?: string;
2015
+ children?: string[];
2016
+ supportingEvidence?: string[];
2017
+ parentId?: string;
2018
+ }[];
2019
+ rootNodeId?: string;
2020
+ maxDepth?: number;
2021
+ finalAnswer?: string;
2022
+ completeness?: number;
2023
+ coherence?: number;
2024
+ };
2025
+ decomposition?: {
2026
+ complexity?: number;
2027
+ originalProblem?: string;
2028
+ components?: {
2029
+ type?: "subproblem" | "constraint" | "resource" | "objective" | "stakeholder";
2030
+ name?: string;
2031
+ complexity?: number;
2032
+ id?: string;
2033
+ dependencies?: string[];
2034
+ description?: string;
2035
+ priority?: number;
2036
+ }[];
2037
+ relationships?: {
2038
+ type?: "depends_on" | "blocks" | "enables" | "conflicts_with";
2039
+ from?: string;
2040
+ to?: string;
2041
+ }[];
2042
+ };
2043
+ analogies?: {
2044
+ id?: string;
2045
+ explanation?: string;
2046
+ strength?: number;
2047
+ sourceDomain?: string;
2048
+ targetDomain?: string;
2049
+ mapping?: {
2050
+ source?: string;
2051
+ target?: string;
2052
+ similarity?: number;
2053
+ }[];
2054
+ }[];
2055
+ causalChains?: {
2056
+ confidence?: number;
2057
+ id?: string;
2058
+ evidence?: string[];
2059
+ cause?: string;
2060
+ effect?: string;
2061
+ intermediates?: {
2062
+ confidence?: number;
2063
+ event?: string;
2064
+ }[];
2065
+ }[];
2066
+ counterfactuals?: {
2067
+ id?: string;
2068
+ plausibility?: number;
2069
+ original?: string;
2070
+ alternative?: string;
2071
+ changes?: string[];
2072
+ consequences?: {
2073
+ description?: string;
2074
+ probability?: number;
2075
+ impact?: "medium" | "low" | "high" | "critical";
2076
+ }[];
2077
+ }[];
2078
+ startedAt?: Date;
2079
+ completedAt?: Date;
2080
+ };
2081
+ recommendations?: string[];
2082
+ confidenceBreakdown?: Record<string, number>;
2083
+ }, {
2084
+ success?: boolean;
2085
+ confidence?: number;
2086
+ timestamp?: Date;
2087
+ duration?: number;
2088
+ errors?: string[];
2089
+ conclusion?: string;
2090
+ session?: {
2091
+ confidence?: number;
2092
+ id?: string;
2093
+ metadata?: Record<string, unknown>;
2094
+ request?: {
2095
+ options?: {
2096
+ confidence?: number;
2097
+ maxSteps?: number;
2098
+ useLLM?: boolean;
2099
+ includeChainOfThought?: boolean;
2100
+ generateHypotheses?: boolean;
2101
+ decomposeProblem?: boolean;
2102
+ };
2103
+ type?: ReasoningType;
2104
+ problem?: string;
2105
+ context?: string[];
2106
+ constraints?: string[];
2107
+ };
2108
+ conclusion?: string;
2109
+ steps?: {
2110
+ type?: "premise" | "observation" | "inference" | "conclusion" | "hypothesis" | "evidence";
2111
+ confidence?: number;
2112
+ id?: string;
2113
+ metadata?: Record<string, unknown>;
2114
+ content?: string;
2115
+ stepNumber?: number;
2116
+ premise?: string;
2117
+ inference?: string;
2118
+ conclusion?: string;
2119
+ supportingEvidence?: string[];
2120
+ counterEvidence?: string[];
2121
+ assumptions?: string[];
2122
+ dependencies?: string[];
2123
+ }[];
2124
+ hypotheses?: {
2125
+ id?: string;
2126
+ evidence?: {
2127
+ description?: string;
2128
+ supports?: boolean;
2129
+ strength?: number;
2130
+ }[];
2131
+ statement?: string;
2132
+ plausibility?: number;
2133
+ testable?: boolean;
2134
+ tested?: boolean;
2135
+ testResult?: "confirmed" | "rejected" | "inconclusive";
2136
+ }[];
2137
+ chainOfThought?: {
2138
+ id?: string;
2139
+ question?: string;
2140
+ nodes?: {
2141
+ type?: "observation" | "inference" | "conclusion" | "question" | "assumption";
2142
+ confidence?: number;
2143
+ depth?: number;
2144
+ id?: string;
2145
+ metadata?: Record<string, unknown>;
2146
+ content?: string;
2147
+ children?: string[];
2148
+ supportingEvidence?: string[];
2149
+ parentId?: string;
2150
+ }[];
2151
+ rootNodeId?: string;
2152
+ maxDepth?: number;
2153
+ finalAnswer?: string;
2154
+ completeness?: number;
2155
+ coherence?: number;
2156
+ };
2157
+ decomposition?: {
2158
+ complexity?: number;
2159
+ originalProblem?: string;
2160
+ components?: {
2161
+ type?: "subproblem" | "constraint" | "resource" | "objective" | "stakeholder";
2162
+ name?: string;
2163
+ complexity?: number;
2164
+ id?: string;
2165
+ dependencies?: string[];
2166
+ description?: string;
2167
+ priority?: number;
2168
+ }[];
2169
+ relationships?: {
2170
+ type?: "depends_on" | "blocks" | "enables" | "conflicts_with";
2171
+ from?: string;
2172
+ to?: string;
2173
+ }[];
2174
+ };
2175
+ analogies?: {
2176
+ id?: string;
2177
+ explanation?: string;
2178
+ strength?: number;
2179
+ sourceDomain?: string;
2180
+ targetDomain?: string;
2181
+ mapping?: {
2182
+ source?: string;
2183
+ target?: string;
2184
+ similarity?: number;
2185
+ }[];
2186
+ }[];
2187
+ causalChains?: {
2188
+ confidence?: number;
2189
+ id?: string;
2190
+ evidence?: string[];
2191
+ cause?: string;
2192
+ effect?: string;
2193
+ intermediates?: {
2194
+ confidence?: number;
2195
+ event?: string;
2196
+ }[];
2197
+ }[];
2198
+ counterfactuals?: {
2199
+ id?: string;
2200
+ plausibility?: number;
2201
+ original?: string;
2202
+ alternative?: string;
2203
+ changes?: string[];
2204
+ consequences?: {
2205
+ description?: string;
2206
+ probability?: number;
2207
+ impact?: "medium" | "low" | "high" | "critical";
2208
+ }[];
2209
+ }[];
2210
+ startedAt?: Date;
2211
+ completedAt?: Date;
2212
+ };
2213
+ recommendations?: string[];
2214
+ confidenceBreakdown?: Record<string, number>;
2215
+ }>;
2216
+ /**
2217
+ * Reasoning Result Type
2218
+ */
2219
+ export type ReasoningResult = z.infer<typeof ReasoningResultSchema>;
83
2220
  //# sourceMappingURL=reasoning.d.ts.map