@orq-ai/node 3.9.6 → 3.9.7
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/README.md +91 -86
- package/bin/mcp-server.js +1316 -753
- package/bin/mcp-server.js.map +32 -29
- package/docs/sdks/chunking/README.md +94 -0
- package/examples/package-lock.json +1 -1
- package/funcs/chunkingParse.d.ts +17 -0
- package/funcs/chunkingParse.d.ts.map +1 -0
- package/funcs/chunkingParse.js +114 -0
- package/funcs/chunkingParse.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/chunkingParse.d.ts +8 -0
- package/mcp-server/tools/chunkingParse.d.ts.map +1 -0
- package/mcp-server/tools/chunkingParse.js +64 -0
- package/mcp-server/tools/chunkingParse.js.map +1 -0
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/parse.d.ts +961 -0
- package/models/operations/parse.d.ts.map +1 -0
- package/models/operations/parse.js +879 -0
- package/models/operations/parse.js.map +1 -0
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +16 -16
- package/package.json +1 -1
- package/sdk/chunking.d.ts +12 -0
- package/sdk/chunking.d.ts.map +1 -0
- package/sdk/chunking.js +22 -0
- package/sdk/chunking.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/chunkingParse.ts +160 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/chunkingParse.ts +37 -0
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/parse.ts +1610 -0
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +16 -16
- package/src/sdk/chunking.ts +27 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -0,0 +1,961 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
/**
|
|
6
|
+
* Return format: chunks (with metadata) or texts (plain strings)
|
|
7
|
+
*/
|
|
8
|
+
export declare const ParseChunkingRequestChunkingRequestRequestBodyReturnType: {
|
|
9
|
+
readonly Chunks: "chunks";
|
|
10
|
+
readonly Texts: "texts";
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Return format: chunks (with metadata) or texts (plain strings)
|
|
14
|
+
*/
|
|
15
|
+
export type ParseChunkingRequestChunkingRequestRequestBodyReturnType = ClosedEnum<typeof ParseChunkingRequestChunkingRequestRequestBodyReturnType>;
|
|
16
|
+
export declare const AgenticChunker: {
|
|
17
|
+
readonly Agentic: "agentic";
|
|
18
|
+
};
|
|
19
|
+
export type AgenticChunker = ClosedEnum<typeof AgenticChunker>;
|
|
20
|
+
/**
|
|
21
|
+
* Agentic LLM-powered chunker that uses AI to determine optimal split points. Best for complex documents requiring intelligent segmentation.
|
|
22
|
+
*/
|
|
23
|
+
export type AgenticChunkerStrategy = {
|
|
24
|
+
/**
|
|
25
|
+
* The text content to be chunked
|
|
26
|
+
*/
|
|
27
|
+
text: string;
|
|
28
|
+
/**
|
|
29
|
+
* Whether to include metadata for each chunk
|
|
30
|
+
*/
|
|
31
|
+
metadata?: boolean | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Return format: chunks (with metadata) or texts (plain strings)
|
|
34
|
+
*/
|
|
35
|
+
returnType?: ParseChunkingRequestChunkingRequestRequestBodyReturnType | undefined;
|
|
36
|
+
strategy: AgenticChunker;
|
|
37
|
+
/**
|
|
38
|
+
* Chat model to use for chunking. (Available models)[https://docs.orq.ai/docs/proxy#chat-models]
|
|
39
|
+
*/
|
|
40
|
+
model: string;
|
|
41
|
+
/**
|
|
42
|
+
* Maximum tokens per chunk
|
|
43
|
+
*/
|
|
44
|
+
chunkSize?: number | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Size of candidate splits for LLM evaluation
|
|
47
|
+
*/
|
|
48
|
+
candidateSize?: number | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Minimum characters allowed per chunk
|
|
51
|
+
*/
|
|
52
|
+
minCharactersPerChunk?: number | undefined;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Return format: chunks (with metadata) or texts (plain strings)
|
|
56
|
+
*/
|
|
57
|
+
export declare const ParseChunkingRequestChunkingRequestReturnType: {
|
|
58
|
+
readonly Chunks: "chunks";
|
|
59
|
+
readonly Texts: "texts";
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Return format: chunks (with metadata) or texts (plain strings)
|
|
63
|
+
*/
|
|
64
|
+
export type ParseChunkingRequestChunkingRequestReturnType = ClosedEnum<typeof ParseChunkingRequestChunkingRequestReturnType>;
|
|
65
|
+
export declare const SDPMChunker: {
|
|
66
|
+
readonly Sdpm: "sdpm";
|
|
67
|
+
};
|
|
68
|
+
export type SDPMChunker = ClosedEnum<typeof SDPMChunker>;
|
|
69
|
+
export declare const ParseThreshold2: {
|
|
70
|
+
readonly Auto: "auto";
|
|
71
|
+
};
|
|
72
|
+
export type ParseThreshold2 = ClosedEnum<typeof ParseThreshold2>;
|
|
73
|
+
/**
|
|
74
|
+
* Similarity threshold for grouping (0-1) or "auto" for automatic detection
|
|
75
|
+
*/
|
|
76
|
+
export type ChunkingRequestThreshold = number | ParseThreshold2;
|
|
77
|
+
/**
|
|
78
|
+
* Chunking mode: window-based or sentence-based similarity
|
|
79
|
+
*/
|
|
80
|
+
export declare const ChunkingRequestMode: {
|
|
81
|
+
readonly Window: "window";
|
|
82
|
+
readonly Sentence: "sentence";
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Chunking mode: window-based or sentence-based similarity
|
|
86
|
+
*/
|
|
87
|
+
export type ChunkingRequestMode = ClosedEnum<typeof ChunkingRequestMode>;
|
|
88
|
+
/**
|
|
89
|
+
* Sub-Document Prose Model chunker that uses skip-gram patterns to identify optimal split points. Good for technical documents with structured content.
|
|
90
|
+
*/
|
|
91
|
+
export type SDPMChunkerStrategy = {
|
|
92
|
+
/**
|
|
93
|
+
* The text content to be chunked
|
|
94
|
+
*/
|
|
95
|
+
text: string;
|
|
96
|
+
/**
|
|
97
|
+
* Whether to include metadata for each chunk
|
|
98
|
+
*/
|
|
99
|
+
metadata?: boolean | undefined;
|
|
100
|
+
/**
|
|
101
|
+
* Return format: chunks (with metadata) or texts (plain strings)
|
|
102
|
+
*/
|
|
103
|
+
returnType?: ParseChunkingRequestChunkingRequestReturnType | undefined;
|
|
104
|
+
strategy: SDPMChunker;
|
|
105
|
+
/**
|
|
106
|
+
* Maximum tokens per chunk
|
|
107
|
+
*/
|
|
108
|
+
chunkSize?: number | undefined;
|
|
109
|
+
/**
|
|
110
|
+
* Window size for skip-gram patterns
|
|
111
|
+
*/
|
|
112
|
+
skipWindow?: number | undefined;
|
|
113
|
+
/**
|
|
114
|
+
* Similarity threshold for grouping (0-1) or "auto" for automatic detection
|
|
115
|
+
*/
|
|
116
|
+
threshold?: number | ParseThreshold2 | undefined;
|
|
117
|
+
/**
|
|
118
|
+
* Embedding model to use for semantic similarity. (Available embedding models)[https://docs.orq.ai/docs/proxy#embedding-models]
|
|
119
|
+
*/
|
|
120
|
+
embeddingModel: string;
|
|
121
|
+
/**
|
|
122
|
+
* Chunking mode: window-based or sentence-based similarity
|
|
123
|
+
*/
|
|
124
|
+
mode?: ChunkingRequestMode | undefined;
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* Return format: chunks (with metadata) or texts (plain strings)
|
|
128
|
+
*/
|
|
129
|
+
export declare const ParseChunkingRequestChunkingReturnType: {
|
|
130
|
+
readonly Chunks: "chunks";
|
|
131
|
+
readonly Texts: "texts";
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Return format: chunks (with metadata) or texts (plain strings)
|
|
135
|
+
*/
|
|
136
|
+
export type ParseChunkingRequestChunkingReturnType = ClosedEnum<typeof ParseChunkingRequestChunkingReturnType>;
|
|
137
|
+
export declare const SemanticChunker: {
|
|
138
|
+
readonly Semantic: "semantic";
|
|
139
|
+
};
|
|
140
|
+
export type SemanticChunker = ClosedEnum<typeof SemanticChunker>;
|
|
141
|
+
export declare const Threshold2: {
|
|
142
|
+
readonly Auto: "auto";
|
|
143
|
+
};
|
|
144
|
+
export type Threshold2 = ClosedEnum<typeof Threshold2>;
|
|
145
|
+
/**
|
|
146
|
+
* Similarity threshold for grouping (0-1) or "auto" for automatic detection
|
|
147
|
+
*/
|
|
148
|
+
export type Threshold = number | Threshold2;
|
|
149
|
+
/**
|
|
150
|
+
* Chunking mode: window-based or sentence-based similarity
|
|
151
|
+
*/
|
|
152
|
+
export declare const Mode: {
|
|
153
|
+
readonly Window: "window";
|
|
154
|
+
readonly Sentence: "sentence";
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* Chunking mode: window-based or sentence-based similarity
|
|
158
|
+
*/
|
|
159
|
+
export type Mode = ClosedEnum<typeof Mode>;
|
|
160
|
+
/**
|
|
161
|
+
* Groups semantically similar sentences using embeddings. Excellent for maintaining topic coherence and context within chunks.
|
|
162
|
+
*/
|
|
163
|
+
export type SemanticChunkerStrategy = {
|
|
164
|
+
/**
|
|
165
|
+
* The text content to be chunked
|
|
166
|
+
*/
|
|
167
|
+
text: string;
|
|
168
|
+
/**
|
|
169
|
+
* Whether to include metadata for each chunk
|
|
170
|
+
*/
|
|
171
|
+
metadata?: boolean | undefined;
|
|
172
|
+
/**
|
|
173
|
+
* Return format: chunks (with metadata) or texts (plain strings)
|
|
174
|
+
*/
|
|
175
|
+
returnType?: ParseChunkingRequestChunkingReturnType | undefined;
|
|
176
|
+
strategy: SemanticChunker;
|
|
177
|
+
/**
|
|
178
|
+
* Maximum tokens per chunk
|
|
179
|
+
*/
|
|
180
|
+
chunkSize?: number | undefined;
|
|
181
|
+
/**
|
|
182
|
+
* Similarity threshold for grouping (0-1) or "auto" for automatic detection
|
|
183
|
+
*/
|
|
184
|
+
threshold?: number | Threshold2 | undefined;
|
|
185
|
+
/**
|
|
186
|
+
* Embedding model to use for semantic similarity. (Available embedding models)[https://docs.orq.ai/docs/proxy#embedding-models]
|
|
187
|
+
*/
|
|
188
|
+
embeddingModel: string;
|
|
189
|
+
/**
|
|
190
|
+
* Chunking mode: window-based or sentence-based similarity
|
|
191
|
+
*/
|
|
192
|
+
mode?: Mode | undefined;
|
|
193
|
+
/**
|
|
194
|
+
* Window size for similarity comparison
|
|
195
|
+
*/
|
|
196
|
+
similarityWindow?: number | undefined;
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* Return format: chunks (with metadata) or texts (plain strings)
|
|
200
|
+
*/
|
|
201
|
+
export declare const ParseChunkingRequestReturnType: {
|
|
202
|
+
readonly Chunks: "chunks";
|
|
203
|
+
readonly Texts: "texts";
|
|
204
|
+
};
|
|
205
|
+
/**
|
|
206
|
+
* Return format: chunks (with metadata) or texts (plain strings)
|
|
207
|
+
*/
|
|
208
|
+
export type ParseChunkingRequestReturnType = ClosedEnum<typeof ParseChunkingRequestReturnType>;
|
|
209
|
+
export declare const RecursiveChunker: {
|
|
210
|
+
readonly Recursive: "recursive";
|
|
211
|
+
};
|
|
212
|
+
export type RecursiveChunker = ClosedEnum<typeof RecursiveChunker>;
|
|
213
|
+
/**
|
|
214
|
+
* Recursively splits text using a hierarchy of separators (paragraphs, sentences, words). Versatile general-purpose chunker that preserves document structure.
|
|
215
|
+
*/
|
|
216
|
+
export type RecursiveChunkerStrategy = {
|
|
217
|
+
/**
|
|
218
|
+
* The text content to be chunked
|
|
219
|
+
*/
|
|
220
|
+
text: string;
|
|
221
|
+
/**
|
|
222
|
+
* Whether to include metadata for each chunk
|
|
223
|
+
*/
|
|
224
|
+
metadata?: boolean | undefined;
|
|
225
|
+
/**
|
|
226
|
+
* Return format: chunks (with metadata) or texts (plain strings)
|
|
227
|
+
*/
|
|
228
|
+
returnType?: ParseChunkingRequestReturnType | undefined;
|
|
229
|
+
strategy: RecursiveChunker;
|
|
230
|
+
/**
|
|
231
|
+
* Maximum tokens per chunk
|
|
232
|
+
*/
|
|
233
|
+
chunkSize?: number | undefined;
|
|
234
|
+
/**
|
|
235
|
+
* Hierarchy of separators to use for splitting
|
|
236
|
+
*/
|
|
237
|
+
separators?: Array<string> | undefined;
|
|
238
|
+
/**
|
|
239
|
+
* Minimum characters allowed per chunk
|
|
240
|
+
*/
|
|
241
|
+
minCharactersPerChunk?: number | undefined;
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* Return format: chunks (with metadata) or texts (plain strings)
|
|
245
|
+
*/
|
|
246
|
+
export declare const ChunkingRequestReturnType: {
|
|
247
|
+
readonly Chunks: "chunks";
|
|
248
|
+
readonly Texts: "texts";
|
|
249
|
+
};
|
|
250
|
+
/**
|
|
251
|
+
* Return format: chunks (with metadata) or texts (plain strings)
|
|
252
|
+
*/
|
|
253
|
+
export type ChunkingRequestReturnType = ClosedEnum<typeof ChunkingRequestReturnType>;
|
|
254
|
+
export declare const SentenceChunker: {
|
|
255
|
+
readonly Sentence: "sentence";
|
|
256
|
+
};
|
|
257
|
+
export type SentenceChunker = ClosedEnum<typeof SentenceChunker>;
|
|
258
|
+
/**
|
|
259
|
+
* Splits text at sentence boundaries while respecting token limits. Ideal for maintaining semantic coherence and readability.
|
|
260
|
+
*/
|
|
261
|
+
export type SentenceChunkerStrategy = {
|
|
262
|
+
/**
|
|
263
|
+
* The text content to be chunked
|
|
264
|
+
*/
|
|
265
|
+
text: string;
|
|
266
|
+
/**
|
|
267
|
+
* Whether to include metadata for each chunk
|
|
268
|
+
*/
|
|
269
|
+
metadata?: boolean | undefined;
|
|
270
|
+
/**
|
|
271
|
+
* Return format: chunks (with metadata) or texts (plain strings)
|
|
272
|
+
*/
|
|
273
|
+
returnType?: ChunkingRequestReturnType | undefined;
|
|
274
|
+
strategy: SentenceChunker;
|
|
275
|
+
/**
|
|
276
|
+
* Maximum tokens per chunk
|
|
277
|
+
*/
|
|
278
|
+
chunkSize?: number | undefined;
|
|
279
|
+
/**
|
|
280
|
+
* Number of overlapping tokens between chunks
|
|
281
|
+
*/
|
|
282
|
+
chunkOverlap?: number | undefined;
|
|
283
|
+
/**
|
|
284
|
+
* Minimum number of sentences per chunk
|
|
285
|
+
*/
|
|
286
|
+
minSentencesPerChunk?: number | undefined;
|
|
287
|
+
};
|
|
288
|
+
/**
|
|
289
|
+
* Return format: chunks (with metadata) or texts (plain strings)
|
|
290
|
+
*/
|
|
291
|
+
export declare const ReturnTypeT: {
|
|
292
|
+
readonly Chunks: "chunks";
|
|
293
|
+
readonly Texts: "texts";
|
|
294
|
+
};
|
|
295
|
+
/**
|
|
296
|
+
* Return format: chunks (with metadata) or texts (plain strings)
|
|
297
|
+
*/
|
|
298
|
+
export type ReturnTypeT = ClosedEnum<typeof ReturnTypeT>;
|
|
299
|
+
export declare const TokenChunker: {
|
|
300
|
+
readonly Token: "token";
|
|
301
|
+
};
|
|
302
|
+
export type TokenChunker = ClosedEnum<typeof TokenChunker>;
|
|
303
|
+
/**
|
|
304
|
+
* Splits text based on token count. Best for ensuring chunks fit within LLM context windows and maintaining consistent chunk sizes for embedding models.
|
|
305
|
+
*/
|
|
306
|
+
export type TokenChunkerStrategy = {
|
|
307
|
+
/**
|
|
308
|
+
* The text content to be chunked
|
|
309
|
+
*/
|
|
310
|
+
text: string;
|
|
311
|
+
/**
|
|
312
|
+
* Whether to include metadata for each chunk
|
|
313
|
+
*/
|
|
314
|
+
metadata?: boolean | undefined;
|
|
315
|
+
/**
|
|
316
|
+
* Return format: chunks (with metadata) or texts (plain strings)
|
|
317
|
+
*/
|
|
318
|
+
returnType?: ReturnTypeT | undefined;
|
|
319
|
+
strategy: TokenChunker;
|
|
320
|
+
/**
|
|
321
|
+
* Maximum tokens per chunk
|
|
322
|
+
*/
|
|
323
|
+
chunkSize?: number | undefined;
|
|
324
|
+
/**
|
|
325
|
+
* Number of tokens to overlap between chunks
|
|
326
|
+
*/
|
|
327
|
+
chunkOverlap?: number | undefined;
|
|
328
|
+
};
|
|
329
|
+
/**
|
|
330
|
+
* Request payload for text chunking with strategy-specific configuration
|
|
331
|
+
*/
|
|
332
|
+
export type ParseChunkingRequest = SemanticChunkerStrategy | SDPMChunkerStrategy | AgenticChunkerStrategy | TokenChunkerStrategy | SentenceChunkerStrategy | RecursiveChunkerStrategy;
|
|
333
|
+
export type ParseMetadata = {
|
|
334
|
+
startIndex: number | null;
|
|
335
|
+
endIndex: number | null;
|
|
336
|
+
tokenCount: number | null;
|
|
337
|
+
};
|
|
338
|
+
export type Chunks = {
|
|
339
|
+
/**
|
|
340
|
+
* The text content of the chunk
|
|
341
|
+
*/
|
|
342
|
+
text: string;
|
|
343
|
+
/**
|
|
344
|
+
* The position index of this chunk in the sequence
|
|
345
|
+
*/
|
|
346
|
+
index: number;
|
|
347
|
+
metadata?: ParseMetadata | undefined;
|
|
348
|
+
};
|
|
349
|
+
/**
|
|
350
|
+
* Text successfully chunked
|
|
351
|
+
*/
|
|
352
|
+
export type ParseResponseBody = {
|
|
353
|
+
chunks: Array<Chunks>;
|
|
354
|
+
};
|
|
355
|
+
/** @internal */
|
|
356
|
+
export declare const ParseChunkingRequestChunkingRequestRequestBodyReturnType$inboundSchema: z.ZodNativeEnum<typeof ParseChunkingRequestChunkingRequestRequestBodyReturnType>;
|
|
357
|
+
/** @internal */
|
|
358
|
+
export declare const ParseChunkingRequestChunkingRequestRequestBodyReturnType$outboundSchema: z.ZodNativeEnum<typeof ParseChunkingRequestChunkingRequestRequestBodyReturnType>;
|
|
359
|
+
/**
|
|
360
|
+
* @internal
|
|
361
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
362
|
+
*/
|
|
363
|
+
export declare namespace ParseChunkingRequestChunkingRequestRequestBodyReturnType$ {
|
|
364
|
+
/** @deprecated use `ParseChunkingRequestChunkingRequestRequestBodyReturnType$inboundSchema` instead. */
|
|
365
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
366
|
+
readonly Chunks: "chunks";
|
|
367
|
+
readonly Texts: "texts";
|
|
368
|
+
}>;
|
|
369
|
+
/** @deprecated use `ParseChunkingRequestChunkingRequestRequestBodyReturnType$outboundSchema` instead. */
|
|
370
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
371
|
+
readonly Chunks: "chunks";
|
|
372
|
+
readonly Texts: "texts";
|
|
373
|
+
}>;
|
|
374
|
+
}
|
|
375
|
+
/** @internal */
|
|
376
|
+
export declare const AgenticChunker$inboundSchema: z.ZodNativeEnum<typeof AgenticChunker>;
|
|
377
|
+
/** @internal */
|
|
378
|
+
export declare const AgenticChunker$outboundSchema: z.ZodNativeEnum<typeof AgenticChunker>;
|
|
379
|
+
/**
|
|
380
|
+
* @internal
|
|
381
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
382
|
+
*/
|
|
383
|
+
export declare namespace AgenticChunker$ {
|
|
384
|
+
/** @deprecated use `AgenticChunker$inboundSchema` instead. */
|
|
385
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
386
|
+
readonly Agentic: "agentic";
|
|
387
|
+
}>;
|
|
388
|
+
/** @deprecated use `AgenticChunker$outboundSchema` instead. */
|
|
389
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
390
|
+
readonly Agentic: "agentic";
|
|
391
|
+
}>;
|
|
392
|
+
}
|
|
393
|
+
/** @internal */
|
|
394
|
+
export declare const AgenticChunkerStrategy$inboundSchema: z.ZodType<AgenticChunkerStrategy, z.ZodTypeDef, unknown>;
|
|
395
|
+
/** @internal */
|
|
396
|
+
export type AgenticChunkerStrategy$Outbound = {
|
|
397
|
+
text: string;
|
|
398
|
+
metadata: boolean;
|
|
399
|
+
return_type: string;
|
|
400
|
+
strategy: string;
|
|
401
|
+
model: string;
|
|
402
|
+
chunk_size: number;
|
|
403
|
+
candidate_size: number;
|
|
404
|
+
min_characters_per_chunk: number;
|
|
405
|
+
};
|
|
406
|
+
/** @internal */
|
|
407
|
+
export declare const AgenticChunkerStrategy$outboundSchema: z.ZodType<AgenticChunkerStrategy$Outbound, z.ZodTypeDef, AgenticChunkerStrategy>;
|
|
408
|
+
/**
|
|
409
|
+
* @internal
|
|
410
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
411
|
+
*/
|
|
412
|
+
export declare namespace AgenticChunkerStrategy$ {
|
|
413
|
+
/** @deprecated use `AgenticChunkerStrategy$inboundSchema` instead. */
|
|
414
|
+
const inboundSchema: z.ZodType<AgenticChunkerStrategy, z.ZodTypeDef, unknown>;
|
|
415
|
+
/** @deprecated use `AgenticChunkerStrategy$outboundSchema` instead. */
|
|
416
|
+
const outboundSchema: z.ZodType<AgenticChunkerStrategy$Outbound, z.ZodTypeDef, AgenticChunkerStrategy>;
|
|
417
|
+
/** @deprecated use `AgenticChunkerStrategy$Outbound` instead. */
|
|
418
|
+
type Outbound = AgenticChunkerStrategy$Outbound;
|
|
419
|
+
}
|
|
420
|
+
export declare function agenticChunkerStrategyToJSON(agenticChunkerStrategy: AgenticChunkerStrategy): string;
|
|
421
|
+
export declare function agenticChunkerStrategyFromJSON(jsonString: string): SafeParseResult<AgenticChunkerStrategy, SDKValidationError>;
|
|
422
|
+
/** @internal */
|
|
423
|
+
export declare const ParseChunkingRequestChunkingRequestReturnType$inboundSchema: z.ZodNativeEnum<typeof ParseChunkingRequestChunkingRequestReturnType>;
|
|
424
|
+
/** @internal */
|
|
425
|
+
export declare const ParseChunkingRequestChunkingRequestReturnType$outboundSchema: z.ZodNativeEnum<typeof ParseChunkingRequestChunkingRequestReturnType>;
|
|
426
|
+
/**
|
|
427
|
+
* @internal
|
|
428
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
429
|
+
*/
|
|
430
|
+
export declare namespace ParseChunkingRequestChunkingRequestReturnType$ {
|
|
431
|
+
/** @deprecated use `ParseChunkingRequestChunkingRequestReturnType$inboundSchema` instead. */
|
|
432
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
433
|
+
readonly Chunks: "chunks";
|
|
434
|
+
readonly Texts: "texts";
|
|
435
|
+
}>;
|
|
436
|
+
/** @deprecated use `ParseChunkingRequestChunkingRequestReturnType$outboundSchema` instead. */
|
|
437
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
438
|
+
readonly Chunks: "chunks";
|
|
439
|
+
readonly Texts: "texts";
|
|
440
|
+
}>;
|
|
441
|
+
}
|
|
442
|
+
/** @internal */
|
|
443
|
+
export declare const SDPMChunker$inboundSchema: z.ZodNativeEnum<typeof SDPMChunker>;
|
|
444
|
+
/** @internal */
|
|
445
|
+
export declare const SDPMChunker$outboundSchema: z.ZodNativeEnum<typeof SDPMChunker>;
|
|
446
|
+
/**
|
|
447
|
+
* @internal
|
|
448
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
449
|
+
*/
|
|
450
|
+
export declare namespace SDPMChunker$ {
|
|
451
|
+
/** @deprecated use `SDPMChunker$inboundSchema` instead. */
|
|
452
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
453
|
+
readonly Sdpm: "sdpm";
|
|
454
|
+
}>;
|
|
455
|
+
/** @deprecated use `SDPMChunker$outboundSchema` instead. */
|
|
456
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
457
|
+
readonly Sdpm: "sdpm";
|
|
458
|
+
}>;
|
|
459
|
+
}
|
|
460
|
+
/** @internal */
|
|
461
|
+
export declare const ParseThreshold2$inboundSchema: z.ZodNativeEnum<typeof ParseThreshold2>;
|
|
462
|
+
/** @internal */
|
|
463
|
+
export declare const ParseThreshold2$outboundSchema: z.ZodNativeEnum<typeof ParseThreshold2>;
|
|
464
|
+
/**
|
|
465
|
+
* @internal
|
|
466
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
467
|
+
*/
|
|
468
|
+
export declare namespace ParseThreshold2$ {
|
|
469
|
+
/** @deprecated use `ParseThreshold2$inboundSchema` instead. */
|
|
470
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
471
|
+
readonly Auto: "auto";
|
|
472
|
+
}>;
|
|
473
|
+
/** @deprecated use `ParseThreshold2$outboundSchema` instead. */
|
|
474
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
475
|
+
readonly Auto: "auto";
|
|
476
|
+
}>;
|
|
477
|
+
}
|
|
478
|
+
/** @internal */
|
|
479
|
+
export declare const ChunkingRequestThreshold$inboundSchema: z.ZodType<ChunkingRequestThreshold, z.ZodTypeDef, unknown>;
|
|
480
|
+
/** @internal */
|
|
481
|
+
export type ChunkingRequestThreshold$Outbound = number | string;
|
|
482
|
+
/** @internal */
|
|
483
|
+
export declare const ChunkingRequestThreshold$outboundSchema: z.ZodType<ChunkingRequestThreshold$Outbound, z.ZodTypeDef, ChunkingRequestThreshold>;
|
|
484
|
+
/**
|
|
485
|
+
* @internal
|
|
486
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
487
|
+
*/
|
|
488
|
+
export declare namespace ChunkingRequestThreshold$ {
|
|
489
|
+
/** @deprecated use `ChunkingRequestThreshold$inboundSchema` instead. */
|
|
490
|
+
const inboundSchema: z.ZodType<ChunkingRequestThreshold, z.ZodTypeDef, unknown>;
|
|
491
|
+
/** @deprecated use `ChunkingRequestThreshold$outboundSchema` instead. */
|
|
492
|
+
const outboundSchema: z.ZodType<ChunkingRequestThreshold$Outbound, z.ZodTypeDef, ChunkingRequestThreshold>;
|
|
493
|
+
/** @deprecated use `ChunkingRequestThreshold$Outbound` instead. */
|
|
494
|
+
type Outbound = ChunkingRequestThreshold$Outbound;
|
|
495
|
+
}
|
|
496
|
+
export declare function chunkingRequestThresholdToJSON(chunkingRequestThreshold: ChunkingRequestThreshold): string;
|
|
497
|
+
export declare function chunkingRequestThresholdFromJSON(jsonString: string): SafeParseResult<ChunkingRequestThreshold, SDKValidationError>;
|
|
498
|
+
/** @internal */
|
|
499
|
+
export declare const ChunkingRequestMode$inboundSchema: z.ZodNativeEnum<typeof ChunkingRequestMode>;
|
|
500
|
+
/** @internal */
|
|
501
|
+
export declare const ChunkingRequestMode$outboundSchema: z.ZodNativeEnum<typeof ChunkingRequestMode>;
|
|
502
|
+
/**
|
|
503
|
+
* @internal
|
|
504
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
505
|
+
*/
|
|
506
|
+
export declare namespace ChunkingRequestMode$ {
|
|
507
|
+
/** @deprecated use `ChunkingRequestMode$inboundSchema` instead. */
|
|
508
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
509
|
+
readonly Window: "window";
|
|
510
|
+
readonly Sentence: "sentence";
|
|
511
|
+
}>;
|
|
512
|
+
/** @deprecated use `ChunkingRequestMode$outboundSchema` instead. */
|
|
513
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
514
|
+
readonly Window: "window";
|
|
515
|
+
readonly Sentence: "sentence";
|
|
516
|
+
}>;
|
|
517
|
+
}
|
|
518
|
+
/** @internal */
|
|
519
|
+
export declare const SDPMChunkerStrategy$inboundSchema: z.ZodType<SDPMChunkerStrategy, z.ZodTypeDef, unknown>;
|
|
520
|
+
/** @internal */
|
|
521
|
+
export type SDPMChunkerStrategy$Outbound = {
|
|
522
|
+
text: string;
|
|
523
|
+
metadata: boolean;
|
|
524
|
+
return_type: string;
|
|
525
|
+
strategy: string;
|
|
526
|
+
chunk_size: number;
|
|
527
|
+
skip_window: number;
|
|
528
|
+
threshold?: number | string | undefined;
|
|
529
|
+
embedding_model: string;
|
|
530
|
+
mode: string;
|
|
531
|
+
};
|
|
532
|
+
/** @internal */
|
|
533
|
+
export declare const SDPMChunkerStrategy$outboundSchema: z.ZodType<SDPMChunkerStrategy$Outbound, z.ZodTypeDef, SDPMChunkerStrategy>;
|
|
534
|
+
/**
|
|
535
|
+
* @internal
|
|
536
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
537
|
+
*/
|
|
538
|
+
export declare namespace SDPMChunkerStrategy$ {
|
|
539
|
+
/** @deprecated use `SDPMChunkerStrategy$inboundSchema` instead. */
|
|
540
|
+
const inboundSchema: z.ZodType<SDPMChunkerStrategy, z.ZodTypeDef, unknown>;
|
|
541
|
+
/** @deprecated use `SDPMChunkerStrategy$outboundSchema` instead. */
|
|
542
|
+
const outboundSchema: z.ZodType<SDPMChunkerStrategy$Outbound, z.ZodTypeDef, SDPMChunkerStrategy>;
|
|
543
|
+
/** @deprecated use `SDPMChunkerStrategy$Outbound` instead. */
|
|
544
|
+
type Outbound = SDPMChunkerStrategy$Outbound;
|
|
545
|
+
}
|
|
546
|
+
export declare function sdpmChunkerStrategyToJSON(sdpmChunkerStrategy: SDPMChunkerStrategy): string;
|
|
547
|
+
export declare function sdpmChunkerStrategyFromJSON(jsonString: string): SafeParseResult<SDPMChunkerStrategy, SDKValidationError>;
|
|
548
|
+
/** @internal */
|
|
549
|
+
export declare const ParseChunkingRequestChunkingReturnType$inboundSchema: z.ZodNativeEnum<typeof ParseChunkingRequestChunkingReturnType>;
|
|
550
|
+
/** @internal */
|
|
551
|
+
export declare const ParseChunkingRequestChunkingReturnType$outboundSchema: z.ZodNativeEnum<typeof ParseChunkingRequestChunkingReturnType>;
|
|
552
|
+
/**
|
|
553
|
+
* @internal
|
|
554
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
555
|
+
*/
|
|
556
|
+
export declare namespace ParseChunkingRequestChunkingReturnType$ {
|
|
557
|
+
/** @deprecated use `ParseChunkingRequestChunkingReturnType$inboundSchema` instead. */
|
|
558
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
559
|
+
readonly Chunks: "chunks";
|
|
560
|
+
readonly Texts: "texts";
|
|
561
|
+
}>;
|
|
562
|
+
/** @deprecated use `ParseChunkingRequestChunkingReturnType$outboundSchema` instead. */
|
|
563
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
564
|
+
readonly Chunks: "chunks";
|
|
565
|
+
readonly Texts: "texts";
|
|
566
|
+
}>;
|
|
567
|
+
}
|
|
568
|
+
/** @internal */
|
|
569
|
+
export declare const SemanticChunker$inboundSchema: z.ZodNativeEnum<typeof SemanticChunker>;
|
|
570
|
+
/** @internal */
|
|
571
|
+
export declare const SemanticChunker$outboundSchema: z.ZodNativeEnum<typeof SemanticChunker>;
|
|
572
|
+
/**
|
|
573
|
+
* @internal
|
|
574
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
575
|
+
*/
|
|
576
|
+
export declare namespace SemanticChunker$ {
|
|
577
|
+
/** @deprecated use `SemanticChunker$inboundSchema` instead. */
|
|
578
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
579
|
+
readonly Semantic: "semantic";
|
|
580
|
+
}>;
|
|
581
|
+
/** @deprecated use `SemanticChunker$outboundSchema` instead. */
|
|
582
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
583
|
+
readonly Semantic: "semantic";
|
|
584
|
+
}>;
|
|
585
|
+
}
|
|
586
|
+
/** @internal */
|
|
587
|
+
export declare const Threshold2$inboundSchema: z.ZodNativeEnum<typeof Threshold2>;
|
|
588
|
+
/** @internal */
|
|
589
|
+
export declare const Threshold2$outboundSchema: z.ZodNativeEnum<typeof Threshold2>;
|
|
590
|
+
/**
|
|
591
|
+
* @internal
|
|
592
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
593
|
+
*/
|
|
594
|
+
export declare namespace Threshold2$ {
|
|
595
|
+
/** @deprecated use `Threshold2$inboundSchema` instead. */
|
|
596
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
597
|
+
readonly Auto: "auto";
|
|
598
|
+
}>;
|
|
599
|
+
/** @deprecated use `Threshold2$outboundSchema` instead. */
|
|
600
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
601
|
+
readonly Auto: "auto";
|
|
602
|
+
}>;
|
|
603
|
+
}
|
|
604
|
+
/** @internal */
|
|
605
|
+
export declare const Threshold$inboundSchema: z.ZodType<Threshold, z.ZodTypeDef, unknown>;
|
|
606
|
+
/** @internal */
|
|
607
|
+
export type Threshold$Outbound = number | string;
|
|
608
|
+
/** @internal */
|
|
609
|
+
export declare const Threshold$outboundSchema: z.ZodType<Threshold$Outbound, z.ZodTypeDef, Threshold>;
|
|
610
|
+
/**
|
|
611
|
+
* @internal
|
|
612
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
613
|
+
*/
|
|
614
|
+
export declare namespace Threshold$ {
|
|
615
|
+
/** @deprecated use `Threshold$inboundSchema` instead. */
|
|
616
|
+
const inboundSchema: z.ZodType<Threshold, z.ZodTypeDef, unknown>;
|
|
617
|
+
/** @deprecated use `Threshold$outboundSchema` instead. */
|
|
618
|
+
const outboundSchema: z.ZodType<Threshold$Outbound, z.ZodTypeDef, Threshold>;
|
|
619
|
+
/** @deprecated use `Threshold$Outbound` instead. */
|
|
620
|
+
type Outbound = Threshold$Outbound;
|
|
621
|
+
}
|
|
622
|
+
export declare function thresholdToJSON(threshold: Threshold): string;
|
|
623
|
+
export declare function thresholdFromJSON(jsonString: string): SafeParseResult<Threshold, SDKValidationError>;
|
|
624
|
+
/** @internal */
|
|
625
|
+
export declare const Mode$inboundSchema: z.ZodNativeEnum<typeof Mode>;
|
|
626
|
+
/** @internal */
|
|
627
|
+
export declare const Mode$outboundSchema: z.ZodNativeEnum<typeof Mode>;
|
|
628
|
+
/**
|
|
629
|
+
* @internal
|
|
630
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
631
|
+
*/
|
|
632
|
+
export declare namespace Mode$ {
|
|
633
|
+
/** @deprecated use `Mode$inboundSchema` instead. */
|
|
634
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
635
|
+
readonly Window: "window";
|
|
636
|
+
readonly Sentence: "sentence";
|
|
637
|
+
}>;
|
|
638
|
+
/** @deprecated use `Mode$outboundSchema` instead. */
|
|
639
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
640
|
+
readonly Window: "window";
|
|
641
|
+
readonly Sentence: "sentence";
|
|
642
|
+
}>;
|
|
643
|
+
}
|
|
644
|
+
/** @internal */
|
|
645
|
+
export declare const SemanticChunkerStrategy$inboundSchema: z.ZodType<SemanticChunkerStrategy, z.ZodTypeDef, unknown>;
|
|
646
|
+
/** @internal */
|
|
647
|
+
export type SemanticChunkerStrategy$Outbound = {
|
|
648
|
+
text: string;
|
|
649
|
+
metadata: boolean;
|
|
650
|
+
return_type: string;
|
|
651
|
+
strategy: string;
|
|
652
|
+
chunk_size: number;
|
|
653
|
+
threshold?: number | string | undefined;
|
|
654
|
+
embedding_model: string;
|
|
655
|
+
mode: string;
|
|
656
|
+
similarity_window: number;
|
|
657
|
+
};
|
|
658
|
+
/** @internal */
|
|
659
|
+
export declare const SemanticChunkerStrategy$outboundSchema: z.ZodType<SemanticChunkerStrategy$Outbound, z.ZodTypeDef, SemanticChunkerStrategy>;
|
|
660
|
+
/**
|
|
661
|
+
* @internal
|
|
662
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
663
|
+
*/
|
|
664
|
+
export declare namespace SemanticChunkerStrategy$ {
|
|
665
|
+
/** @deprecated use `SemanticChunkerStrategy$inboundSchema` instead. */
|
|
666
|
+
const inboundSchema: z.ZodType<SemanticChunkerStrategy, z.ZodTypeDef, unknown>;
|
|
667
|
+
/** @deprecated use `SemanticChunkerStrategy$outboundSchema` instead. */
|
|
668
|
+
const outboundSchema: z.ZodType<SemanticChunkerStrategy$Outbound, z.ZodTypeDef, SemanticChunkerStrategy>;
|
|
669
|
+
/** @deprecated use `SemanticChunkerStrategy$Outbound` instead. */
|
|
670
|
+
type Outbound = SemanticChunkerStrategy$Outbound;
|
|
671
|
+
}
|
|
672
|
+
export declare function semanticChunkerStrategyToJSON(semanticChunkerStrategy: SemanticChunkerStrategy): string;
|
|
673
|
+
export declare function semanticChunkerStrategyFromJSON(jsonString: string): SafeParseResult<SemanticChunkerStrategy, SDKValidationError>;
|
|
674
|
+
/** @internal */
|
|
675
|
+
export declare const ParseChunkingRequestReturnType$inboundSchema: z.ZodNativeEnum<typeof ParseChunkingRequestReturnType>;
|
|
676
|
+
/** @internal */
|
|
677
|
+
export declare const ParseChunkingRequestReturnType$outboundSchema: z.ZodNativeEnum<typeof ParseChunkingRequestReturnType>;
|
|
678
|
+
/**
|
|
679
|
+
* @internal
|
|
680
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
681
|
+
*/
|
|
682
|
+
export declare namespace ParseChunkingRequestReturnType$ {
|
|
683
|
+
/** @deprecated use `ParseChunkingRequestReturnType$inboundSchema` instead. */
|
|
684
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
685
|
+
readonly Chunks: "chunks";
|
|
686
|
+
readonly Texts: "texts";
|
|
687
|
+
}>;
|
|
688
|
+
/** @deprecated use `ParseChunkingRequestReturnType$outboundSchema` instead. */
|
|
689
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
690
|
+
readonly Chunks: "chunks";
|
|
691
|
+
readonly Texts: "texts";
|
|
692
|
+
}>;
|
|
693
|
+
}
|
|
694
|
+
/** @internal */
|
|
695
|
+
export declare const RecursiveChunker$inboundSchema: z.ZodNativeEnum<typeof RecursiveChunker>;
|
|
696
|
+
/** @internal */
|
|
697
|
+
export declare const RecursiveChunker$outboundSchema: z.ZodNativeEnum<typeof RecursiveChunker>;
|
|
698
|
+
/**
|
|
699
|
+
* @internal
|
|
700
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
701
|
+
*/
|
|
702
|
+
export declare namespace RecursiveChunker$ {
|
|
703
|
+
/** @deprecated use `RecursiveChunker$inboundSchema` instead. */
|
|
704
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
705
|
+
readonly Recursive: "recursive";
|
|
706
|
+
}>;
|
|
707
|
+
/** @deprecated use `RecursiveChunker$outboundSchema` instead. */
|
|
708
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
709
|
+
readonly Recursive: "recursive";
|
|
710
|
+
}>;
|
|
711
|
+
}
|
|
712
|
+
/** @internal */
|
|
713
|
+
export declare const RecursiveChunkerStrategy$inboundSchema: z.ZodType<RecursiveChunkerStrategy, z.ZodTypeDef, unknown>;
|
|
714
|
+
/** @internal */
|
|
715
|
+
export type RecursiveChunkerStrategy$Outbound = {
|
|
716
|
+
text: string;
|
|
717
|
+
metadata: boolean;
|
|
718
|
+
return_type: string;
|
|
719
|
+
strategy: string;
|
|
720
|
+
chunk_size: number;
|
|
721
|
+
separators?: Array<string> | undefined;
|
|
722
|
+
min_characters_per_chunk: number;
|
|
723
|
+
};
|
|
724
|
+
/** @internal */
|
|
725
|
+
export declare const RecursiveChunkerStrategy$outboundSchema: z.ZodType<RecursiveChunkerStrategy$Outbound, z.ZodTypeDef, RecursiveChunkerStrategy>;
|
|
726
|
+
/**
|
|
727
|
+
* @internal
|
|
728
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
729
|
+
*/
|
|
730
|
+
export declare namespace RecursiveChunkerStrategy$ {
|
|
731
|
+
/** @deprecated use `RecursiveChunkerStrategy$inboundSchema` instead. */
|
|
732
|
+
const inboundSchema: z.ZodType<RecursiveChunkerStrategy, z.ZodTypeDef, unknown>;
|
|
733
|
+
/** @deprecated use `RecursiveChunkerStrategy$outboundSchema` instead. */
|
|
734
|
+
const outboundSchema: z.ZodType<RecursiveChunkerStrategy$Outbound, z.ZodTypeDef, RecursiveChunkerStrategy>;
|
|
735
|
+
/** @deprecated use `RecursiveChunkerStrategy$Outbound` instead. */
|
|
736
|
+
type Outbound = RecursiveChunkerStrategy$Outbound;
|
|
737
|
+
}
|
|
738
|
+
export declare function recursiveChunkerStrategyToJSON(recursiveChunkerStrategy: RecursiveChunkerStrategy): string;
|
|
739
|
+
export declare function recursiveChunkerStrategyFromJSON(jsonString: string): SafeParseResult<RecursiveChunkerStrategy, SDKValidationError>;
|
|
740
|
+
/** @internal */
|
|
741
|
+
export declare const ChunkingRequestReturnType$inboundSchema: z.ZodNativeEnum<typeof ChunkingRequestReturnType>;
|
|
742
|
+
/** @internal */
|
|
743
|
+
export declare const ChunkingRequestReturnType$outboundSchema: z.ZodNativeEnum<typeof ChunkingRequestReturnType>;
|
|
744
|
+
/**
|
|
745
|
+
* @internal
|
|
746
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
747
|
+
*/
|
|
748
|
+
export declare namespace ChunkingRequestReturnType$ {
|
|
749
|
+
/** @deprecated use `ChunkingRequestReturnType$inboundSchema` instead. */
|
|
750
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
751
|
+
readonly Chunks: "chunks";
|
|
752
|
+
readonly Texts: "texts";
|
|
753
|
+
}>;
|
|
754
|
+
/** @deprecated use `ChunkingRequestReturnType$outboundSchema` instead. */
|
|
755
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
756
|
+
readonly Chunks: "chunks";
|
|
757
|
+
readonly Texts: "texts";
|
|
758
|
+
}>;
|
|
759
|
+
}
|
|
760
|
+
/** @internal */
|
|
761
|
+
export declare const SentenceChunker$inboundSchema: z.ZodNativeEnum<typeof SentenceChunker>;
|
|
762
|
+
/** @internal */
|
|
763
|
+
export declare const SentenceChunker$outboundSchema: z.ZodNativeEnum<typeof SentenceChunker>;
|
|
764
|
+
/**
|
|
765
|
+
* @internal
|
|
766
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
767
|
+
*/
|
|
768
|
+
export declare namespace SentenceChunker$ {
|
|
769
|
+
/** @deprecated use `SentenceChunker$inboundSchema` instead. */
|
|
770
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
771
|
+
readonly Sentence: "sentence";
|
|
772
|
+
}>;
|
|
773
|
+
/** @deprecated use `SentenceChunker$outboundSchema` instead. */
|
|
774
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
775
|
+
readonly Sentence: "sentence";
|
|
776
|
+
}>;
|
|
777
|
+
}
|
|
778
|
+
/** @internal */
|
|
779
|
+
export declare const SentenceChunkerStrategy$inboundSchema: z.ZodType<SentenceChunkerStrategy, z.ZodTypeDef, unknown>;
|
|
780
|
+
/** @internal */
|
|
781
|
+
export type SentenceChunkerStrategy$Outbound = {
|
|
782
|
+
text: string;
|
|
783
|
+
metadata: boolean;
|
|
784
|
+
return_type: string;
|
|
785
|
+
strategy: string;
|
|
786
|
+
chunk_size: number;
|
|
787
|
+
chunk_overlap: number;
|
|
788
|
+
min_sentences_per_chunk: number;
|
|
789
|
+
};
|
|
790
|
+
/** @internal */
|
|
791
|
+
export declare const SentenceChunkerStrategy$outboundSchema: z.ZodType<SentenceChunkerStrategy$Outbound, z.ZodTypeDef, SentenceChunkerStrategy>;
|
|
792
|
+
/**
|
|
793
|
+
* @internal
|
|
794
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
795
|
+
*/
|
|
796
|
+
export declare namespace SentenceChunkerStrategy$ {
|
|
797
|
+
/** @deprecated use `SentenceChunkerStrategy$inboundSchema` instead. */
|
|
798
|
+
const inboundSchema: z.ZodType<SentenceChunkerStrategy, z.ZodTypeDef, unknown>;
|
|
799
|
+
/** @deprecated use `SentenceChunkerStrategy$outboundSchema` instead. */
|
|
800
|
+
const outboundSchema: z.ZodType<SentenceChunkerStrategy$Outbound, z.ZodTypeDef, SentenceChunkerStrategy>;
|
|
801
|
+
/** @deprecated use `SentenceChunkerStrategy$Outbound` instead. */
|
|
802
|
+
type Outbound = SentenceChunkerStrategy$Outbound;
|
|
803
|
+
}
|
|
804
|
+
export declare function sentenceChunkerStrategyToJSON(sentenceChunkerStrategy: SentenceChunkerStrategy): string;
|
|
805
|
+
export declare function sentenceChunkerStrategyFromJSON(jsonString: string): SafeParseResult<SentenceChunkerStrategy, SDKValidationError>;
|
|
806
|
+
/** @internal */
|
|
807
|
+
export declare const ReturnTypeT$inboundSchema: z.ZodNativeEnum<typeof ReturnTypeT>;
|
|
808
|
+
/** @internal */
|
|
809
|
+
export declare const ReturnTypeT$outboundSchema: z.ZodNativeEnum<typeof ReturnTypeT>;
|
|
810
|
+
/**
|
|
811
|
+
* @internal
|
|
812
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
813
|
+
*/
|
|
814
|
+
export declare namespace ReturnTypeT$ {
|
|
815
|
+
/** @deprecated use `ReturnTypeT$inboundSchema` instead. */
|
|
816
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
817
|
+
readonly Chunks: "chunks";
|
|
818
|
+
readonly Texts: "texts";
|
|
819
|
+
}>;
|
|
820
|
+
/** @deprecated use `ReturnTypeT$outboundSchema` instead. */
|
|
821
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
822
|
+
readonly Chunks: "chunks";
|
|
823
|
+
readonly Texts: "texts";
|
|
824
|
+
}>;
|
|
825
|
+
}
|
|
826
|
+
/** @internal */
|
|
827
|
+
export declare const TokenChunker$inboundSchema: z.ZodNativeEnum<typeof TokenChunker>;
|
|
828
|
+
/** @internal */
|
|
829
|
+
export declare const TokenChunker$outboundSchema: z.ZodNativeEnum<typeof TokenChunker>;
|
|
830
|
+
/**
|
|
831
|
+
* @internal
|
|
832
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
833
|
+
*/
|
|
834
|
+
export declare namespace TokenChunker$ {
|
|
835
|
+
/** @deprecated use `TokenChunker$inboundSchema` instead. */
|
|
836
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
837
|
+
readonly Token: "token";
|
|
838
|
+
}>;
|
|
839
|
+
/** @deprecated use `TokenChunker$outboundSchema` instead. */
|
|
840
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
841
|
+
readonly Token: "token";
|
|
842
|
+
}>;
|
|
843
|
+
}
|
|
844
|
+
/** @internal */
|
|
845
|
+
export declare const TokenChunkerStrategy$inboundSchema: z.ZodType<TokenChunkerStrategy, z.ZodTypeDef, unknown>;
|
|
846
|
+
/** @internal */
|
|
847
|
+
export type TokenChunkerStrategy$Outbound = {
|
|
848
|
+
text: string;
|
|
849
|
+
metadata: boolean;
|
|
850
|
+
return_type: string;
|
|
851
|
+
strategy: string;
|
|
852
|
+
chunk_size: number;
|
|
853
|
+
chunk_overlap: number;
|
|
854
|
+
};
|
|
855
|
+
/** @internal */
|
|
856
|
+
export declare const TokenChunkerStrategy$outboundSchema: z.ZodType<TokenChunkerStrategy$Outbound, z.ZodTypeDef, TokenChunkerStrategy>;
|
|
857
|
+
/**
|
|
858
|
+
* @internal
|
|
859
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
860
|
+
*/
|
|
861
|
+
export declare namespace TokenChunkerStrategy$ {
|
|
862
|
+
/** @deprecated use `TokenChunkerStrategy$inboundSchema` instead. */
|
|
863
|
+
const inboundSchema: z.ZodType<TokenChunkerStrategy, z.ZodTypeDef, unknown>;
|
|
864
|
+
/** @deprecated use `TokenChunkerStrategy$outboundSchema` instead. */
|
|
865
|
+
const outboundSchema: z.ZodType<TokenChunkerStrategy$Outbound, z.ZodTypeDef, TokenChunkerStrategy>;
|
|
866
|
+
/** @deprecated use `TokenChunkerStrategy$Outbound` instead. */
|
|
867
|
+
type Outbound = TokenChunkerStrategy$Outbound;
|
|
868
|
+
}
|
|
869
|
+
export declare function tokenChunkerStrategyToJSON(tokenChunkerStrategy: TokenChunkerStrategy): string;
|
|
870
|
+
export declare function tokenChunkerStrategyFromJSON(jsonString: string): SafeParseResult<TokenChunkerStrategy, SDKValidationError>;
|
|
871
|
+
/** @internal */
|
|
872
|
+
export declare const ParseChunkingRequest$inboundSchema: z.ZodType<ParseChunkingRequest, z.ZodTypeDef, unknown>;
|
|
873
|
+
/** @internal */
|
|
874
|
+
export type ParseChunkingRequest$Outbound = SemanticChunkerStrategy$Outbound | SDPMChunkerStrategy$Outbound | AgenticChunkerStrategy$Outbound | TokenChunkerStrategy$Outbound | SentenceChunkerStrategy$Outbound | RecursiveChunkerStrategy$Outbound;
|
|
875
|
+
/** @internal */
|
|
876
|
+
export declare const ParseChunkingRequest$outboundSchema: z.ZodType<ParseChunkingRequest$Outbound, z.ZodTypeDef, ParseChunkingRequest>;
|
|
877
|
+
/**
|
|
878
|
+
* @internal
|
|
879
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
880
|
+
*/
|
|
881
|
+
export declare namespace ParseChunkingRequest$ {
|
|
882
|
+
/** @deprecated use `ParseChunkingRequest$inboundSchema` instead. */
|
|
883
|
+
const inboundSchema: z.ZodType<ParseChunkingRequest, z.ZodTypeDef, unknown>;
|
|
884
|
+
/** @deprecated use `ParseChunkingRequest$outboundSchema` instead. */
|
|
885
|
+
const outboundSchema: z.ZodType<ParseChunkingRequest$Outbound, z.ZodTypeDef, ParseChunkingRequest>;
|
|
886
|
+
/** @deprecated use `ParseChunkingRequest$Outbound` instead. */
|
|
887
|
+
type Outbound = ParseChunkingRequest$Outbound;
|
|
888
|
+
}
|
|
889
|
+
export declare function parseChunkingRequestToJSON(parseChunkingRequest: ParseChunkingRequest): string;
|
|
890
|
+
export declare function parseChunkingRequestFromJSON(jsonString: string): SafeParseResult<ParseChunkingRequest, SDKValidationError>;
|
|
891
|
+
/** @internal */
|
|
892
|
+
export declare const ParseMetadata$inboundSchema: z.ZodType<ParseMetadata, z.ZodTypeDef, unknown>;
|
|
893
|
+
/** @internal */
|
|
894
|
+
export type ParseMetadata$Outbound = {
|
|
895
|
+
start_index: number | null;
|
|
896
|
+
end_index: number | null;
|
|
897
|
+
token_count: number | null;
|
|
898
|
+
};
|
|
899
|
+
/** @internal */
|
|
900
|
+
export declare const ParseMetadata$outboundSchema: z.ZodType<ParseMetadata$Outbound, z.ZodTypeDef, ParseMetadata>;
|
|
901
|
+
/**
|
|
902
|
+
* @internal
|
|
903
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
904
|
+
*/
|
|
905
|
+
export declare namespace ParseMetadata$ {
|
|
906
|
+
/** @deprecated use `ParseMetadata$inboundSchema` instead. */
|
|
907
|
+
const inboundSchema: z.ZodType<ParseMetadata, z.ZodTypeDef, unknown>;
|
|
908
|
+
/** @deprecated use `ParseMetadata$outboundSchema` instead. */
|
|
909
|
+
const outboundSchema: z.ZodType<ParseMetadata$Outbound, z.ZodTypeDef, ParseMetadata>;
|
|
910
|
+
/** @deprecated use `ParseMetadata$Outbound` instead. */
|
|
911
|
+
type Outbound = ParseMetadata$Outbound;
|
|
912
|
+
}
|
|
913
|
+
export declare function parseMetadataToJSON(parseMetadata: ParseMetadata): string;
|
|
914
|
+
export declare function parseMetadataFromJSON(jsonString: string): SafeParseResult<ParseMetadata, SDKValidationError>;
|
|
915
|
+
/** @internal */
|
|
916
|
+
export declare const Chunks$inboundSchema: z.ZodType<Chunks, z.ZodTypeDef, unknown>;
|
|
917
|
+
/** @internal */
|
|
918
|
+
export type Chunks$Outbound = {
|
|
919
|
+
text: string;
|
|
920
|
+
index: number;
|
|
921
|
+
metadata?: ParseMetadata$Outbound | undefined;
|
|
922
|
+
};
|
|
923
|
+
/** @internal */
|
|
924
|
+
export declare const Chunks$outboundSchema: z.ZodType<Chunks$Outbound, z.ZodTypeDef, Chunks>;
|
|
925
|
+
/**
|
|
926
|
+
* @internal
|
|
927
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
928
|
+
*/
|
|
929
|
+
export declare namespace Chunks$ {
|
|
930
|
+
/** @deprecated use `Chunks$inboundSchema` instead. */
|
|
931
|
+
const inboundSchema: z.ZodType<Chunks, z.ZodTypeDef, unknown>;
|
|
932
|
+
/** @deprecated use `Chunks$outboundSchema` instead. */
|
|
933
|
+
const outboundSchema: z.ZodType<Chunks$Outbound, z.ZodTypeDef, Chunks>;
|
|
934
|
+
/** @deprecated use `Chunks$Outbound` instead. */
|
|
935
|
+
type Outbound = Chunks$Outbound;
|
|
936
|
+
}
|
|
937
|
+
export declare function chunksToJSON(chunks: Chunks): string;
|
|
938
|
+
export declare function chunksFromJSON(jsonString: string): SafeParseResult<Chunks, SDKValidationError>;
|
|
939
|
+
/** @internal */
|
|
940
|
+
export declare const ParseResponseBody$inboundSchema: z.ZodType<ParseResponseBody, z.ZodTypeDef, unknown>;
|
|
941
|
+
/** @internal */
|
|
942
|
+
export type ParseResponseBody$Outbound = {
|
|
943
|
+
chunks: Array<Chunks$Outbound>;
|
|
944
|
+
};
|
|
945
|
+
/** @internal */
|
|
946
|
+
export declare const ParseResponseBody$outboundSchema: z.ZodType<ParseResponseBody$Outbound, z.ZodTypeDef, ParseResponseBody>;
|
|
947
|
+
/**
|
|
948
|
+
* @internal
|
|
949
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
950
|
+
*/
|
|
951
|
+
export declare namespace ParseResponseBody$ {
|
|
952
|
+
/** @deprecated use `ParseResponseBody$inboundSchema` instead. */
|
|
953
|
+
const inboundSchema: z.ZodType<ParseResponseBody, z.ZodTypeDef, unknown>;
|
|
954
|
+
/** @deprecated use `ParseResponseBody$outboundSchema` instead. */
|
|
955
|
+
const outboundSchema: z.ZodType<ParseResponseBody$Outbound, z.ZodTypeDef, ParseResponseBody>;
|
|
956
|
+
/** @deprecated use `ParseResponseBody$Outbound` instead. */
|
|
957
|
+
type Outbound = ParseResponseBody$Outbound;
|
|
958
|
+
}
|
|
959
|
+
export declare function parseResponseBodyToJSON(parseResponseBody: ParseResponseBody): string;
|
|
960
|
+
export declare function parseResponseBodyFromJSON(jsonString: string): SafeParseResult<ParseResponseBody, SDKValidationError>;
|
|
961
|
+
//# sourceMappingURL=parse.d.ts.map
|