@ai-sdk/openai
Advanced tools
+5
-5
@@ -52,3 +52,3 @@ import * as _ai_sdk_provider from '@ai-sdk/provider'; | ||
| */ | ||
| action: { | ||
| action?: { | ||
| /** | ||
@@ -350,3 +350,3 @@ * Action type "search" - Performs a web search query. | ||
| status: string; | ||
| action: { | ||
| action?: { | ||
| type: "search"; | ||
@@ -368,3 +368,3 @@ query?: string | null | undefined; | ||
| pattern?: string | null | undefined; | ||
| }; | ||
| } | null | undefined; | ||
| } | { | ||
@@ -786,3 +786,3 @@ type: "file_search_call"; | ||
| webSearchPreview: _ai_sdk_provider_utils.ProviderToolFactoryWithOutputSchema<{}, { | ||
| action: { | ||
| action?: { | ||
| type: "search"; | ||
@@ -817,3 +817,3 @@ query?: string; | ||
| webSearch: (args?: Parameters<typeof webSearchToolFactory>[0]) => _ai_sdk_provider_utils.Tool<{}, { | ||
| action: { | ||
| action?: { | ||
| type: "search"; | ||
@@ -820,0 +820,0 @@ query?: string; |
+5
-5
@@ -52,3 +52,3 @@ import * as _ai_sdk_provider from '@ai-sdk/provider'; | ||
| */ | ||
| action: { | ||
| action?: { | ||
| /** | ||
@@ -350,3 +350,3 @@ * Action type "search" - Performs a web search query. | ||
| status: string; | ||
| action: { | ||
| action?: { | ||
| type: "search"; | ||
@@ -368,3 +368,3 @@ query?: string | null | undefined; | ||
| pattern?: string | null | undefined; | ||
| }; | ||
| } | null | undefined; | ||
| } | { | ||
@@ -786,3 +786,3 @@ type: "file_search_call"; | ||
| webSearchPreview: _ai_sdk_provider_utils.ProviderToolFactoryWithOutputSchema<{}, { | ||
| action: { | ||
| action?: { | ||
| type: "search"; | ||
@@ -817,3 +817,3 @@ query?: string; | ||
| webSearch: (args?: Parameters<typeof webSearchToolFactory>[0]) => _ai_sdk_provider_utils.Tool<{}, { | ||
| action: { | ||
| action?: { | ||
| type: "search"; | ||
@@ -820,0 +820,0 @@ query?: string; |
@@ -408,3 +408,3 @@ import { LanguageModelV3, LanguageModelV3CallOptions, LanguageModelV3GenerateResult, LanguageModelV3StreamResult, EmbeddingModelV3, ImageModelV3, TranscriptionModelV3CallOptions, TranscriptionModelV3, SpeechModelV3 } from '@ai-sdk/provider'; | ||
| status: string; | ||
| action: { | ||
| action?: { | ||
| type: "search"; | ||
@@ -426,3 +426,3 @@ query?: string | null | undefined; | ||
| pattern?: string | null | undefined; | ||
| }; | ||
| } | null | undefined; | ||
| } | { | ||
@@ -1051,3 +1051,3 @@ type: "file_search_call"; | ||
| */ | ||
| action: { | ||
| action?: { | ||
| /** | ||
@@ -1054,0 +1054,0 @@ * Action type "search" - Performs a web search query. |
@@ -408,3 +408,3 @@ import { LanguageModelV3, LanguageModelV3CallOptions, LanguageModelV3GenerateResult, LanguageModelV3StreamResult, EmbeddingModelV3, ImageModelV3, TranscriptionModelV3CallOptions, TranscriptionModelV3, SpeechModelV3 } from '@ai-sdk/provider'; | ||
| status: string; | ||
| action: { | ||
| action?: { | ||
| type: "search"; | ||
@@ -426,3 +426,3 @@ query?: string | null | undefined; | ||
| pattern?: string | null | undefined; | ||
| }; | ||
| } | null | undefined; | ||
| } | { | ||
@@ -1051,3 +1051,3 @@ type: "file_search_call"; | ||
| */ | ||
| action: { | ||
| action?: { | ||
| /** | ||
@@ -1054,0 +1054,0 @@ * Action type "search" - Performs a web search query. |
+1
-1
| { | ||
| "name": "@ai-sdk/openai", | ||
| "version": "3.0.30", | ||
| "version": "3.0.31", | ||
| "license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
@@ -602,25 +602,27 @@ import { JSONSchema7 } from '@ai-sdk/provider'; | ||
| status: z.string(), | ||
| action: z.discriminatedUnion('type', [ | ||
| z.object({ | ||
| type: z.literal('search'), | ||
| query: z.string().nullish(), | ||
| sources: z | ||
| .array( | ||
| z.discriminatedUnion('type', [ | ||
| z.object({ type: z.literal('url'), url: z.string() }), | ||
| z.object({ type: z.literal('api'), name: z.string() }), | ||
| ]), | ||
| ) | ||
| .nullish(), | ||
| }), | ||
| z.object({ | ||
| type: z.literal('open_page'), | ||
| url: z.string().nullish(), | ||
| }), | ||
| z.object({ | ||
| type: z.literal('find_in_page'), | ||
| url: z.string().nullish(), | ||
| pattern: z.string().nullish(), | ||
| }), | ||
| ]), | ||
| action: z | ||
| .discriminatedUnion('type', [ | ||
| z.object({ | ||
| type: z.literal('search'), | ||
| query: z.string().nullish(), | ||
| sources: z | ||
| .array( | ||
| z.discriminatedUnion('type', [ | ||
| z.object({ type: z.literal('url'), url: z.string() }), | ||
| z.object({ type: z.literal('api'), name: z.string() }), | ||
| ]), | ||
| ) | ||
| .nullish(), | ||
| }), | ||
| z.object({ | ||
| type: z.literal('open_page'), | ||
| url: z.string().nullish(), | ||
| }), | ||
| z.object({ | ||
| type: z.literal('find_in_page'), | ||
| url: z.string().nullish(), | ||
| pattern: z.string().nullish(), | ||
| }), | ||
| ]) | ||
| .nullish(), | ||
| }), | ||
@@ -970,25 +972,30 @@ z.object({ | ||
| status: z.string(), | ||
| action: z.discriminatedUnion('type', [ | ||
| z.object({ | ||
| type: z.literal('search'), | ||
| query: z.string().nullish(), | ||
| sources: z | ||
| .array( | ||
| z.discriminatedUnion('type', [ | ||
| z.object({ type: z.literal('url'), url: z.string() }), | ||
| z.object({ type: z.literal('api'), name: z.string() }), | ||
| ]), | ||
| ) | ||
| .nullish(), | ||
| }), | ||
| z.object({ | ||
| type: z.literal('open_page'), | ||
| url: z.string().nullish(), | ||
| }), | ||
| z.object({ | ||
| type: z.literal('find_in_page'), | ||
| url: z.string().nullish(), | ||
| pattern: z.string().nullish(), | ||
| }), | ||
| ]), | ||
| action: z | ||
| .discriminatedUnion('type', [ | ||
| z.object({ | ||
| type: z.literal('search'), | ||
| query: z.string().nullish(), | ||
| sources: z | ||
| .array( | ||
| z.discriminatedUnion('type', [ | ||
| z.object({ type: z.literal('url'), url: z.string() }), | ||
| z.object({ | ||
| type: z.literal('api'), | ||
| name: z.string(), | ||
| }), | ||
| ]), | ||
| ) | ||
| .nullish(), | ||
| }), | ||
| z.object({ | ||
| type: z.literal('open_page'), | ||
| url: z.string().nullish(), | ||
| }), | ||
| z.object({ | ||
| type: z.literal('find_in_page'), | ||
| url: z.string().nullish(), | ||
| pattern: z.string().nullish(), | ||
| }), | ||
| ]) | ||
| .nullish(), | ||
| }), | ||
@@ -995,0 +1002,0 @@ z.object({ |
@@ -32,17 +32,19 @@ import { | ||
| z.object({ | ||
| action: z.discriminatedUnion('type', [ | ||
| z.object({ | ||
| type: z.literal('search'), | ||
| query: z.string().optional(), | ||
| }), | ||
| z.object({ | ||
| type: z.literal('openPage'), | ||
| url: z.string().nullish(), | ||
| }), | ||
| z.object({ | ||
| type: z.literal('findInPage'), | ||
| url: z.string().nullish(), | ||
| pattern: z.string().nullish(), | ||
| }), | ||
| ]), | ||
| action: z | ||
| .discriminatedUnion('type', [ | ||
| z.object({ | ||
| type: z.literal('search'), | ||
| query: z.string().optional(), | ||
| }), | ||
| z.object({ | ||
| type: z.literal('openPage'), | ||
| url: z.string().nullish(), | ||
| }), | ||
| z.object({ | ||
| type: z.literal('findInPage'), | ||
| url: z.string().nullish(), | ||
| pattern: z.string().nullish(), | ||
| }), | ||
| ]) | ||
| .optional(), | ||
| }), | ||
@@ -61,3 +63,3 @@ ), | ||
| */ | ||
| action: | ||
| action?: | ||
| | { | ||
@@ -64,0 +66,0 @@ /** |
+18
-16
@@ -34,17 +34,19 @@ import { | ||
| z.object({ | ||
| action: z.discriminatedUnion('type', [ | ||
| z.object({ | ||
| type: z.literal('search'), | ||
| query: z.string().optional(), | ||
| }), | ||
| z.object({ | ||
| type: z.literal('openPage'), | ||
| url: z.string().nullish(), | ||
| }), | ||
| z.object({ | ||
| type: z.literal('findInPage'), | ||
| url: z.string().nullish(), | ||
| pattern: z.string().nullish(), | ||
| }), | ||
| ]), | ||
| action: z | ||
| .discriminatedUnion('type', [ | ||
| z.object({ | ||
| type: z.literal('search'), | ||
| query: z.string().optional(), | ||
| }), | ||
| z.object({ | ||
| type: z.literal('openPage'), | ||
| url: z.string().nullish(), | ||
| }), | ||
| z.object({ | ||
| type: z.literal('findInPage'), | ||
| url: z.string().nullish(), | ||
| pattern: z.string().nullish(), | ||
| }), | ||
| ]) | ||
| .optional(), | ||
| sources: z | ||
@@ -71,3 +73,3 @@ .array( | ||
| */ | ||
| action: | ||
| action?: | ||
| | { | ||
@@ -74,0 +76,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 too big to display
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
3242682
0.17%35336
0.11%