@mcpmesh/sdk 0.8.0-beta.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 (145) hide show
  1. package/dist/__tests__/claude-handler.test.d.ts +7 -0
  2. package/dist/__tests__/claude-handler.test.d.ts.map +1 -0
  3. package/dist/__tests__/claude-handler.test.js +455 -0
  4. package/dist/__tests__/claude-handler.test.js.map +1 -0
  5. package/dist/__tests__/config.test.d.ts +7 -0
  6. package/dist/__tests__/config.test.d.ts.map +1 -0
  7. package/dist/__tests__/config.test.js +156 -0
  8. package/dist/__tests__/config.test.js.map +1 -0
  9. package/dist/__tests__/errors.test.d.ts +7 -0
  10. package/dist/__tests__/errors.test.d.ts.map +1 -0
  11. package/dist/__tests__/errors.test.js +170 -0
  12. package/dist/__tests__/errors.test.js.map +1 -0
  13. package/dist/__tests__/generic-handler.test.d.ts +7 -0
  14. package/dist/__tests__/generic-handler.test.d.ts.map +1 -0
  15. package/dist/__tests__/generic-handler.test.js +243 -0
  16. package/dist/__tests__/generic-handler.test.js.map +1 -0
  17. package/dist/__tests__/llm-provider.test.d.ts +7 -0
  18. package/dist/__tests__/llm-provider.test.d.ts.map +1 -0
  19. package/dist/__tests__/llm-provider.test.js +217 -0
  20. package/dist/__tests__/llm-provider.test.js.map +1 -0
  21. package/dist/__tests__/openai-handler.test.d.ts +7 -0
  22. package/dist/__tests__/openai-handler.test.d.ts.map +1 -0
  23. package/dist/__tests__/openai-handler.test.js +359 -0
  24. package/dist/__tests__/openai-handler.test.js.map +1 -0
  25. package/dist/__tests__/provider-handler-registry.test.d.ts +9 -0
  26. package/dist/__tests__/provider-handler-registry.test.d.ts.map +1 -0
  27. package/dist/__tests__/provider-handler-registry.test.js +187 -0
  28. package/dist/__tests__/provider-handler-registry.test.js.map +1 -0
  29. package/dist/__tests__/response-parser.test.d.ts +7 -0
  30. package/dist/__tests__/response-parser.test.d.ts.map +1 -0
  31. package/dist/__tests__/response-parser.test.js +360 -0
  32. package/dist/__tests__/response-parser.test.js.map +1 -0
  33. package/dist/__tests__/route.test.d.ts +7 -0
  34. package/dist/__tests__/route.test.d.ts.map +1 -0
  35. package/dist/__tests__/route.test.js +281 -0
  36. package/dist/__tests__/route.test.js.map +1 -0
  37. package/dist/__tests__/sse.test.d.ts +7 -0
  38. package/dist/__tests__/sse.test.d.ts.map +1 -0
  39. package/dist/__tests__/sse.test.js +172 -0
  40. package/dist/__tests__/sse.test.js.map +1 -0
  41. package/dist/__tests__/template.test.d.ts +7 -0
  42. package/dist/__tests__/template.test.d.ts.map +1 -0
  43. package/dist/__tests__/template.test.js +176 -0
  44. package/dist/__tests__/template.test.js.map +1 -0
  45. package/dist/__tests__/tracing.test.d.ts +7 -0
  46. package/dist/__tests__/tracing.test.d.ts.map +1 -0
  47. package/dist/__tests__/tracing.test.js +264 -0
  48. package/dist/__tests__/tracing.test.js.map +1 -0
  49. package/dist/agent.d.ts +165 -0
  50. package/dist/agent.d.ts.map +1 -0
  51. package/dist/agent.js +626 -0
  52. package/dist/agent.js.map +1 -0
  53. package/dist/api-runtime.d.ts +166 -0
  54. package/dist/api-runtime.d.ts.map +1 -0
  55. package/dist/api-runtime.js +459 -0
  56. package/dist/api-runtime.js.map +1 -0
  57. package/dist/config.d.ts +31 -0
  58. package/dist/config.d.ts.map +1 -0
  59. package/dist/config.js +60 -0
  60. package/dist/config.js.map +1 -0
  61. package/dist/debug.d.ts +47 -0
  62. package/dist/debug.d.ts.map +1 -0
  63. package/dist/debug.js +86 -0
  64. package/dist/debug.js.map +1 -0
  65. package/dist/errors.d.ts +99 -0
  66. package/dist/errors.d.ts.map +1 -0
  67. package/dist/errors.js +110 -0
  68. package/dist/errors.js.map +1 -0
  69. package/dist/express.d.ts +146 -0
  70. package/dist/express.d.ts.map +1 -0
  71. package/dist/express.js +371 -0
  72. package/dist/express.js.map +1 -0
  73. package/dist/index.d.ts +96 -0
  74. package/dist/index.d.ts.map +1 -0
  75. package/dist/index.js +107 -0
  76. package/dist/index.js.map +1 -0
  77. package/dist/llm-agent.d.ts +193 -0
  78. package/dist/llm-agent.d.ts.map +1 -0
  79. package/dist/llm-agent.js +634 -0
  80. package/dist/llm-agent.js.map +1 -0
  81. package/dist/llm-provider.d.ts +323 -0
  82. package/dist/llm-provider.d.ts.map +1 -0
  83. package/dist/llm-provider.js +446 -0
  84. package/dist/llm-provider.js.map +1 -0
  85. package/dist/llm.d.ts +194 -0
  86. package/dist/llm.d.ts.map +1 -0
  87. package/dist/llm.js +304 -0
  88. package/dist/llm.js.map +1 -0
  89. package/dist/provider-handlers/claude-handler.d.ts +98 -0
  90. package/dist/provider-handlers/claude-handler.d.ts.map +1 -0
  91. package/dist/provider-handlers/claude-handler.js +268 -0
  92. package/dist/provider-handlers/claude-handler.js.map +1 -0
  93. package/dist/provider-handlers/gemini-handler.d.ts +82 -0
  94. package/dist/provider-handlers/gemini-handler.d.ts.map +1 -0
  95. package/dist/provider-handlers/gemini-handler.js +152 -0
  96. package/dist/provider-handlers/gemini-handler.js.map +1 -0
  97. package/dist/provider-handlers/generic-handler.d.ts +78 -0
  98. package/dist/provider-handlers/generic-handler.d.ts.map +1 -0
  99. package/dist/provider-handlers/generic-handler.js +152 -0
  100. package/dist/provider-handlers/generic-handler.js.map +1 -0
  101. package/dist/provider-handlers/index.d.ts +29 -0
  102. package/dist/provider-handlers/index.d.ts.map +1 -0
  103. package/dist/provider-handlers/index.js +32 -0
  104. package/dist/provider-handlers/index.js.map +1 -0
  105. package/dist/provider-handlers/openai-handler.d.ts +86 -0
  106. package/dist/provider-handlers/openai-handler.d.ts.map +1 -0
  107. package/dist/provider-handlers/openai-handler.js +160 -0
  108. package/dist/provider-handlers/openai-handler.js.map +1 -0
  109. package/dist/provider-handlers/provider-handler-registry.d.ts +124 -0
  110. package/dist/provider-handlers/provider-handler-registry.d.ts.map +1 -0
  111. package/dist/provider-handlers/provider-handler-registry.js +180 -0
  112. package/dist/provider-handlers/provider-handler-registry.js.map +1 -0
  113. package/dist/provider-handlers/provider-handler.d.ts +245 -0
  114. package/dist/provider-handlers/provider-handler.d.ts.map +1 -0
  115. package/dist/provider-handlers/provider-handler.js +238 -0
  116. package/dist/provider-handlers/provider-handler.js.map +1 -0
  117. package/dist/proxy.d.ts +44 -0
  118. package/dist/proxy.d.ts.map +1 -0
  119. package/dist/proxy.js +324 -0
  120. package/dist/proxy.js.map +1 -0
  121. package/dist/response-parser.d.ts +103 -0
  122. package/dist/response-parser.d.ts.map +1 -0
  123. package/dist/response-parser.js +232 -0
  124. package/dist/response-parser.js.map +1 -0
  125. package/dist/route.d.ts +185 -0
  126. package/dist/route.d.ts.map +1 -0
  127. package/dist/route.js +310 -0
  128. package/dist/route.js.map +1 -0
  129. package/dist/sse.d.ts +45 -0
  130. package/dist/sse.d.ts.map +1 -0
  131. package/dist/sse.js +77 -0
  132. package/dist/sse.js.map +1 -0
  133. package/dist/template.d.ts +86 -0
  134. package/dist/template.d.ts.map +1 -0
  135. package/dist/template.js +206 -0
  136. package/dist/template.js.map +1 -0
  137. package/dist/tracing.d.ts +88 -0
  138. package/dist/tracing.d.ts.map +1 -0
  139. package/dist/tracing.js +193 -0
  140. package/dist/tracing.js.map +1 -0
  141. package/dist/types.d.ts +618 -0
  142. package/dist/types.d.ts.map +1 -0
  143. package/dist/types.js +5 -0
  144. package/dist/types.js.map +1 -0
  145. package/package.json +68 -0
