@mcpilotx/intentorch 0.5.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/LICENSE +201 -0
- package/README.md +545 -0
- package/dist/ai/ai.d.ts +205 -0
- package/dist/ai/ai.js +1200 -0
- package/dist/ai/cloud-intent-engine.d.ts +270 -0
- package/dist/ai/cloud-intent-engine.js +956 -0
- package/dist/ai/command.d.ts +59 -0
- package/dist/ai/command.js +285 -0
- package/dist/ai/config.d.ts +66 -0
- package/dist/ai/config.js +211 -0
- package/dist/ai/enhanced-intent.d.ts +17 -0
- package/dist/ai/enhanced-intent.js +32 -0
- package/dist/ai/index.d.ts +29 -0
- package/dist/ai/index.js +44 -0
- package/dist/ai/intent.d.ts +16 -0
- package/dist/ai/intent.js +30 -0
- package/dist/core/ai-config.d.ts +25 -0
- package/dist/core/ai-config.js +326 -0
- package/dist/core/config-manager.d.ts +36 -0
- package/dist/core/config-manager.js +400 -0
- package/dist/core/config-validator.d.ts +9 -0
- package/dist/core/config-validator.js +184 -0
- package/dist/core/constants.d.ts +34 -0
- package/dist/core/constants.js +37 -0
- package/dist/core/error-ai.d.ts +23 -0
- package/dist/core/error-ai.js +217 -0
- package/dist/core/error-handler.d.ts +197 -0
- package/dist/core/error-handler.js +467 -0
- package/dist/core/index.d.ts +13 -0
- package/dist/core/index.js +17 -0
- package/dist/core/logger.d.ts +27 -0
- package/dist/core/logger.js +108 -0
- package/dist/core/performance-monitor.d.ts +74 -0
- package/dist/core/performance-monitor.js +260 -0
- package/dist/core/providers.d.ts +36 -0
- package/dist/core/providers.js +304 -0
- package/dist/core/retry-manager.d.ts +41 -0
- package/dist/core/retry-manager.js +204 -0
- package/dist/core/types.d.ts +155 -0
- package/dist/core/types.js +2 -0
- package/dist/daemon/index.d.ts +10 -0
- package/dist/daemon/index.js +15 -0
- package/dist/daemon/intent-engine.d.ts +22 -0
- package/dist/daemon/intent-engine.js +50 -0
- package/dist/daemon/orchestrator.d.ts +24 -0
- package/dist/daemon/orchestrator.js +100 -0
- package/dist/daemon/pm.d.ts +33 -0
- package/dist/daemon/pm.js +127 -0
- package/dist/daemon/process.d.ts +11 -0
- package/dist/daemon/process.js +49 -0
- package/dist/daemon/server.d.ts +17 -0
- package/dist/daemon/server.js +435 -0
- package/dist/daemon/service.d.ts +36 -0
- package/dist/daemon/service.js +278 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +36 -0
- package/dist/mcp/client.d.ts +51 -0
- package/dist/mcp/client.js +276 -0
- package/dist/mcp/index.d.ts +162 -0
- package/dist/mcp/index.js +199 -0
- package/dist/mcp/tool-registry.d.ts +71 -0
- package/dist/mcp/tool-registry.js +308 -0
- package/dist/mcp/transport.d.ts +83 -0
- package/dist/mcp/transport.js +515 -0
- package/dist/mcp/types.d.ts +136 -0
- package/dist/mcp/types.js +31 -0
- package/dist/runtime/adapter-advanced.d.ts +184 -0
- package/dist/runtime/adapter-advanced.js +160 -0
- package/dist/runtime/adapter.d.ts +9 -0
- package/dist/runtime/adapter.js +2 -0
- package/dist/runtime/detector-advanced.d.ts +59 -0
- package/dist/runtime/detector-advanced.js +487 -0
- package/dist/runtime/detector.d.ts +5 -0
- package/dist/runtime/detector.js +56 -0
- package/dist/runtime/docker-adapter.d.ts +18 -0
- package/dist/runtime/docker-adapter.js +170 -0
- package/dist/runtime/docker.d.ts +17 -0
- package/dist/runtime/docker.js +71 -0
- package/dist/runtime/executable-analyzer.d.ts +56 -0
- package/dist/runtime/executable-analyzer.js +391 -0
- package/dist/runtime/go-adapter.d.ts +19 -0
- package/dist/runtime/go-adapter.js +190 -0
- package/dist/runtime/index.d.ts +9 -0
- package/dist/runtime/index.js +10 -0
- package/dist/runtime/node-adapter.d.ts +10 -0
- package/dist/runtime/node-adapter.js +23 -0
- package/dist/runtime/node.d.ts +20 -0
- package/dist/runtime/node.js +86 -0
- package/dist/runtime/python-adapter.d.ts +11 -0
- package/dist/runtime/python-adapter.js +102 -0
- package/dist/runtime/python.d.ts +17 -0
- package/dist/runtime/python.js +72 -0
- package/dist/runtime/rust-adapter.d.ts +21 -0
- package/dist/runtime/rust-adapter.js +267 -0
- package/dist/sdk.d.ts +500 -0
- package/dist/sdk.js +904 -0
- package/docs/README.ZH_CN.md +545 -0
- package/docs/api.md +888 -0
- package/docs/architecture.md +731 -0
- package/docs/development.md +744 -0
- package/package.json +112 -0
package/dist/sdk.d.ts
ADDED
|
@@ -0,0 +1,500 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IntentOrch SDK - Minimalist Core Class
|
|
3
|
+
* Designed for developers, pursuing minimalist style
|
|
4
|
+
* Formerly known as MCPilot SDK
|
|
5
|
+
*/
|
|
6
|
+
import { ServiceConfig, Config } from './core/types';
|
|
7
|
+
import { type CloudIntentEngineConfig } from './ai/cloud-intent-engine';
|
|
8
|
+
import { MCPClient } from './mcp';
|
|
9
|
+
import type { ToolResult, MCPClientConfig } from './mcp/types';
|
|
10
|
+
export interface SDKOptions {
|
|
11
|
+
configPath?: string;
|
|
12
|
+
autoInit?: boolean;
|
|
13
|
+
logger?: {
|
|
14
|
+
info: (message: string) => void;
|
|
15
|
+
error: (message: string) => void;
|
|
16
|
+
debug: (message: string) => void;
|
|
17
|
+
};
|
|
18
|
+
mcp?: {
|
|
19
|
+
autoDiscover?: boolean;
|
|
20
|
+
servers?: MCPClientConfig[];
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export interface MCPConnectionConfig {
|
|
24
|
+
servers: Array<{
|
|
25
|
+
name?: string;
|
|
26
|
+
transport: {
|
|
27
|
+
type: 'stdio' | 'http' | 'sse';
|
|
28
|
+
command?: string;
|
|
29
|
+
args?: string[];
|
|
30
|
+
url?: string;
|
|
31
|
+
};
|
|
32
|
+
}>;
|
|
33
|
+
}
|
|
34
|
+
export interface ServiceStatus {
|
|
35
|
+
name: string;
|
|
36
|
+
status: 'running' | 'stopped' | 'error' | 'unknown';
|
|
37
|
+
pid?: number;
|
|
38
|
+
uptime?: number;
|
|
39
|
+
memory?: number;
|
|
40
|
+
cpu?: number;
|
|
41
|
+
}
|
|
42
|
+
export interface AskOptions {
|
|
43
|
+
provider?: string;
|
|
44
|
+
model?: string;
|
|
45
|
+
temperature?: number;
|
|
46
|
+
maxTokens?: number;
|
|
47
|
+
}
|
|
48
|
+
export interface AskResult {
|
|
49
|
+
answer: string;
|
|
50
|
+
toolCalls?: Array<{
|
|
51
|
+
service: string;
|
|
52
|
+
tool: string;
|
|
53
|
+
params: Record<string, any>;
|
|
54
|
+
}>;
|
|
55
|
+
confidence: number;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* IntentOrch SDK Core Class
|
|
59
|
+
* Provides unified API interface, designed for developers
|
|
60
|
+
*/
|
|
61
|
+
export declare class IntentOrchSDK {
|
|
62
|
+
private configManager;
|
|
63
|
+
private initialized;
|
|
64
|
+
private logger;
|
|
65
|
+
private ai;
|
|
66
|
+
private cloudIntentEngine?;
|
|
67
|
+
private mcpClients;
|
|
68
|
+
private toolRegistry;
|
|
69
|
+
private mcpOptions;
|
|
70
|
+
constructor(options?: SDKOptions);
|
|
71
|
+
/**
|
|
72
|
+
* Initialize SDK
|
|
73
|
+
*/
|
|
74
|
+
init(): void;
|
|
75
|
+
/**
|
|
76
|
+
* Add service
|
|
77
|
+
*/
|
|
78
|
+
addService(config: ServiceConfig): Promise<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Start service
|
|
81
|
+
*/
|
|
82
|
+
startService(name: string): Promise<void>;
|
|
83
|
+
/**
|
|
84
|
+
* Stop service
|
|
85
|
+
*/
|
|
86
|
+
stopService(name: string): Promise<void>;
|
|
87
|
+
/**
|
|
88
|
+
* List all services
|
|
89
|
+
*/
|
|
90
|
+
listServices(): string[];
|
|
91
|
+
/**
|
|
92
|
+
* Get service status
|
|
93
|
+
*/
|
|
94
|
+
getServiceStatus(name: string): Promise<ServiceStatus>;
|
|
95
|
+
/**
|
|
96
|
+
* Get configuration
|
|
97
|
+
*/
|
|
98
|
+
getConfig(): Config;
|
|
99
|
+
/**
|
|
100
|
+
* Update configuration
|
|
101
|
+
*/
|
|
102
|
+
updateConfig(updates: Partial<Config>): Promise<void>;
|
|
103
|
+
/**
|
|
104
|
+
* AI Q&A functionality (optional)
|
|
105
|
+
*/
|
|
106
|
+
ask(query: string, options?: AskOptions): Promise<AskResult>;
|
|
107
|
+
/**
|
|
108
|
+
* Configure AI
|
|
109
|
+
*/
|
|
110
|
+
configureAI(config: Partial<Config['ai']>): Promise<void>;
|
|
111
|
+
/**
|
|
112
|
+
* Get AI status
|
|
113
|
+
*/
|
|
114
|
+
getAIStatus(): {
|
|
115
|
+
enabled: boolean;
|
|
116
|
+
provider: string;
|
|
117
|
+
configured: boolean;
|
|
118
|
+
model?: string;
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* Test AI connection
|
|
122
|
+
*/
|
|
123
|
+
testAIConnection(): Promise<{
|
|
124
|
+
success: boolean;
|
|
125
|
+
message: string;
|
|
126
|
+
}>;
|
|
127
|
+
/**
|
|
128
|
+
* Register runtime adapter factories
|
|
129
|
+
*/
|
|
130
|
+
private registerRuntimeAdapters;
|
|
131
|
+
/**
|
|
132
|
+
* Ensure SDK is initialized
|
|
133
|
+
*/
|
|
134
|
+
private ensureInitialized;
|
|
135
|
+
/**
|
|
136
|
+
* Initialize MCP functionality
|
|
137
|
+
*/
|
|
138
|
+
initMCP(): Promise<void>;
|
|
139
|
+
/**
|
|
140
|
+
* Discover MCP servers
|
|
141
|
+
*/
|
|
142
|
+
discoverMCPServers(): Promise<Array<{
|
|
143
|
+
name: string;
|
|
144
|
+
transport: any;
|
|
145
|
+
}>>;
|
|
146
|
+
/**
|
|
147
|
+
* Connect MCP server
|
|
148
|
+
*/
|
|
149
|
+
connectMCPServer(config: MCPClientConfig, name?: string): Promise<MCPClient>;
|
|
150
|
+
/**
|
|
151
|
+
* Disconnect MCP server
|
|
152
|
+
*/
|
|
153
|
+
disconnectMCPServer(name: string): Promise<void>;
|
|
154
|
+
/**
|
|
155
|
+
* Connect multiple MCP servers from configuration
|
|
156
|
+
*/
|
|
157
|
+
connectAllFromConfig(config: MCPConnectionConfig): Promise<Array<{
|
|
158
|
+
name: string;
|
|
159
|
+
success: boolean;
|
|
160
|
+
toolsCount?: number;
|
|
161
|
+
error?: string;
|
|
162
|
+
}>>;
|
|
163
|
+
/**
|
|
164
|
+
* Disconnect all MCP servers
|
|
165
|
+
*/
|
|
166
|
+
disconnectAll(): Promise<Array<{
|
|
167
|
+
name: string;
|
|
168
|
+
success: boolean;
|
|
169
|
+
error?: string;
|
|
170
|
+
}>>;
|
|
171
|
+
/**
|
|
172
|
+
* List all MCP servers
|
|
173
|
+
*/
|
|
174
|
+
listMCPServers(): string[];
|
|
175
|
+
/**
|
|
176
|
+
* Get MCP server status
|
|
177
|
+
*/
|
|
178
|
+
getMCPServerStatus(name: string): {
|
|
179
|
+
connected: boolean;
|
|
180
|
+
toolsCount: number;
|
|
181
|
+
} | undefined;
|
|
182
|
+
/**
|
|
183
|
+
* List all available tools
|
|
184
|
+
*/
|
|
185
|
+
listTools(): Array<{
|
|
186
|
+
name: string;
|
|
187
|
+
description: string;
|
|
188
|
+
serverName?: string;
|
|
189
|
+
}>;
|
|
190
|
+
/**
|
|
191
|
+
* Execute tool
|
|
192
|
+
*/
|
|
193
|
+
executeTool(toolName: string, args: Record<string, any>): Promise<ToolResult>;
|
|
194
|
+
/**
|
|
195
|
+
* Search tools
|
|
196
|
+
*/
|
|
197
|
+
searchTools(query: string): Array<{
|
|
198
|
+
name: string;
|
|
199
|
+
description: string;
|
|
200
|
+
serverName?: string;
|
|
201
|
+
}>;
|
|
202
|
+
/**
|
|
203
|
+
* Register MCP server tools
|
|
204
|
+
*/
|
|
205
|
+
private registerMCPServerTools;
|
|
206
|
+
/**
|
|
207
|
+
* Remove MCP server tools
|
|
208
|
+
*/
|
|
209
|
+
private removeMCPServerTools;
|
|
210
|
+
/**
|
|
211
|
+
* Get tool statistics
|
|
212
|
+
*/
|
|
213
|
+
getToolStatistics(): any;
|
|
214
|
+
/**
|
|
215
|
+
* Initialize Cloud Intent Engine
|
|
216
|
+
*/
|
|
217
|
+
initCloudIntentEngine(config?: CloudIntentEngineConfig): Promise<void>;
|
|
218
|
+
/**
|
|
219
|
+
* Create Cloud Intent Engine config from SDK config
|
|
220
|
+
*/
|
|
221
|
+
private createCloudIntentEngineConfig;
|
|
222
|
+
/**
|
|
223
|
+
* Process natural language workflow
|
|
224
|
+
*/
|
|
225
|
+
processWorkflow(query: string): Promise<{
|
|
226
|
+
success: boolean;
|
|
227
|
+
result?: any;
|
|
228
|
+
steps?: Array<{
|
|
229
|
+
intentId: string;
|
|
230
|
+
toolName: string;
|
|
231
|
+
success: boolean;
|
|
232
|
+
result?: any;
|
|
233
|
+
error?: string;
|
|
234
|
+
}>;
|
|
235
|
+
error?: string;
|
|
236
|
+
}>;
|
|
237
|
+
/**
|
|
238
|
+
* Parse and plan workflow (without execution)
|
|
239
|
+
* Returns detailed plan with intents, tool selections, and dependencies
|
|
240
|
+
*/
|
|
241
|
+
parseAndPlanWorkflow(query: string): Promise<{
|
|
242
|
+
success: boolean;
|
|
243
|
+
plan?: {
|
|
244
|
+
query: string;
|
|
245
|
+
parsedIntents: Array<{
|
|
246
|
+
id: string;
|
|
247
|
+
type: string;
|
|
248
|
+
description: string;
|
|
249
|
+
parameters: Record<string, any>;
|
|
250
|
+
}>;
|
|
251
|
+
dependencies: Array<{
|
|
252
|
+
from: string;
|
|
253
|
+
to: string;
|
|
254
|
+
}>;
|
|
255
|
+
toolSelections: Array<{
|
|
256
|
+
intentId: string;
|
|
257
|
+
toolName: string;
|
|
258
|
+
toolDescription: string;
|
|
259
|
+
mappedParameters: Record<string, any>;
|
|
260
|
+
confidence: number;
|
|
261
|
+
}>;
|
|
262
|
+
executionOrder: string[];
|
|
263
|
+
estimatedSteps: number;
|
|
264
|
+
createdAt: Date;
|
|
265
|
+
};
|
|
266
|
+
error?: string;
|
|
267
|
+
}>;
|
|
268
|
+
/**
|
|
269
|
+
* Execute workflow with enhanced tracking and detailed reporting
|
|
270
|
+
*/
|
|
271
|
+
executeWorkflowWithTracking(query: string, callbacks?: {
|
|
272
|
+
onStepStarted?: (step: {
|
|
273
|
+
intentId: string;
|
|
274
|
+
toolName: string;
|
|
275
|
+
intentDescription: string;
|
|
276
|
+
}) => void;
|
|
277
|
+
onStepCompleted?: (step: {
|
|
278
|
+
intentId: string;
|
|
279
|
+
intentDescription: string;
|
|
280
|
+
intentType: string;
|
|
281
|
+
intentParameters: Record<string, any>;
|
|
282
|
+
toolName: string;
|
|
283
|
+
toolDescription: string;
|
|
284
|
+
mappedParameters: Record<string, any>;
|
|
285
|
+
confidence: number;
|
|
286
|
+
success: boolean;
|
|
287
|
+
result?: any;
|
|
288
|
+
error?: string;
|
|
289
|
+
duration?: number;
|
|
290
|
+
startedAt?: Date;
|
|
291
|
+
completedAt?: Date;
|
|
292
|
+
}) => void;
|
|
293
|
+
onStepFailed?: (step: {
|
|
294
|
+
intentId: string;
|
|
295
|
+
intentDescription: string;
|
|
296
|
+
intentType: string;
|
|
297
|
+
intentParameters: Record<string, any>;
|
|
298
|
+
toolName: string;
|
|
299
|
+
toolDescription: string;
|
|
300
|
+
mappedParameters: Record<string, any>;
|
|
301
|
+
confidence: number;
|
|
302
|
+
success: boolean;
|
|
303
|
+
error?: string;
|
|
304
|
+
duration?: number;
|
|
305
|
+
startedAt?: Date;
|
|
306
|
+
completedAt?: Date;
|
|
307
|
+
}) => void;
|
|
308
|
+
}): Promise<{
|
|
309
|
+
success: boolean;
|
|
310
|
+
result?: any;
|
|
311
|
+
parsedIntents?: Array<{
|
|
312
|
+
id: string;
|
|
313
|
+
type: string;
|
|
314
|
+
description: string;
|
|
315
|
+
parameters: Record<string, any>;
|
|
316
|
+
}>;
|
|
317
|
+
dependencies?: Array<{
|
|
318
|
+
from: string;
|
|
319
|
+
to: string;
|
|
320
|
+
}>;
|
|
321
|
+
toolSelections?: Array<{
|
|
322
|
+
intentId: string;
|
|
323
|
+
toolName: string;
|
|
324
|
+
toolDescription: string;
|
|
325
|
+
mappedParameters: Record<string, any>;
|
|
326
|
+
confidence: number;
|
|
327
|
+
}>;
|
|
328
|
+
executionSteps?: Array<{
|
|
329
|
+
intentId: string;
|
|
330
|
+
intentDescription: string;
|
|
331
|
+
intentType: string;
|
|
332
|
+
intentParameters: Record<string, any>;
|
|
333
|
+
toolName: string;
|
|
334
|
+
toolDescription: string;
|
|
335
|
+
mappedParameters: Record<string, any>;
|
|
336
|
+
confidence: number;
|
|
337
|
+
success: boolean;
|
|
338
|
+
result?: any;
|
|
339
|
+
error?: string;
|
|
340
|
+
duration?: number;
|
|
341
|
+
startedAt?: Date;
|
|
342
|
+
completedAt?: Date;
|
|
343
|
+
}>;
|
|
344
|
+
statistics?: {
|
|
345
|
+
totalSteps: number;
|
|
346
|
+
successfulSteps: number;
|
|
347
|
+
failedSteps: number;
|
|
348
|
+
totalDuration: number;
|
|
349
|
+
averageStepDuration: number;
|
|
350
|
+
llmCalls: number;
|
|
351
|
+
};
|
|
352
|
+
error?: string;
|
|
353
|
+
}>;
|
|
354
|
+
/**
|
|
355
|
+
* Preview workflow plan (parse and select tools only)
|
|
356
|
+
*/
|
|
357
|
+
previewWorkflowPlan(query: string): Promise<{
|
|
358
|
+
success: boolean;
|
|
359
|
+
plan?: {
|
|
360
|
+
query: string;
|
|
361
|
+
parsedIntents: Array<{
|
|
362
|
+
id: string;
|
|
363
|
+
type: string;
|
|
364
|
+
description: string;
|
|
365
|
+
parameters: Record<string, any>;
|
|
366
|
+
}>;
|
|
367
|
+
dependencies: Array<{
|
|
368
|
+
from: string;
|
|
369
|
+
to: string;
|
|
370
|
+
}>;
|
|
371
|
+
toolSelections: Array<{
|
|
372
|
+
intentId: string;
|
|
373
|
+
toolName: string;
|
|
374
|
+
toolDescription: string;
|
|
375
|
+
mappedParameters: Record<string, any>;
|
|
376
|
+
confidence: number;
|
|
377
|
+
}>;
|
|
378
|
+
executionOrder: string[];
|
|
379
|
+
estimatedSteps: number;
|
|
380
|
+
createdAt: Date;
|
|
381
|
+
};
|
|
382
|
+
error?: string;
|
|
383
|
+
}>;
|
|
384
|
+
/**
|
|
385
|
+
* Confirm and execute a workflow plan
|
|
386
|
+
*/
|
|
387
|
+
confirmAndExecuteWorkflow(plan: {
|
|
388
|
+
query: string;
|
|
389
|
+
parsedIntents: Array<{
|
|
390
|
+
id: string;
|
|
391
|
+
type: string;
|
|
392
|
+
description: string;
|
|
393
|
+
parameters: Record<string, any>;
|
|
394
|
+
}>;
|
|
395
|
+
dependencies: Array<{
|
|
396
|
+
from: string;
|
|
397
|
+
to: string;
|
|
398
|
+
}>;
|
|
399
|
+
toolSelections: Array<{
|
|
400
|
+
intentId: string;
|
|
401
|
+
toolName: string;
|
|
402
|
+
toolDescription: string;
|
|
403
|
+
mappedParameters: Record<string, any>;
|
|
404
|
+
confidence: number;
|
|
405
|
+
}>;
|
|
406
|
+
executionOrder: string[];
|
|
407
|
+
estimatedSteps: number;
|
|
408
|
+
createdAt: Date;
|
|
409
|
+
}, callbacks?: {
|
|
410
|
+
onStepStarted?: (step: {
|
|
411
|
+
intentId: string;
|
|
412
|
+
toolName: string;
|
|
413
|
+
intentDescription: string;
|
|
414
|
+
}) => void;
|
|
415
|
+
onStepCompleted?: (step: {
|
|
416
|
+
intentId: string;
|
|
417
|
+
intentDescription: string;
|
|
418
|
+
intentType: string;
|
|
419
|
+
intentParameters: Record<string, any>;
|
|
420
|
+
toolName: string;
|
|
421
|
+
toolDescription: string;
|
|
422
|
+
mappedParameters: Record<string, any>;
|
|
423
|
+
confidence: number;
|
|
424
|
+
success: boolean;
|
|
425
|
+
result?: any;
|
|
426
|
+
error?: string;
|
|
427
|
+
duration?: number;
|
|
428
|
+
startedAt?: Date;
|
|
429
|
+
completedAt?: Date;
|
|
430
|
+
}) => void;
|
|
431
|
+
onStepFailed?: (step: {
|
|
432
|
+
intentId: string;
|
|
433
|
+
intentDescription: string;
|
|
434
|
+
intentType: string;
|
|
435
|
+
intentParameters: Record<string, any>;
|
|
436
|
+
toolName: string;
|
|
437
|
+
toolDescription: string;
|
|
438
|
+
mappedParameters: Record<string, any>;
|
|
439
|
+
confidence: number;
|
|
440
|
+
success: boolean;
|
|
441
|
+
error?: string;
|
|
442
|
+
duration?: number;
|
|
443
|
+
startedAt?: Date;
|
|
444
|
+
completedAt?: Date;
|
|
445
|
+
}) => void;
|
|
446
|
+
}): Promise<{
|
|
447
|
+
success: boolean;
|
|
448
|
+
result?: any;
|
|
449
|
+
executionSteps?: Array<{
|
|
450
|
+
intentId: string;
|
|
451
|
+
intentDescription: string;
|
|
452
|
+
intentType: string;
|
|
453
|
+
intentParameters: Record<string, any>;
|
|
454
|
+
toolName: string;
|
|
455
|
+
toolDescription: string;
|
|
456
|
+
mappedParameters: Record<string, any>;
|
|
457
|
+
confidence: number;
|
|
458
|
+
success: boolean;
|
|
459
|
+
result?: any;
|
|
460
|
+
error?: string;
|
|
461
|
+
duration?: number;
|
|
462
|
+
startedAt?: Date;
|
|
463
|
+
completedAt?: Date;
|
|
464
|
+
}>;
|
|
465
|
+
statistics?: {
|
|
466
|
+
totalSteps: number;
|
|
467
|
+
successfulSteps: number;
|
|
468
|
+
failedSteps: number;
|
|
469
|
+
totalDuration: number;
|
|
470
|
+
averageStepDuration: number;
|
|
471
|
+
llmCalls: number;
|
|
472
|
+
};
|
|
473
|
+
error?: string;
|
|
474
|
+
}>;
|
|
475
|
+
/**
|
|
476
|
+
* Get Cloud Intent Engine status
|
|
477
|
+
*/
|
|
478
|
+
getCloudIntentEngineStatus(): {
|
|
479
|
+
initialized: boolean;
|
|
480
|
+
toolsCount: number;
|
|
481
|
+
llmProvider: string;
|
|
482
|
+
llmConfigured: boolean;
|
|
483
|
+
};
|
|
484
|
+
/**
|
|
485
|
+
* Update available tools for Cloud Intent Engine
|
|
486
|
+
*/
|
|
487
|
+
updateCloudIntentEngineTools(): void;
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* MCPilot SDK Core Class (for backward compatibility)
|
|
491
|
+
* Provides unified API interface, designed for developers
|
|
492
|
+
* @deprecated Use IntentOrchSDK instead. This class is kept for backward compatibility.
|
|
493
|
+
*/
|
|
494
|
+
export declare class MCPilotSDK extends IntentOrchSDK {
|
|
495
|
+
constructor(options?: SDKOptions);
|
|
496
|
+
}
|
|
497
|
+
export declare const mcpilot: MCPilotSDK;
|
|
498
|
+
export declare const intentorch: MCPilotSDK;
|
|
499
|
+
export type { ServiceConfig, RuntimeType, Config } from './core/types';
|
|
500
|
+
//# sourceMappingURL=sdk.d.ts.map
|