@nanogpt/mcp 1.1.6 → 1.3.1
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/config.d.ts +5 -3
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +22 -19
- package/dist/config.js.map +1 -1
- package/dist/httpClient.d.ts +13 -0
- package/dist/httpClient.d.ts.map +1 -1
- package/dist/httpClient.js +94 -4
- package/dist/httpClient.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +49 -3
- package/dist/index.js.map +1 -1
- package/dist/resources.d.ts +9 -2
- package/dist/resources.d.ts.map +1 -1
- package/dist/resources.js +14 -5
- package/dist/resources.js.map +1 -1
- package/dist/tools/applicationScrapers.d.ts +1053 -0
- package/dist/tools/applicationScrapers.d.ts.map +1 -0
- package/dist/tools/applicationScrapers.js +333 -0
- package/dist/tools/applicationScrapers.js.map +1 -0
- package/dist/tools/chat.d.ts.map +1 -1
- package/dist/tools/chat.js +4 -1
- package/dist/tools/chat.js.map +1 -1
- package/dist/tools/generationExtras.d.ts +432 -0
- package/dist/tools/generationExtras.d.ts.map +1 -0
- package/dist/tools/generationExtras.js +419 -0
- package/dist/tools/generationExtras.js.map +1 -0
- package/dist/tools/index.d.ts +3 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +3 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/listModels.d.ts +2 -2
- package/dist/tools/researchTools.d.ts +88 -0
- package/dist/tools/researchTools.d.ts.map +1 -0
- package/dist/tools/researchTools.js +241 -0
- package/dist/tools/researchTools.js.map +1 -0
- package/dist/tools/webSearch.d.ts +100 -5
- package/dist/tools/webSearch.d.ts.map +1 -1
- package/dist/tools/webSearch.js +143 -8
- package/dist/tools/webSearch.js.map +1 -1
- package/package.json +11 -2
|
@@ -0,0 +1,432 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Additional NanoGPT API tools useful to agents.
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
import { type ResourceLink } from '../toolUtils.js';
|
|
6
|
+
export declare const embeddingsInputSchema: z.ZodObject<{
|
|
7
|
+
input: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">, z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">]>;
|
|
8
|
+
model: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
9
|
+
encoding_format: z.ZodOptional<z.ZodEnum<["float", "base64"]>>;
|
|
10
|
+
dimensions: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
user: z.ZodOptional<z.ZodString>;
|
|
12
|
+
include_raw: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
include_raw: boolean;
|
|
15
|
+
model: string;
|
|
16
|
+
input: string | string[] | number[] | number[][];
|
|
17
|
+
user?: string | undefined;
|
|
18
|
+
encoding_format?: "base64" | "float" | undefined;
|
|
19
|
+
dimensions?: number | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
input: string | string[] | number[] | number[][];
|
|
22
|
+
include_raw?: boolean | undefined;
|
|
23
|
+
user?: string | undefined;
|
|
24
|
+
model?: string | undefined;
|
|
25
|
+
encoding_format?: "base64" | "float" | undefined;
|
|
26
|
+
dimensions?: number | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
export declare const aiDetectionInputSchema: z.ZodObject<{
|
|
29
|
+
text: z.ZodString;
|
|
30
|
+
mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ai", "plagiarism"]>>>;
|
|
31
|
+
include_raw: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
text: string;
|
|
34
|
+
include_raw: boolean;
|
|
35
|
+
mode: "ai" | "plagiarism";
|
|
36
|
+
}, {
|
|
37
|
+
text: string;
|
|
38
|
+
include_raw?: boolean | undefined;
|
|
39
|
+
mode?: "ai" | "plagiarism" | undefined;
|
|
40
|
+
}>;
|
|
41
|
+
export declare const imageEditInputSchema: z.ZodObject<{
|
|
42
|
+
prompt: z.ZodString;
|
|
43
|
+
model: z.ZodOptional<z.ZodString>;
|
|
44
|
+
imageDataUrl: z.ZodOptional<z.ZodString>;
|
|
45
|
+
imageDataUrls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
46
|
+
maskDataUrl: z.ZodOptional<z.ZodString>;
|
|
47
|
+
n: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
size: z.ZodOptional<z.ZodString>;
|
|
49
|
+
quality: z.ZodOptional<z.ZodString>;
|
|
50
|
+
response_format: z.ZodOptional<z.ZodEnum<["url", "b64_json"]>>;
|
|
51
|
+
include_raw: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
include_raw: boolean;
|
|
54
|
+
prompt: string;
|
|
55
|
+
model?: string | undefined;
|
|
56
|
+
n?: number | undefined;
|
|
57
|
+
size?: string | undefined;
|
|
58
|
+
quality?: string | undefined;
|
|
59
|
+
response_format?: "url" | "b64_json" | undefined;
|
|
60
|
+
imageDataUrl?: string | undefined;
|
|
61
|
+
imageDataUrls?: string[] | undefined;
|
|
62
|
+
maskDataUrl?: string | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
prompt: string;
|
|
65
|
+
include_raw?: boolean | undefined;
|
|
66
|
+
model?: string | undefined;
|
|
67
|
+
n?: number | undefined;
|
|
68
|
+
size?: string | undefined;
|
|
69
|
+
quality?: string | undefined;
|
|
70
|
+
response_format?: "url" | "b64_json" | undefined;
|
|
71
|
+
imageDataUrl?: string | undefined;
|
|
72
|
+
imageDataUrls?: string[] | undefined;
|
|
73
|
+
maskDataUrl?: string | undefined;
|
|
74
|
+
}>;
|
|
75
|
+
export declare const audioTranscribeInputSchema: z.ZodObject<{
|
|
76
|
+
audio_url: z.ZodOptional<z.ZodString>;
|
|
77
|
+
file_url: z.ZodOptional<z.ZodString>;
|
|
78
|
+
model: z.ZodOptional<z.ZodString>;
|
|
79
|
+
language: z.ZodOptional<z.ZodString>;
|
|
80
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
81
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
82
|
+
response_format: z.ZodOptional<z.ZodEnum<["json", "text", "srt", "verbose_json", "vtt"]>>;
|
|
83
|
+
timestamp_granularities: z.ZodOptional<z.ZodArray<z.ZodEnum<["word", "segment"]>, "many">>;
|
|
84
|
+
include_raw: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
include_raw: boolean;
|
|
87
|
+
model?: string | undefined;
|
|
88
|
+
temperature?: number | undefined;
|
|
89
|
+
prompt?: string | undefined;
|
|
90
|
+
response_format?: "text" | "json" | "srt" | "verbose_json" | "vtt" | undefined;
|
|
91
|
+
language?: string | undefined;
|
|
92
|
+
audio_url?: string | undefined;
|
|
93
|
+
file_url?: string | undefined;
|
|
94
|
+
timestamp_granularities?: ("word" | "segment")[] | undefined;
|
|
95
|
+
}, {
|
|
96
|
+
include_raw?: boolean | undefined;
|
|
97
|
+
model?: string | undefined;
|
|
98
|
+
temperature?: number | undefined;
|
|
99
|
+
prompt?: string | undefined;
|
|
100
|
+
response_format?: "text" | "json" | "srt" | "verbose_json" | "vtt" | undefined;
|
|
101
|
+
language?: string | undefined;
|
|
102
|
+
audio_url?: string | undefined;
|
|
103
|
+
file_url?: string | undefined;
|
|
104
|
+
timestamp_granularities?: ("word" | "segment")[] | undefined;
|
|
105
|
+
}>;
|
|
106
|
+
export declare const textToSpeechInputSchema: z.ZodObject<{
|
|
107
|
+
input: z.ZodString;
|
|
108
|
+
model: z.ZodOptional<z.ZodString>;
|
|
109
|
+
voice: z.ZodOptional<z.ZodString>;
|
|
110
|
+
response_format: z.ZodOptional<z.ZodEnum<["mp3", "opus", "aac", "flac", "wav", "pcm"]>>;
|
|
111
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
112
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
113
|
+
include_raw: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
114
|
+
}, "strip", z.ZodTypeAny, {
|
|
115
|
+
include_raw: boolean;
|
|
116
|
+
input: string;
|
|
117
|
+
model?: string | undefined;
|
|
118
|
+
response_format?: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm" | undefined;
|
|
119
|
+
voice?: string | undefined;
|
|
120
|
+
speed?: number | undefined;
|
|
121
|
+
instructions?: string | undefined;
|
|
122
|
+
}, {
|
|
123
|
+
input: string;
|
|
124
|
+
include_raw?: boolean | undefined;
|
|
125
|
+
model?: string | undefined;
|
|
126
|
+
response_format?: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm" | undefined;
|
|
127
|
+
voice?: string | undefined;
|
|
128
|
+
speed?: number | undefined;
|
|
129
|
+
instructions?: string | undefined;
|
|
130
|
+
}>;
|
|
131
|
+
export declare const aiQrInputSchema: z.ZodObject<{
|
|
132
|
+
value: z.ZodString;
|
|
133
|
+
prompt: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
134
|
+
negative_prompt: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
135
|
+
seed: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
136
|
+
control_strength: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
137
|
+
prompt_tuning: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
138
|
+
restoration_rate: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
139
|
+
size: z.ZodDefault<z.ZodOptional<z.ZodEnum<["768", "1024", "1152", "1536"]>>>;
|
|
140
|
+
padding_ratio: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
141
|
+
correct_level: z.ZodDefault<z.ZodOptional<z.ZodEnum<["7", "15", "25"]>>>;
|
|
142
|
+
anchor_style: z.ZodDefault<z.ZodOptional<z.ZodEnum<["circle", "square", "minimal"]>>>;
|
|
143
|
+
response_format: z.ZodDefault<z.ZodOptional<z.ZodEnum<["url", "b64_json"]>>>;
|
|
144
|
+
include_raw: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
145
|
+
}, "strip", z.ZodTypeAny, {
|
|
146
|
+
value: string;
|
|
147
|
+
include_raw: boolean;
|
|
148
|
+
prompt: string;
|
|
149
|
+
size: "768" | "1024" | "1152" | "1536";
|
|
150
|
+
response_format: "url" | "b64_json";
|
|
151
|
+
negative_prompt: string;
|
|
152
|
+
seed: number;
|
|
153
|
+
control_strength: number;
|
|
154
|
+
prompt_tuning: boolean;
|
|
155
|
+
restoration_rate: number;
|
|
156
|
+
padding_ratio: number;
|
|
157
|
+
correct_level: "7" | "15" | "25";
|
|
158
|
+
anchor_style: "circle" | "square" | "minimal";
|
|
159
|
+
}, {
|
|
160
|
+
value: string;
|
|
161
|
+
include_raw?: boolean | undefined;
|
|
162
|
+
prompt?: string | undefined;
|
|
163
|
+
size?: "768" | "1024" | "1152" | "1536" | undefined;
|
|
164
|
+
response_format?: "url" | "b64_json" | undefined;
|
|
165
|
+
negative_prompt?: string | undefined;
|
|
166
|
+
seed?: number | undefined;
|
|
167
|
+
control_strength?: number | undefined;
|
|
168
|
+
prompt_tuning?: boolean | undefined;
|
|
169
|
+
restoration_rate?: number | undefined;
|
|
170
|
+
padding_ratio?: number | undefined;
|
|
171
|
+
correct_level?: "7" | "15" | "25" | undefined;
|
|
172
|
+
anchor_style?: "circle" | "square" | "minimal" | undefined;
|
|
173
|
+
}>;
|
|
174
|
+
export declare const embeddings: {
|
|
175
|
+
name: string;
|
|
176
|
+
description: string;
|
|
177
|
+
inputSchema: z.ZodObject<{
|
|
178
|
+
input: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">, z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">]>;
|
|
179
|
+
model: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
180
|
+
encoding_format: z.ZodOptional<z.ZodEnum<["float", "base64"]>>;
|
|
181
|
+
dimensions: z.ZodOptional<z.ZodNumber>;
|
|
182
|
+
user: z.ZodOptional<z.ZodString>;
|
|
183
|
+
include_raw: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
184
|
+
}, "strip", z.ZodTypeAny, {
|
|
185
|
+
include_raw: boolean;
|
|
186
|
+
model: string;
|
|
187
|
+
input: string | string[] | number[] | number[][];
|
|
188
|
+
user?: string | undefined;
|
|
189
|
+
encoding_format?: "base64" | "float" | undefined;
|
|
190
|
+
dimensions?: number | undefined;
|
|
191
|
+
}, {
|
|
192
|
+
input: string | string[] | number[] | number[][];
|
|
193
|
+
include_raw?: boolean | undefined;
|
|
194
|
+
user?: string | undefined;
|
|
195
|
+
model?: string | undefined;
|
|
196
|
+
encoding_format?: "base64" | "float" | undefined;
|
|
197
|
+
dimensions?: number | undefined;
|
|
198
|
+
}>;
|
|
199
|
+
inputJsonSchema: import("../toolUtils.js").JsonSchema;
|
|
200
|
+
outputJsonSchema: import("../toolUtils.js").JsonSchema;
|
|
201
|
+
annotations: {
|
|
202
|
+
readOnlyHint: boolean;
|
|
203
|
+
openWorldHint: boolean;
|
|
204
|
+
};
|
|
205
|
+
handler(args: unknown): Promise<{
|
|
206
|
+
content: import("../toolUtils.js").ContentItem[];
|
|
207
|
+
structuredContent: Record<string, unknown>;
|
|
208
|
+
}>;
|
|
209
|
+
};
|
|
210
|
+
export declare const aiDetection: {
|
|
211
|
+
name: string;
|
|
212
|
+
description: string;
|
|
213
|
+
inputSchema: z.ZodObject<{
|
|
214
|
+
text: z.ZodString;
|
|
215
|
+
mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["ai", "plagiarism"]>>>;
|
|
216
|
+
include_raw: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
217
|
+
}, "strip", z.ZodTypeAny, {
|
|
218
|
+
text: string;
|
|
219
|
+
include_raw: boolean;
|
|
220
|
+
mode: "ai" | "plagiarism";
|
|
221
|
+
}, {
|
|
222
|
+
text: string;
|
|
223
|
+
include_raw?: boolean | undefined;
|
|
224
|
+
mode?: "ai" | "plagiarism" | undefined;
|
|
225
|
+
}>;
|
|
226
|
+
inputJsonSchema: import("../toolUtils.js").JsonSchema;
|
|
227
|
+
outputJsonSchema: import("../toolUtils.js").JsonSchema;
|
|
228
|
+
annotations: {
|
|
229
|
+
readOnlyHint: boolean;
|
|
230
|
+
openWorldHint: boolean;
|
|
231
|
+
};
|
|
232
|
+
handler(args: unknown): Promise<{
|
|
233
|
+
content: import("../toolUtils.js").ContentItem[];
|
|
234
|
+
structuredContent: Record<string, unknown>;
|
|
235
|
+
}>;
|
|
236
|
+
};
|
|
237
|
+
export declare const imageEdit: {
|
|
238
|
+
name: string;
|
|
239
|
+
description: string;
|
|
240
|
+
inputSchema: z.ZodObject<{
|
|
241
|
+
prompt: z.ZodString;
|
|
242
|
+
model: z.ZodOptional<z.ZodString>;
|
|
243
|
+
imageDataUrl: z.ZodOptional<z.ZodString>;
|
|
244
|
+
imageDataUrls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
245
|
+
maskDataUrl: z.ZodOptional<z.ZodString>;
|
|
246
|
+
n: z.ZodOptional<z.ZodNumber>;
|
|
247
|
+
size: z.ZodOptional<z.ZodString>;
|
|
248
|
+
quality: z.ZodOptional<z.ZodString>;
|
|
249
|
+
response_format: z.ZodOptional<z.ZodEnum<["url", "b64_json"]>>;
|
|
250
|
+
include_raw: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
251
|
+
}, "strip", z.ZodTypeAny, {
|
|
252
|
+
include_raw: boolean;
|
|
253
|
+
prompt: string;
|
|
254
|
+
model?: string | undefined;
|
|
255
|
+
n?: number | undefined;
|
|
256
|
+
size?: string | undefined;
|
|
257
|
+
quality?: string | undefined;
|
|
258
|
+
response_format?: "url" | "b64_json" | undefined;
|
|
259
|
+
imageDataUrl?: string | undefined;
|
|
260
|
+
imageDataUrls?: string[] | undefined;
|
|
261
|
+
maskDataUrl?: string | undefined;
|
|
262
|
+
}, {
|
|
263
|
+
prompt: string;
|
|
264
|
+
include_raw?: boolean | undefined;
|
|
265
|
+
model?: string | undefined;
|
|
266
|
+
n?: number | undefined;
|
|
267
|
+
size?: string | undefined;
|
|
268
|
+
quality?: string | undefined;
|
|
269
|
+
response_format?: "url" | "b64_json" | undefined;
|
|
270
|
+
imageDataUrl?: string | undefined;
|
|
271
|
+
imageDataUrls?: string[] | undefined;
|
|
272
|
+
maskDataUrl?: string | undefined;
|
|
273
|
+
}>;
|
|
274
|
+
inputJsonSchema: import("../toolUtils.js").JsonSchema;
|
|
275
|
+
outputJsonSchema: import("../toolUtils.js").JsonSchema;
|
|
276
|
+
annotations: {
|
|
277
|
+
readOnlyHint: boolean;
|
|
278
|
+
openWorldHint: boolean;
|
|
279
|
+
};
|
|
280
|
+
handler(args: unknown): Promise<{
|
|
281
|
+
content: (ResourceLink | {
|
|
282
|
+
type: string;
|
|
283
|
+
text: string;
|
|
284
|
+
})[];
|
|
285
|
+
structuredContent: Record<string, unknown>;
|
|
286
|
+
}>;
|
|
287
|
+
};
|
|
288
|
+
export declare const audioTranscribe: {
|
|
289
|
+
name: string;
|
|
290
|
+
description: string;
|
|
291
|
+
inputSchema: z.ZodObject<{
|
|
292
|
+
audio_url: z.ZodOptional<z.ZodString>;
|
|
293
|
+
file_url: z.ZodOptional<z.ZodString>;
|
|
294
|
+
model: z.ZodOptional<z.ZodString>;
|
|
295
|
+
language: z.ZodOptional<z.ZodString>;
|
|
296
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
297
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
298
|
+
response_format: z.ZodOptional<z.ZodEnum<["json", "text", "srt", "verbose_json", "vtt"]>>;
|
|
299
|
+
timestamp_granularities: z.ZodOptional<z.ZodArray<z.ZodEnum<["word", "segment"]>, "many">>;
|
|
300
|
+
include_raw: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
301
|
+
}, "strip", z.ZodTypeAny, {
|
|
302
|
+
include_raw: boolean;
|
|
303
|
+
model?: string | undefined;
|
|
304
|
+
temperature?: number | undefined;
|
|
305
|
+
prompt?: string | undefined;
|
|
306
|
+
response_format?: "text" | "json" | "srt" | "verbose_json" | "vtt" | undefined;
|
|
307
|
+
language?: string | undefined;
|
|
308
|
+
audio_url?: string | undefined;
|
|
309
|
+
file_url?: string | undefined;
|
|
310
|
+
timestamp_granularities?: ("word" | "segment")[] | undefined;
|
|
311
|
+
}, {
|
|
312
|
+
include_raw?: boolean | undefined;
|
|
313
|
+
model?: string | undefined;
|
|
314
|
+
temperature?: number | undefined;
|
|
315
|
+
prompt?: string | undefined;
|
|
316
|
+
response_format?: "text" | "json" | "srt" | "verbose_json" | "vtt" | undefined;
|
|
317
|
+
language?: string | undefined;
|
|
318
|
+
audio_url?: string | undefined;
|
|
319
|
+
file_url?: string | undefined;
|
|
320
|
+
timestamp_granularities?: ("word" | "segment")[] | undefined;
|
|
321
|
+
}>;
|
|
322
|
+
inputJsonSchema: import("../toolUtils.js").JsonSchema;
|
|
323
|
+
outputJsonSchema: import("../toolUtils.js").JsonSchema;
|
|
324
|
+
annotations: {
|
|
325
|
+
readOnlyHint: boolean;
|
|
326
|
+
openWorldHint: boolean;
|
|
327
|
+
};
|
|
328
|
+
handler(args: unknown): Promise<{
|
|
329
|
+
content: import("../toolUtils.js").ContentItem[];
|
|
330
|
+
structuredContent: Record<string, unknown>;
|
|
331
|
+
}>;
|
|
332
|
+
};
|
|
333
|
+
export declare const textToSpeech: {
|
|
334
|
+
name: string;
|
|
335
|
+
description: string;
|
|
336
|
+
inputSchema: z.ZodObject<{
|
|
337
|
+
input: z.ZodString;
|
|
338
|
+
model: z.ZodOptional<z.ZodString>;
|
|
339
|
+
voice: z.ZodOptional<z.ZodString>;
|
|
340
|
+
response_format: z.ZodOptional<z.ZodEnum<["mp3", "opus", "aac", "flac", "wav", "pcm"]>>;
|
|
341
|
+
speed: z.ZodOptional<z.ZodNumber>;
|
|
342
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
343
|
+
include_raw: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
344
|
+
}, "strip", z.ZodTypeAny, {
|
|
345
|
+
include_raw: boolean;
|
|
346
|
+
input: string;
|
|
347
|
+
model?: string | undefined;
|
|
348
|
+
response_format?: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm" | undefined;
|
|
349
|
+
voice?: string | undefined;
|
|
350
|
+
speed?: number | undefined;
|
|
351
|
+
instructions?: string | undefined;
|
|
352
|
+
}, {
|
|
353
|
+
input: string;
|
|
354
|
+
include_raw?: boolean | undefined;
|
|
355
|
+
model?: string | undefined;
|
|
356
|
+
response_format?: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm" | undefined;
|
|
357
|
+
voice?: string | undefined;
|
|
358
|
+
speed?: number | undefined;
|
|
359
|
+
instructions?: string | undefined;
|
|
360
|
+
}>;
|
|
361
|
+
inputJsonSchema: import("../toolUtils.js").JsonSchema;
|
|
362
|
+
outputJsonSchema: import("../toolUtils.js").JsonSchema;
|
|
363
|
+
annotations: {
|
|
364
|
+
readOnlyHint: boolean;
|
|
365
|
+
openWorldHint: boolean;
|
|
366
|
+
};
|
|
367
|
+
handler(args: unknown): Promise<{
|
|
368
|
+
content: import("../toolUtils.js").ContentItem[];
|
|
369
|
+
structuredContent: Record<string, unknown>;
|
|
370
|
+
}>;
|
|
371
|
+
};
|
|
372
|
+
export declare const aiQr: {
|
|
373
|
+
name: string;
|
|
374
|
+
description: string;
|
|
375
|
+
inputSchema: z.ZodObject<{
|
|
376
|
+
value: z.ZodString;
|
|
377
|
+
prompt: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
378
|
+
negative_prompt: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
379
|
+
seed: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
380
|
+
control_strength: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
381
|
+
prompt_tuning: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
382
|
+
restoration_rate: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
383
|
+
size: z.ZodDefault<z.ZodOptional<z.ZodEnum<["768", "1024", "1152", "1536"]>>>;
|
|
384
|
+
padding_ratio: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
385
|
+
correct_level: z.ZodDefault<z.ZodOptional<z.ZodEnum<["7", "15", "25"]>>>;
|
|
386
|
+
anchor_style: z.ZodDefault<z.ZodOptional<z.ZodEnum<["circle", "square", "minimal"]>>>;
|
|
387
|
+
response_format: z.ZodDefault<z.ZodOptional<z.ZodEnum<["url", "b64_json"]>>>;
|
|
388
|
+
include_raw: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
389
|
+
}, "strip", z.ZodTypeAny, {
|
|
390
|
+
value: string;
|
|
391
|
+
include_raw: boolean;
|
|
392
|
+
prompt: string;
|
|
393
|
+
size: "768" | "1024" | "1152" | "1536";
|
|
394
|
+
response_format: "url" | "b64_json";
|
|
395
|
+
negative_prompt: string;
|
|
396
|
+
seed: number;
|
|
397
|
+
control_strength: number;
|
|
398
|
+
prompt_tuning: boolean;
|
|
399
|
+
restoration_rate: number;
|
|
400
|
+
padding_ratio: number;
|
|
401
|
+
correct_level: "7" | "15" | "25";
|
|
402
|
+
anchor_style: "circle" | "square" | "minimal";
|
|
403
|
+
}, {
|
|
404
|
+
value: string;
|
|
405
|
+
include_raw?: boolean | undefined;
|
|
406
|
+
prompt?: string | undefined;
|
|
407
|
+
size?: "768" | "1024" | "1152" | "1536" | undefined;
|
|
408
|
+
response_format?: "url" | "b64_json" | undefined;
|
|
409
|
+
negative_prompt?: string | undefined;
|
|
410
|
+
seed?: number | undefined;
|
|
411
|
+
control_strength?: number | undefined;
|
|
412
|
+
prompt_tuning?: boolean | undefined;
|
|
413
|
+
restoration_rate?: number | undefined;
|
|
414
|
+
padding_ratio?: number | undefined;
|
|
415
|
+
correct_level?: "7" | "15" | "25" | undefined;
|
|
416
|
+
anchor_style?: "circle" | "square" | "minimal" | undefined;
|
|
417
|
+
}>;
|
|
418
|
+
inputJsonSchema: import("../toolUtils.js").JsonSchema;
|
|
419
|
+
outputJsonSchema: import("../toolUtils.js").JsonSchema;
|
|
420
|
+
annotations: {
|
|
421
|
+
readOnlyHint: boolean;
|
|
422
|
+
openWorldHint: boolean;
|
|
423
|
+
};
|
|
424
|
+
handler(args: unknown): Promise<{
|
|
425
|
+
content: (ResourceLink | {
|
|
426
|
+
type: string;
|
|
427
|
+
text: string;
|
|
428
|
+
})[];
|
|
429
|
+
structuredContent: Record<string, unknown>;
|
|
430
|
+
}>;
|
|
431
|
+
};
|
|
432
|
+
//# sourceMappingURL=generationExtras.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generationExtras.d.ts","sourceRoot":"","sources":["../../src/tools/generationExtras.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAsE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AASxH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;EAOhC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;EAIjC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW/B,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUrC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;EAQlC,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAc1B,CAAC;AAqBH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAOD,OAAO;;;;CAa5B,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;kBAOF,OAAO;;;;CAa5B,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAOA,OAAO;;;;;;;CA8C5B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAON,OAAO;;;;CAkB5B,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAOH,OAAO;;;;CAsE5B,CAAC;AAEF,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAOK,OAAO;;;;;;;CA2D5B,CAAC"}
|