@adaline/gateway 1.2.0 → 1.4.0
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/index.d.mts +2762 -333
- package/dist/index.d.ts +2762 -333
- package/dist/index.js +47 -44
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GatewayBaseError } from '@adaline/types';
|
|
1
|
+
import { GatewayBaseError, ToolCallContentType, ToolResponseContentType } from '@adaline/types';
|
|
2
2
|
import { Context, Tracer, Meter } from '@opentelemetry/api';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { ChatModelV1, EmbeddingModelV1 } from '@adaline/provider';
|
|
@@ -19,15 +19,22 @@ declare class GatewayTelemetryError extends GatewayBaseError {
|
|
|
19
19
|
static isGatewayTelemetryError(error: unknown): error is GatewayTelemetryError;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
type HttpClientOptions = {
|
|
23
|
+
retry?: {
|
|
24
|
+
maxAttempts: number;
|
|
25
|
+
initialDelay: number;
|
|
26
|
+
exponentialFactor: number;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
22
29
|
interface HttpClient {
|
|
23
30
|
stream<T>(url: string, method: "get" | "post", data?: Record<string, unknown>, headers?: Record<string, string>, options?: {
|
|
24
31
|
abortSignal?: AbortSignal;
|
|
25
32
|
}, telemetryContext?: Context): AsyncGenerator<T, void, unknown>;
|
|
26
|
-
get<T>(url: string, params?: Record<string, unknown>, headers?: Record<string, string | undefined>, telemetryContext?: Context): Promise<HttpClientResponse<T>>;
|
|
27
|
-
post<T>(url: string, data?: Record<string, unknown>, headers?: Record<string, string | undefined>, telemetryContext?: Context): Promise<HttpClientResponse<T>>;
|
|
28
|
-
put<T>(url: string, data?: Record<string, unknown>, headers?: Record<string, string | undefined>, telemetryContext?: Context): Promise<HttpClientResponse<T>>;
|
|
29
|
-
delete<T>(url: string, params?: Record<string, unknown>, headers?: Record<string, string | undefined>, telemetryContext?: Context): Promise<HttpClientResponse<T>>;
|
|
30
|
-
patch<T>(url: string, data?: Record<string, unknown>, headers?: Record<string, string | undefined>, telemetryContext?: Context): Promise<HttpClientResponse<T>>;
|
|
33
|
+
get<T>(url: string, params?: Record<string, unknown>, headers?: Record<string, string | undefined>, options?: HttpClientOptions, telemetryContext?: Context): Promise<HttpClientResponse<T>>;
|
|
34
|
+
post<T>(url: string, data?: Record<string, unknown>, headers?: Record<string, string | undefined>, options?: HttpClientOptions, telemetryContext?: Context): Promise<HttpClientResponse<T>>;
|
|
35
|
+
put<T>(url: string, data?: Record<string, unknown>, headers?: Record<string, string | undefined>, options?: HttpClientOptions, telemetryContext?: Context): Promise<HttpClientResponse<T>>;
|
|
36
|
+
delete<T>(url: string, params?: Record<string, unknown>, headers?: Record<string, string | undefined>, options?: HttpClientOptions, telemetryContext?: Context): Promise<HttpClientResponse<T>>;
|
|
37
|
+
patch<T>(url: string, data?: Record<string, unknown>, headers?: Record<string, string | undefined>, options?: HttpClientOptions, telemetryContext?: Context): Promise<HttpClientResponse<T>>;
|
|
31
38
|
}
|
|
32
39
|
interface HttpClientResponse<T> {
|
|
33
40
|
data: T;
|
|
@@ -76,11 +83,11 @@ declare class IsomorphicHttpClient implements HttpClient {
|
|
|
76
83
|
stream<T>(url: string, method: "get" | "post", data?: Record<string, unknown>, headers?: Record<string, string>, options?: {
|
|
77
84
|
abortSignal?: AbortSignal;
|
|
78
85
|
}, telemetryContext?: Context): AsyncGenerator<T, void, unknown>;
|
|
79
|
-
get<T>(url: string, params?: Record<string, unknown>, headers?: Record<string, string | undefined>, telemetryContext?: Context): Promise<HttpClientResponse<T>>;
|
|
80
|
-
post<T>(url: string, data?: Record<string, unknown>, headers?: Record<string, string | undefined>, telemetryContext?: Context): Promise<HttpClientResponse<T>>;
|
|
81
|
-
put<T>(url: string, data?: Record<string, unknown>, headers?: Record<string, string | undefined>, telemetryContext?: Context): Promise<HttpClientResponse<T>>;
|
|
82
|
-
delete<T>(url: string, params?: Record<string, unknown>, headers?: Record<string, string | undefined>, telemetryContext?: Context): Promise<HttpClientResponse<T>>;
|
|
83
|
-
patch<T>(url: string, data?: Record<string, unknown>, headers?: Record<string, string | undefined>, telemetryContext?: Context): Promise<HttpClientResponse<T>>;
|
|
86
|
+
get<T>(url: string, params?: Record<string, unknown>, headers?: Record<string, string | undefined>, options?: HttpClientOptions, telemetryContext?: Context): Promise<HttpClientResponse<T>>;
|
|
87
|
+
post<T>(url: string, data?: Record<string, unknown>, headers?: Record<string, string | undefined>, options?: HttpClientOptions, telemetryContext?: Context): Promise<HttpClientResponse<T>>;
|
|
88
|
+
put<T>(url: string, data?: Record<string, unknown>, headers?: Record<string, string | undefined>, options?: HttpClientOptions, telemetryContext?: Context): Promise<HttpClientResponse<T>>;
|
|
89
|
+
delete<T>(url: string, params?: Record<string, unknown>, headers?: Record<string, string | undefined>, options?: HttpClientOptions, telemetryContext?: Context): Promise<HttpClientResponse<T>>;
|
|
90
|
+
patch<T>(url: string, data?: Record<string, unknown>, headers?: Record<string, string | undefined>, options?: HttpClientOptions, telemetryContext?: Context): Promise<HttpClientResponse<T>>;
|
|
84
91
|
}
|
|
85
92
|
|
|
86
93
|
declare class QueueTaskTimeoutError extends GatewayBaseError {
|
|
@@ -137,20 +144,20 @@ declare const QueueOptions: z.ZodObject<{
|
|
|
137
144
|
}>;
|
|
138
145
|
}, "strip", z.ZodTypeAny, {
|
|
139
146
|
timeout: number;
|
|
140
|
-
maxConcurrentTasks: number;
|
|
141
|
-
retryCount: number;
|
|
142
147
|
retry: {
|
|
143
148
|
initialDelay: number;
|
|
144
149
|
exponentialFactor: number;
|
|
145
150
|
};
|
|
146
|
-
}, {
|
|
147
|
-
timeout: number;
|
|
148
151
|
maxConcurrentTasks: number;
|
|
149
152
|
retryCount: number;
|
|
153
|
+
}, {
|
|
154
|
+
timeout: number;
|
|
150
155
|
retry: {
|
|
151
156
|
initialDelay: number;
|
|
152
157
|
exponentialFactor: number;
|
|
153
158
|
};
|
|
159
|
+
maxConcurrentTasks: number;
|
|
160
|
+
retryCount: number;
|
|
154
161
|
}>;
|
|
155
162
|
type QueueOptionsType = z.infer<typeof QueueOptions>;
|
|
156
163
|
|
|
@@ -304,6 +311,9 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
304
311
|
modality: "tool-response";
|
|
305
312
|
index: number;
|
|
306
313
|
metadata?: undefined;
|
|
314
|
+
apiResponse?: {
|
|
315
|
+
statusCode: number;
|
|
316
|
+
} | undefined;
|
|
307
317
|
})[];
|
|
308
318
|
metadata?: undefined;
|
|
309
319
|
}[];
|
|
@@ -318,6 +328,21 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
318
328
|
};
|
|
319
329
|
};
|
|
320
330
|
metadata?: any;
|
|
331
|
+
apiSettings?: {
|
|
332
|
+
type: "http";
|
|
333
|
+
url: string;
|
|
334
|
+
method: "get" | "post";
|
|
335
|
+
headers?: Record<string, string> | undefined;
|
|
336
|
+
query?: Record<string, string> | undefined;
|
|
337
|
+
body?: Record<string, any> | undefined;
|
|
338
|
+
proxyUrl?: string | undefined;
|
|
339
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
340
|
+
retry?: {
|
|
341
|
+
maxAttempts: number;
|
|
342
|
+
initialDelay: number;
|
|
343
|
+
exponentialFactor: number;
|
|
344
|
+
} | undefined;
|
|
345
|
+
} | undefined;
|
|
321
346
|
}[] | undefined;
|
|
322
347
|
};
|
|
323
348
|
response: {
|
|
@@ -364,6 +389,9 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
364
389
|
id: string;
|
|
365
390
|
name: string;
|
|
366
391
|
metadata?: undefined;
|
|
392
|
+
apiResponse?: {
|
|
393
|
+
statusCode: number;
|
|
394
|
+
} | undefined;
|
|
367
395
|
})[];
|
|
368
396
|
metadata?: undefined;
|
|
369
397
|
}[];
|
|
@@ -436,6 +464,9 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
436
464
|
modality: "tool-response";
|
|
437
465
|
index: number;
|
|
438
466
|
metadata?: undefined;
|
|
467
|
+
apiResponse?: {
|
|
468
|
+
statusCode: number;
|
|
469
|
+
} | undefined;
|
|
439
470
|
})[];
|
|
440
471
|
metadata?: undefined;
|
|
441
472
|
}[];
|
|
@@ -450,6 +481,21 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
450
481
|
};
|
|
451
482
|
};
|
|
452
483
|
metadata?: any;
|
|
484
|
+
apiSettings?: {
|
|
485
|
+
type: "http";
|
|
486
|
+
url: string;
|
|
487
|
+
method: "get" | "post";
|
|
488
|
+
headers?: Record<string, string> | undefined;
|
|
489
|
+
query?: Record<string, string> | undefined;
|
|
490
|
+
body?: Record<string, any> | undefined;
|
|
491
|
+
proxyUrl?: string | undefined;
|
|
492
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
493
|
+
retry?: {
|
|
494
|
+
maxAttempts: number;
|
|
495
|
+
initialDelay: number;
|
|
496
|
+
exponentialFactor: number;
|
|
497
|
+
} | undefined;
|
|
498
|
+
} | undefined;
|
|
453
499
|
}[] | undefined;
|
|
454
500
|
};
|
|
455
501
|
response: {
|
|
@@ -496,6 +542,9 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
496
542
|
id: string;
|
|
497
543
|
name: string;
|
|
498
544
|
metadata?: undefined;
|
|
545
|
+
apiResponse?: {
|
|
546
|
+
statusCode: number;
|
|
547
|
+
} | undefined;
|
|
499
548
|
})[];
|
|
500
549
|
metadata?: undefined;
|
|
501
550
|
}[];
|
|
@@ -736,6 +785,13 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
736
785
|
id: z.ZodString;
|
|
737
786
|
name: z.ZodString;
|
|
738
787
|
data: z.ZodString;
|
|
788
|
+
apiResponse: z.ZodOptional<z.ZodObject<{
|
|
789
|
+
statusCode: z.ZodNumber;
|
|
790
|
+
}, "strip", z.ZodTypeAny, {
|
|
791
|
+
statusCode: number;
|
|
792
|
+
}, {
|
|
793
|
+
statusCode: number;
|
|
794
|
+
}>>;
|
|
739
795
|
metadata: z.ZodUndefined;
|
|
740
796
|
}, "strip", z.ZodTypeAny, {
|
|
741
797
|
data: string;
|
|
@@ -744,6 +800,9 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
744
800
|
modality: "tool-response";
|
|
745
801
|
index: number;
|
|
746
802
|
metadata?: undefined;
|
|
803
|
+
apiResponse?: {
|
|
804
|
+
statusCode: number;
|
|
805
|
+
} | undefined;
|
|
747
806
|
}, {
|
|
748
807
|
data: string;
|
|
749
808
|
id: string;
|
|
@@ -751,6 +810,9 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
751
810
|
modality: "tool-response";
|
|
752
811
|
index: number;
|
|
753
812
|
metadata?: undefined;
|
|
813
|
+
apiResponse?: {
|
|
814
|
+
statusCode: number;
|
|
815
|
+
} | undefined;
|
|
754
816
|
}>, z.ZodObject<{
|
|
755
817
|
modality: z.ZodLiteral<"reasoning">;
|
|
756
818
|
value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -843,6 +905,9 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
843
905
|
modality: "tool-response";
|
|
844
906
|
index: number;
|
|
845
907
|
metadata?: undefined;
|
|
908
|
+
apiResponse?: {
|
|
909
|
+
statusCode: number;
|
|
910
|
+
} | undefined;
|
|
846
911
|
})[];
|
|
847
912
|
metadata?: undefined;
|
|
848
913
|
}, {
|
|
@@ -888,6 +953,9 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
888
953
|
modality: "tool-response";
|
|
889
954
|
index: number;
|
|
890
955
|
metadata?: undefined;
|
|
956
|
+
apiResponse?: {
|
|
957
|
+
statusCode: number;
|
|
958
|
+
} | undefined;
|
|
891
959
|
})[];
|
|
892
960
|
metadata?: undefined;
|
|
893
961
|
}>, "many">;
|
|
@@ -925,6 +993,57 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
925
993
|
parameters?: any;
|
|
926
994
|
};
|
|
927
995
|
}>;
|
|
996
|
+
apiSettings: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
997
|
+
type: z.ZodLiteral<"http">;
|
|
998
|
+
method: z.ZodEnum<["get", "post"]>;
|
|
999
|
+
url: z.ZodString;
|
|
1000
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1001
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1002
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1003
|
+
proxyUrl: z.ZodOptional<z.ZodString>;
|
|
1004
|
+
proxyHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1005
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
1006
|
+
maxAttempts: z.ZodNumber;
|
|
1007
|
+
initialDelay: z.ZodNumber;
|
|
1008
|
+
exponentialFactor: z.ZodNumber;
|
|
1009
|
+
}, "strip", z.ZodTypeAny, {
|
|
1010
|
+
maxAttempts: number;
|
|
1011
|
+
initialDelay: number;
|
|
1012
|
+
exponentialFactor: number;
|
|
1013
|
+
}, {
|
|
1014
|
+
maxAttempts: number;
|
|
1015
|
+
initialDelay: number;
|
|
1016
|
+
exponentialFactor: number;
|
|
1017
|
+
}>>;
|
|
1018
|
+
}, "strip", z.ZodTypeAny, {
|
|
1019
|
+
type: "http";
|
|
1020
|
+
url: string;
|
|
1021
|
+
method: "get" | "post";
|
|
1022
|
+
headers?: Record<string, string> | undefined;
|
|
1023
|
+
query?: Record<string, string> | undefined;
|
|
1024
|
+
body?: Record<string, any> | undefined;
|
|
1025
|
+
proxyUrl?: string | undefined;
|
|
1026
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
1027
|
+
retry?: {
|
|
1028
|
+
maxAttempts: number;
|
|
1029
|
+
initialDelay: number;
|
|
1030
|
+
exponentialFactor: number;
|
|
1031
|
+
} | undefined;
|
|
1032
|
+
}, {
|
|
1033
|
+
type: "http";
|
|
1034
|
+
url: string;
|
|
1035
|
+
method: "get" | "post";
|
|
1036
|
+
headers?: Record<string, string> | undefined;
|
|
1037
|
+
query?: Record<string, string> | undefined;
|
|
1038
|
+
body?: Record<string, any> | undefined;
|
|
1039
|
+
proxyUrl?: string | undefined;
|
|
1040
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
1041
|
+
retry?: {
|
|
1042
|
+
maxAttempts: number;
|
|
1043
|
+
initialDelay: number;
|
|
1044
|
+
exponentialFactor: number;
|
|
1045
|
+
} | undefined;
|
|
1046
|
+
}>]>>;
|
|
928
1047
|
}, {
|
|
929
1048
|
metadata: z.ZodTypeAny;
|
|
930
1049
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -938,6 +1057,21 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
938
1057
|
};
|
|
939
1058
|
};
|
|
940
1059
|
metadata?: any;
|
|
1060
|
+
apiSettings?: {
|
|
1061
|
+
type: "http";
|
|
1062
|
+
url: string;
|
|
1063
|
+
method: "get" | "post";
|
|
1064
|
+
headers?: Record<string, string> | undefined;
|
|
1065
|
+
query?: Record<string, string> | undefined;
|
|
1066
|
+
body?: Record<string, any> | undefined;
|
|
1067
|
+
proxyUrl?: string | undefined;
|
|
1068
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
1069
|
+
retry?: {
|
|
1070
|
+
maxAttempts: number;
|
|
1071
|
+
initialDelay: number;
|
|
1072
|
+
exponentialFactor: number;
|
|
1073
|
+
} | undefined;
|
|
1074
|
+
} | undefined;
|
|
941
1075
|
}, {
|
|
942
1076
|
type: "function";
|
|
943
1077
|
definition: {
|
|
@@ -949,6 +1083,21 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
949
1083
|
};
|
|
950
1084
|
};
|
|
951
1085
|
metadata?: any;
|
|
1086
|
+
apiSettings?: {
|
|
1087
|
+
type: "http";
|
|
1088
|
+
url: string;
|
|
1089
|
+
method: "get" | "post";
|
|
1090
|
+
headers?: Record<string, string> | undefined;
|
|
1091
|
+
query?: Record<string, string> | undefined;
|
|
1092
|
+
body?: Record<string, any> | undefined;
|
|
1093
|
+
proxyUrl?: string | undefined;
|
|
1094
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
1095
|
+
retry?: {
|
|
1096
|
+
maxAttempts: number;
|
|
1097
|
+
initialDelay: number;
|
|
1098
|
+
exponentialFactor: number;
|
|
1099
|
+
} | undefined;
|
|
1100
|
+
} | undefined;
|
|
952
1101
|
}>]>, "many">>;
|
|
953
1102
|
enableCache: z.ZodBoolean;
|
|
954
1103
|
customHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -1060,6 +1209,9 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
1060
1209
|
modality: "tool-response";
|
|
1061
1210
|
index: number;
|
|
1062
1211
|
metadata?: undefined;
|
|
1212
|
+
apiResponse?: {
|
|
1213
|
+
statusCode: number;
|
|
1214
|
+
} | undefined;
|
|
1063
1215
|
})[];
|
|
1064
1216
|
metadata?: undefined;
|
|
1065
1217
|
}[];
|
|
@@ -1110,6 +1262,9 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
1110
1262
|
modality: "tool-response";
|
|
1111
1263
|
index: number;
|
|
1112
1264
|
metadata?: undefined;
|
|
1265
|
+
apiResponse?: {
|
|
1266
|
+
statusCode: number;
|
|
1267
|
+
} | undefined;
|
|
1113
1268
|
})[];
|
|
1114
1269
|
metadata?: undefined;
|
|
1115
1270
|
}[];
|
|
@@ -1124,6 +1279,21 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
1124
1279
|
};
|
|
1125
1280
|
};
|
|
1126
1281
|
metadata?: any;
|
|
1282
|
+
apiSettings?: {
|
|
1283
|
+
type: "http";
|
|
1284
|
+
url: string;
|
|
1285
|
+
method: "get" | "post";
|
|
1286
|
+
headers?: Record<string, string> | undefined;
|
|
1287
|
+
query?: Record<string, string> | undefined;
|
|
1288
|
+
body?: Record<string, any> | undefined;
|
|
1289
|
+
proxyUrl?: string | undefined;
|
|
1290
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
1291
|
+
retry?: {
|
|
1292
|
+
maxAttempts: number;
|
|
1293
|
+
initialDelay: number;
|
|
1294
|
+
exponentialFactor: number;
|
|
1295
|
+
} | undefined;
|
|
1296
|
+
} | undefined;
|
|
1127
1297
|
}[] | undefined;
|
|
1128
1298
|
};
|
|
1129
1299
|
response: {
|
|
@@ -1170,6 +1340,9 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
1170
1340
|
id: string;
|
|
1171
1341
|
name: string;
|
|
1172
1342
|
metadata?: undefined;
|
|
1343
|
+
apiResponse?: {
|
|
1344
|
+
statusCode: number;
|
|
1345
|
+
} | undefined;
|
|
1173
1346
|
})[];
|
|
1174
1347
|
metadata?: undefined;
|
|
1175
1348
|
}[];
|
|
@@ -1208,6 +1381,21 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
1208
1381
|
};
|
|
1209
1382
|
};
|
|
1210
1383
|
metadata?: any;
|
|
1384
|
+
apiSettings?: {
|
|
1385
|
+
type: "http";
|
|
1386
|
+
url: string;
|
|
1387
|
+
method: "get" | "post";
|
|
1388
|
+
headers?: Record<string, string> | undefined;
|
|
1389
|
+
query?: Record<string, string> | undefined;
|
|
1390
|
+
body?: Record<string, any> | undefined;
|
|
1391
|
+
proxyUrl?: string | undefined;
|
|
1392
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
1393
|
+
retry?: {
|
|
1394
|
+
maxAttempts: number;
|
|
1395
|
+
initialDelay: number;
|
|
1396
|
+
exponentialFactor: number;
|
|
1397
|
+
} | undefined;
|
|
1398
|
+
} | undefined;
|
|
1211
1399
|
}[] | undefined;
|
|
1212
1400
|
customHeaders?: Record<string, string> | undefined;
|
|
1213
1401
|
metadataForCallbacks?: any;
|
|
@@ -1318,6 +1506,9 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
1318
1506
|
modality: "tool-response";
|
|
1319
1507
|
index: number;
|
|
1320
1508
|
metadata?: undefined;
|
|
1509
|
+
apiResponse?: {
|
|
1510
|
+
statusCode: number;
|
|
1511
|
+
} | undefined;
|
|
1321
1512
|
})[];
|
|
1322
1513
|
metadata?: undefined;
|
|
1323
1514
|
}[];
|
|
@@ -1368,6 +1559,9 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
1368
1559
|
modality: "tool-response";
|
|
1369
1560
|
index: number;
|
|
1370
1561
|
metadata?: undefined;
|
|
1562
|
+
apiResponse?: {
|
|
1563
|
+
statusCode: number;
|
|
1564
|
+
} | undefined;
|
|
1371
1565
|
})[];
|
|
1372
1566
|
metadata?: undefined;
|
|
1373
1567
|
}[];
|
|
@@ -1382,6 +1576,21 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
1382
1576
|
};
|
|
1383
1577
|
};
|
|
1384
1578
|
metadata?: any;
|
|
1579
|
+
apiSettings?: {
|
|
1580
|
+
type: "http";
|
|
1581
|
+
url: string;
|
|
1582
|
+
method: "get" | "post";
|
|
1583
|
+
headers?: Record<string, string> | undefined;
|
|
1584
|
+
query?: Record<string, string> | undefined;
|
|
1585
|
+
body?: Record<string, any> | undefined;
|
|
1586
|
+
proxyUrl?: string | undefined;
|
|
1587
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
1588
|
+
retry?: {
|
|
1589
|
+
maxAttempts: number;
|
|
1590
|
+
initialDelay: number;
|
|
1591
|
+
exponentialFactor: number;
|
|
1592
|
+
} | undefined;
|
|
1593
|
+
} | undefined;
|
|
1385
1594
|
}[] | undefined;
|
|
1386
1595
|
};
|
|
1387
1596
|
response: {
|
|
@@ -1428,6 +1637,9 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
1428
1637
|
id: string;
|
|
1429
1638
|
name: string;
|
|
1430
1639
|
metadata?: undefined;
|
|
1640
|
+
apiResponse?: {
|
|
1641
|
+
statusCode: number;
|
|
1642
|
+
} | undefined;
|
|
1431
1643
|
})[];
|
|
1432
1644
|
metadata?: undefined;
|
|
1433
1645
|
}[];
|
|
@@ -1466,6 +1678,21 @@ declare const CompleteChatHandlerRequest: z.ZodObject<{
|
|
|
1466
1678
|
};
|
|
1467
1679
|
};
|
|
1468
1680
|
metadata?: any;
|
|
1681
|
+
apiSettings?: {
|
|
1682
|
+
type: "http";
|
|
1683
|
+
url: string;
|
|
1684
|
+
method: "get" | "post";
|
|
1685
|
+
headers?: Record<string, string> | undefined;
|
|
1686
|
+
query?: Record<string, string> | undefined;
|
|
1687
|
+
body?: Record<string, any> | undefined;
|
|
1688
|
+
proxyUrl?: string | undefined;
|
|
1689
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
1690
|
+
retry?: {
|
|
1691
|
+
maxAttempts: number;
|
|
1692
|
+
initialDelay: number;
|
|
1693
|
+
exponentialFactor: number;
|
|
1694
|
+
} | undefined;
|
|
1695
|
+
} | undefined;
|
|
1469
1696
|
}[] | undefined;
|
|
1470
1697
|
customHeaders?: Record<string, string> | undefined;
|
|
1471
1698
|
metadataForCallbacks?: any;
|
|
@@ -1566,6 +1793,13 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
1566
1793
|
id: z.ZodString;
|
|
1567
1794
|
name: z.ZodString;
|
|
1568
1795
|
data: z.ZodString;
|
|
1796
|
+
apiResponse: z.ZodOptional<z.ZodObject<{
|
|
1797
|
+
statusCode: z.ZodNumber;
|
|
1798
|
+
}, "strip", z.ZodTypeAny, {
|
|
1799
|
+
statusCode: number;
|
|
1800
|
+
}, {
|
|
1801
|
+
statusCode: number;
|
|
1802
|
+
}>>;
|
|
1569
1803
|
metadata: z.ZodUndefined;
|
|
1570
1804
|
}, "strip", z.ZodTypeAny, {
|
|
1571
1805
|
data: string;
|
|
@@ -1574,6 +1808,9 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
1574
1808
|
modality: "tool-response";
|
|
1575
1809
|
index: number;
|
|
1576
1810
|
metadata?: undefined;
|
|
1811
|
+
apiResponse?: {
|
|
1812
|
+
statusCode: number;
|
|
1813
|
+
} | undefined;
|
|
1577
1814
|
}, {
|
|
1578
1815
|
data: string;
|
|
1579
1816
|
id: string;
|
|
@@ -1581,6 +1818,9 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
1581
1818
|
modality: "tool-response";
|
|
1582
1819
|
index: number;
|
|
1583
1820
|
metadata?: undefined;
|
|
1821
|
+
apiResponse?: {
|
|
1822
|
+
statusCode: number;
|
|
1823
|
+
} | undefined;
|
|
1584
1824
|
}>, z.ZodObject<{
|
|
1585
1825
|
modality: z.ZodLiteral<"reasoning">;
|
|
1586
1826
|
value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -1673,6 +1913,9 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
1673
1913
|
modality: "tool-response";
|
|
1674
1914
|
index: number;
|
|
1675
1915
|
metadata?: undefined;
|
|
1916
|
+
apiResponse?: {
|
|
1917
|
+
statusCode: number;
|
|
1918
|
+
} | undefined;
|
|
1676
1919
|
})[];
|
|
1677
1920
|
metadata?: undefined;
|
|
1678
1921
|
}, {
|
|
@@ -1718,6 +1961,9 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
1718
1961
|
modality: "tool-response";
|
|
1719
1962
|
index: number;
|
|
1720
1963
|
metadata?: undefined;
|
|
1964
|
+
apiResponse?: {
|
|
1965
|
+
statusCode: number;
|
|
1966
|
+
} | undefined;
|
|
1721
1967
|
})[];
|
|
1722
1968
|
metadata?: undefined;
|
|
1723
1969
|
}>, "many">;
|
|
@@ -1755,6 +2001,57 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
1755
2001
|
parameters?: any;
|
|
1756
2002
|
};
|
|
1757
2003
|
}>;
|
|
2004
|
+
apiSettings: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2005
|
+
type: z.ZodLiteral<"http">;
|
|
2006
|
+
method: z.ZodEnum<["get", "post"]>;
|
|
2007
|
+
url: z.ZodString;
|
|
2008
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2009
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2010
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2011
|
+
proxyUrl: z.ZodOptional<z.ZodString>;
|
|
2012
|
+
proxyHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2013
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
2014
|
+
maxAttempts: z.ZodNumber;
|
|
2015
|
+
initialDelay: z.ZodNumber;
|
|
2016
|
+
exponentialFactor: z.ZodNumber;
|
|
2017
|
+
}, "strip", z.ZodTypeAny, {
|
|
2018
|
+
maxAttempts: number;
|
|
2019
|
+
initialDelay: number;
|
|
2020
|
+
exponentialFactor: number;
|
|
2021
|
+
}, {
|
|
2022
|
+
maxAttempts: number;
|
|
2023
|
+
initialDelay: number;
|
|
2024
|
+
exponentialFactor: number;
|
|
2025
|
+
}>>;
|
|
2026
|
+
}, "strip", z.ZodTypeAny, {
|
|
2027
|
+
type: "http";
|
|
2028
|
+
url: string;
|
|
2029
|
+
method: "get" | "post";
|
|
2030
|
+
headers?: Record<string, string> | undefined;
|
|
2031
|
+
query?: Record<string, string> | undefined;
|
|
2032
|
+
body?: Record<string, any> | undefined;
|
|
2033
|
+
proxyUrl?: string | undefined;
|
|
2034
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
2035
|
+
retry?: {
|
|
2036
|
+
maxAttempts: number;
|
|
2037
|
+
initialDelay: number;
|
|
2038
|
+
exponentialFactor: number;
|
|
2039
|
+
} | undefined;
|
|
2040
|
+
}, {
|
|
2041
|
+
type: "http";
|
|
2042
|
+
url: string;
|
|
2043
|
+
method: "get" | "post";
|
|
2044
|
+
headers?: Record<string, string> | undefined;
|
|
2045
|
+
query?: Record<string, string> | undefined;
|
|
2046
|
+
body?: Record<string, any> | undefined;
|
|
2047
|
+
proxyUrl?: string | undefined;
|
|
2048
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
2049
|
+
retry?: {
|
|
2050
|
+
maxAttempts: number;
|
|
2051
|
+
initialDelay: number;
|
|
2052
|
+
exponentialFactor: number;
|
|
2053
|
+
} | undefined;
|
|
2054
|
+
}>]>>;
|
|
1758
2055
|
}, {
|
|
1759
2056
|
metadata: z.ZodTypeAny;
|
|
1760
2057
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -1768,6 +2065,21 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
1768
2065
|
};
|
|
1769
2066
|
};
|
|
1770
2067
|
metadata?: any;
|
|
2068
|
+
apiSettings?: {
|
|
2069
|
+
type: "http";
|
|
2070
|
+
url: string;
|
|
2071
|
+
method: "get" | "post";
|
|
2072
|
+
headers?: Record<string, string> | undefined;
|
|
2073
|
+
query?: Record<string, string> | undefined;
|
|
2074
|
+
body?: Record<string, any> | undefined;
|
|
2075
|
+
proxyUrl?: string | undefined;
|
|
2076
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
2077
|
+
retry?: {
|
|
2078
|
+
maxAttempts: number;
|
|
2079
|
+
initialDelay: number;
|
|
2080
|
+
exponentialFactor: number;
|
|
2081
|
+
} | undefined;
|
|
2082
|
+
} | undefined;
|
|
1771
2083
|
}, {
|
|
1772
2084
|
type: "function";
|
|
1773
2085
|
definition: {
|
|
@@ -1779,6 +2091,21 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
1779
2091
|
};
|
|
1780
2092
|
};
|
|
1781
2093
|
metadata?: any;
|
|
2094
|
+
apiSettings?: {
|
|
2095
|
+
type: "http";
|
|
2096
|
+
url: string;
|
|
2097
|
+
method: "get" | "post";
|
|
2098
|
+
headers?: Record<string, string> | undefined;
|
|
2099
|
+
query?: Record<string, string> | undefined;
|
|
2100
|
+
body?: Record<string, any> | undefined;
|
|
2101
|
+
proxyUrl?: string | undefined;
|
|
2102
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
2103
|
+
retry?: {
|
|
2104
|
+
maxAttempts: number;
|
|
2105
|
+
initialDelay: number;
|
|
2106
|
+
exponentialFactor: number;
|
|
2107
|
+
} | undefined;
|
|
2108
|
+
} | undefined;
|
|
1782
2109
|
}>]>, "many">>;
|
|
1783
2110
|
}, "strip", z.ZodTypeAny, {
|
|
1784
2111
|
config: Record<string, any>;
|
|
@@ -1825,6 +2152,9 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
1825
2152
|
modality: "tool-response";
|
|
1826
2153
|
index: number;
|
|
1827
2154
|
metadata?: undefined;
|
|
2155
|
+
apiResponse?: {
|
|
2156
|
+
statusCode: number;
|
|
2157
|
+
} | undefined;
|
|
1828
2158
|
})[];
|
|
1829
2159
|
metadata?: undefined;
|
|
1830
2160
|
}[];
|
|
@@ -1839,6 +2169,21 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
1839
2169
|
};
|
|
1840
2170
|
};
|
|
1841
2171
|
metadata?: any;
|
|
2172
|
+
apiSettings?: {
|
|
2173
|
+
type: "http";
|
|
2174
|
+
url: string;
|
|
2175
|
+
method: "get" | "post";
|
|
2176
|
+
headers?: Record<string, string> | undefined;
|
|
2177
|
+
query?: Record<string, string> | undefined;
|
|
2178
|
+
body?: Record<string, any> | undefined;
|
|
2179
|
+
proxyUrl?: string | undefined;
|
|
2180
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
2181
|
+
retry?: {
|
|
2182
|
+
maxAttempts: number;
|
|
2183
|
+
initialDelay: number;
|
|
2184
|
+
exponentialFactor: number;
|
|
2185
|
+
} | undefined;
|
|
2186
|
+
} | undefined;
|
|
1842
2187
|
}[] | undefined;
|
|
1843
2188
|
}, {
|
|
1844
2189
|
config: Record<string, any>;
|
|
@@ -1885,6 +2230,9 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
1885
2230
|
modality: "tool-response";
|
|
1886
2231
|
index: number;
|
|
1887
2232
|
metadata?: undefined;
|
|
2233
|
+
apiResponse?: {
|
|
2234
|
+
statusCode: number;
|
|
2235
|
+
} | undefined;
|
|
1888
2236
|
})[];
|
|
1889
2237
|
metadata?: undefined;
|
|
1890
2238
|
}[];
|
|
@@ -1899,6 +2247,21 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
1899
2247
|
};
|
|
1900
2248
|
};
|
|
1901
2249
|
metadata?: any;
|
|
2250
|
+
apiSettings?: {
|
|
2251
|
+
type: "http";
|
|
2252
|
+
url: string;
|
|
2253
|
+
method: "get" | "post";
|
|
2254
|
+
headers?: Record<string, string> | undefined;
|
|
2255
|
+
query?: Record<string, string> | undefined;
|
|
2256
|
+
body?: Record<string, any> | undefined;
|
|
2257
|
+
proxyUrl?: string | undefined;
|
|
2258
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
2259
|
+
retry?: {
|
|
2260
|
+
maxAttempts: number;
|
|
2261
|
+
initialDelay: number;
|
|
2262
|
+
exponentialFactor: number;
|
|
2263
|
+
} | undefined;
|
|
2264
|
+
} | undefined;
|
|
1902
2265
|
}[] | undefined;
|
|
1903
2266
|
}>;
|
|
1904
2267
|
response: z.ZodObject<{
|
|
@@ -1993,6 +2356,13 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
1993
2356
|
id: z.ZodString;
|
|
1994
2357
|
name: z.ZodString;
|
|
1995
2358
|
data: z.ZodString;
|
|
2359
|
+
apiResponse: z.ZodOptional<z.ZodObject<{
|
|
2360
|
+
statusCode: z.ZodNumber;
|
|
2361
|
+
}, "strip", z.ZodTypeAny, {
|
|
2362
|
+
statusCode: number;
|
|
2363
|
+
}, {
|
|
2364
|
+
statusCode: number;
|
|
2365
|
+
}>>;
|
|
1996
2366
|
metadata: z.ZodUndefined;
|
|
1997
2367
|
}, "strip", z.ZodTypeAny, {
|
|
1998
2368
|
modality: "tool-response";
|
|
@@ -2001,6 +2371,9 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2001
2371
|
id: string;
|
|
2002
2372
|
name: string;
|
|
2003
2373
|
metadata?: undefined;
|
|
2374
|
+
apiResponse?: {
|
|
2375
|
+
statusCode: number;
|
|
2376
|
+
} | undefined;
|
|
2004
2377
|
}, {
|
|
2005
2378
|
modality: "tool-response";
|
|
2006
2379
|
data: string;
|
|
@@ -2008,6 +2381,9 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2008
2381
|
id: string;
|
|
2009
2382
|
name: string;
|
|
2010
2383
|
metadata?: undefined;
|
|
2384
|
+
apiResponse?: {
|
|
2385
|
+
statusCode: number;
|
|
2386
|
+
} | undefined;
|
|
2011
2387
|
}>, z.ZodObject<{
|
|
2012
2388
|
modality: z.ZodLiteral<"reasoning">;
|
|
2013
2389
|
value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -2100,6 +2476,9 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2100
2476
|
id: string;
|
|
2101
2477
|
name: string;
|
|
2102
2478
|
metadata?: undefined;
|
|
2479
|
+
apiResponse?: {
|
|
2480
|
+
statusCode: number;
|
|
2481
|
+
} | undefined;
|
|
2103
2482
|
})[];
|
|
2104
2483
|
metadata?: undefined;
|
|
2105
2484
|
}, {
|
|
@@ -2145,6 +2524,9 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2145
2524
|
id: string;
|
|
2146
2525
|
name: string;
|
|
2147
2526
|
metadata?: undefined;
|
|
2527
|
+
apiResponse?: {
|
|
2528
|
+
statusCode: number;
|
|
2529
|
+
} | undefined;
|
|
2148
2530
|
})[];
|
|
2149
2531
|
metadata?: undefined;
|
|
2150
2532
|
}>, "many">;
|
|
@@ -2242,6 +2624,9 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2242
2624
|
id: string;
|
|
2243
2625
|
name: string;
|
|
2244
2626
|
metadata?: undefined;
|
|
2627
|
+
apiResponse?: {
|
|
2628
|
+
statusCode: number;
|
|
2629
|
+
} | undefined;
|
|
2245
2630
|
})[];
|
|
2246
2631
|
metadata?: undefined;
|
|
2247
2632
|
}[];
|
|
@@ -2304,6 +2689,9 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2304
2689
|
id: string;
|
|
2305
2690
|
name: string;
|
|
2306
2691
|
metadata?: undefined;
|
|
2692
|
+
apiResponse?: {
|
|
2693
|
+
statusCode: number;
|
|
2694
|
+
} | undefined;
|
|
2307
2695
|
})[];
|
|
2308
2696
|
metadata?: undefined;
|
|
2309
2697
|
}[];
|
|
@@ -2382,6 +2770,9 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2382
2770
|
modality: "tool-response";
|
|
2383
2771
|
index: number;
|
|
2384
2772
|
metadata?: undefined;
|
|
2773
|
+
apiResponse?: {
|
|
2774
|
+
statusCode: number;
|
|
2775
|
+
} | undefined;
|
|
2385
2776
|
})[];
|
|
2386
2777
|
metadata?: undefined;
|
|
2387
2778
|
}[];
|
|
@@ -2396,6 +2787,21 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2396
2787
|
};
|
|
2397
2788
|
};
|
|
2398
2789
|
metadata?: any;
|
|
2790
|
+
apiSettings?: {
|
|
2791
|
+
type: "http";
|
|
2792
|
+
url: string;
|
|
2793
|
+
method: "get" | "post";
|
|
2794
|
+
headers?: Record<string, string> | undefined;
|
|
2795
|
+
query?: Record<string, string> | undefined;
|
|
2796
|
+
body?: Record<string, any> | undefined;
|
|
2797
|
+
proxyUrl?: string | undefined;
|
|
2798
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
2799
|
+
retry?: {
|
|
2800
|
+
maxAttempts: number;
|
|
2801
|
+
initialDelay: number;
|
|
2802
|
+
exponentialFactor: number;
|
|
2803
|
+
} | undefined;
|
|
2804
|
+
} | undefined;
|
|
2399
2805
|
}[] | undefined;
|
|
2400
2806
|
};
|
|
2401
2807
|
response: {
|
|
@@ -2442,6 +2848,9 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2442
2848
|
id: string;
|
|
2443
2849
|
name: string;
|
|
2444
2850
|
metadata?: undefined;
|
|
2851
|
+
apiResponse?: {
|
|
2852
|
+
statusCode: number;
|
|
2853
|
+
} | undefined;
|
|
2445
2854
|
})[];
|
|
2446
2855
|
metadata?: undefined;
|
|
2447
2856
|
}[];
|
|
@@ -2514,6 +2923,9 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2514
2923
|
modality: "tool-response";
|
|
2515
2924
|
index: number;
|
|
2516
2925
|
metadata?: undefined;
|
|
2926
|
+
apiResponse?: {
|
|
2927
|
+
statusCode: number;
|
|
2928
|
+
} | undefined;
|
|
2517
2929
|
})[];
|
|
2518
2930
|
metadata?: undefined;
|
|
2519
2931
|
}[];
|
|
@@ -2528,6 +2940,21 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2528
2940
|
};
|
|
2529
2941
|
};
|
|
2530
2942
|
metadata?: any;
|
|
2943
|
+
apiSettings?: {
|
|
2944
|
+
type: "http";
|
|
2945
|
+
url: string;
|
|
2946
|
+
method: "get" | "post";
|
|
2947
|
+
headers?: Record<string, string> | undefined;
|
|
2948
|
+
query?: Record<string, string> | undefined;
|
|
2949
|
+
body?: Record<string, any> | undefined;
|
|
2950
|
+
proxyUrl?: string | undefined;
|
|
2951
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
2952
|
+
retry?: {
|
|
2953
|
+
maxAttempts: number;
|
|
2954
|
+
initialDelay: number;
|
|
2955
|
+
exponentialFactor: number;
|
|
2956
|
+
} | undefined;
|
|
2957
|
+
} | undefined;
|
|
2531
2958
|
}[] | undefined;
|
|
2532
2959
|
};
|
|
2533
2960
|
response: {
|
|
@@ -2574,6 +3001,9 @@ declare const CompleteChatHandlerResponse: z.ZodObject<{
|
|
|
2574
3001
|
id: string;
|
|
2575
3002
|
name: string;
|
|
2576
3003
|
metadata?: undefined;
|
|
3004
|
+
apiResponse?: {
|
|
3005
|
+
statusCode: number;
|
|
3006
|
+
} | undefined;
|
|
2577
3007
|
})[];
|
|
2578
3008
|
metadata?: undefined;
|
|
2579
3009
|
}[];
|
|
@@ -3812,182 +4242,710 @@ type GetEmbeddingsCallbackType<M = any> = {
|
|
|
3812
4242
|
|
|
3813
4243
|
declare function handleGetEmbeddings(request: GetEmbeddingsHandlerRequestType, client: HttpClient, telemetryContext?: Context): Promise<GetEmbeddingsHandlerResponseType>;
|
|
3814
4244
|
|
|
3815
|
-
declare const
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
4245
|
+
declare const GetToolResponsesHandlerRequest: z.ZodObject<{
|
|
4246
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
4247
|
+
role: z.ZodEnum<["system", "user", "assistant", "tool"]>;
|
|
4248
|
+
content: z.ZodArray<z.ZodDiscriminatedUnion<"modality", [z.ZodObject<{
|
|
4249
|
+
modality: z.ZodLiteral<"text">;
|
|
4250
|
+
value: z.ZodString;
|
|
4251
|
+
metadata: z.ZodUndefined;
|
|
4252
|
+
}, "strip", z.ZodTypeAny, {
|
|
4253
|
+
value: string;
|
|
4254
|
+
modality: "text";
|
|
4255
|
+
metadata?: undefined;
|
|
4256
|
+
}, {
|
|
4257
|
+
value: string;
|
|
4258
|
+
modality: "text";
|
|
4259
|
+
metadata?: undefined;
|
|
4260
|
+
}>, z.ZodObject<{
|
|
4261
|
+
modality: z.ZodLiteral<"image">;
|
|
4262
|
+
detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
|
|
4263
|
+
value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
4264
|
+
type: z.ZodLiteral<"base64">;
|
|
4265
|
+
base64: z.ZodString;
|
|
4266
|
+
mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
|
|
4267
|
+
}, "strip", z.ZodTypeAny, {
|
|
4268
|
+
type: "base64";
|
|
4269
|
+
base64: string;
|
|
4270
|
+
mediaType: "png" | "jpeg" | "webp" | "gif";
|
|
4271
|
+
}, {
|
|
4272
|
+
type: "base64";
|
|
4273
|
+
base64: string;
|
|
4274
|
+
mediaType: "png" | "jpeg" | "webp" | "gif";
|
|
4275
|
+
}>, z.ZodObject<{
|
|
4276
|
+
type: z.ZodLiteral<"url">;
|
|
4277
|
+
url: z.ZodString;
|
|
4278
|
+
}, "strip", z.ZodTypeAny, {
|
|
4279
|
+
type: "url";
|
|
4280
|
+
url: string;
|
|
4281
|
+
}, {
|
|
4282
|
+
type: "url";
|
|
4283
|
+
url: string;
|
|
4284
|
+
}>]>;
|
|
4285
|
+
metadata: z.ZodUndefined;
|
|
4286
|
+
}, "strip", z.ZodTypeAny, {
|
|
4287
|
+
value: {
|
|
4288
|
+
type: "base64";
|
|
4289
|
+
base64: string;
|
|
4290
|
+
mediaType: "png" | "jpeg" | "webp" | "gif";
|
|
3830
4291
|
} | {
|
|
3831
|
-
type: "
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
4292
|
+
type: "url";
|
|
4293
|
+
url: string;
|
|
4294
|
+
};
|
|
4295
|
+
modality: "image";
|
|
4296
|
+
detail: "low" | "medium" | "high" | "auto";
|
|
4297
|
+
metadata?: undefined;
|
|
4298
|
+
}, {
|
|
4299
|
+
value: {
|
|
4300
|
+
type: "base64";
|
|
4301
|
+
base64: string;
|
|
4302
|
+
mediaType: "png" | "jpeg" | "webp" | "gif";
|
|
3836
4303
|
} | {
|
|
3837
|
-
type: "
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
4304
|
+
type: "url";
|
|
4305
|
+
url: string;
|
|
4306
|
+
};
|
|
4307
|
+
modality: "image";
|
|
4308
|
+
detail: "low" | "medium" | "high" | "auto";
|
|
4309
|
+
metadata?: undefined;
|
|
4310
|
+
}>, z.ZodObject<{
|
|
4311
|
+
modality: z.ZodLiteral<"tool-call">;
|
|
4312
|
+
index: z.ZodNumber;
|
|
4313
|
+
id: z.ZodString;
|
|
4314
|
+
name: z.ZodString;
|
|
4315
|
+
arguments: z.ZodString;
|
|
4316
|
+
metadata: z.ZodUndefined;
|
|
4317
|
+
}, "strip", z.ZodTypeAny, {
|
|
4318
|
+
id: string;
|
|
4319
|
+
name: string;
|
|
4320
|
+
modality: "tool-call";
|
|
4321
|
+
index: number;
|
|
4322
|
+
arguments: string;
|
|
4323
|
+
metadata?: undefined;
|
|
4324
|
+
}, {
|
|
4325
|
+
id: string;
|
|
4326
|
+
name: string;
|
|
4327
|
+
modality: "tool-call";
|
|
4328
|
+
index: number;
|
|
4329
|
+
arguments: string;
|
|
4330
|
+
metadata?: undefined;
|
|
4331
|
+
}>, z.ZodObject<{
|
|
4332
|
+
modality: z.ZodLiteral<"tool-response">;
|
|
4333
|
+
index: z.ZodNumber;
|
|
4334
|
+
id: z.ZodString;
|
|
4335
|
+
name: z.ZodString;
|
|
4336
|
+
data: z.ZodString;
|
|
4337
|
+
apiResponse: z.ZodOptional<z.ZodObject<{
|
|
4338
|
+
statusCode: z.ZodNumber;
|
|
4339
|
+
}, "strip", z.ZodTypeAny, {
|
|
4340
|
+
statusCode: number;
|
|
4341
|
+
}, {
|
|
4342
|
+
statusCode: number;
|
|
4343
|
+
}>>;
|
|
4344
|
+
metadata: z.ZodUndefined;
|
|
4345
|
+
}, "strip", z.ZodTypeAny, {
|
|
4346
|
+
data: string;
|
|
4347
|
+
id: string;
|
|
4348
|
+
name: string;
|
|
4349
|
+
modality: "tool-response";
|
|
4350
|
+
index: number;
|
|
4351
|
+
metadata?: undefined;
|
|
4352
|
+
apiResponse?: {
|
|
4353
|
+
statusCode: number;
|
|
4354
|
+
} | undefined;
|
|
4355
|
+
}, {
|
|
4356
|
+
data: string;
|
|
4357
|
+
id: string;
|
|
4358
|
+
name: string;
|
|
4359
|
+
modality: "tool-response";
|
|
4360
|
+
index: number;
|
|
4361
|
+
metadata?: undefined;
|
|
4362
|
+
apiResponse?: {
|
|
4363
|
+
statusCode: number;
|
|
4364
|
+
} | undefined;
|
|
4365
|
+
}>, z.ZodObject<{
|
|
4366
|
+
modality: z.ZodLiteral<"reasoning">;
|
|
4367
|
+
value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
4368
|
+
type: z.ZodLiteral<"thinking">;
|
|
4369
|
+
thinking: z.ZodString;
|
|
4370
|
+
signature: z.ZodString;
|
|
4371
|
+
}, "strip", z.ZodTypeAny, {
|
|
4372
|
+
type: "thinking";
|
|
4373
|
+
thinking: string;
|
|
4374
|
+
signature: string;
|
|
4375
|
+
}, {
|
|
4376
|
+
type: "thinking";
|
|
4377
|
+
thinking: string;
|
|
4378
|
+
signature: string;
|
|
4379
|
+
}>, z.ZodObject<{
|
|
4380
|
+
type: z.ZodLiteral<"redacted">;
|
|
4381
|
+
data: z.ZodString;
|
|
4382
|
+
}, "strip", z.ZodTypeAny, {
|
|
4383
|
+
type: "redacted";
|
|
4384
|
+
data: string;
|
|
4385
|
+
}, {
|
|
4386
|
+
type: "redacted";
|
|
4387
|
+
data: string;
|
|
4388
|
+
}>]>;
|
|
4389
|
+
metadata: z.ZodTypeAny;
|
|
4390
|
+
}, "strip", z.ZodTypeAny, {
|
|
4391
|
+
value: {
|
|
4392
|
+
type: "thinking";
|
|
4393
|
+
thinking: string;
|
|
4394
|
+
signature: string;
|
|
3845
4395
|
} | {
|
|
3846
|
-
type: "
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
4396
|
+
type: "redacted";
|
|
4397
|
+
data: string;
|
|
4398
|
+
};
|
|
4399
|
+
modality: "reasoning";
|
|
4400
|
+
metadata?: any;
|
|
4401
|
+
}, {
|
|
4402
|
+
value: {
|
|
4403
|
+
type: "thinking";
|
|
4404
|
+
thinking: string;
|
|
4405
|
+
signature: string;
|
|
3851
4406
|
} | {
|
|
3852
|
-
type: "
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
prices: {
|
|
3867
|
-
base: {
|
|
3868
|
-
inputPricePerMillion: number;
|
|
3869
|
-
outputPricePerMillion: number;
|
|
3870
|
-
};
|
|
3871
|
-
};
|
|
3872
|
-
maxTokens?: number | null | undefined;
|
|
3873
|
-
}[];
|
|
3874
|
-
};
|
|
3875
|
-
maxReasoningTokens?: number | undefined;
|
|
3876
|
-
}>, z.ZodTypeDef, ChatModelV1<{
|
|
3877
|
-
name: string;
|
|
3878
|
-
description: string;
|
|
3879
|
-
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
3880
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
3881
|
-
maxInputTokens: number;
|
|
3882
|
-
maxOutputTokens: number;
|
|
3883
|
-
config: {
|
|
3884
|
-
def: Record<string, {
|
|
3885
|
-
type: "multi-string";
|
|
3886
|
-
param: string;
|
|
3887
|
-
title: string;
|
|
3888
|
-
description: string;
|
|
3889
|
-
max: number;
|
|
4407
|
+
type: "redacted";
|
|
4408
|
+
data: string;
|
|
4409
|
+
};
|
|
4410
|
+
modality: "reasoning";
|
|
4411
|
+
metadata?: any;
|
|
4412
|
+
}>]>, "many">;
|
|
4413
|
+
metadata: z.ZodUndefined;
|
|
4414
|
+
}, "strip", z.ZodTypeAny, {
|
|
4415
|
+
role: "system" | "user" | "assistant" | "tool";
|
|
4416
|
+
content: ({
|
|
4417
|
+
value: {
|
|
4418
|
+
type: "thinking";
|
|
4419
|
+
thinking: string;
|
|
4420
|
+
signature: string;
|
|
3890
4421
|
} | {
|
|
3891
|
-
type: "
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
4422
|
+
type: "redacted";
|
|
4423
|
+
data: string;
|
|
4424
|
+
};
|
|
4425
|
+
modality: "reasoning";
|
|
4426
|
+
metadata?: any;
|
|
4427
|
+
} | {
|
|
4428
|
+
value: string;
|
|
4429
|
+
modality: "text";
|
|
4430
|
+
metadata?: undefined;
|
|
4431
|
+
} | {
|
|
4432
|
+
value: {
|
|
4433
|
+
type: "base64";
|
|
4434
|
+
base64: string;
|
|
4435
|
+
mediaType: "png" | "jpeg" | "webp" | "gif";
|
|
3896
4436
|
} | {
|
|
3897
|
-
type: "
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
4437
|
+
type: "url";
|
|
4438
|
+
url: string;
|
|
4439
|
+
};
|
|
4440
|
+
modality: "image";
|
|
4441
|
+
detail: "low" | "medium" | "high" | "auto";
|
|
4442
|
+
metadata?: undefined;
|
|
4443
|
+
} | {
|
|
4444
|
+
id: string;
|
|
4445
|
+
name: string;
|
|
4446
|
+
modality: "tool-call";
|
|
4447
|
+
index: number;
|
|
4448
|
+
arguments: string;
|
|
4449
|
+
metadata?: undefined;
|
|
4450
|
+
} | {
|
|
4451
|
+
data: string;
|
|
4452
|
+
id: string;
|
|
4453
|
+
name: string;
|
|
4454
|
+
modality: "tool-response";
|
|
4455
|
+
index: number;
|
|
4456
|
+
metadata?: undefined;
|
|
4457
|
+
apiResponse?: {
|
|
4458
|
+
statusCode: number;
|
|
4459
|
+
} | undefined;
|
|
4460
|
+
})[];
|
|
4461
|
+
metadata?: undefined;
|
|
4462
|
+
}, {
|
|
4463
|
+
role: "system" | "user" | "assistant" | "tool";
|
|
4464
|
+
content: ({
|
|
4465
|
+
value: {
|
|
4466
|
+
type: "thinking";
|
|
4467
|
+
thinking: string;
|
|
4468
|
+
signature: string;
|
|
3905
4469
|
} | {
|
|
3906
|
-
type: "
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
4470
|
+
type: "redacted";
|
|
4471
|
+
data: string;
|
|
4472
|
+
};
|
|
4473
|
+
modality: "reasoning";
|
|
4474
|
+
metadata?: any;
|
|
4475
|
+
} | {
|
|
4476
|
+
value: string;
|
|
4477
|
+
modality: "text";
|
|
4478
|
+
metadata?: undefined;
|
|
4479
|
+
} | {
|
|
4480
|
+
value: {
|
|
4481
|
+
type: "base64";
|
|
4482
|
+
base64: string;
|
|
4483
|
+
mediaType: "png" | "jpeg" | "webp" | "gif";
|
|
3911
4484
|
} | {
|
|
3912
|
-
type: "
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
maxOutputTokens: number;
|
|
3949
|
-
config: {
|
|
3950
|
-
def: Record<string, {
|
|
3951
|
-
type: "multi-string";
|
|
3952
|
-
param: string;
|
|
3953
|
-
title: string;
|
|
4485
|
+
type: "url";
|
|
4486
|
+
url: string;
|
|
4487
|
+
};
|
|
4488
|
+
modality: "image";
|
|
4489
|
+
detail: "low" | "medium" | "high" | "auto";
|
|
4490
|
+
metadata?: undefined;
|
|
4491
|
+
} | {
|
|
4492
|
+
id: string;
|
|
4493
|
+
name: string;
|
|
4494
|
+
modality: "tool-call";
|
|
4495
|
+
index: number;
|
|
4496
|
+
arguments: string;
|
|
4497
|
+
metadata?: undefined;
|
|
4498
|
+
} | {
|
|
4499
|
+
data: string;
|
|
4500
|
+
id: string;
|
|
4501
|
+
name: string;
|
|
4502
|
+
modality: "tool-response";
|
|
4503
|
+
index: number;
|
|
4504
|
+
metadata?: undefined;
|
|
4505
|
+
apiResponse?: {
|
|
4506
|
+
statusCode: number;
|
|
4507
|
+
} | undefined;
|
|
4508
|
+
})[];
|
|
4509
|
+
metadata?: undefined;
|
|
4510
|
+
}>, "many">;
|
|
4511
|
+
tools: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
|
4512
|
+
type: z.ZodEnum<["function"]>;
|
|
4513
|
+
definition: z.ZodObject<{
|
|
4514
|
+
schema: z.ZodObject<{
|
|
4515
|
+
name: z.ZodString;
|
|
4516
|
+
description: z.ZodString;
|
|
4517
|
+
parameters: z.ZodAny;
|
|
4518
|
+
strict: z.ZodOptional<z.ZodBoolean>;
|
|
4519
|
+
}, "strip", z.ZodTypeAny, {
|
|
4520
|
+
name: string;
|
|
3954
4521
|
description: string;
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
title: string;
|
|
4522
|
+
strict?: boolean | undefined;
|
|
4523
|
+
parameters?: any;
|
|
4524
|
+
}, {
|
|
4525
|
+
name: string;
|
|
3960
4526
|
description: string;
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
4527
|
+
strict?: boolean | undefined;
|
|
4528
|
+
parameters?: any;
|
|
4529
|
+
}>;
|
|
4530
|
+
}, "strip", z.ZodTypeAny, {
|
|
4531
|
+
schema: {
|
|
4532
|
+
name: string;
|
|
3966
4533
|
description: string;
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
param: string;
|
|
3974
|
-
title: string;
|
|
4534
|
+
strict?: boolean | undefined;
|
|
4535
|
+
parameters?: any;
|
|
4536
|
+
};
|
|
4537
|
+
}, {
|
|
4538
|
+
schema: {
|
|
4539
|
+
name: string;
|
|
3975
4540
|
description: string;
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
4541
|
+
strict?: boolean | undefined;
|
|
4542
|
+
parameters?: any;
|
|
4543
|
+
};
|
|
4544
|
+
}>;
|
|
4545
|
+
apiSettings: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
4546
|
+
type: z.ZodLiteral<"http">;
|
|
4547
|
+
method: z.ZodEnum<["get", "post"]>;
|
|
4548
|
+
url: z.ZodString;
|
|
4549
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4550
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4551
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4552
|
+
proxyUrl: z.ZodOptional<z.ZodString>;
|
|
4553
|
+
proxyHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4554
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
4555
|
+
maxAttempts: z.ZodNumber;
|
|
4556
|
+
initialDelay: z.ZodNumber;
|
|
4557
|
+
exponentialFactor: z.ZodNumber;
|
|
4558
|
+
}, "strip", z.ZodTypeAny, {
|
|
4559
|
+
maxAttempts: number;
|
|
4560
|
+
initialDelay: number;
|
|
4561
|
+
exponentialFactor: number;
|
|
4562
|
+
}, {
|
|
4563
|
+
maxAttempts: number;
|
|
4564
|
+
initialDelay: number;
|
|
4565
|
+
exponentialFactor: number;
|
|
4566
|
+
}>>;
|
|
4567
|
+
}, "strip", z.ZodTypeAny, {
|
|
4568
|
+
type: "http";
|
|
4569
|
+
url: string;
|
|
4570
|
+
method: "get" | "post";
|
|
4571
|
+
headers?: Record<string, string> | undefined;
|
|
4572
|
+
query?: Record<string, string> | undefined;
|
|
4573
|
+
body?: Record<string, any> | undefined;
|
|
4574
|
+
proxyUrl?: string | undefined;
|
|
4575
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
4576
|
+
retry?: {
|
|
4577
|
+
maxAttempts: number;
|
|
4578
|
+
initialDelay: number;
|
|
4579
|
+
exponentialFactor: number;
|
|
4580
|
+
} | undefined;
|
|
4581
|
+
}, {
|
|
4582
|
+
type: "http";
|
|
4583
|
+
url: string;
|
|
4584
|
+
method: "get" | "post";
|
|
4585
|
+
headers?: Record<string, string> | undefined;
|
|
4586
|
+
query?: Record<string, string> | undefined;
|
|
4587
|
+
body?: Record<string, any> | undefined;
|
|
4588
|
+
proxyUrl?: string | undefined;
|
|
4589
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
4590
|
+
retry?: {
|
|
4591
|
+
maxAttempts: number;
|
|
4592
|
+
initialDelay: number;
|
|
4593
|
+
exponentialFactor: number;
|
|
4594
|
+
} | undefined;
|
|
4595
|
+
}>]>>;
|
|
4596
|
+
}, {
|
|
4597
|
+
metadata: z.ZodTypeAny;
|
|
4598
|
+
}>, "strip", z.ZodTypeAny, {
|
|
4599
|
+
type: "function";
|
|
4600
|
+
definition: {
|
|
4601
|
+
schema: {
|
|
4602
|
+
name: string;
|
|
3981
4603
|
description: string;
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
}
|
|
3985
|
-
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4604
|
+
strict?: boolean | undefined;
|
|
4605
|
+
parameters?: any;
|
|
4606
|
+
};
|
|
3986
4607
|
};
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
4608
|
+
metadata?: any;
|
|
4609
|
+
apiSettings?: {
|
|
4610
|
+
type: "http";
|
|
4611
|
+
url: string;
|
|
4612
|
+
method: "get" | "post";
|
|
4613
|
+
headers?: Record<string, string> | undefined;
|
|
4614
|
+
query?: Record<string, string> | undefined;
|
|
4615
|
+
body?: Record<string, any> | undefined;
|
|
4616
|
+
proxyUrl?: string | undefined;
|
|
4617
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
4618
|
+
retry?: {
|
|
4619
|
+
maxAttempts: number;
|
|
4620
|
+
initialDelay: number;
|
|
4621
|
+
exponentialFactor: number;
|
|
4622
|
+
} | undefined;
|
|
4623
|
+
} | undefined;
|
|
4624
|
+
}, {
|
|
4625
|
+
type: "function";
|
|
4626
|
+
definition: {
|
|
4627
|
+
schema: {
|
|
4628
|
+
name: string;
|
|
4629
|
+
description: string;
|
|
4630
|
+
strict?: boolean | undefined;
|
|
4631
|
+
parameters?: any;
|
|
4632
|
+
};
|
|
4633
|
+
};
|
|
4634
|
+
metadata?: any;
|
|
4635
|
+
apiSettings?: {
|
|
4636
|
+
type: "http";
|
|
4637
|
+
url: string;
|
|
4638
|
+
method: "get" | "post";
|
|
4639
|
+
headers?: Record<string, string> | undefined;
|
|
4640
|
+
query?: Record<string, string> | undefined;
|
|
4641
|
+
body?: Record<string, any> | undefined;
|
|
4642
|
+
proxyUrl?: string | undefined;
|
|
4643
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
4644
|
+
retry?: {
|
|
4645
|
+
maxAttempts: number;
|
|
4646
|
+
initialDelay: number;
|
|
4647
|
+
exponentialFactor: number;
|
|
4648
|
+
} | undefined;
|
|
4649
|
+
} | undefined;
|
|
4650
|
+
}>]>, "many">;
|
|
4651
|
+
customHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4652
|
+
callbacks: z.ZodOptional<z.ZodArray<z.ZodType<GetToolResponsesCallbackType<any>, z.ZodTypeDef, GetToolResponsesCallbackType<any>>, "atleastone">>;
|
|
4653
|
+
metadataForCallbacks: z.ZodOptional<z.ZodAny>;
|
|
4654
|
+
abortSignal: z.ZodOptional<z.ZodType<AbortSignal, z.ZodTypeDef, AbortSignal>>;
|
|
4655
|
+
}, "strip", z.ZodTypeAny, {
|
|
4656
|
+
messages: {
|
|
4657
|
+
role: "system" | "user" | "assistant" | "tool";
|
|
4658
|
+
content: ({
|
|
4659
|
+
value: {
|
|
4660
|
+
type: "thinking";
|
|
4661
|
+
thinking: string;
|
|
4662
|
+
signature: string;
|
|
4663
|
+
} | {
|
|
4664
|
+
type: "redacted";
|
|
4665
|
+
data: string;
|
|
4666
|
+
};
|
|
4667
|
+
modality: "reasoning";
|
|
4668
|
+
metadata?: any;
|
|
4669
|
+
} | {
|
|
4670
|
+
value: string;
|
|
4671
|
+
modality: "text";
|
|
4672
|
+
metadata?: undefined;
|
|
4673
|
+
} | {
|
|
4674
|
+
value: {
|
|
4675
|
+
type: "base64";
|
|
4676
|
+
base64: string;
|
|
4677
|
+
mediaType: "png" | "jpeg" | "webp" | "gif";
|
|
4678
|
+
} | {
|
|
4679
|
+
type: "url";
|
|
4680
|
+
url: string;
|
|
4681
|
+
};
|
|
4682
|
+
modality: "image";
|
|
4683
|
+
detail: "low" | "medium" | "high" | "auto";
|
|
4684
|
+
metadata?: undefined;
|
|
4685
|
+
} | {
|
|
4686
|
+
id: string;
|
|
4687
|
+
name: string;
|
|
4688
|
+
modality: "tool-call";
|
|
4689
|
+
index: number;
|
|
4690
|
+
arguments: string;
|
|
4691
|
+
metadata?: undefined;
|
|
4692
|
+
} | {
|
|
4693
|
+
data: string;
|
|
4694
|
+
id: string;
|
|
4695
|
+
name: string;
|
|
4696
|
+
modality: "tool-response";
|
|
4697
|
+
index: number;
|
|
4698
|
+
metadata?: undefined;
|
|
4699
|
+
apiResponse?: {
|
|
4700
|
+
statusCode: number;
|
|
4701
|
+
} | undefined;
|
|
4702
|
+
})[];
|
|
4703
|
+
metadata?: undefined;
|
|
4704
|
+
}[];
|
|
4705
|
+
tools: {
|
|
4706
|
+
type: "function";
|
|
4707
|
+
definition: {
|
|
4708
|
+
schema: {
|
|
4709
|
+
name: string;
|
|
4710
|
+
description: string;
|
|
4711
|
+
strict?: boolean | undefined;
|
|
4712
|
+
parameters?: any;
|
|
4713
|
+
};
|
|
4714
|
+
};
|
|
4715
|
+
metadata?: any;
|
|
4716
|
+
apiSettings?: {
|
|
4717
|
+
type: "http";
|
|
4718
|
+
url: string;
|
|
4719
|
+
method: "get" | "post";
|
|
4720
|
+
headers?: Record<string, string> | undefined;
|
|
4721
|
+
query?: Record<string, string> | undefined;
|
|
4722
|
+
body?: Record<string, any> | undefined;
|
|
4723
|
+
proxyUrl?: string | undefined;
|
|
4724
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
4725
|
+
retry?: {
|
|
4726
|
+
maxAttempts: number;
|
|
4727
|
+
initialDelay: number;
|
|
4728
|
+
exponentialFactor: number;
|
|
4729
|
+
} | undefined;
|
|
4730
|
+
} | undefined;
|
|
4731
|
+
}[];
|
|
4732
|
+
customHeaders?: Record<string, string> | undefined;
|
|
4733
|
+
metadataForCallbacks?: any;
|
|
4734
|
+
callbacks?: [GetToolResponsesCallbackType<any>, ...GetToolResponsesCallbackType<any>[]] | undefined;
|
|
4735
|
+
abortSignal?: AbortSignal | undefined;
|
|
4736
|
+
}, {
|
|
4737
|
+
messages: {
|
|
4738
|
+
role: "system" | "user" | "assistant" | "tool";
|
|
4739
|
+
content: ({
|
|
4740
|
+
value: {
|
|
4741
|
+
type: "thinking";
|
|
4742
|
+
thinking: string;
|
|
4743
|
+
signature: string;
|
|
4744
|
+
} | {
|
|
4745
|
+
type: "redacted";
|
|
4746
|
+
data: string;
|
|
4747
|
+
};
|
|
4748
|
+
modality: "reasoning";
|
|
4749
|
+
metadata?: any;
|
|
4750
|
+
} | {
|
|
4751
|
+
value: string;
|
|
4752
|
+
modality: "text";
|
|
4753
|
+
metadata?: undefined;
|
|
4754
|
+
} | {
|
|
4755
|
+
value: {
|
|
4756
|
+
type: "base64";
|
|
4757
|
+
base64: string;
|
|
4758
|
+
mediaType: "png" | "jpeg" | "webp" | "gif";
|
|
4759
|
+
} | {
|
|
4760
|
+
type: "url";
|
|
4761
|
+
url: string;
|
|
4762
|
+
};
|
|
4763
|
+
modality: "image";
|
|
4764
|
+
detail: "low" | "medium" | "high" | "auto";
|
|
4765
|
+
metadata?: undefined;
|
|
4766
|
+
} | {
|
|
4767
|
+
id: string;
|
|
4768
|
+
name: string;
|
|
4769
|
+
modality: "tool-call";
|
|
4770
|
+
index: number;
|
|
4771
|
+
arguments: string;
|
|
4772
|
+
metadata?: undefined;
|
|
4773
|
+
} | {
|
|
4774
|
+
data: string;
|
|
4775
|
+
id: string;
|
|
4776
|
+
name: string;
|
|
4777
|
+
modality: "tool-response";
|
|
4778
|
+
index: number;
|
|
4779
|
+
metadata?: undefined;
|
|
4780
|
+
apiResponse?: {
|
|
4781
|
+
statusCode: number;
|
|
4782
|
+
} | undefined;
|
|
4783
|
+
})[];
|
|
4784
|
+
metadata?: undefined;
|
|
4785
|
+
}[];
|
|
4786
|
+
tools: {
|
|
4787
|
+
type: "function";
|
|
4788
|
+
definition: {
|
|
4789
|
+
schema: {
|
|
4790
|
+
name: string;
|
|
4791
|
+
description: string;
|
|
4792
|
+
strict?: boolean | undefined;
|
|
4793
|
+
parameters?: any;
|
|
4794
|
+
};
|
|
4795
|
+
};
|
|
4796
|
+
metadata?: any;
|
|
4797
|
+
apiSettings?: {
|
|
4798
|
+
type: "http";
|
|
4799
|
+
url: string;
|
|
4800
|
+
method: "get" | "post";
|
|
4801
|
+
headers?: Record<string, string> | undefined;
|
|
4802
|
+
query?: Record<string, string> | undefined;
|
|
4803
|
+
body?: Record<string, any> | undefined;
|
|
4804
|
+
proxyUrl?: string | undefined;
|
|
4805
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
4806
|
+
retry?: {
|
|
4807
|
+
maxAttempts: number;
|
|
4808
|
+
initialDelay: number;
|
|
4809
|
+
exponentialFactor: number;
|
|
4810
|
+
} | undefined;
|
|
4811
|
+
} | undefined;
|
|
4812
|
+
}[];
|
|
4813
|
+
customHeaders?: Record<string, string> | undefined;
|
|
4814
|
+
metadataForCallbacks?: any;
|
|
4815
|
+
callbacks?: [GetToolResponsesCallbackType<any>, ...GetToolResponsesCallbackType<any>[]] | undefined;
|
|
4816
|
+
abortSignal?: AbortSignal | undefined;
|
|
4817
|
+
}>;
|
|
4818
|
+
type GetToolResponsesHandlerRequestType = z.infer<typeof GetToolResponsesHandlerRequest>;
|
|
4819
|
+
declare const GetToolResponsesHandlerResponse: z.ZodObject<{
|
|
4820
|
+
toolResponses: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4821
|
+
modality: z.ZodLiteral<"tool-response">;
|
|
4822
|
+
index: z.ZodNumber;
|
|
4823
|
+
id: z.ZodString;
|
|
4824
|
+
name: z.ZodString;
|
|
4825
|
+
data: z.ZodString;
|
|
4826
|
+
apiResponse: z.ZodOptional<z.ZodObject<{
|
|
4827
|
+
statusCode: z.ZodNumber;
|
|
4828
|
+
}, "strip", z.ZodTypeAny, {
|
|
4829
|
+
statusCode: number;
|
|
4830
|
+
}, {
|
|
4831
|
+
statusCode: number;
|
|
4832
|
+
}>>;
|
|
4833
|
+
metadata: z.ZodUndefined;
|
|
4834
|
+
}, "strip", z.ZodTypeAny, {
|
|
4835
|
+
data: string;
|
|
4836
|
+
id: string;
|
|
4837
|
+
name: string;
|
|
4838
|
+
modality: "tool-response";
|
|
4839
|
+
index: number;
|
|
4840
|
+
metadata?: undefined;
|
|
4841
|
+
apiResponse?: {
|
|
4842
|
+
statusCode: number;
|
|
4843
|
+
} | undefined;
|
|
4844
|
+
}, {
|
|
4845
|
+
data: string;
|
|
4846
|
+
id: string;
|
|
4847
|
+
name: string;
|
|
4848
|
+
modality: "tool-response";
|
|
4849
|
+
index: number;
|
|
4850
|
+
metadata?: undefined;
|
|
4851
|
+
apiResponse?: {
|
|
4852
|
+
statusCode: number;
|
|
4853
|
+
} | undefined;
|
|
4854
|
+
}>>;
|
|
4855
|
+
cached: z.ZodBoolean;
|
|
4856
|
+
latencyInMs: z.ZodNumber;
|
|
4857
|
+
metadataForCallbacks: z.ZodOptional<z.ZodAny>;
|
|
4858
|
+
}, "strip", z.ZodTypeAny, {
|
|
4859
|
+
cached: boolean;
|
|
4860
|
+
latencyInMs: number;
|
|
4861
|
+
toolResponses: Record<string, {
|
|
4862
|
+
data: string;
|
|
4863
|
+
id: string;
|
|
4864
|
+
name: string;
|
|
4865
|
+
modality: "tool-response";
|
|
4866
|
+
index: number;
|
|
4867
|
+
metadata?: undefined;
|
|
4868
|
+
apiResponse?: {
|
|
4869
|
+
statusCode: number;
|
|
4870
|
+
} | undefined;
|
|
4871
|
+
}>;
|
|
4872
|
+
metadataForCallbacks?: any;
|
|
4873
|
+
}, {
|
|
4874
|
+
cached: boolean;
|
|
4875
|
+
latencyInMs: number;
|
|
4876
|
+
toolResponses: Record<string, {
|
|
4877
|
+
data: string;
|
|
4878
|
+
id: string;
|
|
4879
|
+
name: string;
|
|
4880
|
+
modality: "tool-response";
|
|
4881
|
+
index: number;
|
|
4882
|
+
metadata?: undefined;
|
|
4883
|
+
apiResponse?: {
|
|
4884
|
+
statusCode: number;
|
|
4885
|
+
} | undefined;
|
|
4886
|
+
}>;
|
|
4887
|
+
metadataForCallbacks?: any;
|
|
4888
|
+
}>;
|
|
4889
|
+
type GetToolResponsesHandlerResponseType = z.infer<typeof GetToolResponsesHandlerResponse>;
|
|
4890
|
+
type GetToolResponsesCallbackType<M = any> = {
|
|
4891
|
+
onGetToolResponseStart?: (toolCall: ToolCallContentType, metadata?: M) => Promise<void> | void;
|
|
4892
|
+
onGetToolResponseCached?: (toolCall: ToolCallContentType, toolResponse: ToolResponseContentType, metadata?: M) => Promise<void> | void;
|
|
4893
|
+
onGetToolResponseComplete?: (toolCall: ToolCallContentType, toolResponse: ToolResponseContentType, metadata?: M) => Promise<void> | void;
|
|
4894
|
+
onGetToolResponseError?: (toolCall: ToolCallContentType, toolResponse: ToolResponseContentType, error?: GatewayError, metadata?: M) => Promise<void> | void;
|
|
4895
|
+
};
|
|
4896
|
+
|
|
4897
|
+
declare function handleGetToolResponses(request: GetToolResponsesHandlerRequestType, client: HttpClient, telemetryContext?: Context): Promise<GetToolResponsesHandlerResponseType>;
|
|
4898
|
+
|
|
4899
|
+
declare const ProxyCompleteChatHandlerRequest: z.ZodObject<{
|
|
4900
|
+
model: z.ZodType<ChatModelV1<{
|
|
4901
|
+
name: string;
|
|
4902
|
+
description: string;
|
|
4903
|
+
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
4904
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
4905
|
+
maxInputTokens: number;
|
|
4906
|
+
maxOutputTokens: number;
|
|
4907
|
+
config: {
|
|
4908
|
+
def: Record<string, {
|
|
4909
|
+
type: "multi-string";
|
|
4910
|
+
param: string;
|
|
4911
|
+
title: string;
|
|
4912
|
+
description: string;
|
|
4913
|
+
max: number;
|
|
4914
|
+
} | {
|
|
4915
|
+
type: "object-schema";
|
|
4916
|
+
param: string;
|
|
4917
|
+
title: string;
|
|
4918
|
+
description: string;
|
|
4919
|
+
objectSchema?: any;
|
|
4920
|
+
} | {
|
|
4921
|
+
type: "range";
|
|
4922
|
+
param: string;
|
|
4923
|
+
title: string;
|
|
4924
|
+
description: string;
|
|
4925
|
+
max: number;
|
|
4926
|
+
default: number;
|
|
4927
|
+
min: number;
|
|
4928
|
+
step: number;
|
|
4929
|
+
} | {
|
|
4930
|
+
type: "select-boolean";
|
|
4931
|
+
param: string;
|
|
4932
|
+
title: string;
|
|
4933
|
+
description: string;
|
|
4934
|
+
default: boolean | null;
|
|
4935
|
+
} | {
|
|
4936
|
+
type: "select-string";
|
|
4937
|
+
param: string;
|
|
4938
|
+
title: string;
|
|
4939
|
+
description: string;
|
|
4940
|
+
default: string;
|
|
4941
|
+
choices: string[];
|
|
4942
|
+
}>;
|
|
4943
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4944
|
+
};
|
|
4945
|
+
price: {
|
|
4946
|
+
modelName: string;
|
|
4947
|
+
currency: string;
|
|
4948
|
+
tokenRanges: {
|
|
3991
4949
|
minTokens: number;
|
|
3992
4950
|
prices: {
|
|
3993
4951
|
base: {
|
|
@@ -3999,12 +4957,7 @@ declare const ProxyCompleteChatHandlerRequest: z.ZodObject<{
|
|
|
3999
4957
|
}[];
|
|
4000
4958
|
};
|
|
4001
4959
|
maxReasoningTokens?: number | undefined;
|
|
4002
|
-
}
|
|
4003
|
-
data?: any;
|
|
4004
|
-
query?: Record<string, string> | undefined;
|
|
4005
|
-
}, {
|
|
4006
|
-
headers: Record<string, string>;
|
|
4007
|
-
model: ChatModelV1<{
|
|
4960
|
+
}>, z.ZodTypeDef, ChatModelV1<{
|
|
4008
4961
|
name: string;
|
|
4009
4962
|
description: string;
|
|
4010
4963
|
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
@@ -4064,21 +5017,152 @@ declare const ProxyCompleteChatHandlerRequest: z.ZodObject<{
|
|
|
4064
5017
|
}[];
|
|
4065
5018
|
};
|
|
4066
5019
|
maxReasoningTokens?: number | undefined;
|
|
4067
|
-
}
|
|
4068
|
-
data
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
5020
|
+
}>>;
|
|
5021
|
+
data: z.ZodAny;
|
|
5022
|
+
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
5023
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5024
|
+
}, "strip", z.ZodTypeAny, {
|
|
5025
|
+
headers: Record<string, string>;
|
|
5026
|
+
model: ChatModelV1<{
|
|
5027
|
+
name: string;
|
|
5028
|
+
description: string;
|
|
5029
|
+
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
5030
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
5031
|
+
maxInputTokens: number;
|
|
5032
|
+
maxOutputTokens: number;
|
|
5033
|
+
config: {
|
|
5034
|
+
def: Record<string, {
|
|
5035
|
+
type: "multi-string";
|
|
5036
|
+
param: string;
|
|
5037
|
+
title: string;
|
|
5038
|
+
description: string;
|
|
5039
|
+
max: number;
|
|
5040
|
+
} | {
|
|
5041
|
+
type: "object-schema";
|
|
5042
|
+
param: string;
|
|
5043
|
+
title: string;
|
|
5044
|
+
description: string;
|
|
5045
|
+
objectSchema?: any;
|
|
5046
|
+
} | {
|
|
5047
|
+
type: "range";
|
|
5048
|
+
param: string;
|
|
5049
|
+
title: string;
|
|
5050
|
+
description: string;
|
|
5051
|
+
max: number;
|
|
5052
|
+
default: number;
|
|
5053
|
+
min: number;
|
|
5054
|
+
step: number;
|
|
5055
|
+
} | {
|
|
5056
|
+
type: "select-boolean";
|
|
5057
|
+
param: string;
|
|
5058
|
+
title: string;
|
|
5059
|
+
description: string;
|
|
5060
|
+
default: boolean | null;
|
|
5061
|
+
} | {
|
|
5062
|
+
type: "select-string";
|
|
5063
|
+
param: string;
|
|
5064
|
+
title: string;
|
|
5065
|
+
description: string;
|
|
5066
|
+
default: string;
|
|
5067
|
+
choices: string[];
|
|
5068
|
+
}>;
|
|
5069
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
5070
|
+
};
|
|
5071
|
+
price: {
|
|
5072
|
+
modelName: string;
|
|
5073
|
+
currency: string;
|
|
5074
|
+
tokenRanges: {
|
|
5075
|
+
minTokens: number;
|
|
5076
|
+
prices: {
|
|
5077
|
+
base: {
|
|
5078
|
+
inputPricePerMillion: number;
|
|
5079
|
+
outputPricePerMillion: number;
|
|
5080
|
+
};
|
|
5081
|
+
};
|
|
5082
|
+
maxTokens?: number | null | undefined;
|
|
5083
|
+
}[];
|
|
5084
|
+
};
|
|
5085
|
+
maxReasoningTokens?: number | undefined;
|
|
5086
|
+
}>;
|
|
5087
|
+
data?: any;
|
|
5088
|
+
query?: Record<string, string> | undefined;
|
|
5089
|
+
}, {
|
|
5090
|
+
headers: Record<string, string>;
|
|
5091
|
+
model: ChatModelV1<{
|
|
5092
|
+
name: string;
|
|
5093
|
+
description: string;
|
|
5094
|
+
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
5095
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
5096
|
+
maxInputTokens: number;
|
|
5097
|
+
maxOutputTokens: number;
|
|
5098
|
+
config: {
|
|
5099
|
+
def: Record<string, {
|
|
5100
|
+
type: "multi-string";
|
|
5101
|
+
param: string;
|
|
5102
|
+
title: string;
|
|
5103
|
+
description: string;
|
|
5104
|
+
max: number;
|
|
5105
|
+
} | {
|
|
5106
|
+
type: "object-schema";
|
|
5107
|
+
param: string;
|
|
5108
|
+
title: string;
|
|
5109
|
+
description: string;
|
|
5110
|
+
objectSchema?: any;
|
|
5111
|
+
} | {
|
|
5112
|
+
type: "range";
|
|
5113
|
+
param: string;
|
|
5114
|
+
title: string;
|
|
5115
|
+
description: string;
|
|
5116
|
+
max: number;
|
|
5117
|
+
default: number;
|
|
5118
|
+
min: number;
|
|
5119
|
+
step: number;
|
|
5120
|
+
} | {
|
|
5121
|
+
type: "select-boolean";
|
|
5122
|
+
param: string;
|
|
5123
|
+
title: string;
|
|
5124
|
+
description: string;
|
|
5125
|
+
default: boolean | null;
|
|
5126
|
+
} | {
|
|
5127
|
+
type: "select-string";
|
|
5128
|
+
param: string;
|
|
5129
|
+
title: string;
|
|
5130
|
+
description: string;
|
|
5131
|
+
default: string;
|
|
5132
|
+
choices: string[];
|
|
5133
|
+
}>;
|
|
5134
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
5135
|
+
};
|
|
5136
|
+
price: {
|
|
5137
|
+
modelName: string;
|
|
5138
|
+
currency: string;
|
|
5139
|
+
tokenRanges: {
|
|
5140
|
+
minTokens: number;
|
|
5141
|
+
prices: {
|
|
5142
|
+
base: {
|
|
5143
|
+
inputPricePerMillion: number;
|
|
5144
|
+
outputPricePerMillion: number;
|
|
5145
|
+
};
|
|
5146
|
+
};
|
|
5147
|
+
maxTokens?: number | null | undefined;
|
|
5148
|
+
}[];
|
|
5149
|
+
};
|
|
5150
|
+
maxReasoningTokens?: number | undefined;
|
|
5151
|
+
}>;
|
|
5152
|
+
data?: any;
|
|
5153
|
+
query?: Record<string, string> | undefined;
|
|
5154
|
+
}>;
|
|
5155
|
+
type ProxyCompleteChatHandlerRequestType = z.infer<typeof ProxyCompleteChatHandlerRequest>;
|
|
5156
|
+
declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
5157
|
+
request: z.ZodAny;
|
|
5158
|
+
providerRequest: z.ZodObject<{
|
|
5159
|
+
url: z.ZodString;
|
|
5160
|
+
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
5161
|
+
data: z.ZodAny;
|
|
5162
|
+
}, "strip", z.ZodTypeAny, {
|
|
5163
|
+
headers: Record<string, string>;
|
|
5164
|
+
url: string;
|
|
5165
|
+
data?: any;
|
|
4082
5166
|
}, {
|
|
4083
5167
|
headers: Record<string, string>;
|
|
4084
5168
|
url: string;
|
|
@@ -4177,6 +5261,13 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
4177
5261
|
id: z.ZodString;
|
|
4178
5262
|
name: z.ZodString;
|
|
4179
5263
|
data: z.ZodString;
|
|
5264
|
+
apiResponse: z.ZodOptional<z.ZodObject<{
|
|
5265
|
+
statusCode: z.ZodNumber;
|
|
5266
|
+
}, "strip", z.ZodTypeAny, {
|
|
5267
|
+
statusCode: number;
|
|
5268
|
+
}, {
|
|
5269
|
+
statusCode: number;
|
|
5270
|
+
}>>;
|
|
4180
5271
|
metadata: z.ZodUndefined;
|
|
4181
5272
|
}, "strip", z.ZodTypeAny, {
|
|
4182
5273
|
modality: "tool-response";
|
|
@@ -4185,6 +5276,9 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
4185
5276
|
id: string;
|
|
4186
5277
|
name: string;
|
|
4187
5278
|
metadata?: undefined;
|
|
5279
|
+
apiResponse?: {
|
|
5280
|
+
statusCode: number;
|
|
5281
|
+
} | undefined;
|
|
4188
5282
|
}, {
|
|
4189
5283
|
modality: "tool-response";
|
|
4190
5284
|
data: string;
|
|
@@ -4192,6 +5286,9 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
4192
5286
|
id: string;
|
|
4193
5287
|
name: string;
|
|
4194
5288
|
metadata?: undefined;
|
|
5289
|
+
apiResponse?: {
|
|
5290
|
+
statusCode: number;
|
|
5291
|
+
} | undefined;
|
|
4195
5292
|
}>, z.ZodObject<{
|
|
4196
5293
|
modality: z.ZodLiteral<"reasoning">;
|
|
4197
5294
|
value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -4284,6 +5381,9 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
4284
5381
|
id: string;
|
|
4285
5382
|
name: string;
|
|
4286
5383
|
metadata?: undefined;
|
|
5384
|
+
apiResponse?: {
|
|
5385
|
+
statusCode: number;
|
|
5386
|
+
} | undefined;
|
|
4287
5387
|
})[];
|
|
4288
5388
|
metadata?: undefined;
|
|
4289
5389
|
}, {
|
|
@@ -4329,6 +5429,9 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
4329
5429
|
id: string;
|
|
4330
5430
|
name: string;
|
|
4331
5431
|
metadata?: undefined;
|
|
5432
|
+
apiResponse?: {
|
|
5433
|
+
statusCode: number;
|
|
5434
|
+
} | undefined;
|
|
4332
5435
|
})[];
|
|
4333
5436
|
metadata?: undefined;
|
|
4334
5437
|
}>, "many">;
|
|
@@ -4426,6 +5529,9 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
4426
5529
|
id: string;
|
|
4427
5530
|
name: string;
|
|
4428
5531
|
metadata?: undefined;
|
|
5532
|
+
apiResponse?: {
|
|
5533
|
+
statusCode: number;
|
|
5534
|
+
} | undefined;
|
|
4429
5535
|
})[];
|
|
4430
5536
|
metadata?: undefined;
|
|
4431
5537
|
}[];
|
|
@@ -4488,6 +5594,9 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
4488
5594
|
id: string;
|
|
4489
5595
|
name: string;
|
|
4490
5596
|
metadata?: undefined;
|
|
5597
|
+
apiResponse?: {
|
|
5598
|
+
statusCode: number;
|
|
5599
|
+
} | undefined;
|
|
4491
5600
|
})[];
|
|
4492
5601
|
metadata?: undefined;
|
|
4493
5602
|
}[];
|
|
@@ -4559,6 +5668,9 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
4559
5668
|
id: string;
|
|
4560
5669
|
name: string;
|
|
4561
5670
|
metadata?: undefined;
|
|
5671
|
+
apiResponse?: {
|
|
5672
|
+
statusCode: number;
|
|
5673
|
+
} | undefined;
|
|
4562
5674
|
})[];
|
|
4563
5675
|
metadata?: undefined;
|
|
4564
5676
|
}[];
|
|
@@ -4630,6 +5742,9 @@ declare const ProxyCompleteChatHandlerResponse: z.ZodObject<{
|
|
|
4630
5742
|
id: string;
|
|
4631
5743
|
name: string;
|
|
4632
5744
|
metadata?: undefined;
|
|
5745
|
+
apiResponse?: {
|
|
5746
|
+
statusCode: number;
|
|
5747
|
+
} | undefined;
|
|
4633
5748
|
})[];
|
|
4634
5749
|
metadata?: undefined;
|
|
4635
5750
|
}[];
|
|
@@ -5868,6 +6983,13 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
5868
6983
|
id: z.ZodString;
|
|
5869
6984
|
name: z.ZodString;
|
|
5870
6985
|
data: z.ZodString;
|
|
6986
|
+
apiResponse: z.ZodOptional<z.ZodObject<{
|
|
6987
|
+
statusCode: z.ZodNumber;
|
|
6988
|
+
}, "strip", z.ZodTypeAny, {
|
|
6989
|
+
statusCode: number;
|
|
6990
|
+
}, {
|
|
6991
|
+
statusCode: number;
|
|
6992
|
+
}>>;
|
|
5871
6993
|
metadata: z.ZodUndefined;
|
|
5872
6994
|
}, "strip", z.ZodTypeAny, {
|
|
5873
6995
|
data: string;
|
|
@@ -5876,6 +6998,9 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
5876
6998
|
modality: "tool-response";
|
|
5877
6999
|
index: number;
|
|
5878
7000
|
metadata?: undefined;
|
|
7001
|
+
apiResponse?: {
|
|
7002
|
+
statusCode: number;
|
|
7003
|
+
} | undefined;
|
|
5879
7004
|
}, {
|
|
5880
7005
|
data: string;
|
|
5881
7006
|
id: string;
|
|
@@ -5883,6 +7008,9 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
5883
7008
|
modality: "tool-response";
|
|
5884
7009
|
index: number;
|
|
5885
7010
|
metadata?: undefined;
|
|
7011
|
+
apiResponse?: {
|
|
7012
|
+
statusCode: number;
|
|
7013
|
+
} | undefined;
|
|
5886
7014
|
}>, z.ZodObject<{
|
|
5887
7015
|
modality: z.ZodLiteral<"reasoning">;
|
|
5888
7016
|
value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -5975,6 +7103,9 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
5975
7103
|
modality: "tool-response";
|
|
5976
7104
|
index: number;
|
|
5977
7105
|
metadata?: undefined;
|
|
7106
|
+
apiResponse?: {
|
|
7107
|
+
statusCode: number;
|
|
7108
|
+
} | undefined;
|
|
5978
7109
|
})[];
|
|
5979
7110
|
metadata?: undefined;
|
|
5980
7111
|
}, {
|
|
@@ -6020,6 +7151,9 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
6020
7151
|
modality: "tool-response";
|
|
6021
7152
|
index: number;
|
|
6022
7153
|
metadata?: undefined;
|
|
7154
|
+
apiResponse?: {
|
|
7155
|
+
statusCode: number;
|
|
7156
|
+
} | undefined;
|
|
6023
7157
|
})[];
|
|
6024
7158
|
metadata?: undefined;
|
|
6025
7159
|
}>, "many">;
|
|
@@ -6057,6 +7191,57 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
6057
7191
|
parameters?: any;
|
|
6058
7192
|
};
|
|
6059
7193
|
}>;
|
|
7194
|
+
apiSettings: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
7195
|
+
type: z.ZodLiteral<"http">;
|
|
7196
|
+
method: z.ZodEnum<["get", "post"]>;
|
|
7197
|
+
url: z.ZodString;
|
|
7198
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7199
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7200
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
7201
|
+
proxyUrl: z.ZodOptional<z.ZodString>;
|
|
7202
|
+
proxyHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7203
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
7204
|
+
maxAttempts: z.ZodNumber;
|
|
7205
|
+
initialDelay: z.ZodNumber;
|
|
7206
|
+
exponentialFactor: z.ZodNumber;
|
|
7207
|
+
}, "strip", z.ZodTypeAny, {
|
|
7208
|
+
maxAttempts: number;
|
|
7209
|
+
initialDelay: number;
|
|
7210
|
+
exponentialFactor: number;
|
|
7211
|
+
}, {
|
|
7212
|
+
maxAttempts: number;
|
|
7213
|
+
initialDelay: number;
|
|
7214
|
+
exponentialFactor: number;
|
|
7215
|
+
}>>;
|
|
7216
|
+
}, "strip", z.ZodTypeAny, {
|
|
7217
|
+
type: "http";
|
|
7218
|
+
url: string;
|
|
7219
|
+
method: "get" | "post";
|
|
7220
|
+
headers?: Record<string, string> | undefined;
|
|
7221
|
+
query?: Record<string, string> | undefined;
|
|
7222
|
+
body?: Record<string, any> | undefined;
|
|
7223
|
+
proxyUrl?: string | undefined;
|
|
7224
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
7225
|
+
retry?: {
|
|
7226
|
+
maxAttempts: number;
|
|
7227
|
+
initialDelay: number;
|
|
7228
|
+
exponentialFactor: number;
|
|
7229
|
+
} | undefined;
|
|
7230
|
+
}, {
|
|
7231
|
+
type: "http";
|
|
7232
|
+
url: string;
|
|
7233
|
+
method: "get" | "post";
|
|
7234
|
+
headers?: Record<string, string> | undefined;
|
|
7235
|
+
query?: Record<string, string> | undefined;
|
|
7236
|
+
body?: Record<string, any> | undefined;
|
|
7237
|
+
proxyUrl?: string | undefined;
|
|
7238
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
7239
|
+
retry?: {
|
|
7240
|
+
maxAttempts: number;
|
|
7241
|
+
initialDelay: number;
|
|
7242
|
+
exponentialFactor: number;
|
|
7243
|
+
} | undefined;
|
|
7244
|
+
}>]>>;
|
|
6060
7245
|
}, {
|
|
6061
7246
|
metadata: z.ZodTypeAny;
|
|
6062
7247
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -6070,6 +7255,21 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
6070
7255
|
};
|
|
6071
7256
|
};
|
|
6072
7257
|
metadata?: any;
|
|
7258
|
+
apiSettings?: {
|
|
7259
|
+
type: "http";
|
|
7260
|
+
url: string;
|
|
7261
|
+
method: "get" | "post";
|
|
7262
|
+
headers?: Record<string, string> | undefined;
|
|
7263
|
+
query?: Record<string, string> | undefined;
|
|
7264
|
+
body?: Record<string, any> | undefined;
|
|
7265
|
+
proxyUrl?: string | undefined;
|
|
7266
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
7267
|
+
retry?: {
|
|
7268
|
+
maxAttempts: number;
|
|
7269
|
+
initialDelay: number;
|
|
7270
|
+
exponentialFactor: number;
|
|
7271
|
+
} | undefined;
|
|
7272
|
+
} | undefined;
|
|
6073
7273
|
}, {
|
|
6074
7274
|
type: "function";
|
|
6075
7275
|
definition: {
|
|
@@ -6081,6 +7281,21 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
6081
7281
|
};
|
|
6082
7282
|
};
|
|
6083
7283
|
metadata?: any;
|
|
7284
|
+
apiSettings?: {
|
|
7285
|
+
type: "http";
|
|
7286
|
+
url: string;
|
|
7287
|
+
method: "get" | "post";
|
|
7288
|
+
headers?: Record<string, string> | undefined;
|
|
7289
|
+
query?: Record<string, string> | undefined;
|
|
7290
|
+
body?: Record<string, any> | undefined;
|
|
7291
|
+
proxyUrl?: string | undefined;
|
|
7292
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
7293
|
+
retry?: {
|
|
7294
|
+
maxAttempts: number;
|
|
7295
|
+
initialDelay: number;
|
|
7296
|
+
exponentialFactor: number;
|
|
7297
|
+
} | undefined;
|
|
7298
|
+
} | undefined;
|
|
6084
7299
|
}>]>, "many">>;
|
|
6085
7300
|
customHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
6086
7301
|
callbacks: z.ZodOptional<z.ZodArray<z.ZodType<StreamChatCallbackType<any>, z.ZodTypeDef, StreamChatCallbackType<any>>, "atleastone">>;
|
|
@@ -6192,6 +7407,9 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
6192
7407
|
modality: "tool-response";
|
|
6193
7408
|
index: number;
|
|
6194
7409
|
metadata?: undefined;
|
|
7410
|
+
apiResponse?: {
|
|
7411
|
+
statusCode: number;
|
|
7412
|
+
} | undefined;
|
|
6195
7413
|
})[];
|
|
6196
7414
|
metadata?: undefined;
|
|
6197
7415
|
}[];
|
|
@@ -6206,6 +7424,21 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
6206
7424
|
};
|
|
6207
7425
|
};
|
|
6208
7426
|
metadata?: any;
|
|
7427
|
+
apiSettings?: {
|
|
7428
|
+
type: "http";
|
|
7429
|
+
url: string;
|
|
7430
|
+
method: "get" | "post";
|
|
7431
|
+
headers?: Record<string, string> | undefined;
|
|
7432
|
+
query?: Record<string, string> | undefined;
|
|
7433
|
+
body?: Record<string, any> | undefined;
|
|
7434
|
+
proxyUrl?: string | undefined;
|
|
7435
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
7436
|
+
retry?: {
|
|
7437
|
+
maxAttempts: number;
|
|
7438
|
+
initialDelay: number;
|
|
7439
|
+
exponentialFactor: number;
|
|
7440
|
+
} | undefined;
|
|
7441
|
+
} | undefined;
|
|
6209
7442
|
}[] | undefined;
|
|
6210
7443
|
customHeaders?: Record<string, string> | undefined;
|
|
6211
7444
|
metadataForCallbacks?: any;
|
|
@@ -6317,6 +7550,9 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
6317
7550
|
modality: "tool-response";
|
|
6318
7551
|
index: number;
|
|
6319
7552
|
metadata?: undefined;
|
|
7553
|
+
apiResponse?: {
|
|
7554
|
+
statusCode: number;
|
|
7555
|
+
} | undefined;
|
|
6320
7556
|
})[];
|
|
6321
7557
|
metadata?: undefined;
|
|
6322
7558
|
}[];
|
|
@@ -6331,6 +7567,21 @@ declare const StreamChatHandlerRequest: z.ZodObject<{
|
|
|
6331
7567
|
};
|
|
6332
7568
|
};
|
|
6333
7569
|
metadata?: any;
|
|
7570
|
+
apiSettings?: {
|
|
7571
|
+
type: "http";
|
|
7572
|
+
url: string;
|
|
7573
|
+
method: "get" | "post";
|
|
7574
|
+
headers?: Record<string, string> | undefined;
|
|
7575
|
+
query?: Record<string, string> | undefined;
|
|
7576
|
+
body?: Record<string, any> | undefined;
|
|
7577
|
+
proxyUrl?: string | undefined;
|
|
7578
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
7579
|
+
retry?: {
|
|
7580
|
+
maxAttempts: number;
|
|
7581
|
+
initialDelay: number;
|
|
7582
|
+
exponentialFactor: number;
|
|
7583
|
+
} | undefined;
|
|
7584
|
+
} | undefined;
|
|
6334
7585
|
}[] | undefined;
|
|
6335
7586
|
customHeaders?: Record<string, string> | undefined;
|
|
6336
7587
|
metadataForCallbacks?: any;
|
|
@@ -6432,6 +7683,13 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
6432
7683
|
id: z.ZodString;
|
|
6433
7684
|
name: z.ZodString;
|
|
6434
7685
|
data: z.ZodString;
|
|
7686
|
+
apiResponse: z.ZodOptional<z.ZodObject<{
|
|
7687
|
+
statusCode: z.ZodNumber;
|
|
7688
|
+
}, "strip", z.ZodTypeAny, {
|
|
7689
|
+
statusCode: number;
|
|
7690
|
+
}, {
|
|
7691
|
+
statusCode: number;
|
|
7692
|
+
}>>;
|
|
6435
7693
|
metadata: z.ZodUndefined;
|
|
6436
7694
|
}, "strip", z.ZodTypeAny, {
|
|
6437
7695
|
data: string;
|
|
@@ -6440,6 +7698,9 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
6440
7698
|
modality: "tool-response";
|
|
6441
7699
|
index: number;
|
|
6442
7700
|
metadata?: undefined;
|
|
7701
|
+
apiResponse?: {
|
|
7702
|
+
statusCode: number;
|
|
7703
|
+
} | undefined;
|
|
6443
7704
|
}, {
|
|
6444
7705
|
data: string;
|
|
6445
7706
|
id: string;
|
|
@@ -6447,6 +7708,9 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
6447
7708
|
modality: "tool-response";
|
|
6448
7709
|
index: number;
|
|
6449
7710
|
metadata?: undefined;
|
|
7711
|
+
apiResponse?: {
|
|
7712
|
+
statusCode: number;
|
|
7713
|
+
} | undefined;
|
|
6450
7714
|
}>, z.ZodObject<{
|
|
6451
7715
|
modality: z.ZodLiteral<"reasoning">;
|
|
6452
7716
|
value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -6539,6 +7803,9 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
6539
7803
|
modality: "tool-response";
|
|
6540
7804
|
index: number;
|
|
6541
7805
|
metadata?: undefined;
|
|
7806
|
+
apiResponse?: {
|
|
7807
|
+
statusCode: number;
|
|
7808
|
+
} | undefined;
|
|
6542
7809
|
})[];
|
|
6543
7810
|
metadata?: undefined;
|
|
6544
7811
|
}, {
|
|
@@ -6584,6 +7851,9 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
6584
7851
|
modality: "tool-response";
|
|
6585
7852
|
index: number;
|
|
6586
7853
|
metadata?: undefined;
|
|
7854
|
+
apiResponse?: {
|
|
7855
|
+
statusCode: number;
|
|
7856
|
+
} | undefined;
|
|
6587
7857
|
})[];
|
|
6588
7858
|
metadata?: undefined;
|
|
6589
7859
|
}>, "many">;
|
|
@@ -6621,6 +7891,57 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
6621
7891
|
parameters?: any;
|
|
6622
7892
|
};
|
|
6623
7893
|
}>;
|
|
7894
|
+
apiSettings: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
7895
|
+
type: z.ZodLiteral<"http">;
|
|
7896
|
+
method: z.ZodEnum<["get", "post"]>;
|
|
7897
|
+
url: z.ZodString;
|
|
7898
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7899
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7900
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
7901
|
+
proxyUrl: z.ZodOptional<z.ZodString>;
|
|
7902
|
+
proxyHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7903
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
7904
|
+
maxAttempts: z.ZodNumber;
|
|
7905
|
+
initialDelay: z.ZodNumber;
|
|
7906
|
+
exponentialFactor: z.ZodNumber;
|
|
7907
|
+
}, "strip", z.ZodTypeAny, {
|
|
7908
|
+
maxAttempts: number;
|
|
7909
|
+
initialDelay: number;
|
|
7910
|
+
exponentialFactor: number;
|
|
7911
|
+
}, {
|
|
7912
|
+
maxAttempts: number;
|
|
7913
|
+
initialDelay: number;
|
|
7914
|
+
exponentialFactor: number;
|
|
7915
|
+
}>>;
|
|
7916
|
+
}, "strip", z.ZodTypeAny, {
|
|
7917
|
+
type: "http";
|
|
7918
|
+
url: string;
|
|
7919
|
+
method: "get" | "post";
|
|
7920
|
+
headers?: Record<string, string> | undefined;
|
|
7921
|
+
query?: Record<string, string> | undefined;
|
|
7922
|
+
body?: Record<string, any> | undefined;
|
|
7923
|
+
proxyUrl?: string | undefined;
|
|
7924
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
7925
|
+
retry?: {
|
|
7926
|
+
maxAttempts: number;
|
|
7927
|
+
initialDelay: number;
|
|
7928
|
+
exponentialFactor: number;
|
|
7929
|
+
} | undefined;
|
|
7930
|
+
}, {
|
|
7931
|
+
type: "http";
|
|
7932
|
+
url: string;
|
|
7933
|
+
method: "get" | "post";
|
|
7934
|
+
headers?: Record<string, string> | undefined;
|
|
7935
|
+
query?: Record<string, string> | undefined;
|
|
7936
|
+
body?: Record<string, any> | undefined;
|
|
7937
|
+
proxyUrl?: string | undefined;
|
|
7938
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
7939
|
+
retry?: {
|
|
7940
|
+
maxAttempts: number;
|
|
7941
|
+
initialDelay: number;
|
|
7942
|
+
exponentialFactor: number;
|
|
7943
|
+
} | undefined;
|
|
7944
|
+
}>]>>;
|
|
6624
7945
|
}, {
|
|
6625
7946
|
metadata: z.ZodTypeAny;
|
|
6626
7947
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -6634,6 +7955,21 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
6634
7955
|
};
|
|
6635
7956
|
};
|
|
6636
7957
|
metadata?: any;
|
|
7958
|
+
apiSettings?: {
|
|
7959
|
+
type: "http";
|
|
7960
|
+
url: string;
|
|
7961
|
+
method: "get" | "post";
|
|
7962
|
+
headers?: Record<string, string> | undefined;
|
|
7963
|
+
query?: Record<string, string> | undefined;
|
|
7964
|
+
body?: Record<string, any> | undefined;
|
|
7965
|
+
proxyUrl?: string | undefined;
|
|
7966
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
7967
|
+
retry?: {
|
|
7968
|
+
maxAttempts: number;
|
|
7969
|
+
initialDelay: number;
|
|
7970
|
+
exponentialFactor: number;
|
|
7971
|
+
} | undefined;
|
|
7972
|
+
} | undefined;
|
|
6637
7973
|
}, {
|
|
6638
7974
|
type: "function";
|
|
6639
7975
|
definition: {
|
|
@@ -6645,6 +7981,21 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
6645
7981
|
};
|
|
6646
7982
|
};
|
|
6647
7983
|
metadata?: any;
|
|
7984
|
+
apiSettings?: {
|
|
7985
|
+
type: "http";
|
|
7986
|
+
url: string;
|
|
7987
|
+
method: "get" | "post";
|
|
7988
|
+
headers?: Record<string, string> | undefined;
|
|
7989
|
+
query?: Record<string, string> | undefined;
|
|
7990
|
+
body?: Record<string, any> | undefined;
|
|
7991
|
+
proxyUrl?: string | undefined;
|
|
7992
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
7993
|
+
retry?: {
|
|
7994
|
+
maxAttempts: number;
|
|
7995
|
+
initialDelay: number;
|
|
7996
|
+
exponentialFactor: number;
|
|
7997
|
+
} | undefined;
|
|
7998
|
+
} | undefined;
|
|
6648
7999
|
}>]>, "many">>;
|
|
6649
8000
|
}, "strip", z.ZodTypeAny, {
|
|
6650
8001
|
config: Record<string, any>;
|
|
@@ -6691,6 +8042,9 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
6691
8042
|
modality: "tool-response";
|
|
6692
8043
|
index: number;
|
|
6693
8044
|
metadata?: undefined;
|
|
8045
|
+
apiResponse?: {
|
|
8046
|
+
statusCode: number;
|
|
8047
|
+
} | undefined;
|
|
6694
8048
|
})[];
|
|
6695
8049
|
metadata?: undefined;
|
|
6696
8050
|
}[];
|
|
@@ -6705,6 +8059,21 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
6705
8059
|
};
|
|
6706
8060
|
};
|
|
6707
8061
|
metadata?: any;
|
|
8062
|
+
apiSettings?: {
|
|
8063
|
+
type: "http";
|
|
8064
|
+
url: string;
|
|
8065
|
+
method: "get" | "post";
|
|
8066
|
+
headers?: Record<string, string> | undefined;
|
|
8067
|
+
query?: Record<string, string> | undefined;
|
|
8068
|
+
body?: Record<string, any> | undefined;
|
|
8069
|
+
proxyUrl?: string | undefined;
|
|
8070
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
8071
|
+
retry?: {
|
|
8072
|
+
maxAttempts: number;
|
|
8073
|
+
initialDelay: number;
|
|
8074
|
+
exponentialFactor: number;
|
|
8075
|
+
} | undefined;
|
|
8076
|
+
} | undefined;
|
|
6708
8077
|
}[] | undefined;
|
|
6709
8078
|
}, {
|
|
6710
8079
|
config: Record<string, any>;
|
|
@@ -6751,6 +8120,9 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
6751
8120
|
modality: "tool-response";
|
|
6752
8121
|
index: number;
|
|
6753
8122
|
metadata?: undefined;
|
|
8123
|
+
apiResponse?: {
|
|
8124
|
+
statusCode: number;
|
|
8125
|
+
} | undefined;
|
|
6754
8126
|
})[];
|
|
6755
8127
|
metadata?: undefined;
|
|
6756
8128
|
}[];
|
|
@@ -6765,6 +8137,21 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
6765
8137
|
};
|
|
6766
8138
|
};
|
|
6767
8139
|
metadata?: any;
|
|
8140
|
+
apiSettings?: {
|
|
8141
|
+
type: "http";
|
|
8142
|
+
url: string;
|
|
8143
|
+
method: "get" | "post";
|
|
8144
|
+
headers?: Record<string, string> | undefined;
|
|
8145
|
+
query?: Record<string, string> | undefined;
|
|
8146
|
+
body?: Record<string, any> | undefined;
|
|
8147
|
+
proxyUrl?: string | undefined;
|
|
8148
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
8149
|
+
retry?: {
|
|
8150
|
+
maxAttempts: number;
|
|
8151
|
+
initialDelay: number;
|
|
8152
|
+
exponentialFactor: number;
|
|
8153
|
+
} | undefined;
|
|
8154
|
+
} | undefined;
|
|
6768
8155
|
}[] | undefined;
|
|
6769
8156
|
}>;
|
|
6770
8157
|
response: z.ZodObject<{
|
|
@@ -7099,6 +8486,9 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
7099
8486
|
modality: "tool-response";
|
|
7100
8487
|
index: number;
|
|
7101
8488
|
metadata?: undefined;
|
|
8489
|
+
apiResponse?: {
|
|
8490
|
+
statusCode: number;
|
|
8491
|
+
} | undefined;
|
|
7102
8492
|
})[];
|
|
7103
8493
|
metadata?: undefined;
|
|
7104
8494
|
}[];
|
|
@@ -7113,6 +8503,21 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
7113
8503
|
};
|
|
7114
8504
|
};
|
|
7115
8505
|
metadata?: any;
|
|
8506
|
+
apiSettings?: {
|
|
8507
|
+
type: "http";
|
|
8508
|
+
url: string;
|
|
8509
|
+
method: "get" | "post";
|
|
8510
|
+
headers?: Record<string, string> | undefined;
|
|
8511
|
+
query?: Record<string, string> | undefined;
|
|
8512
|
+
body?: Record<string, any> | undefined;
|
|
8513
|
+
proxyUrl?: string | undefined;
|
|
8514
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
8515
|
+
retry?: {
|
|
8516
|
+
maxAttempts: number;
|
|
8517
|
+
initialDelay: number;
|
|
8518
|
+
exponentialFactor: number;
|
|
8519
|
+
} | undefined;
|
|
8520
|
+
} | undefined;
|
|
7116
8521
|
}[] | undefined;
|
|
7117
8522
|
};
|
|
7118
8523
|
response: {
|
|
@@ -7210,6 +8615,9 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
7210
8615
|
modality: "tool-response";
|
|
7211
8616
|
index: number;
|
|
7212
8617
|
metadata?: undefined;
|
|
8618
|
+
apiResponse?: {
|
|
8619
|
+
statusCode: number;
|
|
8620
|
+
} | undefined;
|
|
7213
8621
|
})[];
|
|
7214
8622
|
metadata?: undefined;
|
|
7215
8623
|
}[];
|
|
@@ -7224,6 +8632,21 @@ declare const StreamChatHandlerResponse: z.ZodObject<{
|
|
|
7224
8632
|
};
|
|
7225
8633
|
};
|
|
7226
8634
|
metadata?: any;
|
|
8635
|
+
apiSettings?: {
|
|
8636
|
+
type: "http";
|
|
8637
|
+
url: string;
|
|
8638
|
+
method: "get" | "post";
|
|
8639
|
+
headers?: Record<string, string> | undefined;
|
|
8640
|
+
query?: Record<string, string> | undefined;
|
|
8641
|
+
body?: Record<string, any> | undefined;
|
|
8642
|
+
proxyUrl?: string | undefined;
|
|
8643
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
8644
|
+
retry?: {
|
|
8645
|
+
maxAttempts: number;
|
|
8646
|
+
initialDelay: number;
|
|
8647
|
+
exponentialFactor: number;
|
|
8648
|
+
} | undefined;
|
|
8649
|
+
} | undefined;
|
|
7227
8650
|
}[] | undefined;
|
|
7228
8651
|
};
|
|
7229
8652
|
response: {
|
|
@@ -7304,20 +8727,20 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
7304
8727
|
}>>;
|
|
7305
8728
|
}, "strip", z.ZodTypeAny, {
|
|
7306
8729
|
timeout?: number | undefined;
|
|
7307
|
-
maxConcurrentTasks?: number | undefined;
|
|
7308
|
-
retryCount?: number | undefined;
|
|
7309
8730
|
retry?: {
|
|
7310
8731
|
initialDelay: number;
|
|
7311
8732
|
exponentialFactor: number;
|
|
7312
8733
|
} | undefined;
|
|
7313
|
-
}, {
|
|
7314
|
-
timeout?: number | undefined;
|
|
7315
8734
|
maxConcurrentTasks?: number | undefined;
|
|
7316
8735
|
retryCount?: number | undefined;
|
|
8736
|
+
}, {
|
|
8737
|
+
timeout?: number | undefined;
|
|
7317
8738
|
retry?: {
|
|
7318
8739
|
initialDelay: number;
|
|
7319
8740
|
exponentialFactor: number;
|
|
7320
8741
|
} | undefined;
|
|
8742
|
+
maxConcurrentTasks?: number | undefined;
|
|
8743
|
+
retryCount?: number | undefined;
|
|
7321
8744
|
}>>>;
|
|
7322
8745
|
dangerouslyAllowBrowser: z.ZodOptional<z.ZodBoolean>;
|
|
7323
8746
|
httpClient: z.ZodOptional<z.ZodType<HttpClient, z.ZodTypeDef, HttpClient>>;
|
|
@@ -7367,6 +8790,9 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
7367
8790
|
modality: "tool-response";
|
|
7368
8791
|
index: number;
|
|
7369
8792
|
metadata?: undefined;
|
|
8793
|
+
apiResponse?: {
|
|
8794
|
+
statusCode: number;
|
|
8795
|
+
} | undefined;
|
|
7370
8796
|
})[];
|
|
7371
8797
|
metadata?: undefined;
|
|
7372
8798
|
}[];
|
|
@@ -7381,6 +8807,21 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
7381
8807
|
};
|
|
7382
8808
|
};
|
|
7383
8809
|
metadata?: any;
|
|
8810
|
+
apiSettings?: {
|
|
8811
|
+
type: "http";
|
|
8812
|
+
url: string;
|
|
8813
|
+
method: "get" | "post";
|
|
8814
|
+
headers?: Record<string, string> | undefined;
|
|
8815
|
+
query?: Record<string, string> | undefined;
|
|
8816
|
+
body?: Record<string, any> | undefined;
|
|
8817
|
+
proxyUrl?: string | undefined;
|
|
8818
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
8819
|
+
retry?: {
|
|
8820
|
+
maxAttempts: number;
|
|
8821
|
+
initialDelay: number;
|
|
8822
|
+
exponentialFactor: number;
|
|
8823
|
+
} | undefined;
|
|
8824
|
+
} | undefined;
|
|
7384
8825
|
}[] | undefined;
|
|
7385
8826
|
};
|
|
7386
8827
|
response: {
|
|
@@ -7427,6 +8868,9 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
7427
8868
|
id: string;
|
|
7428
8869
|
name: string;
|
|
7429
8870
|
metadata?: undefined;
|
|
8871
|
+
apiResponse?: {
|
|
8872
|
+
statusCode: number;
|
|
8873
|
+
} | undefined;
|
|
7430
8874
|
})[];
|
|
7431
8875
|
metadata?: undefined;
|
|
7432
8876
|
}[];
|
|
@@ -7499,6 +8943,9 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
7499
8943
|
modality: "tool-response";
|
|
7500
8944
|
index: number;
|
|
7501
8945
|
metadata?: undefined;
|
|
8946
|
+
apiResponse?: {
|
|
8947
|
+
statusCode: number;
|
|
8948
|
+
} | undefined;
|
|
7502
8949
|
})[];
|
|
7503
8950
|
metadata?: undefined;
|
|
7504
8951
|
}[];
|
|
@@ -7513,6 +8960,21 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
7513
8960
|
};
|
|
7514
8961
|
};
|
|
7515
8962
|
metadata?: any;
|
|
8963
|
+
apiSettings?: {
|
|
8964
|
+
type: "http";
|
|
8965
|
+
url: string;
|
|
8966
|
+
method: "get" | "post";
|
|
8967
|
+
headers?: Record<string, string> | undefined;
|
|
8968
|
+
query?: Record<string, string> | undefined;
|
|
8969
|
+
body?: Record<string, any> | undefined;
|
|
8970
|
+
proxyUrl?: string | undefined;
|
|
8971
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
8972
|
+
retry?: {
|
|
8973
|
+
maxAttempts: number;
|
|
8974
|
+
initialDelay: number;
|
|
8975
|
+
exponentialFactor: number;
|
|
8976
|
+
} | undefined;
|
|
8977
|
+
} | undefined;
|
|
7516
8978
|
}[] | undefined;
|
|
7517
8979
|
};
|
|
7518
8980
|
response: {
|
|
@@ -7559,6 +9021,9 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
7559
9021
|
id: string;
|
|
7560
9022
|
name: string;
|
|
7561
9023
|
metadata?: undefined;
|
|
9024
|
+
apiResponse?: {
|
|
9025
|
+
statusCode: number;
|
|
9026
|
+
} | undefined;
|
|
7562
9027
|
})[];
|
|
7563
9028
|
metadata?: undefined;
|
|
7564
9029
|
}[];
|
|
@@ -7667,6 +9132,38 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
7667
9132
|
metadataForCallbacks?: any;
|
|
7668
9133
|
}>>>;
|
|
7669
9134
|
getEmbeddingsCallbacks: z.ZodOptional<z.ZodArray<z.ZodType<GetEmbeddingsCallbackType, z.ZodTypeDef, GetEmbeddingsCallbackType>, "atleastone">>;
|
|
9135
|
+
getToolResponsesCache: z.ZodOptional<z.ZodType<Cache<{
|
|
9136
|
+
cached: boolean;
|
|
9137
|
+
latencyInMs: number;
|
|
9138
|
+
toolResponses: Record<string, {
|
|
9139
|
+
data: string;
|
|
9140
|
+
id: string;
|
|
9141
|
+
name: string;
|
|
9142
|
+
modality: "tool-response";
|
|
9143
|
+
index: number;
|
|
9144
|
+
metadata?: undefined;
|
|
9145
|
+
apiResponse?: {
|
|
9146
|
+
statusCode: number;
|
|
9147
|
+
} | undefined;
|
|
9148
|
+
}>;
|
|
9149
|
+
metadataForCallbacks?: any;
|
|
9150
|
+
}>, z.ZodTypeDef, Cache<{
|
|
9151
|
+
cached: boolean;
|
|
9152
|
+
latencyInMs: number;
|
|
9153
|
+
toolResponses: Record<string, {
|
|
9154
|
+
data: string;
|
|
9155
|
+
id: string;
|
|
9156
|
+
name: string;
|
|
9157
|
+
modality: "tool-response";
|
|
9158
|
+
index: number;
|
|
9159
|
+
metadata?: undefined;
|
|
9160
|
+
apiResponse?: {
|
|
9161
|
+
statusCode: number;
|
|
9162
|
+
} | undefined;
|
|
9163
|
+
}>;
|
|
9164
|
+
metadataForCallbacks?: any;
|
|
9165
|
+
}>>>;
|
|
9166
|
+
getToolResponsesCallbacks: z.ZodOptional<z.ZodArray<z.ZodType<GetToolResponsesCallbackType, z.ZodTypeDef, GetToolResponsesCallbackType>, "atleastone">>;
|
|
7670
9167
|
streamChatCallbacks: z.ZodOptional<z.ZodArray<z.ZodType<StreamChatCallbackType, z.ZodTypeDef, StreamChatCallbackType>, "atleastone">>;
|
|
7671
9168
|
logger: z.ZodOptional<z.ZodType<Logger, z.ZodTypeDef, Logger>>;
|
|
7672
9169
|
telemetry: z.ZodOptional<z.ZodObject<{
|
|
@@ -7685,12 +9182,12 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
7685
9182
|
enableProxyAgent?: boolean | undefined;
|
|
7686
9183
|
queueOptions?: {
|
|
7687
9184
|
timeout?: number | undefined;
|
|
7688
|
-
maxConcurrentTasks?: number | undefined;
|
|
7689
|
-
retryCount?: number | undefined;
|
|
7690
9185
|
retry?: {
|
|
7691
9186
|
initialDelay: number;
|
|
7692
9187
|
exponentialFactor: number;
|
|
7693
9188
|
} | undefined;
|
|
9189
|
+
maxConcurrentTasks?: number | undefined;
|
|
9190
|
+
retryCount?: number | undefined;
|
|
7694
9191
|
} | undefined;
|
|
7695
9192
|
dangerouslyAllowBrowser?: boolean | undefined;
|
|
7696
9193
|
httpClient?: HttpClient | undefined;
|
|
@@ -7740,6 +9237,9 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
7740
9237
|
modality: "tool-response";
|
|
7741
9238
|
index: number;
|
|
7742
9239
|
metadata?: undefined;
|
|
9240
|
+
apiResponse?: {
|
|
9241
|
+
statusCode: number;
|
|
9242
|
+
} | undefined;
|
|
7743
9243
|
})[];
|
|
7744
9244
|
metadata?: undefined;
|
|
7745
9245
|
}[];
|
|
@@ -7754,6 +9254,21 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
7754
9254
|
};
|
|
7755
9255
|
};
|
|
7756
9256
|
metadata?: any;
|
|
9257
|
+
apiSettings?: {
|
|
9258
|
+
type: "http";
|
|
9259
|
+
url: string;
|
|
9260
|
+
method: "get" | "post";
|
|
9261
|
+
headers?: Record<string, string> | undefined;
|
|
9262
|
+
query?: Record<string, string> | undefined;
|
|
9263
|
+
body?: Record<string, any> | undefined;
|
|
9264
|
+
proxyUrl?: string | undefined;
|
|
9265
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
9266
|
+
retry?: {
|
|
9267
|
+
maxAttempts: number;
|
|
9268
|
+
initialDelay: number;
|
|
9269
|
+
exponentialFactor: number;
|
|
9270
|
+
} | undefined;
|
|
9271
|
+
} | undefined;
|
|
7757
9272
|
}[] | undefined;
|
|
7758
9273
|
};
|
|
7759
9274
|
response: {
|
|
@@ -7800,6 +9315,9 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
7800
9315
|
id: string;
|
|
7801
9316
|
name: string;
|
|
7802
9317
|
metadata?: undefined;
|
|
9318
|
+
apiResponse?: {
|
|
9319
|
+
statusCode: number;
|
|
9320
|
+
} | undefined;
|
|
7803
9321
|
})[];
|
|
7804
9322
|
metadata?: undefined;
|
|
7805
9323
|
}[];
|
|
@@ -7869,6 +9387,23 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
7869
9387
|
metadataForCallbacks?: any;
|
|
7870
9388
|
}> | undefined;
|
|
7871
9389
|
getEmbeddingsCallbacks?: [GetEmbeddingsCallbackType, ...GetEmbeddingsCallbackType[]] | undefined;
|
|
9390
|
+
getToolResponsesCache?: Cache<{
|
|
9391
|
+
cached: boolean;
|
|
9392
|
+
latencyInMs: number;
|
|
9393
|
+
toolResponses: Record<string, {
|
|
9394
|
+
data: string;
|
|
9395
|
+
id: string;
|
|
9396
|
+
name: string;
|
|
9397
|
+
modality: "tool-response";
|
|
9398
|
+
index: number;
|
|
9399
|
+
metadata?: undefined;
|
|
9400
|
+
apiResponse?: {
|
|
9401
|
+
statusCode: number;
|
|
9402
|
+
} | undefined;
|
|
9403
|
+
}>;
|
|
9404
|
+
metadataForCallbacks?: any;
|
|
9405
|
+
}> | undefined;
|
|
9406
|
+
getToolResponsesCallbacks?: [GetToolResponsesCallbackType, ...GetToolResponsesCallbackType[]] | undefined;
|
|
7872
9407
|
streamChatCallbacks?: [StreamChatCallbackType, ...StreamChatCallbackType[]] | undefined;
|
|
7873
9408
|
logger?: Logger | undefined;
|
|
7874
9409
|
telemetry?: {
|
|
@@ -7880,12 +9415,12 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
7880
9415
|
enableProxyAgent?: boolean | undefined;
|
|
7881
9416
|
queueOptions?: {
|
|
7882
9417
|
timeout?: number | undefined;
|
|
7883
|
-
maxConcurrentTasks?: number | undefined;
|
|
7884
|
-
retryCount?: number | undefined;
|
|
7885
9418
|
retry?: {
|
|
7886
9419
|
initialDelay: number;
|
|
7887
9420
|
exponentialFactor: number;
|
|
7888
9421
|
} | undefined;
|
|
9422
|
+
maxConcurrentTasks?: number | undefined;
|
|
9423
|
+
retryCount?: number | undefined;
|
|
7889
9424
|
} | undefined;
|
|
7890
9425
|
dangerouslyAllowBrowser?: boolean | undefined;
|
|
7891
9426
|
httpClient?: HttpClient | undefined;
|
|
@@ -7935,6 +9470,9 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
7935
9470
|
modality: "tool-response";
|
|
7936
9471
|
index: number;
|
|
7937
9472
|
metadata?: undefined;
|
|
9473
|
+
apiResponse?: {
|
|
9474
|
+
statusCode: number;
|
|
9475
|
+
} | undefined;
|
|
7938
9476
|
})[];
|
|
7939
9477
|
metadata?: undefined;
|
|
7940
9478
|
}[];
|
|
@@ -7949,6 +9487,21 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
7949
9487
|
};
|
|
7950
9488
|
};
|
|
7951
9489
|
metadata?: any;
|
|
9490
|
+
apiSettings?: {
|
|
9491
|
+
type: "http";
|
|
9492
|
+
url: string;
|
|
9493
|
+
method: "get" | "post";
|
|
9494
|
+
headers?: Record<string, string> | undefined;
|
|
9495
|
+
query?: Record<string, string> | undefined;
|
|
9496
|
+
body?: Record<string, any> | undefined;
|
|
9497
|
+
proxyUrl?: string | undefined;
|
|
9498
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
9499
|
+
retry?: {
|
|
9500
|
+
maxAttempts: number;
|
|
9501
|
+
initialDelay: number;
|
|
9502
|
+
exponentialFactor: number;
|
|
9503
|
+
} | undefined;
|
|
9504
|
+
} | undefined;
|
|
7952
9505
|
}[] | undefined;
|
|
7953
9506
|
};
|
|
7954
9507
|
response: {
|
|
@@ -7995,6 +9548,9 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
7995
9548
|
id: string;
|
|
7996
9549
|
name: string;
|
|
7997
9550
|
metadata?: undefined;
|
|
9551
|
+
apiResponse?: {
|
|
9552
|
+
statusCode: number;
|
|
9553
|
+
} | undefined;
|
|
7998
9554
|
})[];
|
|
7999
9555
|
metadata?: undefined;
|
|
8000
9556
|
}[];
|
|
@@ -8064,15 +9620,32 @@ declare const GatewayOptions: z.ZodObject<{
|
|
|
8064
9620
|
metadataForCallbacks?: any;
|
|
8065
9621
|
}> | undefined;
|
|
8066
9622
|
getEmbeddingsCallbacks?: [GetEmbeddingsCallbackType, ...GetEmbeddingsCallbackType[]] | undefined;
|
|
8067
|
-
|
|
8068
|
-
|
|
8069
|
-
|
|
8070
|
-
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
|
|
9623
|
+
getToolResponsesCache?: Cache<{
|
|
9624
|
+
cached: boolean;
|
|
9625
|
+
latencyInMs: number;
|
|
9626
|
+
toolResponses: Record<string, {
|
|
9627
|
+
data: string;
|
|
9628
|
+
id: string;
|
|
9629
|
+
name: string;
|
|
9630
|
+
modality: "tool-response";
|
|
9631
|
+
index: number;
|
|
9632
|
+
metadata?: undefined;
|
|
9633
|
+
apiResponse?: {
|
|
9634
|
+
statusCode: number;
|
|
9635
|
+
} | undefined;
|
|
9636
|
+
}>;
|
|
9637
|
+
metadataForCallbacks?: any;
|
|
9638
|
+
}> | undefined;
|
|
9639
|
+
getToolResponsesCallbacks?: [GetToolResponsesCallbackType, ...GetToolResponsesCallbackType[]] | undefined;
|
|
9640
|
+
streamChatCallbacks?: [StreamChatCallbackType, ...StreamChatCallbackType[]] | undefined;
|
|
9641
|
+
logger?: Logger | undefined;
|
|
9642
|
+
telemetry?: {
|
|
9643
|
+
tracer?: Tracer | undefined;
|
|
9644
|
+
meter?: Meter | undefined;
|
|
9645
|
+
} | undefined;
|
|
9646
|
+
enableAnalytics?: boolean | undefined;
|
|
9647
|
+
}>;
|
|
9648
|
+
type GatewayOptionsType = z.infer<typeof GatewayOptions>;
|
|
8076
9649
|
declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
8077
9650
|
model: z.ZodType<ChatModelV1<{
|
|
8078
9651
|
name: string;
|
|
@@ -8287,6 +9860,13 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
8287
9860
|
id: z.ZodString;
|
|
8288
9861
|
name: z.ZodString;
|
|
8289
9862
|
data: z.ZodString;
|
|
9863
|
+
apiResponse: z.ZodOptional<z.ZodObject<{
|
|
9864
|
+
statusCode: z.ZodNumber;
|
|
9865
|
+
}, "strip", z.ZodTypeAny, {
|
|
9866
|
+
statusCode: number;
|
|
9867
|
+
}, {
|
|
9868
|
+
statusCode: number;
|
|
9869
|
+
}>>;
|
|
8290
9870
|
metadata: z.ZodUndefined;
|
|
8291
9871
|
}, "strip", z.ZodTypeAny, {
|
|
8292
9872
|
data: string;
|
|
@@ -8295,6 +9875,9 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
8295
9875
|
modality: "tool-response";
|
|
8296
9876
|
index: number;
|
|
8297
9877
|
metadata?: undefined;
|
|
9878
|
+
apiResponse?: {
|
|
9879
|
+
statusCode: number;
|
|
9880
|
+
} | undefined;
|
|
8298
9881
|
}, {
|
|
8299
9882
|
data: string;
|
|
8300
9883
|
id: string;
|
|
@@ -8302,6 +9885,9 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
8302
9885
|
modality: "tool-response";
|
|
8303
9886
|
index: number;
|
|
8304
9887
|
metadata?: undefined;
|
|
9888
|
+
apiResponse?: {
|
|
9889
|
+
statusCode: number;
|
|
9890
|
+
} | undefined;
|
|
8305
9891
|
}>, z.ZodObject<{
|
|
8306
9892
|
modality: z.ZodLiteral<"reasoning">;
|
|
8307
9893
|
value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -8394,6 +9980,9 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
8394
9980
|
modality: "tool-response";
|
|
8395
9981
|
index: number;
|
|
8396
9982
|
metadata?: undefined;
|
|
9983
|
+
apiResponse?: {
|
|
9984
|
+
statusCode: number;
|
|
9985
|
+
} | undefined;
|
|
8397
9986
|
})[];
|
|
8398
9987
|
metadata?: undefined;
|
|
8399
9988
|
}, {
|
|
@@ -8439,6 +10028,9 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
8439
10028
|
modality: "tool-response";
|
|
8440
10029
|
index: number;
|
|
8441
10030
|
metadata?: undefined;
|
|
10031
|
+
apiResponse?: {
|
|
10032
|
+
statusCode: number;
|
|
10033
|
+
} | undefined;
|
|
8442
10034
|
})[];
|
|
8443
10035
|
metadata?: undefined;
|
|
8444
10036
|
}>, "many">;
|
|
@@ -8476,6 +10068,57 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
8476
10068
|
parameters?: any;
|
|
8477
10069
|
};
|
|
8478
10070
|
}>;
|
|
10071
|
+
apiSettings: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
10072
|
+
type: z.ZodLiteral<"http">;
|
|
10073
|
+
method: z.ZodEnum<["get", "post"]>;
|
|
10074
|
+
url: z.ZodString;
|
|
10075
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10076
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10077
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
10078
|
+
proxyUrl: z.ZodOptional<z.ZodString>;
|
|
10079
|
+
proxyHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10080
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
10081
|
+
maxAttempts: z.ZodNumber;
|
|
10082
|
+
initialDelay: z.ZodNumber;
|
|
10083
|
+
exponentialFactor: z.ZodNumber;
|
|
10084
|
+
}, "strip", z.ZodTypeAny, {
|
|
10085
|
+
maxAttempts: number;
|
|
10086
|
+
initialDelay: number;
|
|
10087
|
+
exponentialFactor: number;
|
|
10088
|
+
}, {
|
|
10089
|
+
maxAttempts: number;
|
|
10090
|
+
initialDelay: number;
|
|
10091
|
+
exponentialFactor: number;
|
|
10092
|
+
}>>;
|
|
10093
|
+
}, "strip", z.ZodTypeAny, {
|
|
10094
|
+
type: "http";
|
|
10095
|
+
url: string;
|
|
10096
|
+
method: "get" | "post";
|
|
10097
|
+
headers?: Record<string, string> | undefined;
|
|
10098
|
+
query?: Record<string, string> | undefined;
|
|
10099
|
+
body?: Record<string, any> | undefined;
|
|
10100
|
+
proxyUrl?: string | undefined;
|
|
10101
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
10102
|
+
retry?: {
|
|
10103
|
+
maxAttempts: number;
|
|
10104
|
+
initialDelay: number;
|
|
10105
|
+
exponentialFactor: number;
|
|
10106
|
+
} | undefined;
|
|
10107
|
+
}, {
|
|
10108
|
+
type: "http";
|
|
10109
|
+
url: string;
|
|
10110
|
+
method: "get" | "post";
|
|
10111
|
+
headers?: Record<string, string> | undefined;
|
|
10112
|
+
query?: Record<string, string> | undefined;
|
|
10113
|
+
body?: Record<string, any> | undefined;
|
|
10114
|
+
proxyUrl?: string | undefined;
|
|
10115
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
10116
|
+
retry?: {
|
|
10117
|
+
maxAttempts: number;
|
|
10118
|
+
initialDelay: number;
|
|
10119
|
+
exponentialFactor: number;
|
|
10120
|
+
} | undefined;
|
|
10121
|
+
}>]>>;
|
|
8479
10122
|
}, {
|
|
8480
10123
|
metadata: z.ZodTypeAny;
|
|
8481
10124
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -8489,6 +10132,21 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
8489
10132
|
};
|
|
8490
10133
|
};
|
|
8491
10134
|
metadata?: any;
|
|
10135
|
+
apiSettings?: {
|
|
10136
|
+
type: "http";
|
|
10137
|
+
url: string;
|
|
10138
|
+
method: "get" | "post";
|
|
10139
|
+
headers?: Record<string, string> | undefined;
|
|
10140
|
+
query?: Record<string, string> | undefined;
|
|
10141
|
+
body?: Record<string, any> | undefined;
|
|
10142
|
+
proxyUrl?: string | undefined;
|
|
10143
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
10144
|
+
retry?: {
|
|
10145
|
+
maxAttempts: number;
|
|
10146
|
+
initialDelay: number;
|
|
10147
|
+
exponentialFactor: number;
|
|
10148
|
+
} | undefined;
|
|
10149
|
+
} | undefined;
|
|
8492
10150
|
}, {
|
|
8493
10151
|
type: "function";
|
|
8494
10152
|
definition: {
|
|
@@ -8500,6 +10158,21 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
8500
10158
|
};
|
|
8501
10159
|
};
|
|
8502
10160
|
metadata?: any;
|
|
10161
|
+
apiSettings?: {
|
|
10162
|
+
type: "http";
|
|
10163
|
+
url: string;
|
|
10164
|
+
method: "get" | "post";
|
|
10165
|
+
headers?: Record<string, string> | undefined;
|
|
10166
|
+
query?: Record<string, string> | undefined;
|
|
10167
|
+
body?: Record<string, any> | undefined;
|
|
10168
|
+
proxyUrl?: string | undefined;
|
|
10169
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
10170
|
+
retry?: {
|
|
10171
|
+
maxAttempts: number;
|
|
10172
|
+
initialDelay: number;
|
|
10173
|
+
exponentialFactor: number;
|
|
10174
|
+
} | undefined;
|
|
10175
|
+
} | undefined;
|
|
8503
10176
|
}>]>, "many">>;
|
|
8504
10177
|
options: z.ZodOptional<z.ZodObject<{
|
|
8505
10178
|
enableCache: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -8620,6 +10293,9 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
8620
10293
|
modality: "tool-response";
|
|
8621
10294
|
index: number;
|
|
8622
10295
|
metadata?: undefined;
|
|
10296
|
+
apiResponse?: {
|
|
10297
|
+
statusCode: number;
|
|
10298
|
+
} | undefined;
|
|
8623
10299
|
})[];
|
|
8624
10300
|
metadata?: undefined;
|
|
8625
10301
|
}[];
|
|
@@ -8639,6 +10315,21 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
8639
10315
|
};
|
|
8640
10316
|
};
|
|
8641
10317
|
metadata?: any;
|
|
10318
|
+
apiSettings?: {
|
|
10319
|
+
type: "http";
|
|
10320
|
+
url: string;
|
|
10321
|
+
method: "get" | "post";
|
|
10322
|
+
headers?: Record<string, string> | undefined;
|
|
10323
|
+
query?: Record<string, string> | undefined;
|
|
10324
|
+
body?: Record<string, any> | undefined;
|
|
10325
|
+
proxyUrl?: string | undefined;
|
|
10326
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
10327
|
+
retry?: {
|
|
10328
|
+
maxAttempts: number;
|
|
10329
|
+
initialDelay: number;
|
|
10330
|
+
exponentialFactor: number;
|
|
10331
|
+
} | undefined;
|
|
10332
|
+
} | undefined;
|
|
8642
10333
|
}[] | undefined;
|
|
8643
10334
|
}, {
|
|
8644
10335
|
config: Record<string, any>;
|
|
@@ -8746,6 +10437,9 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
8746
10437
|
modality: "tool-response";
|
|
8747
10438
|
index: number;
|
|
8748
10439
|
metadata?: undefined;
|
|
10440
|
+
apiResponse?: {
|
|
10441
|
+
statusCode: number;
|
|
10442
|
+
} | undefined;
|
|
8749
10443
|
})[];
|
|
8750
10444
|
metadata?: undefined;
|
|
8751
10445
|
}[];
|
|
@@ -8765,6 +10459,21 @@ declare const GatewayCompleteChatRequest: z.ZodObject<{
|
|
|
8765
10459
|
};
|
|
8766
10460
|
};
|
|
8767
10461
|
metadata?: any;
|
|
10462
|
+
apiSettings?: {
|
|
10463
|
+
type: "http";
|
|
10464
|
+
url: string;
|
|
10465
|
+
method: "get" | "post";
|
|
10466
|
+
headers?: Record<string, string> | undefined;
|
|
10467
|
+
query?: Record<string, string> | undefined;
|
|
10468
|
+
body?: Record<string, any> | undefined;
|
|
10469
|
+
proxyUrl?: string | undefined;
|
|
10470
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
10471
|
+
retry?: {
|
|
10472
|
+
maxAttempts: number;
|
|
10473
|
+
initialDelay: number;
|
|
10474
|
+
exponentialFactor: number;
|
|
10475
|
+
} | undefined;
|
|
10476
|
+
} | undefined;
|
|
8768
10477
|
}[] | undefined;
|
|
8769
10478
|
}>;
|
|
8770
10479
|
type GatewayCompleteChatRequestType = z.infer<typeof GatewayCompleteChatRequest>;
|
|
@@ -8982,6 +10691,13 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
8982
10691
|
id: z.ZodString;
|
|
8983
10692
|
name: z.ZodString;
|
|
8984
10693
|
data: z.ZodString;
|
|
10694
|
+
apiResponse: z.ZodOptional<z.ZodObject<{
|
|
10695
|
+
statusCode: z.ZodNumber;
|
|
10696
|
+
}, "strip", z.ZodTypeAny, {
|
|
10697
|
+
statusCode: number;
|
|
10698
|
+
}, {
|
|
10699
|
+
statusCode: number;
|
|
10700
|
+
}>>;
|
|
8985
10701
|
metadata: z.ZodUndefined;
|
|
8986
10702
|
}, "strip", z.ZodTypeAny, {
|
|
8987
10703
|
data: string;
|
|
@@ -8990,6 +10706,9 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
8990
10706
|
modality: "tool-response";
|
|
8991
10707
|
index: number;
|
|
8992
10708
|
metadata?: undefined;
|
|
10709
|
+
apiResponse?: {
|
|
10710
|
+
statusCode: number;
|
|
10711
|
+
} | undefined;
|
|
8993
10712
|
}, {
|
|
8994
10713
|
data: string;
|
|
8995
10714
|
id: string;
|
|
@@ -8997,6 +10716,9 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
8997
10716
|
modality: "tool-response";
|
|
8998
10717
|
index: number;
|
|
8999
10718
|
metadata?: undefined;
|
|
10719
|
+
apiResponse?: {
|
|
10720
|
+
statusCode: number;
|
|
10721
|
+
} | undefined;
|
|
9000
10722
|
}>, z.ZodObject<{
|
|
9001
10723
|
modality: z.ZodLiteral<"reasoning">;
|
|
9002
10724
|
value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -9089,6 +10811,9 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
9089
10811
|
modality: "tool-response";
|
|
9090
10812
|
index: number;
|
|
9091
10813
|
metadata?: undefined;
|
|
10814
|
+
apiResponse?: {
|
|
10815
|
+
statusCode: number;
|
|
10816
|
+
} | undefined;
|
|
9092
10817
|
})[];
|
|
9093
10818
|
metadata?: undefined;
|
|
9094
10819
|
}, {
|
|
@@ -9134,6 +10859,9 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
9134
10859
|
modality: "tool-response";
|
|
9135
10860
|
index: number;
|
|
9136
10861
|
metadata?: undefined;
|
|
10862
|
+
apiResponse?: {
|
|
10863
|
+
statusCode: number;
|
|
10864
|
+
} | undefined;
|
|
9137
10865
|
})[];
|
|
9138
10866
|
metadata?: undefined;
|
|
9139
10867
|
}>, "many">;
|
|
@@ -9171,6 +10899,57 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
9171
10899
|
parameters?: any;
|
|
9172
10900
|
};
|
|
9173
10901
|
}>;
|
|
10902
|
+
apiSettings: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
10903
|
+
type: z.ZodLiteral<"http">;
|
|
10904
|
+
method: z.ZodEnum<["get", "post"]>;
|
|
10905
|
+
url: z.ZodString;
|
|
10906
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10907
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10908
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
10909
|
+
proxyUrl: z.ZodOptional<z.ZodString>;
|
|
10910
|
+
proxyHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10911
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
10912
|
+
maxAttempts: z.ZodNumber;
|
|
10913
|
+
initialDelay: z.ZodNumber;
|
|
10914
|
+
exponentialFactor: z.ZodNumber;
|
|
10915
|
+
}, "strip", z.ZodTypeAny, {
|
|
10916
|
+
maxAttempts: number;
|
|
10917
|
+
initialDelay: number;
|
|
10918
|
+
exponentialFactor: number;
|
|
10919
|
+
}, {
|
|
10920
|
+
maxAttempts: number;
|
|
10921
|
+
initialDelay: number;
|
|
10922
|
+
exponentialFactor: number;
|
|
10923
|
+
}>>;
|
|
10924
|
+
}, "strip", z.ZodTypeAny, {
|
|
10925
|
+
type: "http";
|
|
10926
|
+
url: string;
|
|
10927
|
+
method: "get" | "post";
|
|
10928
|
+
headers?: Record<string, string> | undefined;
|
|
10929
|
+
query?: Record<string, string> | undefined;
|
|
10930
|
+
body?: Record<string, any> | undefined;
|
|
10931
|
+
proxyUrl?: string | undefined;
|
|
10932
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
10933
|
+
retry?: {
|
|
10934
|
+
maxAttempts: number;
|
|
10935
|
+
initialDelay: number;
|
|
10936
|
+
exponentialFactor: number;
|
|
10937
|
+
} | undefined;
|
|
10938
|
+
}, {
|
|
10939
|
+
type: "http";
|
|
10940
|
+
url: string;
|
|
10941
|
+
method: "get" | "post";
|
|
10942
|
+
headers?: Record<string, string> | undefined;
|
|
10943
|
+
query?: Record<string, string> | undefined;
|
|
10944
|
+
body?: Record<string, any> | undefined;
|
|
10945
|
+
proxyUrl?: string | undefined;
|
|
10946
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
10947
|
+
retry?: {
|
|
10948
|
+
maxAttempts: number;
|
|
10949
|
+
initialDelay: number;
|
|
10950
|
+
exponentialFactor: number;
|
|
10951
|
+
} | undefined;
|
|
10952
|
+
}>]>>;
|
|
9174
10953
|
}, {
|
|
9175
10954
|
metadata: z.ZodTypeAny;
|
|
9176
10955
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -9184,6 +10963,21 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
9184
10963
|
};
|
|
9185
10964
|
};
|
|
9186
10965
|
metadata?: any;
|
|
10966
|
+
apiSettings?: {
|
|
10967
|
+
type: "http";
|
|
10968
|
+
url: string;
|
|
10969
|
+
method: "get" | "post";
|
|
10970
|
+
headers?: Record<string, string> | undefined;
|
|
10971
|
+
query?: Record<string, string> | undefined;
|
|
10972
|
+
body?: Record<string, any> | undefined;
|
|
10973
|
+
proxyUrl?: string | undefined;
|
|
10974
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
10975
|
+
retry?: {
|
|
10976
|
+
maxAttempts: number;
|
|
10977
|
+
initialDelay: number;
|
|
10978
|
+
exponentialFactor: number;
|
|
10979
|
+
} | undefined;
|
|
10980
|
+
} | undefined;
|
|
9187
10981
|
}, {
|
|
9188
10982
|
type: "function";
|
|
9189
10983
|
definition: {
|
|
@@ -9195,6 +10989,21 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
9195
10989
|
};
|
|
9196
10990
|
};
|
|
9197
10991
|
metadata?: any;
|
|
10992
|
+
apiSettings?: {
|
|
10993
|
+
type: "http";
|
|
10994
|
+
url: string;
|
|
10995
|
+
method: "get" | "post";
|
|
10996
|
+
headers?: Record<string, string> | undefined;
|
|
10997
|
+
query?: Record<string, string> | undefined;
|
|
10998
|
+
body?: Record<string, any> | undefined;
|
|
10999
|
+
proxyUrl?: string | undefined;
|
|
11000
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
11001
|
+
retry?: {
|
|
11002
|
+
maxAttempts: number;
|
|
11003
|
+
initialDelay: number;
|
|
11004
|
+
exponentialFactor: number;
|
|
11005
|
+
} | undefined;
|
|
11006
|
+
} | undefined;
|
|
9198
11007
|
}>]>, "many">>;
|
|
9199
11008
|
options: z.ZodOptional<z.ZodObject<{
|
|
9200
11009
|
customHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -9313,6 +11122,9 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
9313
11122
|
modality: "tool-response";
|
|
9314
11123
|
index: number;
|
|
9315
11124
|
metadata?: undefined;
|
|
11125
|
+
apiResponse?: {
|
|
11126
|
+
statusCode: number;
|
|
11127
|
+
} | undefined;
|
|
9316
11128
|
})[];
|
|
9317
11129
|
metadata?: undefined;
|
|
9318
11130
|
}[];
|
|
@@ -9331,6 +11143,21 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
9331
11143
|
};
|
|
9332
11144
|
};
|
|
9333
11145
|
metadata?: any;
|
|
11146
|
+
apiSettings?: {
|
|
11147
|
+
type: "http";
|
|
11148
|
+
url: string;
|
|
11149
|
+
method: "get" | "post";
|
|
11150
|
+
headers?: Record<string, string> | undefined;
|
|
11151
|
+
query?: Record<string, string> | undefined;
|
|
11152
|
+
body?: Record<string, any> | undefined;
|
|
11153
|
+
proxyUrl?: string | undefined;
|
|
11154
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
11155
|
+
retry?: {
|
|
11156
|
+
maxAttempts: number;
|
|
11157
|
+
initialDelay: number;
|
|
11158
|
+
exponentialFactor: number;
|
|
11159
|
+
} | undefined;
|
|
11160
|
+
} | undefined;
|
|
9334
11161
|
}[] | undefined;
|
|
9335
11162
|
abortSignal?: AbortSignal | undefined;
|
|
9336
11163
|
}, {
|
|
@@ -9439,6 +11266,9 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
9439
11266
|
modality: "tool-response";
|
|
9440
11267
|
index: number;
|
|
9441
11268
|
metadata?: undefined;
|
|
11269
|
+
apiResponse?: {
|
|
11270
|
+
statusCode: number;
|
|
11271
|
+
} | undefined;
|
|
9442
11272
|
})[];
|
|
9443
11273
|
metadata?: undefined;
|
|
9444
11274
|
}[];
|
|
@@ -9457,6 +11287,21 @@ declare const GatewayStreamChatRequest: z.ZodObject<{
|
|
|
9457
11287
|
};
|
|
9458
11288
|
};
|
|
9459
11289
|
metadata?: any;
|
|
11290
|
+
apiSettings?: {
|
|
11291
|
+
type: "http";
|
|
11292
|
+
url: string;
|
|
11293
|
+
method: "get" | "post";
|
|
11294
|
+
headers?: Record<string, string> | undefined;
|
|
11295
|
+
query?: Record<string, string> | undefined;
|
|
11296
|
+
body?: Record<string, any> | undefined;
|
|
11297
|
+
proxyUrl?: string | undefined;
|
|
11298
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
11299
|
+
retry?: {
|
|
11300
|
+
maxAttempts: number;
|
|
11301
|
+
initialDelay: number;
|
|
11302
|
+
exponentialFactor: number;
|
|
11303
|
+
} | undefined;
|
|
11304
|
+
} | undefined;
|
|
9460
11305
|
}[] | undefined;
|
|
9461
11306
|
abortSignal?: AbortSignal | undefined;
|
|
9462
11307
|
}>;
|
|
@@ -10777,134 +12622,717 @@ declare const GatewayGetChatUsageCostRequest: z.ZodEffects<z.ZodObject<{
|
|
|
10777
12622
|
min: number;
|
|
10778
12623
|
step: number;
|
|
10779
12624
|
} | {
|
|
10780
|
-
type: "select-boolean";
|
|
10781
|
-
param: string;
|
|
10782
|
-
title: string;
|
|
10783
|
-
description: string;
|
|
10784
|
-
default: boolean | null;
|
|
12625
|
+
type: "select-boolean";
|
|
12626
|
+
param: string;
|
|
12627
|
+
title: string;
|
|
12628
|
+
description: string;
|
|
12629
|
+
default: boolean | null;
|
|
12630
|
+
} | {
|
|
12631
|
+
type: "select-string";
|
|
12632
|
+
param: string;
|
|
12633
|
+
title: string;
|
|
12634
|
+
description: string;
|
|
12635
|
+
default: string;
|
|
12636
|
+
choices: string[];
|
|
12637
|
+
}>;
|
|
12638
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
12639
|
+
};
|
|
12640
|
+
price: {
|
|
12641
|
+
modelName: string;
|
|
12642
|
+
currency: string;
|
|
12643
|
+
tokenRanges: {
|
|
12644
|
+
minTokens: number;
|
|
12645
|
+
prices: {
|
|
12646
|
+
base: {
|
|
12647
|
+
inputPricePerMillion: number;
|
|
12648
|
+
outputPricePerMillion: number;
|
|
12649
|
+
};
|
|
12650
|
+
};
|
|
12651
|
+
maxTokens?: number | null | undefined;
|
|
12652
|
+
}[];
|
|
12653
|
+
};
|
|
12654
|
+
maxReasoningTokens?: number | undefined;
|
|
12655
|
+
}> | undefined;
|
|
12656
|
+
chatModelPrice?: {
|
|
12657
|
+
modelName: string;
|
|
12658
|
+
currency: string;
|
|
12659
|
+
tokenRanges: {
|
|
12660
|
+
minTokens: number;
|
|
12661
|
+
prices: {
|
|
12662
|
+
base: {
|
|
12663
|
+
inputPricePerMillion: number;
|
|
12664
|
+
outputPricePerMillion: number;
|
|
12665
|
+
};
|
|
12666
|
+
};
|
|
12667
|
+
maxTokens?: number | null | undefined;
|
|
12668
|
+
}[];
|
|
12669
|
+
} | undefined;
|
|
12670
|
+
}, {
|
|
12671
|
+
chatUsage: {
|
|
12672
|
+
promptTokens: number;
|
|
12673
|
+
completionTokens: number;
|
|
12674
|
+
totalTokens: number;
|
|
12675
|
+
};
|
|
12676
|
+
model?: ChatModelV1<{
|
|
12677
|
+
name: string;
|
|
12678
|
+
description: string;
|
|
12679
|
+
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
12680
|
+
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
12681
|
+
maxInputTokens: number;
|
|
12682
|
+
maxOutputTokens: number;
|
|
12683
|
+
config: {
|
|
12684
|
+
def: Record<string, {
|
|
12685
|
+
type: "multi-string";
|
|
12686
|
+
param: string;
|
|
12687
|
+
title: string;
|
|
12688
|
+
description: string;
|
|
12689
|
+
max: number;
|
|
12690
|
+
} | {
|
|
12691
|
+
type: "object-schema";
|
|
12692
|
+
param: string;
|
|
12693
|
+
title: string;
|
|
12694
|
+
description: string;
|
|
12695
|
+
objectSchema?: any;
|
|
12696
|
+
} | {
|
|
12697
|
+
type: "range";
|
|
12698
|
+
param: string;
|
|
12699
|
+
title: string;
|
|
12700
|
+
description: string;
|
|
12701
|
+
max: number;
|
|
12702
|
+
default: number;
|
|
12703
|
+
min: number;
|
|
12704
|
+
step: number;
|
|
12705
|
+
} | {
|
|
12706
|
+
type: "select-boolean";
|
|
12707
|
+
param: string;
|
|
12708
|
+
title: string;
|
|
12709
|
+
description: string;
|
|
12710
|
+
default: boolean | null;
|
|
12711
|
+
} | {
|
|
12712
|
+
type: "select-string";
|
|
12713
|
+
param: string;
|
|
12714
|
+
title: string;
|
|
12715
|
+
description: string;
|
|
12716
|
+
default: string;
|
|
12717
|
+
choices: string[];
|
|
12718
|
+
}>;
|
|
12719
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
12720
|
+
};
|
|
12721
|
+
price: {
|
|
12722
|
+
modelName: string;
|
|
12723
|
+
currency: string;
|
|
12724
|
+
tokenRanges: {
|
|
12725
|
+
minTokens: number;
|
|
12726
|
+
prices: {
|
|
12727
|
+
base: {
|
|
12728
|
+
inputPricePerMillion: number;
|
|
12729
|
+
outputPricePerMillion: number;
|
|
12730
|
+
};
|
|
12731
|
+
};
|
|
12732
|
+
maxTokens?: number | null | undefined;
|
|
12733
|
+
}[];
|
|
12734
|
+
};
|
|
12735
|
+
maxReasoningTokens?: number | undefined;
|
|
12736
|
+
}> | undefined;
|
|
12737
|
+
chatModelPrice?: {
|
|
12738
|
+
modelName: string;
|
|
12739
|
+
currency: string;
|
|
12740
|
+
tokenRanges: {
|
|
12741
|
+
minTokens: number;
|
|
12742
|
+
prices: {
|
|
12743
|
+
base: {
|
|
12744
|
+
inputPricePerMillion: number;
|
|
12745
|
+
outputPricePerMillion: number;
|
|
12746
|
+
};
|
|
12747
|
+
};
|
|
12748
|
+
maxTokens?: number | null | undefined;
|
|
12749
|
+
}[];
|
|
12750
|
+
} | undefined;
|
|
12751
|
+
}>;
|
|
12752
|
+
type GatewayGetChatUsageCostRequestType = z.infer<typeof GatewayGetChatUsageCostRequest>;
|
|
12753
|
+
declare const GatewayGetToolResponsesRequest: z.ZodObject<{
|
|
12754
|
+
tools: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
|
|
12755
|
+
type: z.ZodEnum<["function"]>;
|
|
12756
|
+
definition: z.ZodObject<{
|
|
12757
|
+
schema: z.ZodObject<{
|
|
12758
|
+
name: z.ZodString;
|
|
12759
|
+
description: z.ZodString;
|
|
12760
|
+
parameters: z.ZodAny;
|
|
12761
|
+
strict: z.ZodOptional<z.ZodBoolean>;
|
|
12762
|
+
}, "strip", z.ZodTypeAny, {
|
|
12763
|
+
name: string;
|
|
12764
|
+
description: string;
|
|
12765
|
+
strict?: boolean | undefined;
|
|
12766
|
+
parameters?: any;
|
|
12767
|
+
}, {
|
|
12768
|
+
name: string;
|
|
12769
|
+
description: string;
|
|
12770
|
+
strict?: boolean | undefined;
|
|
12771
|
+
parameters?: any;
|
|
12772
|
+
}>;
|
|
12773
|
+
}, "strip", z.ZodTypeAny, {
|
|
12774
|
+
schema: {
|
|
12775
|
+
name: string;
|
|
12776
|
+
description: string;
|
|
12777
|
+
strict?: boolean | undefined;
|
|
12778
|
+
parameters?: any;
|
|
12779
|
+
};
|
|
12780
|
+
}, {
|
|
12781
|
+
schema: {
|
|
12782
|
+
name: string;
|
|
12783
|
+
description: string;
|
|
12784
|
+
strict?: boolean | undefined;
|
|
12785
|
+
parameters?: any;
|
|
12786
|
+
};
|
|
12787
|
+
}>;
|
|
12788
|
+
apiSettings: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
12789
|
+
type: z.ZodLiteral<"http">;
|
|
12790
|
+
method: z.ZodEnum<["get", "post"]>;
|
|
12791
|
+
url: z.ZodString;
|
|
12792
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12793
|
+
query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12794
|
+
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
12795
|
+
proxyUrl: z.ZodOptional<z.ZodString>;
|
|
12796
|
+
proxyHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12797
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
12798
|
+
maxAttempts: z.ZodNumber;
|
|
12799
|
+
initialDelay: z.ZodNumber;
|
|
12800
|
+
exponentialFactor: z.ZodNumber;
|
|
12801
|
+
}, "strip", z.ZodTypeAny, {
|
|
12802
|
+
maxAttempts: number;
|
|
12803
|
+
initialDelay: number;
|
|
12804
|
+
exponentialFactor: number;
|
|
12805
|
+
}, {
|
|
12806
|
+
maxAttempts: number;
|
|
12807
|
+
initialDelay: number;
|
|
12808
|
+
exponentialFactor: number;
|
|
12809
|
+
}>>;
|
|
12810
|
+
}, "strip", z.ZodTypeAny, {
|
|
12811
|
+
type: "http";
|
|
12812
|
+
url: string;
|
|
12813
|
+
method: "get" | "post";
|
|
12814
|
+
headers?: Record<string, string> | undefined;
|
|
12815
|
+
query?: Record<string, string> | undefined;
|
|
12816
|
+
body?: Record<string, any> | undefined;
|
|
12817
|
+
proxyUrl?: string | undefined;
|
|
12818
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
12819
|
+
retry?: {
|
|
12820
|
+
maxAttempts: number;
|
|
12821
|
+
initialDelay: number;
|
|
12822
|
+
exponentialFactor: number;
|
|
12823
|
+
} | undefined;
|
|
12824
|
+
}, {
|
|
12825
|
+
type: "http";
|
|
12826
|
+
url: string;
|
|
12827
|
+
method: "get" | "post";
|
|
12828
|
+
headers?: Record<string, string> | undefined;
|
|
12829
|
+
query?: Record<string, string> | undefined;
|
|
12830
|
+
body?: Record<string, any> | undefined;
|
|
12831
|
+
proxyUrl?: string | undefined;
|
|
12832
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
12833
|
+
retry?: {
|
|
12834
|
+
maxAttempts: number;
|
|
12835
|
+
initialDelay: number;
|
|
12836
|
+
exponentialFactor: number;
|
|
12837
|
+
} | undefined;
|
|
12838
|
+
}>]>>;
|
|
12839
|
+
}, {
|
|
12840
|
+
metadata: z.ZodTypeAny;
|
|
12841
|
+
}>, "strip", z.ZodTypeAny, {
|
|
12842
|
+
type: "function";
|
|
12843
|
+
definition: {
|
|
12844
|
+
schema: {
|
|
12845
|
+
name: string;
|
|
12846
|
+
description: string;
|
|
12847
|
+
strict?: boolean | undefined;
|
|
12848
|
+
parameters?: any;
|
|
12849
|
+
};
|
|
12850
|
+
};
|
|
12851
|
+
metadata?: any;
|
|
12852
|
+
apiSettings?: {
|
|
12853
|
+
type: "http";
|
|
12854
|
+
url: string;
|
|
12855
|
+
method: "get" | "post";
|
|
12856
|
+
headers?: Record<string, string> | undefined;
|
|
12857
|
+
query?: Record<string, string> | undefined;
|
|
12858
|
+
body?: Record<string, any> | undefined;
|
|
12859
|
+
proxyUrl?: string | undefined;
|
|
12860
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
12861
|
+
retry?: {
|
|
12862
|
+
maxAttempts: number;
|
|
12863
|
+
initialDelay: number;
|
|
12864
|
+
exponentialFactor: number;
|
|
12865
|
+
} | undefined;
|
|
12866
|
+
} | undefined;
|
|
12867
|
+
}, {
|
|
12868
|
+
type: "function";
|
|
12869
|
+
definition: {
|
|
12870
|
+
schema: {
|
|
12871
|
+
name: string;
|
|
12872
|
+
description: string;
|
|
12873
|
+
strict?: boolean | undefined;
|
|
12874
|
+
parameters?: any;
|
|
12875
|
+
};
|
|
12876
|
+
};
|
|
12877
|
+
metadata?: any;
|
|
12878
|
+
apiSettings?: {
|
|
12879
|
+
type: "http";
|
|
12880
|
+
url: string;
|
|
12881
|
+
method: "get" | "post";
|
|
12882
|
+
headers?: Record<string, string> | undefined;
|
|
12883
|
+
query?: Record<string, string> | undefined;
|
|
12884
|
+
body?: Record<string, any> | undefined;
|
|
12885
|
+
proxyUrl?: string | undefined;
|
|
12886
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
12887
|
+
retry?: {
|
|
12888
|
+
maxAttempts: number;
|
|
12889
|
+
initialDelay: number;
|
|
12890
|
+
exponentialFactor: number;
|
|
12891
|
+
} | undefined;
|
|
12892
|
+
} | undefined;
|
|
12893
|
+
}>]>, "many">;
|
|
12894
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
12895
|
+
role: z.ZodEnum<["system", "user", "assistant", "tool"]>;
|
|
12896
|
+
content: z.ZodArray<z.ZodDiscriminatedUnion<"modality", [z.ZodObject<{
|
|
12897
|
+
modality: z.ZodLiteral<"text">;
|
|
12898
|
+
value: z.ZodString;
|
|
12899
|
+
metadata: z.ZodUndefined;
|
|
12900
|
+
}, "strip", z.ZodTypeAny, {
|
|
12901
|
+
value: string;
|
|
12902
|
+
modality: "text";
|
|
12903
|
+
metadata?: undefined;
|
|
12904
|
+
}, {
|
|
12905
|
+
value: string;
|
|
12906
|
+
modality: "text";
|
|
12907
|
+
metadata?: undefined;
|
|
12908
|
+
}>, z.ZodObject<{
|
|
12909
|
+
modality: z.ZodLiteral<"image">;
|
|
12910
|
+
detail: z.ZodEnum<["low", "medium", "high", "auto"]>;
|
|
12911
|
+
value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
12912
|
+
type: z.ZodLiteral<"base64">;
|
|
12913
|
+
base64: z.ZodString;
|
|
12914
|
+
mediaType: z.ZodEnum<["png", "jpeg", "webp", "gif"]>;
|
|
12915
|
+
}, "strip", z.ZodTypeAny, {
|
|
12916
|
+
type: "base64";
|
|
12917
|
+
base64: string;
|
|
12918
|
+
mediaType: "png" | "jpeg" | "webp" | "gif";
|
|
12919
|
+
}, {
|
|
12920
|
+
type: "base64";
|
|
12921
|
+
base64: string;
|
|
12922
|
+
mediaType: "png" | "jpeg" | "webp" | "gif";
|
|
12923
|
+
}>, z.ZodObject<{
|
|
12924
|
+
type: z.ZodLiteral<"url">;
|
|
12925
|
+
url: z.ZodString;
|
|
12926
|
+
}, "strip", z.ZodTypeAny, {
|
|
12927
|
+
type: "url";
|
|
12928
|
+
url: string;
|
|
12929
|
+
}, {
|
|
12930
|
+
type: "url";
|
|
12931
|
+
url: string;
|
|
12932
|
+
}>]>;
|
|
12933
|
+
metadata: z.ZodUndefined;
|
|
12934
|
+
}, "strip", z.ZodTypeAny, {
|
|
12935
|
+
value: {
|
|
12936
|
+
type: "base64";
|
|
12937
|
+
base64: string;
|
|
12938
|
+
mediaType: "png" | "jpeg" | "webp" | "gif";
|
|
12939
|
+
} | {
|
|
12940
|
+
type: "url";
|
|
12941
|
+
url: string;
|
|
12942
|
+
};
|
|
12943
|
+
modality: "image";
|
|
12944
|
+
detail: "low" | "medium" | "high" | "auto";
|
|
12945
|
+
metadata?: undefined;
|
|
12946
|
+
}, {
|
|
12947
|
+
value: {
|
|
12948
|
+
type: "base64";
|
|
12949
|
+
base64: string;
|
|
12950
|
+
mediaType: "png" | "jpeg" | "webp" | "gif";
|
|
12951
|
+
} | {
|
|
12952
|
+
type: "url";
|
|
12953
|
+
url: string;
|
|
12954
|
+
};
|
|
12955
|
+
modality: "image";
|
|
12956
|
+
detail: "low" | "medium" | "high" | "auto";
|
|
12957
|
+
metadata?: undefined;
|
|
12958
|
+
}>, z.ZodObject<{
|
|
12959
|
+
modality: z.ZodLiteral<"tool-call">;
|
|
12960
|
+
index: z.ZodNumber;
|
|
12961
|
+
id: z.ZodString;
|
|
12962
|
+
name: z.ZodString;
|
|
12963
|
+
arguments: z.ZodString;
|
|
12964
|
+
metadata: z.ZodUndefined;
|
|
12965
|
+
}, "strip", z.ZodTypeAny, {
|
|
12966
|
+
id: string;
|
|
12967
|
+
name: string;
|
|
12968
|
+
modality: "tool-call";
|
|
12969
|
+
index: number;
|
|
12970
|
+
arguments: string;
|
|
12971
|
+
metadata?: undefined;
|
|
12972
|
+
}, {
|
|
12973
|
+
id: string;
|
|
12974
|
+
name: string;
|
|
12975
|
+
modality: "tool-call";
|
|
12976
|
+
index: number;
|
|
12977
|
+
arguments: string;
|
|
12978
|
+
metadata?: undefined;
|
|
12979
|
+
}>, z.ZodObject<{
|
|
12980
|
+
modality: z.ZodLiteral<"tool-response">;
|
|
12981
|
+
index: z.ZodNumber;
|
|
12982
|
+
id: z.ZodString;
|
|
12983
|
+
name: z.ZodString;
|
|
12984
|
+
data: z.ZodString;
|
|
12985
|
+
apiResponse: z.ZodOptional<z.ZodObject<{
|
|
12986
|
+
statusCode: z.ZodNumber;
|
|
12987
|
+
}, "strip", z.ZodTypeAny, {
|
|
12988
|
+
statusCode: number;
|
|
12989
|
+
}, {
|
|
12990
|
+
statusCode: number;
|
|
12991
|
+
}>>;
|
|
12992
|
+
metadata: z.ZodUndefined;
|
|
12993
|
+
}, "strip", z.ZodTypeAny, {
|
|
12994
|
+
data: string;
|
|
12995
|
+
id: string;
|
|
12996
|
+
name: string;
|
|
12997
|
+
modality: "tool-response";
|
|
12998
|
+
index: number;
|
|
12999
|
+
metadata?: undefined;
|
|
13000
|
+
apiResponse?: {
|
|
13001
|
+
statusCode: number;
|
|
13002
|
+
} | undefined;
|
|
13003
|
+
}, {
|
|
13004
|
+
data: string;
|
|
13005
|
+
id: string;
|
|
13006
|
+
name: string;
|
|
13007
|
+
modality: "tool-response";
|
|
13008
|
+
index: number;
|
|
13009
|
+
metadata?: undefined;
|
|
13010
|
+
apiResponse?: {
|
|
13011
|
+
statusCode: number;
|
|
13012
|
+
} | undefined;
|
|
13013
|
+
}>, z.ZodObject<{
|
|
13014
|
+
modality: z.ZodLiteral<"reasoning">;
|
|
13015
|
+
value: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
13016
|
+
type: z.ZodLiteral<"thinking">;
|
|
13017
|
+
thinking: z.ZodString;
|
|
13018
|
+
signature: z.ZodString;
|
|
13019
|
+
}, "strip", z.ZodTypeAny, {
|
|
13020
|
+
type: "thinking";
|
|
13021
|
+
thinking: string;
|
|
13022
|
+
signature: string;
|
|
13023
|
+
}, {
|
|
13024
|
+
type: "thinking";
|
|
13025
|
+
thinking: string;
|
|
13026
|
+
signature: string;
|
|
13027
|
+
}>, z.ZodObject<{
|
|
13028
|
+
type: z.ZodLiteral<"redacted">;
|
|
13029
|
+
data: z.ZodString;
|
|
13030
|
+
}, "strip", z.ZodTypeAny, {
|
|
13031
|
+
type: "redacted";
|
|
13032
|
+
data: string;
|
|
13033
|
+
}, {
|
|
13034
|
+
type: "redacted";
|
|
13035
|
+
data: string;
|
|
13036
|
+
}>]>;
|
|
13037
|
+
metadata: z.ZodTypeAny;
|
|
13038
|
+
}, "strip", z.ZodTypeAny, {
|
|
13039
|
+
value: {
|
|
13040
|
+
type: "thinking";
|
|
13041
|
+
thinking: string;
|
|
13042
|
+
signature: string;
|
|
13043
|
+
} | {
|
|
13044
|
+
type: "redacted";
|
|
13045
|
+
data: string;
|
|
13046
|
+
};
|
|
13047
|
+
modality: "reasoning";
|
|
13048
|
+
metadata?: any;
|
|
13049
|
+
}, {
|
|
13050
|
+
value: {
|
|
13051
|
+
type: "thinking";
|
|
13052
|
+
thinking: string;
|
|
13053
|
+
signature: string;
|
|
13054
|
+
} | {
|
|
13055
|
+
type: "redacted";
|
|
13056
|
+
data: string;
|
|
13057
|
+
};
|
|
13058
|
+
modality: "reasoning";
|
|
13059
|
+
metadata?: any;
|
|
13060
|
+
}>]>, "many">;
|
|
13061
|
+
metadata: z.ZodUndefined;
|
|
13062
|
+
}, "strip", z.ZodTypeAny, {
|
|
13063
|
+
role: "system" | "user" | "assistant" | "tool";
|
|
13064
|
+
content: ({
|
|
13065
|
+
value: {
|
|
13066
|
+
type: "thinking";
|
|
13067
|
+
thinking: string;
|
|
13068
|
+
signature: string;
|
|
13069
|
+
} | {
|
|
13070
|
+
type: "redacted";
|
|
13071
|
+
data: string;
|
|
13072
|
+
};
|
|
13073
|
+
modality: "reasoning";
|
|
13074
|
+
metadata?: any;
|
|
13075
|
+
} | {
|
|
13076
|
+
value: string;
|
|
13077
|
+
modality: "text";
|
|
13078
|
+
metadata?: undefined;
|
|
13079
|
+
} | {
|
|
13080
|
+
value: {
|
|
13081
|
+
type: "base64";
|
|
13082
|
+
base64: string;
|
|
13083
|
+
mediaType: "png" | "jpeg" | "webp" | "gif";
|
|
13084
|
+
} | {
|
|
13085
|
+
type: "url";
|
|
13086
|
+
url: string;
|
|
13087
|
+
};
|
|
13088
|
+
modality: "image";
|
|
13089
|
+
detail: "low" | "medium" | "high" | "auto";
|
|
13090
|
+
metadata?: undefined;
|
|
13091
|
+
} | {
|
|
13092
|
+
id: string;
|
|
13093
|
+
name: string;
|
|
13094
|
+
modality: "tool-call";
|
|
13095
|
+
index: number;
|
|
13096
|
+
arguments: string;
|
|
13097
|
+
metadata?: undefined;
|
|
13098
|
+
} | {
|
|
13099
|
+
data: string;
|
|
13100
|
+
id: string;
|
|
13101
|
+
name: string;
|
|
13102
|
+
modality: "tool-response";
|
|
13103
|
+
index: number;
|
|
13104
|
+
metadata?: undefined;
|
|
13105
|
+
apiResponse?: {
|
|
13106
|
+
statusCode: number;
|
|
13107
|
+
} | undefined;
|
|
13108
|
+
})[];
|
|
13109
|
+
metadata?: undefined;
|
|
13110
|
+
}, {
|
|
13111
|
+
role: "system" | "user" | "assistant" | "tool";
|
|
13112
|
+
content: ({
|
|
13113
|
+
value: {
|
|
13114
|
+
type: "thinking";
|
|
13115
|
+
thinking: string;
|
|
13116
|
+
signature: string;
|
|
13117
|
+
} | {
|
|
13118
|
+
type: "redacted";
|
|
13119
|
+
data: string;
|
|
13120
|
+
};
|
|
13121
|
+
modality: "reasoning";
|
|
13122
|
+
metadata?: any;
|
|
13123
|
+
} | {
|
|
13124
|
+
value: string;
|
|
13125
|
+
modality: "text";
|
|
13126
|
+
metadata?: undefined;
|
|
13127
|
+
} | {
|
|
13128
|
+
value: {
|
|
13129
|
+
type: "base64";
|
|
13130
|
+
base64: string;
|
|
13131
|
+
mediaType: "png" | "jpeg" | "webp" | "gif";
|
|
13132
|
+
} | {
|
|
13133
|
+
type: "url";
|
|
13134
|
+
url: string;
|
|
13135
|
+
};
|
|
13136
|
+
modality: "image";
|
|
13137
|
+
detail: "low" | "medium" | "high" | "auto";
|
|
13138
|
+
metadata?: undefined;
|
|
13139
|
+
} | {
|
|
13140
|
+
id: string;
|
|
13141
|
+
name: string;
|
|
13142
|
+
modality: "tool-call";
|
|
13143
|
+
index: number;
|
|
13144
|
+
arguments: string;
|
|
13145
|
+
metadata?: undefined;
|
|
13146
|
+
} | {
|
|
13147
|
+
data: string;
|
|
13148
|
+
id: string;
|
|
13149
|
+
name: string;
|
|
13150
|
+
modality: "tool-response";
|
|
13151
|
+
index: number;
|
|
13152
|
+
metadata?: undefined;
|
|
13153
|
+
apiResponse?: {
|
|
13154
|
+
statusCode: number;
|
|
13155
|
+
} | undefined;
|
|
13156
|
+
})[];
|
|
13157
|
+
metadata?: undefined;
|
|
13158
|
+
}>, "many">;
|
|
13159
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
13160
|
+
customHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
13161
|
+
metadataForCallbacks: z.ZodOptional<z.ZodAny>;
|
|
13162
|
+
}, "strip", z.ZodTypeAny, {
|
|
13163
|
+
customHeaders?: Record<string, string> | undefined;
|
|
13164
|
+
metadataForCallbacks?: any;
|
|
13165
|
+
}, {
|
|
13166
|
+
customHeaders?: Record<string, string> | undefined;
|
|
13167
|
+
metadataForCallbacks?: any;
|
|
13168
|
+
}>>;
|
|
13169
|
+
abortSignal: z.ZodOptional<z.ZodType<AbortSignal, z.ZodTypeDef, AbortSignal>>;
|
|
13170
|
+
}, "strip", z.ZodTypeAny, {
|
|
13171
|
+
messages: {
|
|
13172
|
+
role: "system" | "user" | "assistant" | "tool";
|
|
13173
|
+
content: ({
|
|
13174
|
+
value: {
|
|
13175
|
+
type: "thinking";
|
|
13176
|
+
thinking: string;
|
|
13177
|
+
signature: string;
|
|
13178
|
+
} | {
|
|
13179
|
+
type: "redacted";
|
|
13180
|
+
data: string;
|
|
13181
|
+
};
|
|
13182
|
+
modality: "reasoning";
|
|
13183
|
+
metadata?: any;
|
|
13184
|
+
} | {
|
|
13185
|
+
value: string;
|
|
13186
|
+
modality: "text";
|
|
13187
|
+
metadata?: undefined;
|
|
13188
|
+
} | {
|
|
13189
|
+
value: {
|
|
13190
|
+
type: "base64";
|
|
13191
|
+
base64: string;
|
|
13192
|
+
mediaType: "png" | "jpeg" | "webp" | "gif";
|
|
10785
13193
|
} | {
|
|
10786
|
-
type: "
|
|
10787
|
-
|
|
10788
|
-
|
|
13194
|
+
type: "url";
|
|
13195
|
+
url: string;
|
|
13196
|
+
};
|
|
13197
|
+
modality: "image";
|
|
13198
|
+
detail: "low" | "medium" | "high" | "auto";
|
|
13199
|
+
metadata?: undefined;
|
|
13200
|
+
} | {
|
|
13201
|
+
id: string;
|
|
13202
|
+
name: string;
|
|
13203
|
+
modality: "tool-call";
|
|
13204
|
+
index: number;
|
|
13205
|
+
arguments: string;
|
|
13206
|
+
metadata?: undefined;
|
|
13207
|
+
} | {
|
|
13208
|
+
data: string;
|
|
13209
|
+
id: string;
|
|
13210
|
+
name: string;
|
|
13211
|
+
modality: "tool-response";
|
|
13212
|
+
index: number;
|
|
13213
|
+
metadata?: undefined;
|
|
13214
|
+
apiResponse?: {
|
|
13215
|
+
statusCode: number;
|
|
13216
|
+
} | undefined;
|
|
13217
|
+
})[];
|
|
13218
|
+
metadata?: undefined;
|
|
13219
|
+
}[];
|
|
13220
|
+
tools: {
|
|
13221
|
+
type: "function";
|
|
13222
|
+
definition: {
|
|
13223
|
+
schema: {
|
|
13224
|
+
name: string;
|
|
10789
13225
|
description: string;
|
|
10790
|
-
|
|
10791
|
-
|
|
10792
|
-
}>;
|
|
10793
|
-
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
10794
|
-
};
|
|
10795
|
-
price: {
|
|
10796
|
-
modelName: string;
|
|
10797
|
-
currency: string;
|
|
10798
|
-
tokenRanges: {
|
|
10799
|
-
minTokens: number;
|
|
10800
|
-
prices: {
|
|
10801
|
-
base: {
|
|
10802
|
-
inputPricePerMillion: number;
|
|
10803
|
-
outputPricePerMillion: number;
|
|
10804
|
-
};
|
|
10805
|
-
};
|
|
10806
|
-
maxTokens?: number | null | undefined;
|
|
10807
|
-
}[];
|
|
10808
|
-
};
|
|
10809
|
-
maxReasoningTokens?: number | undefined;
|
|
10810
|
-
}> | undefined;
|
|
10811
|
-
chatModelPrice?: {
|
|
10812
|
-
modelName: string;
|
|
10813
|
-
currency: string;
|
|
10814
|
-
tokenRanges: {
|
|
10815
|
-
minTokens: number;
|
|
10816
|
-
prices: {
|
|
10817
|
-
base: {
|
|
10818
|
-
inputPricePerMillion: number;
|
|
10819
|
-
outputPricePerMillion: number;
|
|
10820
|
-
};
|
|
13226
|
+
strict?: boolean | undefined;
|
|
13227
|
+
parameters?: any;
|
|
10821
13228
|
};
|
|
10822
|
-
|
|
10823
|
-
|
|
13229
|
+
};
|
|
13230
|
+
metadata?: any;
|
|
13231
|
+
apiSettings?: {
|
|
13232
|
+
type: "http";
|
|
13233
|
+
url: string;
|
|
13234
|
+
method: "get" | "post";
|
|
13235
|
+
headers?: Record<string, string> | undefined;
|
|
13236
|
+
query?: Record<string, string> | undefined;
|
|
13237
|
+
body?: Record<string, any> | undefined;
|
|
13238
|
+
proxyUrl?: string | undefined;
|
|
13239
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
13240
|
+
retry?: {
|
|
13241
|
+
maxAttempts: number;
|
|
13242
|
+
initialDelay: number;
|
|
13243
|
+
exponentialFactor: number;
|
|
13244
|
+
} | undefined;
|
|
13245
|
+
} | undefined;
|
|
13246
|
+
}[];
|
|
13247
|
+
options?: {
|
|
13248
|
+
customHeaders?: Record<string, string> | undefined;
|
|
13249
|
+
metadataForCallbacks?: any;
|
|
10824
13250
|
} | undefined;
|
|
13251
|
+
abortSignal?: AbortSignal | undefined;
|
|
10825
13252
|
}, {
|
|
10826
|
-
|
|
10827
|
-
|
|
10828
|
-
|
|
10829
|
-
|
|
10830
|
-
|
|
10831
|
-
|
|
10832
|
-
|
|
10833
|
-
description: string;
|
|
10834
|
-
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
10835
|
-
modalities: ["text" | "image" | "tool-call" | "tool-response" | "reasoning", ...("text" | "image" | "tool-call" | "tool-response" | "reasoning")[]];
|
|
10836
|
-
maxInputTokens: number;
|
|
10837
|
-
maxOutputTokens: number;
|
|
10838
|
-
config: {
|
|
10839
|
-
def: Record<string, {
|
|
10840
|
-
type: "multi-string";
|
|
10841
|
-
param: string;
|
|
10842
|
-
title: string;
|
|
10843
|
-
description: string;
|
|
10844
|
-
max: number;
|
|
10845
|
-
} | {
|
|
10846
|
-
type: "object-schema";
|
|
10847
|
-
param: string;
|
|
10848
|
-
title: string;
|
|
10849
|
-
description: string;
|
|
10850
|
-
objectSchema?: any;
|
|
10851
|
-
} | {
|
|
10852
|
-
type: "range";
|
|
10853
|
-
param: string;
|
|
10854
|
-
title: string;
|
|
10855
|
-
description: string;
|
|
10856
|
-
max: number;
|
|
10857
|
-
default: number;
|
|
10858
|
-
min: number;
|
|
10859
|
-
step: number;
|
|
13253
|
+
messages: {
|
|
13254
|
+
role: "system" | "user" | "assistant" | "tool";
|
|
13255
|
+
content: ({
|
|
13256
|
+
value: {
|
|
13257
|
+
type: "thinking";
|
|
13258
|
+
thinking: string;
|
|
13259
|
+
signature: string;
|
|
10860
13260
|
} | {
|
|
10861
|
-
type: "
|
|
10862
|
-
|
|
10863
|
-
|
|
10864
|
-
|
|
10865
|
-
|
|
13261
|
+
type: "redacted";
|
|
13262
|
+
data: string;
|
|
13263
|
+
};
|
|
13264
|
+
modality: "reasoning";
|
|
13265
|
+
metadata?: any;
|
|
13266
|
+
} | {
|
|
13267
|
+
value: string;
|
|
13268
|
+
modality: "text";
|
|
13269
|
+
metadata?: undefined;
|
|
13270
|
+
} | {
|
|
13271
|
+
value: {
|
|
13272
|
+
type: "base64";
|
|
13273
|
+
base64: string;
|
|
13274
|
+
mediaType: "png" | "jpeg" | "webp" | "gif";
|
|
10866
13275
|
} | {
|
|
10867
|
-
type: "
|
|
10868
|
-
|
|
10869
|
-
|
|
13276
|
+
type: "url";
|
|
13277
|
+
url: string;
|
|
13278
|
+
};
|
|
13279
|
+
modality: "image";
|
|
13280
|
+
detail: "low" | "medium" | "high" | "auto";
|
|
13281
|
+
metadata?: undefined;
|
|
13282
|
+
} | {
|
|
13283
|
+
id: string;
|
|
13284
|
+
name: string;
|
|
13285
|
+
modality: "tool-call";
|
|
13286
|
+
index: number;
|
|
13287
|
+
arguments: string;
|
|
13288
|
+
metadata?: undefined;
|
|
13289
|
+
} | {
|
|
13290
|
+
data: string;
|
|
13291
|
+
id: string;
|
|
13292
|
+
name: string;
|
|
13293
|
+
modality: "tool-response";
|
|
13294
|
+
index: number;
|
|
13295
|
+
metadata?: undefined;
|
|
13296
|
+
apiResponse?: {
|
|
13297
|
+
statusCode: number;
|
|
13298
|
+
} | undefined;
|
|
13299
|
+
})[];
|
|
13300
|
+
metadata?: undefined;
|
|
13301
|
+
}[];
|
|
13302
|
+
tools: {
|
|
13303
|
+
type: "function";
|
|
13304
|
+
definition: {
|
|
13305
|
+
schema: {
|
|
13306
|
+
name: string;
|
|
10870
13307
|
description: string;
|
|
10871
|
-
|
|
10872
|
-
|
|
10873
|
-
}>;
|
|
10874
|
-
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
10875
|
-
};
|
|
10876
|
-
price: {
|
|
10877
|
-
modelName: string;
|
|
10878
|
-
currency: string;
|
|
10879
|
-
tokenRanges: {
|
|
10880
|
-
minTokens: number;
|
|
10881
|
-
prices: {
|
|
10882
|
-
base: {
|
|
10883
|
-
inputPricePerMillion: number;
|
|
10884
|
-
outputPricePerMillion: number;
|
|
10885
|
-
};
|
|
10886
|
-
};
|
|
10887
|
-
maxTokens?: number | null | undefined;
|
|
10888
|
-
}[];
|
|
10889
|
-
};
|
|
10890
|
-
maxReasoningTokens?: number | undefined;
|
|
10891
|
-
}> | undefined;
|
|
10892
|
-
chatModelPrice?: {
|
|
10893
|
-
modelName: string;
|
|
10894
|
-
currency: string;
|
|
10895
|
-
tokenRanges: {
|
|
10896
|
-
minTokens: number;
|
|
10897
|
-
prices: {
|
|
10898
|
-
base: {
|
|
10899
|
-
inputPricePerMillion: number;
|
|
10900
|
-
outputPricePerMillion: number;
|
|
10901
|
-
};
|
|
13308
|
+
strict?: boolean | undefined;
|
|
13309
|
+
parameters?: any;
|
|
10902
13310
|
};
|
|
10903
|
-
|
|
10904
|
-
|
|
13311
|
+
};
|
|
13312
|
+
metadata?: any;
|
|
13313
|
+
apiSettings?: {
|
|
13314
|
+
type: "http";
|
|
13315
|
+
url: string;
|
|
13316
|
+
method: "get" | "post";
|
|
13317
|
+
headers?: Record<string, string> | undefined;
|
|
13318
|
+
query?: Record<string, string> | undefined;
|
|
13319
|
+
body?: Record<string, any> | undefined;
|
|
13320
|
+
proxyUrl?: string | undefined;
|
|
13321
|
+
proxyHeaders?: Record<string, string> | undefined;
|
|
13322
|
+
retry?: {
|
|
13323
|
+
maxAttempts: number;
|
|
13324
|
+
initialDelay: number;
|
|
13325
|
+
exponentialFactor: number;
|
|
13326
|
+
} | undefined;
|
|
13327
|
+
} | undefined;
|
|
13328
|
+
}[];
|
|
13329
|
+
options?: {
|
|
13330
|
+
customHeaders?: Record<string, string> | undefined;
|
|
13331
|
+
metadataForCallbacks?: any;
|
|
10905
13332
|
} | undefined;
|
|
13333
|
+
abortSignal?: AbortSignal | undefined;
|
|
10906
13334
|
}>;
|
|
10907
|
-
type
|
|
13335
|
+
type GatewayGetToolResponsesRequestType = z.infer<typeof GatewayGetToolResponsesRequest>;
|
|
10908
13336
|
|
|
10909
13337
|
declare class Gateway {
|
|
10910
13338
|
private options;
|
|
@@ -10926,8 +13354,9 @@ declare class Gateway {
|
|
|
10926
13354
|
proxyStreamChat(request: GatewayProxyStreamChatRequestType): AsyncGenerator<ProxyStreamChatHandlerResponseType, void, unknown>;
|
|
10927
13355
|
proxyGetEmbeddings(request: GatewayProxyGetEmbeddingsRequestType): Promise<ProxyGetEmbeddingsHandlerResponseType>;
|
|
10928
13356
|
private executeProxyGetEmbeddings;
|
|
13357
|
+
getToolResponses(request: GatewayGetToolResponsesRequestType): Promise<GetToolResponsesHandlerResponseType>;
|
|
10929
13358
|
static getChatUsageCost(request: GatewayGetChatUsageCostRequestType): GetChatUsageCostHandlerResponseType;
|
|
10930
13359
|
static GatewayError: typeof GatewayError;
|
|
10931
13360
|
}
|
|
10932
13361
|
|
|
10933
|
-
export { type AnalyticsBrowserEnvironment, type AnalyticsEvent, AnalyticsManager, type AnalyticsNodeEnvironment, type AnalyticsRecorder, type Cache, type CompleteChatCallbackType, CompleteChatHandlerRequest, type CompleteChatHandlerRequestType, CompleteChatHandlerResponse, type CompleteChatHandlerResponseType, ConsoleLogger, Gateway, GatewayError, type GatewayOptionsType, GatewayTelemetryError, GetChatUsageCostHandlerRequest, type GetChatUsageCostHandlerRequestType, GetChatUsageCostHandlerResponse, type GetChatUsageCostHandlerResponseType, type GetEmbeddingsCallbackType, GetEmbeddingsHandlerRequest, type GetEmbeddingsHandlerRequestType, GetEmbeddingsHandlerResponse, type GetEmbeddingsHandlerResponseType, type HttpClient, HttpClientError, type HttpClientResponse, HttpRequestError, IsomorphicHttpClient, LRUCache, type Logger, LoggerManager, NoOpAnalytics, PostAnalytics, ProxyCompleteChatHandlerRequest, type ProxyCompleteChatHandlerRequestType, ProxyCompleteChatHandlerResponse, type ProxyCompleteChatHandlerResponseType, ProxyGetEmbeddingsHandlerRequest, type ProxyGetEmbeddingsHandlerRequestType, ProxyGetEmbeddingsHandlerResponse, type ProxyGetEmbeddingsHandlerResponseType, ProxyStreamChatHandlerRequest, type ProxyStreamChatHandlerRequestType, ProxyStreamChatHandlerResponse, type ProxyStreamChatHandlerResponseType, type Queue, QueueOptions, type QueueOptionsType, type QueueTask, QueueTaskTimeoutError, SimpleQueue, type StreamChatCallbackType, StreamChatHandlerRequest, type StreamChatHandlerRequestType, StreamChatHandlerResponse, type StreamChatHandlerResponseType, TelemetryManager, handleCompleteChat, handleGetChatUsageCost, handleGetEmbeddings, handleProxyCompleteChat, handleProxyGetEmbeddings, handleProxyStreamChat, handleStreamChat };
|
|
13362
|
+
export { type AnalyticsBrowserEnvironment, type AnalyticsEvent, AnalyticsManager, type AnalyticsNodeEnvironment, type AnalyticsRecorder, type Cache, type CompleteChatCallbackType, CompleteChatHandlerRequest, type CompleteChatHandlerRequestType, CompleteChatHandlerResponse, type CompleteChatHandlerResponseType, ConsoleLogger, Gateway, GatewayError, type GatewayOptionsType, GatewayTelemetryError, GetChatUsageCostHandlerRequest, type GetChatUsageCostHandlerRequestType, GetChatUsageCostHandlerResponse, type GetChatUsageCostHandlerResponseType, type GetEmbeddingsCallbackType, GetEmbeddingsHandlerRequest, type GetEmbeddingsHandlerRequestType, GetEmbeddingsHandlerResponse, type GetEmbeddingsHandlerResponseType, type GetToolResponsesCallbackType, GetToolResponsesHandlerRequest, type GetToolResponsesHandlerRequestType, GetToolResponsesHandlerResponse, type GetToolResponsesHandlerResponseType, type HttpClient, HttpClientError, type HttpClientOptions, type HttpClientResponse, HttpRequestError, IsomorphicHttpClient, LRUCache, type Logger, LoggerManager, NoOpAnalytics, PostAnalytics, ProxyCompleteChatHandlerRequest, type ProxyCompleteChatHandlerRequestType, ProxyCompleteChatHandlerResponse, type ProxyCompleteChatHandlerResponseType, ProxyGetEmbeddingsHandlerRequest, type ProxyGetEmbeddingsHandlerRequestType, ProxyGetEmbeddingsHandlerResponse, type ProxyGetEmbeddingsHandlerResponseType, ProxyStreamChatHandlerRequest, type ProxyStreamChatHandlerRequestType, ProxyStreamChatHandlerResponse, type ProxyStreamChatHandlerResponseType, type Queue, QueueOptions, type QueueOptionsType, type QueueTask, QueueTaskTimeoutError, SimpleQueue, type StreamChatCallbackType, StreamChatHandlerRequest, type StreamChatHandlerRequestType, StreamChatHandlerResponse, type StreamChatHandlerResponseType, TelemetryManager, handleCompleteChat, handleGetChatUsageCost, handleGetEmbeddings, handleGetToolResponses, handleProxyCompleteChat, handleProxyGetEmbeddings, handleProxyStreamChat, handleStreamChat };
|