@christianriedl/utils 1.0.121 → 1.0.123
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 +5 -3
- package/package.json +1 -1
package/dist/iOpenAI.d.ts
CHANGED
|
@@ -3,14 +3,15 @@ import { ILogger } from './iLogger';
|
|
|
3
3
|
import { Dictionary } from './types';
|
|
4
4
|
export declare const getOpenAISymbol: InjectionKey<() => IOpenAIService>;
|
|
5
5
|
export interface IResponseResult {
|
|
6
|
+
id?: string;
|
|
6
7
|
text?: string;
|
|
7
8
|
error?: string;
|
|
8
9
|
json?: any;
|
|
9
10
|
usage?: {
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
inputTokens: number;
|
|
12
|
+
outputTokens: number;
|
|
12
13
|
};
|
|
13
|
-
|
|
14
|
+
topP?: number;
|
|
14
15
|
temperature?: number;
|
|
15
16
|
}
|
|
16
17
|
export interface ISchema {
|
|
@@ -24,6 +25,7 @@ export interface IOpenAIService {
|
|
|
24
25
|
}
|
|
25
26
|
export type ToolFunction = (input: Dictionary<unknown>) => Promise<Dictionary<any>>;
|
|
26
27
|
export interface IOpenAIServiceWithTools extends IOpenAIService {
|
|
28
|
+
tools: string[];
|
|
27
29
|
addMcpTool(label: string, url: string, desc: string, allowedTools?: string[]): void;
|
|
28
30
|
addFileSearchTool(label: string, vectorStore: string): boolean;
|
|
29
31
|
addWebSearchTool(label: string, country?: string, city?: string, region?: string): void;
|