@@ -0,0 +1,618 @@
1
+ /**
2
+ * Type definitions for @mcpmesh/sdk
3
+ */
4
+ import type { z } from "zod";
5
+ export type { JsAgentHandle, JsMeshEvent, JsAgentSpec, JsToolSpec, JsDependencySpec, JsLlmAgentSpec, JsLlmToolInfo, JsLlmProviderInfo, } from "@mcpmesh/core";
6
+ /**
7
+ * Dependency specification for mesh tool DI.
8
+ *
9
+ * Can be specified as a simple string (capability name) or
10
+ * a full object with tags and version filters.
11
+ *
12
+ * @example
13
+ * ```typescript
14
+ * // Simple: just capability name
15
+ * dependencies: ["date-service"]
16
+ *
17
+ * // With filters
18
+ * dependencies: [
19
+ * { capability: "data-service", tags: ["+fast"] },
20
+ * { capability: "formatter", version: ">=2.0.0" }
21
+ * ]
22
+ * ```
23
+ */
24
+ export type DependencySpec = string | {
25
+ /** Capability name to depend on */
26
+ capability: string;
27
+ /** Tags for filtering (e.g., ["+fast", "-deprecated"]) */
28
+ tags?: string[];
29
+ /** Version constraint (e.g., ">=2.0.0") */
30
+ version?: string;
31
+ };
32
+ /**
33
+ * Normalized dependency specification (after processing).
34
+ */
35
+ export interface NormalizedDependency {
36
+ capability: string;
37
+ tags: string[];
38
+ version?: string;
39
+ }
40
+ /**
41
+ * Resolved dependency info from registry.
42
+ */
43
+ export interface ResolvedDependency {
44
+ /** Capability name */
45
+ capability: string;
46
+ /** Agent ID providing this capability */
47
+ agentId: string;
48
+ /** Endpoint URL (e.g., "http://10.0.0.5:8000") */
49
+ endpoint: string;
50
+ /** Function name to call */
51
+ functionName: string;
52
+ }
53
+ /**
54
+ * Configuration for a MeshAgent.
55
+ *
56
+ * Environment variables take precedence over config values:
57
+ * - MCP_MESH_AGENT_NAME: Override agent name
58
+ * - MCP_MESH_HTTP_HOST: Override host (auto-detected if not set)
59
+ * - MCP_MESH_HTTP_PORT: Override port
60
+ * - MCP_MESH_NAMESPACE: Override namespace
61
+ * - MCP_MESH_REGISTRY_URL: Override registry URL
62
+ * - MCP_MESH_HEALTH_INTERVAL: Override heartbeat interval
63
+ */
64
+ export interface AgentConfig {
65
+ /** Unique agent name/identifier. Env: MCP_MESH_AGENT_NAME */
66
+ name: string;
67
+ /** Agent version (semver). Defaults to "1.0.0" */
68
+ version?: string;
69
+ /** Human-readable description */
70
+ description?: string;
71
+ /** HTTP port for this agent. Env: MCP_MESH_HTTP_PORT */
72
+ port: number;
73
+ /** HTTP host announced to registry. Env: MCP_MESH_HTTP_HOST (auto-detected if not set) */
74
+ host?: string;
75
+ /** Namespace for isolation. Env: MCP_MESH_NAMESPACE. Defaults to "default" */
76
+ namespace?: string;
77
+ /** Registry URL. Env: MCP_MESH_REGISTRY_URL. Defaults to "http://localhost:8000" */
78
+ registryUrl?: string;
79
+ /** Heartbeat interval in seconds. Env: MCP_MESH_HEALTH_INTERVAL. Defaults to 5 */
80
+ heartbeatInterval?: number;
81
+ }
82
+ /**
83
+ * Resolved configuration with all defaults applied.
84
+ */
85
+ export type ResolvedAgentConfig = Required<AgentConfig>;
86
+ /**
87
+ * Proxy configuration for a dependency.
88
+ */
89
+ export interface DependencyKwargs {
90
+ /** Request timeout in seconds. Defaults to 30 */
91
+ timeout?: number;
92
+ /** Total number of attempts (1 = one attempt with zero retries). Defaults to 1 */
93
+ maxAttempts?: number;
94
+ /** Enable streaming responses. Defaults to false */
95
+ streaming?: boolean;
96
+ /** Require session affinity. Defaults to false */
97
+ sessionRequired?: boolean;
98
+ }
99
+ /**
100
+ * Tool definition for MeshAgent.
101
+ */
102
+ export interface MeshToolDef<T extends z.ZodType = z.ZodType> {
103
+ /** Tool name (used in MCP protocol) */
104
+ name: string;
105
+ /** Capability name for mesh discovery. Defaults to tool name */
106
+ capability?: string;
107
+ /** Human-readable description */
108
+ description?: string;
109
+ /** Tags for filtering (e.g., ["tools", "math"]) */
110
+ tags?: string[];
111
+ /** Version of this capability. Defaults to "1.0.0" */
112
+ version?: string;
113
+ /** Zod schema for input parameters */
114
+ parameters: T;
115
+ /**
116
+ * Dependencies required by this tool.
117
+ * Injected positionally as McpMeshAgent params after args.
118
+ *
119
+ * @example
120
+ * ```typescript
121
+ * dependencies: ["time-service", "calculator"],
122
+ * execute: async (
123
+ * { query },
124
+ * timeSvc: McpMeshAgent | null = null, // dependencies[0]
125
+ * calc: McpMeshAgent | null = null // dependencies[1]
126
+ * ) => { ... }
127
+ * ```
128
+ */
129
+ dependencies?: DependencySpec[];
130
+ /**
131
+ * Per-dependency configuration indexed by position.
132
+ * Array index corresponds to dependencies array position.
133
+ * Supports duplicate capabilities with different settings.
134
+ */
135
+ dependencyKwargs?: DependencyKwargs[];
136
+ /**
137
+ * Tool implementation.
138
+ *
139
+ * @param args - Parsed arguments matching the Zod schema
140
+ * @param deps - Dependency proxies injected positionally (McpMeshAgent | null)
141
+ *
142
+ * @example
143
+ * ```typescript
144
+ * execute: async (
145
+ * { query },
146
+ * timeSvc: McpMeshAgent | null = null,
147
+ * calc: McpMeshAgent | null = null
148
+ * ) => {
149
+ * if (timeSvc) {
150
+ * const time = await timeSvc();
151
+ * }
152
+ * return "result";
153
+ * }
154
+ * ```
155
+ */
156
+ execute: (args: z.infer<T>, ...deps: (McpMeshAgent | null)[]) => Promise<string> | string;
157
+ }
158
+ /**
159
+ * Proxy for calling remote MCP agents.
160
+ *
161
+ * Dependencies are injected as McpMeshAgent instances.
162
+ * Always check for null (dependency may be unavailable).
163
+ *
164
+ * @example
165
+ * ```typescript
166
+ * execute: async (
167
+ * { query },
168
+ * dateSvc: McpMeshAgent | null = null
169
+ * ) => {
170
+ * if (!dateSvc) return "Date service unavailable";
171
+ * const date = await dateSvc({ format: "ISO" });
172
+ * return `Today is ${date}`;
173
+ * }
174
+ * ```
175
+ */
176
+ export interface McpMeshAgent {
177
+ /**
178
+ * Call the bound tool with arguments.
179
+ * Returns parsed result (object/array) or raw string if not JSON.
180
+ * Matches Python's behavior - no need to JSON.parse().
181
+ */
182
+ (args?: Record<string, unknown>): Promise<unknown>;
183
+ /**
184
+ * Call a specific tool by name.
185
+ * Returns parsed result (object/array) or raw string if not JSON.
186
+ */
187
+ callTool(toolName: string, args?: Record<string, unknown>): Promise<unknown>;
188
+ /**
189
+ * Get the endpoint URL for this dependency.
190
+ */
191
+ readonly endpoint: string;
192
+ /**
193
+ * Get the capability name.
194
+ */
195
+ readonly capability: string;
196
+ /**
197
+ * Get the function name to call.
198
+ */
199
+ readonly functionName: string;
200
+ /**
201
+ * Check if the proxy is connected/available.
202
+ */
203
+ readonly isAvailable: boolean;
204
+ }
205
+ /**
206
+ * Internal metadata for a registered tool.
207
+ */
208
+ export interface ToolMeta {
209
+ capability: string;
210
+ version: string;
211
+ tags: string[];
212
+ description: string;
213
+ inputSchema?: string;
214
+ /** Normalized dependencies for this tool */
215
+ dependencies: NormalizedDependency[];
216
+ /** Per-dependency configuration indexed by position (matches dependencies array) */
217
+ dependencyKwargs?: DependencyKwargs[];
218
+ }
219
+ /**
220
+ * LLM provider specification.
221
+ * Can be a direct LiteLLM provider string or mesh delegation config.
222
+ *
223
+ * @example
224
+ * ```typescript
225
+ * // Direct LiteLLM provider
226
+ * provider: "claude"
227
+ * provider: "openai"
228
+ *
229
+ * // Mesh delegation (discover LLM provider via mesh)
230
+ * provider: { capability: "llm", tags: ["+claude"] }
231
+ * ```
232
+ */
233
+ export type LlmProviderSpec = string | {
234
+ /** Capability name to discover in mesh */
235
+ capability: string;
236
+ /** Tags for filtering (e.g., ["+claude", "-deprecated"]) */
237
+ tags?: string[];
238
+ };
239
+ /**
240
+ * LLM filter specification for tool access.
241
+ */
242
+ export type LlmFilterSpec = {
243
+ capability: string;
244
+ } | {
245
+ tags: string[];
246
+ };
247
+ /**
248
+ * Filter mode for LLM tool resolution.
249
+ */
250
+ export type LlmFilterMode = "all" | "best_match" | "*";
251
+ /**
252
+ * Metadata attached to LLM responses.
253
+ */
254
+ export interface LlmMeta {
255
+ /** Total input tokens used */
256
+ inputTokens: number;
257
+ /** Total output tokens used */
258
+ outputTokens: number;
259
+ /** Total tokens (input + output) */
260
+ totalTokens: number;
261
+ /** Response latency in milliseconds */
262
+ latencyMs: number;
263
+ /** Number of agentic loop iterations */
264
+ iterations: number;
265
+ /** Tool calls made during the agentic loop */
266
+ toolCalls: LlmToolCall[];
267
+ /** Model used for generation */
268
+ model: string;
269
+ /** Provider used (litellm provider name or mesh agent ID) */
270
+ provider: string;
271
+ }
272
+ /**
273
+ * Tool call record for LLM tracing.
274
+ */
275
+ export interface LlmToolCall {
276
+ /** Tool function name */
277
+ name: string;
278
+ /** Arguments passed to the tool */
279
+ args: Record<string, unknown>;
280
+ /** Result from the tool */
281
+ result: unknown;
282
+ /** Whether the call succeeded */
283
+ success: boolean;
284
+ /** Error message if failed */
285
+ error?: string;
286
+ /** Latency in milliseconds */
287
+ latencyMs: number;
288
+ }
289
+ /**
290
+ * LiteLLM-style message format.
291
+ */
292
+ export interface LlmMessage {
293
+ role: "system" | "user" | "assistant" | "tool";
294
+ content: string | null;
295
+ /** Tool calls requested by the assistant */
296
+ tool_calls?: LlmToolCallRequest[];
297
+ /** Tool call ID (for tool responses) */
298
+ tool_call_id?: string;
299
+ /** Function name (for tool responses) */
300
+ name?: string;
301
+ }
302
+ /**
303
+ * Tool call request from LLM.
304
+ */
305
+ export interface LlmToolCallRequest {
306
+ id: string;
307
+ type: "function";
308
+ function: {
309
+ name: string;
310
+ arguments: string;
311
+ };
312
+ }
313
+ /**
314
+ * Tool definition for LLM function calling.
315
+ */
316
+ export interface LlmToolDefinition {
317
+ type: "function";
318
+ function: {
319
+ name: string;
320
+ description?: string;
321
+ parameters?: Record<string, unknown>;
322
+ };
323
+ }
324
+ /**
325
+ * LLM completion request parameters (LiteLLM-compatible).
326
+ */
327
+ export interface LlmCompletionParams {
328
+ /** Model identifier (e.g., "anthropic/claude-sonnet-4-20250514") */
329
+ model: string;
330
+ /** Messages array */
331
+ messages: LlmMessage[];
332
+ /** Available tools */
333
+ tools?: LlmToolDefinition[];
334
+ /** Tool choice strategy */
335
+ tool_choice?: "auto" | "none" | "required" | {
336
+ type: "function";
337
+ function: {
338
+ name: string;
339
+ };
340
+ };
341
+ /** Maximum tokens to generate */
342
+ max_tokens?: number;
343
+ /** Sampling temperature */
344
+ temperature?: number;
345
+ /** Top-p sampling */
346
+ top_p?: number;
347
+ /** Stop sequences */
348
+ stop?: string[];
349
+ /** Stream responses */
350
+ stream?: boolean;
351
+ }
352
+ /**
353
+ * LLM completion response (LiteLLM-compatible).
354
+ */
355
+ export interface LlmCompletionResponse {
356
+ id: string;
357
+ object: string;
358
+ created: number;
359
+ model: string;
360
+ choices: Array<{
361
+ index: number;
362
+ message: LlmMessage;
363
+ finish_reason: "stop" | "tool_calls" | "length" | "content_filter";
364
+ }>;
365
+ usage?: {
366
+ prompt_tokens: number;
367
+ completion_tokens: number;
368
+ total_tokens: number;
369
+ };
370
+ }
371
+ /**
372
+ * Configuration for mesh.llm() tool definition.
373
+ */
374
+ export interface MeshLlmConfig<TParams extends z.ZodType, TReturns extends z.ZodType | undefined = undefined> {
375
+ /** Tool name (used in MCP protocol) */
376
+ name: string;
377
+ /** Capability name for mesh discovery. Defaults to tool name */
378
+ capability?: string;
379
+ /** Human-readable description */
380
+ description?: string;
381
+ /** Tags for filtering (e.g., ["tools", "llm"]) */
382
+ tags?: string[];
383
+ /** Version of this capability. Defaults to "1.0.0" */
384
+ version?: string;
385
+ /** LLM provider - direct string (LiteLLM) or mesh delegation object */
386
+ provider: LlmProviderSpec;
387
+ /** Model override (e.g., "anthropic/claude-sonnet-4-20250514") */
388
+ model?: string;
389
+ /** Maximum agentic loop iterations. Defaults to 10 */
390
+ maxIterations?: number;
391
+ /** System prompt template (inline or "file://path/to/template.hbs") */
392
+ systemPrompt?: string;
393
+ /** Parameter name to use for template context */
394
+ contextParam?: string;
395
+ /** Filter specification for which mesh tools the LLM can access */
396
+ filter?: LlmFilterSpec[];
397
+ /** Filter mode: "all" (union), "best_match" (single best), "*" (all tools) */
398
+ filterMode?: LlmFilterMode;
399
+ /** Maximum tokens to generate */
400
+ maxOutputTokens?: number;
401
+ /** Sampling temperature */
402
+ temperature?: number;
403
+ /** Top-p sampling */
404
+ topP?: number;
405
+ /** Stop sequences */
406
+ stop?: string[];
407
+ /** Zod schema for input parameters */
408
+ parameters: TParams;
409
+ /** Zod schema for structured output (optional - returns string if not specified) */
410
+ returns?: TReturns;
411
+ /**
412
+ * Output mode for response parsing:
413
+ * - "strict": Enforce exact schema compliance (use provider's native structured output if available)
414
+ * - "hint": Include schema in prompt but accept any response (default)
415
+ * - "text": Return raw text without parsing
416
+ */
417
+ outputMode?: LlmOutputMode;
418
+ /**
419
+ * Execute handler - receives injected LLM agent.
420
+ * The llm parameter is a callable that runs the agentic loop.
421
+ */
422
+ execute: (args: z.infer<TParams>, context: {
423
+ /** Call the LLM with the user message */
424
+ llm: LlmAgent<TReturns extends z.ZodType ? z.infer<TReturns> : string>;
425
+ }) => Promise<TReturns extends z.ZodType ? z.infer<TReturns> : string>;
426
+ }
427
+ /**
428
+ * Message input for multi-turn conversations.
429
+ * Can be a simple string (converted to user message) or an array of messages.
430
+ */
431
+ export type LlmMessageInput = string | Array<{
432
+ role: "user" | "assistant";
433
+ content: string;
434
+ }>;
435
+ /**
436
+ * Injected LLM agent for mesh.llm() handlers.
437
+ */
438
+ export interface LlmAgent<T = string> {
439
+ /**
440
+ * Send a message to the LLM and run the agentic loop.
441
+ *
442
+ * @param message - User message string or array of messages for multi-turn
443
+ * @param options - Optional runtime overrides
444
+ * @returns The LLM response (validated if schema provided)
445
+ *
446
+ * @example
447
+ * ```typescript
448
+ * // Single message
449
+ * const result = await llm("What is 5+3?");
450
+ *
451
+ * // Multi-turn conversation
452
+ * const result = await llm([
453
+ * { role: "user", content: "What is 5+3?" },
454
+ * { role: "assistant", content: "8" },
455
+ * { role: "user", content: "Now multiply that by 2" },
456
+ * ]);
457
+ * ```
458
+ */
459
+ (message: LlmMessageInput, options?: LlmCallOptions): Promise<T>;
460
+ /**
461
+ * Get response metadata from the last call.
462
+ */
463
+ readonly meta: LlmMeta | null;
464
+ /**
465
+ * Get available tools for this LLM agent.
466
+ */
467
+ readonly tools: LlmToolProxy[];
468
+ /**
469
+ * Override the system prompt at runtime.
470
+ *
471
+ * @param prompt - New system prompt (inline or "file://path.hbs")
472
+ */
473
+ setSystemPrompt(prompt: string): void;
474
+ }
475
+ /**
476
+ * Context merge mode for runtime context override.
477
+ */
478
+ export type LlmContextMode = "merge" | "replace";
479
+ /**
480
+ * Output mode for response parsing.
481
+ */
482
+ export type LlmOutputMode = "strict" | "hint" | "text";
483
+ /**
484
+ * Runtime options for LLM calls.
485
+ */
486
+ export interface LlmCallOptions {
487
+ /** Additional context for template rendering */
488
+ context?: Record<string, unknown>;
489
+ /** Context merge mode: "merge" (default) adds to base context, "replace" overrides entirely */
490
+ contextMode?: LlmContextMode;
491
+ /** Override max tokens */
492
+ maxOutputTokens?: number;
493
+ /** Override temperature */
494
+ temperature?: number;
495
+ /** Override max iterations */
496
+ maxIterations?: number;
497
+ }
498
+ /**
499
+ * Proxy for calling mesh tools from LLM agent.
500
+ */
501
+ export interface LlmToolProxy {
502
+ /** Tool function name */
503
+ name: string;
504
+ /** Capability name */
505
+ capability: string;
506
+ /** Description */
507
+ description?: string;
508
+ /** Input schema (JSON Schema format) */
509
+ inputSchema?: Record<string, unknown>;
510
+ /** Endpoint URL */
511
+ endpoint: string;
512
+ /** Agent ID providing this tool */
513
+ agentId: string;
514
+ /**
515
+ * Call the tool.
516
+ */
517
+ (args: Record<string, unknown>): Promise<unknown>;
518
+ }
519
+ /**
520
+ * Standard LLM request format for mesh-delegated LLM calls.
521
+ *
522
+ * This interface is used when delegating LLM calls to mesh-registered LLM provider
523
+ * agents via mesh.llmProvider(). It standardizes the request format across the mesh.
524
+ *
525
+ * @example
526
+ * ```typescript
527
+ * // Provider side (automatic with mesh.llmProvider):
528
+ * server.addTool(mesh.llmProvider({
529
+ * model: "anthropic/claude-sonnet-4-5",
530
+ * capability: "llm",
531
+ * }));
532
+ *
533
+ * // Consumer side:
534
+ * const response = await llmProvider({
535
+ * request: {
536
+ * messages: [
537
+ * { role: "system", content: "You are helpful." },
538
+ * { role: "user", content: "Hello!" },
539
+ * ],
540
+ * },
541
+ * });
542
+ * ```
543
+ */
544
+ export interface MeshLlmRequest {
545
+ /** List of message dicts with "role" and "content" keys (and optionally "tool_calls") */
546
+ messages: LlmMessage[];
547
+ /** Optional list of tool definitions (MCP format) */
548
+ tools?: LlmToolDefinition[];
549
+ /** Optional parameters to pass to the model (temperature, max_tokens, model, etc.) */
550
+ model_params?: Record<string, unknown>;
551
+ /** Optional arbitrary context data for debugging/tracing */
552
+ context?: Record<string, unknown>;
553
+ /** Optional request ID for tracking */
554
+ request_id?: string;
555
+ /** Optional agent name that initiated the request */
556
+ caller_agent?: string;
557
+ }
558
+ /**
559
+ * Usage metadata included in LLM provider responses.
560
+ * Tracks token usage for cost monitoring.
561
+ */
562
+ export interface MeshLlmUsage {
563
+ /** Number of input/prompt tokens used */
564
+ prompt_tokens: number;
565
+ /** Number of output/completion tokens used */
566
+ completion_tokens: number;
567
+ /** Model used for generation */
568
+ model: string;
569
+ }
570
+ /**
571
+ * Response from an LLM provider.
572
+ * Contains the assistant message with optional tool calls and usage metadata.
573
+ */
574
+ export interface MeshLlmResponse {
575
+ /** Role is always "assistant" for provider responses */
576
+ role: "assistant";
577
+ /** Text content from the LLM */
578
+ content: string;
579
+ /** Tool calls requested by the LLM (for agentic loop) */
580
+ tool_calls?: LlmToolCallRequest[];
581
+ /** Token usage metadata for cost tracking */
582
+ _mesh_usage?: MeshLlmUsage;
583
+ }
584
+ /**
585
+ * Configuration for mesh.llmProvider() tool definition.
586
+ *
587
+ * @example
588
+ * ```typescript
589
+ * server.addTool(mesh.llmProvider({
590
+ * model: "anthropic/claude-sonnet-4-5",
591
+ * capability: "llm",
592
+ * tags: ["llm", "claude", "anthropic", "provider"],
593
+ * maxOutputTokens: 4096,
594
+ * temperature: 0.7,
595
+ * }));
596
+ * ```
597
+ */
598
+ export interface LlmProviderConfig {
599
+ /** LLM model identifier (e.g., "anthropic/claude-sonnet-4-5", "openai/gpt-4o") */
600
+ model: string;
601
+ /** Capability name for mesh registration. Defaults to "llm" */
602
+ capability?: string;
603
+ /** Tags for mesh registration (e.g., ["llm", "claude", "anthropic"]) */
604
+ tags?: string[];
605
+ /** Version string for mesh registration. Defaults to "1.0.0" */
606
+ version?: string;
607
+ /** Maximum tokens to generate. Passed to Vercel AI SDK */
608
+ maxOutputTokens?: number;
609
+ /** Sampling temperature. Passed to Vercel AI SDK */
610
+ temperature?: number;
611
+ /** Top-p sampling. Passed to Vercel AI SDK */
612
+ topP?: number;
613
+ /** Tool name for MCP registration. Defaults to "process_chat" */
614
+ name?: string;
615
+ /** Description for the tool */
616
+ description?: string;
617
+ }
618
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAG7B,YAAY,EACV,aAAa,EACb,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,iBAAiB,GAClB,MAAM,eAAe,CAAC;AAEvB;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,cAAc,GACtB,MAAM,GACN;IACE,mCAAmC;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEN;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,sBAAsB;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,OAAO,EAAE,MAAM,CAAC;IAChB,kDAAkD;IAClD,QAAQ,EAAE,MAAM,CAAC;IACjB,4BAA4B;IAC5B,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,WAAW;IAC1B,6DAA6D;IAC7D,IAAI,EAAE,MAAM,CAAC;IACb,kDAAkD;IAClD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iCAAiC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wDAAwD;IACxD,IAAI,EAAE,MAAM,CAAC;IAC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AM,CAAC;IACtB,8CAA8C;IAC9C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,wDAAwD;IACxD,IAAI,EAAE,WAAW,CAAC;IAClB,gCAAgC;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,yDAAyD;IACzD,UAAU,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAClC,6CAA6C;IAC7C,WAAW,CAAC,EAAE,YAAY,CAAC;CAC5B;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,iBAAiB;IAChC,kFAAkF;IAClF,KAAK,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wEAAwE;IACxE,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,gEAAgE;IAChE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0DAA0D;IAC1D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oDAAoD;IACpD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8CAA8C;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iEAAiE;IACjE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,+BAA+B;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
package/dist/types.js ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Type definitions for @mcpmesh/sdk
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG"}