@christianriedl/utils 1.0.171 → 1.0.172
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/dist/iOpenAI.d.ts +11 -1
- package/package.json +1 -1
- package/src/views/SettingsPage.vue +1 -1
package/dist/iOpenAI.d.ts
CHANGED
|
@@ -44,7 +44,13 @@ export interface ISchema {
|
|
|
44
44
|
schema?: Dictionary<unknown>;
|
|
45
45
|
}
|
|
46
46
|
export interface ITool {
|
|
47
|
-
type: 'mcp' | 'file_search' | 'web_search' | 'function' | 'image_generation';
|
|
47
|
+
type: 'mcp' | 'file_search' | 'web_search' | 'function' | 'image_generation' | 'tool_search';
|
|
48
|
+
}
|
|
49
|
+
export interface IToolSearchTool extends ITool {
|
|
50
|
+
type: 'tool_search';
|
|
51
|
+
description?: string | null;
|
|
52
|
+
execution?: 'server' | 'client';
|
|
53
|
+
parameters?: unknown | null;
|
|
48
54
|
}
|
|
49
55
|
export interface IMcpTool extends ITool {
|
|
50
56
|
type: 'mcp';
|
|
@@ -54,6 +60,7 @@ export interface IMcpTool extends ITool {
|
|
|
54
60
|
allowed_tools?: string[];
|
|
55
61
|
require_approval?: 'always' | 'never' | null;
|
|
56
62
|
server_description?: string;
|
|
63
|
+
defer_loading?: boolean;
|
|
57
64
|
}
|
|
58
65
|
export interface IFileSearchTool extends ITool {
|
|
59
66
|
type: 'file_search';
|
|
@@ -88,6 +95,7 @@ export interface IFunctionTool extends ITool {
|
|
|
88
95
|
parameters: Dictionary<unknown> | null;
|
|
89
96
|
strict: boolean | null;
|
|
90
97
|
description?: string | null;
|
|
98
|
+
defer_loading?: boolean;
|
|
91
99
|
}
|
|
92
100
|
export interface IComparisonFilter {
|
|
93
101
|
key: string;
|
|
@@ -111,6 +119,7 @@ export interface IOpenAIOptions {
|
|
|
111
119
|
store?: boolean | null;
|
|
112
120
|
temperature?: number | null;
|
|
113
121
|
top_p?: number | null;
|
|
122
|
+
use_toolSearch?: boolean | null;
|
|
114
123
|
}
|
|
115
124
|
export interface IOpenAIService {
|
|
116
125
|
log: ILogger;
|
|
@@ -130,6 +139,7 @@ export interface IOpenAIServiceWithTools extends IOpenAIService {
|
|
|
130
139
|
addWebSearchTool(label: string, tool: IWebSearchTool): void;
|
|
131
140
|
addImageGenerationTool(label: string, tool: IImageGenerationTool): void;
|
|
132
141
|
addFunctionTool(tool: IFunctionTool, toolFunction: ToolFunction): void;
|
|
142
|
+
addToolSearchTool(tool: IToolSearchTool): void;
|
|
133
143
|
getToolFunctions(tool: string): Promise<IResponseResult>;
|
|
134
144
|
}
|
|
135
145
|
export interface IVectorFile {
|
package/package.json
CHANGED