@ai-sdk/openai
Advanced tools
+1
-18
@@ -607,6 +607,2 @@ import * as _ai_sdk_provider from '@ai-sdk/provider'; | ||
| /** | ||
| * The name of the custom tool, used to identify it in the API. | ||
| */ | ||
| name: string; | ||
| /** | ||
| * An optional description of what the tool does. | ||
@@ -679,3 +675,2 @@ */ | ||
| * | ||
| * @param name - The name of the custom tool. | ||
| * @param description - An optional description of the tool. | ||
@@ -882,15 +877,3 @@ * @param format - The output format constraint (grammar type, syntax, and definition). | ||
| city?: string; | ||
| region | ||
| /** | ||
| * Local shell is a tool that allows agents to run shell commands locally | ||
| * on a machine you or the user provides. | ||
| * | ||
| * Supported models: `gpt-5-codex` | ||
| */ | ||
| ? /** | ||
| * Local shell is a tool that allows agents to run shell commands locally | ||
| * on a machine you or the user provides. | ||
| * | ||
| * Supported models: `gpt-5-codex` | ||
| */: string; | ||
| region?: string; | ||
| timezone?: string; | ||
@@ -897,0 +880,0 @@ }; |
+1
-18
@@ -607,6 +607,2 @@ import * as _ai_sdk_provider from '@ai-sdk/provider'; | ||
| /** | ||
| * The name of the custom tool, used to identify it in the API. | ||
| */ | ||
| name: string; | ||
| /** | ||
| * An optional description of what the tool does. | ||
@@ -679,3 +675,2 @@ */ | ||
| * | ||
| * @param name - The name of the custom tool. | ||
| * @param description - An optional description of the tool. | ||
@@ -882,15 +877,3 @@ * @param format - The output format constraint (grammar type, syntax, and definition). | ||
| city?: string; | ||
| region | ||
| /** | ||
| * Local shell is a tool that allows agents to run shell commands locally | ||
| * on a machine you or the user provides. | ||
| * | ||
| * Supported models: `gpt-5-codex` | ||
| */ | ||
| ? /** | ||
| * Local shell is a tool that allows agents to run shell commands locally | ||
| * on a machine you or the user provides. | ||
| * | ||
| * Supported models: `gpt-5-codex` | ||
| */: string; | ||
| region?: string; | ||
| timezone?: string; | ||
@@ -897,0 +880,0 @@ }; |
+2
-2
| { | ||
| "name": "@ai-sdk/openai", | ||
| "version": "4.0.0-beta.9", | ||
| "version": "4.0.0-beta.10", | ||
| "license": "Apache-2.0", | ||
@@ -40,3 +40,3 @@ "sideEffects": false, | ||
| "@ai-sdk/provider": "4.0.0-beta.2", | ||
| "@ai-sdk/provider-utils": "5.0.0-beta.3" | ||
| "@ai-sdk/provider-utils": "5.0.0-beta.4" | ||
| }, | ||
@@ -43,0 +43,0 @@ "devDependencies": { |
@@ -28,3 +28,2 @@ import { applyPatch } from './tool/apply-patch'; | ||
| * | ||
| * @param name - The name of the custom tool. | ||
| * @param description - An optional description of the tool. | ||
@@ -31,0 +30,0 @@ * @param format - The output format constraint (grammar type, syntax, and definition). |
@@ -252,7 +252,7 @@ import { | ||
| type: 'custom', | ||
| name: args.name, | ||
| name: tool.name, | ||
| description: args.description, | ||
| format: args.format, | ||
| }); | ||
| resolvedCustomProviderToolNames.add(args.name); | ||
| resolvedCustomProviderToolNames.add(tool.name); | ||
| break; | ||
@@ -259,0 +259,0 @@ } |
@@ -11,3 +11,2 @@ import { | ||
| z.object({ | ||
| name: z.string(), | ||
| description: z.string().optional(), | ||
@@ -36,7 +35,2 @@ format: z | ||
| /** | ||
| * The name of the custom tool, used to identify it in the API. | ||
| */ | ||
| name: string; | ||
| /** | ||
| * An optional description of what the tool does. | ||
@@ -43,0 +37,0 @@ */ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
3549097
-0.05%38391
-0.1%+ Added
- Removed