integrate-sdk 0.7.36 → 0.7.37
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/README.md +2 -2
- package/dist/ai/index.js +3 -7
- package/dist/ai/openai.d.ts +3 -6
- package/dist/ai/openai.d.ts.map +1 -1
- package/dist/ai/openai.js +3 -7
- package/dist/server.js +3 -7
- package/dist/src/ai/openai.d.ts +3 -6
- package/dist/src/ai/openai.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -339,7 +339,7 @@ const result = await generateText({
|
|
|
339
339
|
});
|
|
340
340
|
```
|
|
341
341
|
|
|
342
|
-
[→ View Vercel AI SDK integration guide](https://integrate.dev/docs/
|
|
342
|
+
[→ View Vercel AI SDK integration guide](https://integrate.dev/docs/artificial-intelligence/vercel-ai-sdk)
|
|
343
343
|
|
|
344
344
|
## Documentation
|
|
345
345
|
|
|
@@ -348,7 +348,7 @@ For detailed guides, API reference, and examples, visit the [complete documentat
|
|
|
348
348
|
- **[Getting Started](https://integrate.dev/docs/getting-started/installation)** - Installation and quick start
|
|
349
349
|
- **[OAuth Flow](https://integrate.dev/docs/guides/oauth-flow)** - OAuth 2.0 authorization guide
|
|
350
350
|
- **[Integrations](https://integrate.dev/docs/integrations)** - Built-in integrations and configuration
|
|
351
|
-
- **[Vercel AI SDK](https://integrate.dev/docs/
|
|
351
|
+
- **[Vercel AI SDK](https://integrate.dev/docs/artificial-intelligence/vercel-ai-sdk)** - AI model integration
|
|
352
352
|
- **[Advanced Usage](https://integrate.dev/docs/guides/advanced-usage)** - Error handling, retries, and more
|
|
353
353
|
- **[API Reference](https://integrate.dev/docs/reference/api-reference)** - Complete API documentation
|
|
354
354
|
- **[Architecture](https://integrate.dev/docs/reference/architecture)** - How the SDK works
|
package/dist/ai/index.js
CHANGED
|
@@ -4366,13 +4366,9 @@ function convertMCPToolToOpenAI(mcpTool, _client, options) {
|
|
|
4366
4366
|
return {
|
|
4367
4367
|
type: "function",
|
|
4368
4368
|
name: mcpTool.name,
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
properties: {},
|
|
4373
|
-
required: []
|
|
4374
|
-
},
|
|
4375
|
-
strict: options?.strict ?? false
|
|
4369
|
+
parameters: inputParams || null,
|
|
4370
|
+
strict: options?.strict ?? null,
|
|
4371
|
+
description: mcpTool.description || null
|
|
4376
4372
|
};
|
|
4377
4373
|
}
|
|
4378
4374
|
function convertMCPToolsToOpenAI(client, options) {
|
package/dist/ai/openai.d.ts
CHANGED
|
@@ -13,14 +13,11 @@ import { type AIToolsOptions } from "./utils.js";
|
|
|
13
13
|
export interface OpenAITool {
|
|
14
14
|
type: 'function';
|
|
15
15
|
name: string;
|
|
16
|
-
description?: string;
|
|
17
16
|
parameters: {
|
|
18
|
-
type: 'object';
|
|
19
|
-
properties?: Record<string, unknown>;
|
|
20
|
-
required?: string[];
|
|
21
17
|
[key: string]: unknown;
|
|
22
|
-
};
|
|
23
|
-
strict
|
|
18
|
+
} | null;
|
|
19
|
+
strict: boolean | null;
|
|
20
|
+
description?: string | null;
|
|
24
21
|
}
|
|
25
22
|
/**
|
|
26
23
|
* Options for converting MCP tools to OpenAI format
|
package/dist/ai/openai.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openai.d.ts","sourceRoot":"","sources":["../../../src/ai/openai.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAkE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjH;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,
|
|
1
|
+
{"version":3,"file":"openai.d.ts","sourceRoot":"","sources":["../../../src/ai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;;;;GAsCG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,SAAS,CAAC,GAAG,CAAC,EACtB,OAAO,CAAC,EAAE,kBAAkB,GAC3B,OAAO,CAAC,UAAU,EAAE,CAAC,CAevB"}
|
package/dist/ai/openai.js
CHANGED
|
@@ -4208,13 +4208,9 @@ function convertMCPToolToOpenAI(mcpTool, _client, options) {
|
|
|
4208
4208
|
return {
|
|
4209
4209
|
type: "function",
|
|
4210
4210
|
name: mcpTool.name,
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
properties: {},
|
|
4215
|
-
required: []
|
|
4216
|
-
},
|
|
4217
|
-
strict: options?.strict ?? false
|
|
4211
|
+
parameters: inputParams || null,
|
|
4212
|
+
strict: options?.strict ?? null,
|
|
4213
|
+
description: mcpTool.description || null
|
|
4218
4214
|
};
|
|
4219
4215
|
}
|
|
4220
4216
|
function convertMCPToolsToOpenAI(client, options) {
|
package/dist/server.js
CHANGED
|
@@ -6507,13 +6507,9 @@ function convertMCPToolToOpenAI(mcpTool, _client, options) {
|
|
|
6507
6507
|
return {
|
|
6508
6508
|
type: "function",
|
|
6509
6509
|
name: mcpTool.name,
|
|
6510
|
-
|
|
6511
|
-
|
|
6512
|
-
|
|
6513
|
-
properties: {},
|
|
6514
|
-
required: []
|
|
6515
|
-
},
|
|
6516
|
-
strict: options?.strict ?? false
|
|
6510
|
+
parameters: inputParams || null,
|
|
6511
|
+
strict: options?.strict ?? null,
|
|
6512
|
+
description: mcpTool.description || null
|
|
6517
6513
|
};
|
|
6518
6514
|
}
|
|
6519
6515
|
function convertMCPToolsToOpenAI(client, options) {
|
package/dist/src/ai/openai.d.ts
CHANGED
|
@@ -13,14 +13,11 @@ import { type AIToolsOptions } from "./utils.js";
|
|
|
13
13
|
export interface OpenAITool {
|
|
14
14
|
type: 'function';
|
|
15
15
|
name: string;
|
|
16
|
-
description?: string;
|
|
17
16
|
parameters: {
|
|
18
|
-
type: 'object';
|
|
19
|
-
properties?: Record<string, unknown>;
|
|
20
|
-
required?: string[];
|
|
21
17
|
[key: string]: unknown;
|
|
22
|
-
};
|
|
23
|
-
strict
|
|
18
|
+
} | null;
|
|
19
|
+
strict: boolean | null;
|
|
20
|
+
description?: string | null;
|
|
24
21
|
}
|
|
25
22
|
/**
|
|
26
23
|
* Options for converting MCP tools to OpenAI format
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openai.d.ts","sourceRoot":"","sources":["../../../src/ai/openai.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAkE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjH;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,
|
|
1
|
+
{"version":3,"file":"openai.d.ts","sourceRoot":"","sources":["../../../src/ai/openai.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAkE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjH;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE;QACV,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,GAAG,IAAI,CAAC;IACT,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACxD;;;OAGG;IACH,MA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