@composio/vercel 0.1.14 → 0.1.15

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 (2) hide show
  1. package/README.md +21 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -178,6 +178,27 @@ const provider = new VercelProvider({
178
178
  });
179
179
  ```
180
180
 
181
+ ### Strict Mode
182
+
183
+ When using tools with Vercel AI SDK, you might need to ensure that all tool parameters are marked as required. This is because Vercel AI SDK's function calling implementation requires all fields to be marked as required. You can enable strict mode when fetching tools to automatically remove all non-required properties from both input and output parameters:
184
+
185
+ ```typescript
186
+ // Get tools with strict mode enabled
187
+ const tools = await composio.tools.get('user123', {
188
+ toolkits: ['gmail', 'googlecalendar'],
189
+ strict: true, // This will remove all non-required properties from tool parameters
190
+ });
191
+
192
+ // Use these tools with Vercel AI SDK
193
+ const stream = streamText({
194
+ model: openai('gpt-4'),
195
+ messages,
196
+ tools, // These tools will only have required parameters
197
+ });
198
+ ```
199
+
200
+ For more information about strict mode in function calling, see [OpenAI's documentation](https://platform.openai.com/docs/guides/function-calling#strict-mode).
201
+
181
202
  ## API Reference
182
203
 
183
204
  ### VercelProvider Class
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@composio/vercel",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -22,14 +22,14 @@
22
22
  "author": "",
23
23
  "license": "ISC",
24
24
  "peerDependencies": {
25
- "@composio/core": "0.1.14",
25
+ "@composio/core": "0.1.15",
26
26
  "ai": "^4.3.8"
27
27
  },
28
28
  "devDependencies": {
29
29
  "tsup": "^8.4.0",
30
30
  "typescript": "^5.8.3",
31
31
  "vitest": "^3.1.4",
32
- "@composio/core": "0.1.14"
32
+ "@composio/core": "0.1.15"
33
33
  },
34
34
  "gitHead": "4fae6e54d5c150fba955cc5fa314281da5a1e064",
35
35
  "scripts": {