@meetkai/mka1 0.55.11 → 0.55.14
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/bin/mcp-server.js +1031 -137
- package/bin/mcp-server.js.map +36 -30
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/components/addcatalogmodelrequest.d.ts +2 -0
- package/dist/commonjs/models/components/addcatalogmodelrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/addcatalogmodelrequest.js +2 -0
- package/dist/commonjs/models/components/addcatalogmodelrequest.js.map +1 -1
- package/dist/commonjs/models/components/agenttooldefinition.d.ts +35 -0
- package/dist/commonjs/models/components/agenttooldefinition.d.ts.map +1 -0
- package/dist/commonjs/models/components/agenttooldefinition.js +73 -0
- package/dist/commonjs/models/components/agenttooldefinition.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +4 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +4 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/livekittokenrequest.d.ts +5 -4
- package/dist/commonjs/models/components/livekittokenrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/livekittokenrequest.js +5 -0
- package/dist/commonjs/models/components/livekittokenrequest.js.map +1 -1
- package/dist/commonjs/models/components/responseagentcallcompletedevent.d.ts +25 -0
- package/dist/commonjs/models/components/responseagentcallcompletedevent.d.ts.map +1 -0
- package/dist/commonjs/models/components/responseagentcallcompletedevent.js +81 -0
- package/dist/commonjs/models/components/responseagentcallcompletedevent.js.map +1 -0
- package/dist/commonjs/models/components/responseagentcallfailedevent.d.ts +25 -0
- package/dist/commonjs/models/components/responseagentcallfailedevent.d.ts.map +1 -0
- package/dist/commonjs/models/components/responseagentcallfailedevent.js +79 -0
- package/dist/commonjs/models/components/responseagentcallfailedevent.js.map +1 -0
- package/dist/commonjs/models/components/responseagentcallinprogressevent.d.ts +25 -0
- package/dist/commonjs/models/components/responseagentcallinprogressevent.d.ts.map +1 -0
- package/dist/commonjs/models/components/responseagentcallinprogressevent.js +81 -0
- package/dist/commonjs/models/components/responseagentcallinprogressevent.js.map +1 -0
- package/dist/commonjs/models/components/responseobject.d.ts +5 -4
- package/dist/commonjs/models/components/responseobject.d.ts.map +1 -1
- package/dist/commonjs/models/components/responseobject.js +5 -0
- package/dist/commonjs/models/components/responseobject.js.map +1 -1
- package/dist/commonjs/models/components/responsescreaterequest.d.ts +5 -4
- package/dist/commonjs/models/components/responsescreaterequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/responsescreaterequest.js +5 -0
- package/dist/commonjs/models/components/responsescreaterequest.js.map +1 -1
- package/dist/commonjs/models/components/responsestreamingevent.d.ts +5 -2
- package/dist/commonjs/models/components/responsestreamingevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/responsestreamingevent.js +9 -0
- package/dist/commonjs/models/components/responsestreamingevent.js.map +1 -1
- package/dist/commonjs/models/components/tooldefinition.d.ts +38 -8
- package/dist/commonjs/models/components/tooldefinition.d.ts.map +1 -1
- package/dist/commonjs/models/components/tooldefinition.js +51 -11
- package/dist/commonjs/models/components/tooldefinition.js.map +1 -1
- package/dist/commonjs/models/components/updatecatalogmodelrequest.d.ts +2 -0
- package/dist/commonjs/models/components/updatecatalogmodelrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/updatecatalogmodelrequest.js +2 -0
- package/dist/commonjs/models/components/updatecatalogmodelrequest.js.map +1 -1
- package/dist/commonjs/models/components/vectorstorefile.d.ts +10 -0
- package/dist/commonjs/models/components/vectorstorefile.d.ts.map +1 -1
- package/dist/commonjs/models/components/vectorstorefile.js +8 -0
- package/dist/commonjs/models/components/vectorstorefile.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/components/addcatalogmodelrequest.d.ts +2 -0
- package/dist/esm/models/components/addcatalogmodelrequest.d.ts.map +1 -1
- package/dist/esm/models/components/addcatalogmodelrequest.js +2 -0
- package/dist/esm/models/components/addcatalogmodelrequest.js.map +1 -1
- package/dist/esm/models/components/agenttooldefinition.d.ts +35 -0
- package/dist/esm/models/components/agenttooldefinition.d.ts.map +1 -0
- package/dist/esm/models/components/agenttooldefinition.js +35 -0
- package/dist/esm/models/components/agenttooldefinition.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +4 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +4 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/livekittokenrequest.d.ts +5 -4
- package/dist/esm/models/components/livekittokenrequest.d.ts.map +1 -1
- package/dist/esm/models/components/livekittokenrequest.js +5 -0
- package/dist/esm/models/components/livekittokenrequest.js.map +1 -1
- package/dist/esm/models/components/responseagentcallcompletedevent.d.ts +25 -0
- package/dist/esm/models/components/responseagentcallcompletedevent.d.ts.map +1 -0
- package/dist/esm/models/components/responseagentcallcompletedevent.js +43 -0
- package/dist/esm/models/components/responseagentcallcompletedevent.js.map +1 -0
- package/dist/esm/models/components/responseagentcallfailedevent.d.ts +25 -0
- package/dist/esm/models/components/responseagentcallfailedevent.d.ts.map +1 -0
- package/dist/esm/models/components/responseagentcallfailedevent.js +41 -0
- package/dist/esm/models/components/responseagentcallfailedevent.js.map +1 -0
- package/dist/esm/models/components/responseagentcallinprogressevent.d.ts +25 -0
- package/dist/esm/models/components/responseagentcallinprogressevent.d.ts.map +1 -0
- package/dist/esm/models/components/responseagentcallinprogressevent.js +43 -0
- package/dist/esm/models/components/responseagentcallinprogressevent.js.map +1 -0
- package/dist/esm/models/components/responseobject.d.ts +5 -4
- package/dist/esm/models/components/responseobject.d.ts.map +1 -1
- package/dist/esm/models/components/responseobject.js +5 -0
- package/dist/esm/models/components/responseobject.js.map +1 -1
- package/dist/esm/models/components/responsescreaterequest.d.ts +5 -4
- package/dist/esm/models/components/responsescreaterequest.d.ts.map +1 -1
- package/dist/esm/models/components/responsescreaterequest.js +5 -0
- package/dist/esm/models/components/responsescreaterequest.js.map +1 -1
- package/dist/esm/models/components/responsestreamingevent.d.ts +5 -2
- package/dist/esm/models/components/responsestreamingevent.d.ts.map +1 -1
- package/dist/esm/models/components/responsestreamingevent.js +9 -0
- package/dist/esm/models/components/responsestreamingevent.js.map +1 -1
- package/dist/esm/models/components/tooldefinition.d.ts +38 -8
- package/dist/esm/models/components/tooldefinition.d.ts.map +1 -1
- package/dist/esm/models/components/tooldefinition.js +47 -9
- package/dist/esm/models/components/tooldefinition.js.map +1 -1
- package/dist/esm/models/components/updatecatalogmodelrequest.d.ts +2 -0
- package/dist/esm/models/components/updatecatalogmodelrequest.d.ts.map +1 -1
- package/dist/esm/models/components/updatecatalogmodelrequest.js +2 -0
- package/dist/esm/models/components/updatecatalogmodelrequest.js.map +1 -1
- package/dist/esm/models/components/vectorstorefile.d.ts +10 -0
- package/dist/esm/models/components/vectorstorefile.d.ts.map +1 -1
- package/dist/esm/models/components/vectorstorefile.js +8 -0
- package/dist/esm/models/components/vectorstorefile.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/addcatalogmodelrequest.ts +4 -0
- package/src/models/components/agenttooldefinition.ts +84 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/components/livekittokenrequest.ts +14 -0
- package/src/models/components/responseagentcallcompletedevent.ts +84 -0
- package/src/models/components/responseagentcallfailedevent.ts +82 -0
- package/src/models/components/responseagentcallinprogressevent.ts +84 -0
- package/src/models/components/responseobject.ts +14 -0
- package/src/models/components/responsescreaterequest.ts +14 -0
- package/src/models/components/responsestreamingevent.ts +32 -0
- package/src/models/components/tooldefinition.ts +95 -21
- package/src/models/components/updatecatalogmodelrequest.ts +4 -0
- package/src/models/components/vectorstorefile.ts +18 -0
|
@@ -35,10 +35,10 @@ import {
|
|
|
35
35
|
MCPToolFilter$outboundSchema,
|
|
36
36
|
} from "./mcptoolfilter.js";
|
|
37
37
|
|
|
38
|
-
export const
|
|
38
|
+
export const ToolDefinition9Type = {
|
|
39
39
|
Shell: "shell",
|
|
40
40
|
} as const;
|
|
41
|
-
export type
|
|
41
|
+
export type ToolDefinition9Type = ClosedEnum<typeof ToolDefinition9Type>;
|
|
42
42
|
|
|
43
43
|
export const ToolDefinitionEnvironmentAccess = {
|
|
44
44
|
ReadOnly: "read_only",
|
|
@@ -96,8 +96,8 @@ export type Environment =
|
|
|
96
96
|
| Environment2
|
|
97
97
|
| discriminatedUnionTypes.Unknown<"type">;
|
|
98
98
|
|
|
99
|
-
export type
|
|
100
|
-
type:
|
|
99
|
+
export type Nine = {
|
|
100
|
+
type: ToolDefinition9Type;
|
|
101
101
|
environment?:
|
|
102
102
|
| Environment1
|
|
103
103
|
| Environment2
|
|
@@ -105,6 +105,21 @@ export type Eight = {
|
|
|
105
105
|
| undefined;
|
|
106
106
|
};
|
|
107
107
|
|
|
108
|
+
export const ToolDefinition8Type = {
|
|
109
|
+
Agent: "agent",
|
|
110
|
+
} as const;
|
|
111
|
+
export type ToolDefinition8Type = ClosedEnum<typeof ToolDefinition8Type>;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Another saved agent of the same team, called as a tool. mkllm-gateway starts a run of that agent and returns its answer.
|
|
115
|
+
*/
|
|
116
|
+
export type Eight = {
|
|
117
|
+
type: ToolDefinition8Type;
|
|
118
|
+
agentId: string;
|
|
119
|
+
name?: string | undefined;
|
|
120
|
+
description?: string | undefined;
|
|
121
|
+
};
|
|
122
|
+
|
|
108
123
|
export const ToolDefinition7Type = {
|
|
109
124
|
Sleep: "sleep",
|
|
110
125
|
} as const;
|
|
@@ -299,21 +314,22 @@ export type ToolDefinition =
|
|
|
299
314
|
| ToolDefinition3
|
|
300
315
|
| FunctionToolReference
|
|
301
316
|
| ToolDefinition5
|
|
317
|
+
| Eight
|
|
302
318
|
| ToolDefinition2
|
|
303
319
|
| ToolDefinition6
|
|
304
320
|
| Seven
|
|
305
|
-
|
|
|
321
|
+
| Nine
|
|
306
322
|
| Four1
|
|
307
323
|
| Four2;
|
|
308
324
|
|
|
309
325
|
/** @internal */
|
|
310
|
-
export const
|
|
311
|
-
typeof
|
|
312
|
-
> = z.nativeEnum(
|
|
326
|
+
export const ToolDefinition9Type$inboundSchema: z.ZodNativeEnum<
|
|
327
|
+
typeof ToolDefinition9Type
|
|
328
|
+
> = z.nativeEnum(ToolDefinition9Type);
|
|
313
329
|
/** @internal */
|
|
314
|
-
export const
|
|
315
|
-
typeof
|
|
316
|
-
> =
|
|
330
|
+
export const ToolDefinition9Type$outboundSchema: z.ZodNativeEnum<
|
|
331
|
+
typeof ToolDefinition9Type
|
|
332
|
+
> = ToolDefinition9Type$inboundSchema;
|
|
317
333
|
|
|
318
334
|
/** @internal */
|
|
319
335
|
export const ToolDefinitionEnvironmentAccess$inboundSchema: z.ZodNativeEnum<
|
|
@@ -600,20 +616,72 @@ export function environmentFromJSON(
|
|
|
600
616
|
}
|
|
601
617
|
|
|
602
618
|
/** @internal */
|
|
603
|
-
export const
|
|
619
|
+
export const Nine$inboundSchema: z.ZodType<Nine, z.ZodTypeDef, unknown> = z
|
|
604
620
|
.object({
|
|
605
|
-
type:
|
|
621
|
+
type: ToolDefinition9Type$inboundSchema,
|
|
606
622
|
environment: discriminatedUnion("type", {
|
|
607
623
|
container_auto: z.lazy(() => Environment1$inboundSchema),
|
|
608
624
|
container_reference: z.lazy(() => Environment2$inboundSchema),
|
|
609
625
|
}).optional(),
|
|
610
626
|
});
|
|
611
627
|
/** @internal */
|
|
612
|
-
export type
|
|
628
|
+
export type Nine$Outbound = {
|
|
613
629
|
type: string;
|
|
614
630
|
environment?: Environment1$Outbound | Environment2$Outbound | undefined;
|
|
615
631
|
};
|
|
616
632
|
|
|
633
|
+
/** @internal */
|
|
634
|
+
export const Nine$outboundSchema: z.ZodType<Nine$Outbound, z.ZodTypeDef, Nine> =
|
|
635
|
+
z.object({
|
|
636
|
+
type: ToolDefinition9Type$outboundSchema,
|
|
637
|
+
environment: z.union([
|
|
638
|
+
z.lazy(() => Environment1$outboundSchema),
|
|
639
|
+
z.lazy(() => Environment2$outboundSchema),
|
|
640
|
+
]).optional(),
|
|
641
|
+
});
|
|
642
|
+
|
|
643
|
+
export function nineToJSON(nine: Nine): string {
|
|
644
|
+
return JSON.stringify(Nine$outboundSchema.parse(nine));
|
|
645
|
+
}
|
|
646
|
+
export function nineFromJSON(
|
|
647
|
+
jsonString: string,
|
|
648
|
+
): SafeParseResult<Nine, SDKValidationError> {
|
|
649
|
+
return safeParse(
|
|
650
|
+
jsonString,
|
|
651
|
+
(x) => Nine$inboundSchema.parse(JSON.parse(x)),
|
|
652
|
+
`Failed to parse 'Nine' from JSON`,
|
|
653
|
+
);
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
/** @internal */
|
|
657
|
+
export const ToolDefinition8Type$inboundSchema: z.ZodNativeEnum<
|
|
658
|
+
typeof ToolDefinition8Type
|
|
659
|
+
> = z.nativeEnum(ToolDefinition8Type);
|
|
660
|
+
/** @internal */
|
|
661
|
+
export const ToolDefinition8Type$outboundSchema: z.ZodNativeEnum<
|
|
662
|
+
typeof ToolDefinition8Type
|
|
663
|
+
> = ToolDefinition8Type$inboundSchema;
|
|
664
|
+
|
|
665
|
+
/** @internal */
|
|
666
|
+
export const Eight$inboundSchema: z.ZodType<Eight, z.ZodTypeDef, unknown> = z
|
|
667
|
+
.object({
|
|
668
|
+
type: ToolDefinition8Type$inboundSchema,
|
|
669
|
+
agent_id: z.string(),
|
|
670
|
+
name: z.string().optional(),
|
|
671
|
+
description: z.string().optional(),
|
|
672
|
+
}).transform((v) => {
|
|
673
|
+
return remap$(v, {
|
|
674
|
+
"agent_id": "agentId",
|
|
675
|
+
});
|
|
676
|
+
});
|
|
677
|
+
/** @internal */
|
|
678
|
+
export type Eight$Outbound = {
|
|
679
|
+
type: string;
|
|
680
|
+
agent_id: string;
|
|
681
|
+
name?: string | undefined;
|
|
682
|
+
description?: string | undefined;
|
|
683
|
+
};
|
|
684
|
+
|
|
617
685
|
/** @internal */
|
|
618
686
|
export const Eight$outboundSchema: z.ZodType<
|
|
619
687
|
Eight$Outbound,
|
|
@@ -621,10 +689,13 @@ export const Eight$outboundSchema: z.ZodType<
|
|
|
621
689
|
Eight
|
|
622
690
|
> = z.object({
|
|
623
691
|
type: ToolDefinition8Type$outboundSchema,
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
692
|
+
agentId: z.string(),
|
|
693
|
+
name: z.string().optional(),
|
|
694
|
+
description: z.string().optional(),
|
|
695
|
+
}).transform((v) => {
|
|
696
|
+
return remap$(v, {
|
|
697
|
+
agentId: "agent_id",
|
|
698
|
+
});
|
|
628
699
|
});
|
|
629
700
|
|
|
630
701
|
export function eightToJSON(eight: Eight): string {
|
|
@@ -1744,10 +1815,11 @@ export const ToolDefinition$inboundSchema: z.ZodType<
|
|
|
1744
1815
|
z.lazy(() => ToolDefinition3$inboundSchema),
|
|
1745
1816
|
FunctionToolReference$inboundSchema,
|
|
1746
1817
|
z.lazy(() => ToolDefinition5$inboundSchema),
|
|
1818
|
+
z.lazy(() => Eight$inboundSchema),
|
|
1747
1819
|
z.lazy(() => ToolDefinition2$inboundSchema),
|
|
1748
1820
|
z.lazy(() => ToolDefinition6$inboundSchema),
|
|
1749
1821
|
z.lazy(() => Seven$inboundSchema),
|
|
1750
|
-
z.lazy(() =>
|
|
1822
|
+
z.lazy(() => Nine$inboundSchema),
|
|
1751
1823
|
z.union([
|
|
1752
1824
|
z.lazy(() => Four1$inboundSchema),
|
|
1753
1825
|
z.lazy(() => Four2$inboundSchema),
|
|
@@ -1758,10 +1830,11 @@ export type ToolDefinition$Outbound =
|
|
|
1758
1830
|
| ToolDefinition3$Outbound
|
|
1759
1831
|
| FunctionToolReference$Outbound
|
|
1760
1832
|
| ToolDefinition5$Outbound
|
|
1833
|
+
| Eight$Outbound
|
|
1761
1834
|
| ToolDefinition2$Outbound
|
|
1762
1835
|
| ToolDefinition6$Outbound
|
|
1763
1836
|
| Seven$Outbound
|
|
1764
|
-
|
|
|
1837
|
+
| Nine$Outbound
|
|
1765
1838
|
| Four1$Outbound
|
|
1766
1839
|
| Four2$Outbound;
|
|
1767
1840
|
|
|
@@ -1774,10 +1847,11 @@ export const ToolDefinition$outboundSchema: z.ZodType<
|
|
|
1774
1847
|
z.lazy(() => ToolDefinition3$outboundSchema),
|
|
1775
1848
|
FunctionToolReference$outboundSchema,
|
|
1776
1849
|
z.lazy(() => ToolDefinition5$outboundSchema),
|
|
1850
|
+
z.lazy(() => Eight$outboundSchema),
|
|
1777
1851
|
z.lazy(() => ToolDefinition2$outboundSchema),
|
|
1778
1852
|
z.lazy(() => ToolDefinition6$outboundSchema),
|
|
1779
1853
|
z.lazy(() => Seven$outboundSchema),
|
|
1780
|
-
z.lazy(() =>
|
|
1854
|
+
z.lazy(() => Nine$outboundSchema),
|
|
1781
1855
|
z.union([
|
|
1782
1856
|
z.lazy(() => Four1$outboundSchema),
|
|
1783
1857
|
z.lazy(() => Four2$outboundSchema),
|
|
@@ -249,6 +249,7 @@ export type EmbeddingLimitsDimensions =
|
|
|
249
249
|
|
|
250
250
|
export type UpdateCatalogModelRequestEmbeddingLimits = {
|
|
251
251
|
maxBatchSize?: number | undefined;
|
|
252
|
+
maxBatchTokens?: number | undefined;
|
|
252
253
|
dimensions?: UpdateCatalogModelRequestDimensions2 | number | undefined;
|
|
253
254
|
};
|
|
254
255
|
|
|
@@ -1870,6 +1871,7 @@ export const UpdateCatalogModelRequestEmbeddingLimits$inboundSchema: z.ZodType<
|
|
|
1870
1871
|
unknown
|
|
1871
1872
|
> = z.object({
|
|
1872
1873
|
maxBatchSize: z.number().int().optional(),
|
|
1874
|
+
maxBatchTokens: z.number().int().optional(),
|
|
1873
1875
|
dimensions: z.union([
|
|
1874
1876
|
z.lazy(() => UpdateCatalogModelRequestDimensions2$inboundSchema),
|
|
1875
1877
|
z.number().int(),
|
|
@@ -1878,6 +1880,7 @@ export const UpdateCatalogModelRequestEmbeddingLimits$inboundSchema: z.ZodType<
|
|
|
1878
1880
|
/** @internal */
|
|
1879
1881
|
export type UpdateCatalogModelRequestEmbeddingLimits$Outbound = {
|
|
1880
1882
|
maxBatchSize?: number | undefined;
|
|
1883
|
+
maxBatchTokens?: number | undefined;
|
|
1881
1884
|
dimensions?:
|
|
1882
1885
|
| UpdateCatalogModelRequestDimensions2$Outbound
|
|
1883
1886
|
| number
|
|
@@ -1891,6 +1894,7 @@ export const UpdateCatalogModelRequestEmbeddingLimits$outboundSchema: z.ZodType<
|
|
|
1891
1894
|
UpdateCatalogModelRequestEmbeddingLimits
|
|
1892
1895
|
> = z.object({
|
|
1893
1896
|
maxBatchSize: z.number().int().optional(),
|
|
1897
|
+
maxBatchTokens: z.number().int().optional(),
|
|
1894
1898
|
dimensions: z.union([
|
|
1895
1899
|
z.lazy(() => UpdateCatalogModelRequestDimensions2$outboundSchema),
|
|
1896
1900
|
z.number().int(),
|
|
@@ -82,6 +82,14 @@ export type VectorStoreFile = {
|
|
|
82
82
|
* How many of the file's chunks the running ingest has processed so far: embedded for vector stores, entity-extracted for graph stores. Extension field not present in the OpenAI API. Null until the file has been chunked; equals chunk_count once the file is completed. The file becomes searchable when its status is completed, not before.
|
|
83
83
|
*/
|
|
84
84
|
processedChunkCount?: number | null | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* For a file read through the document pipeline (PDF, Office, images): how many pages the document had, up to the per-document page cap. Extension field not present in the OpenAI API. Null for plain text files, before the file has been read, and for files indexed before it was recorded.
|
|
87
|
+
*/
|
|
88
|
+
pageCount?: number | null | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* How many of those pages produced text. A page the OCR could not read is indexed as a placeholder and the file still completes, so a value below page_count means some pages are missing from the index. Extension field not present in the OpenAI API. Null whenever page_count is null.
|
|
91
|
+
*/
|
|
92
|
+
processedPageCount?: number | null | undefined;
|
|
85
93
|
/**
|
|
86
94
|
* Set of 16 key-value pairs that can be attached to an object. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters, booleans, or numbers.
|
|
87
95
|
*/
|
|
@@ -147,6 +155,8 @@ export const VectorStoreFile$inboundSchema: z.ZodType<
|
|
|
147
155
|
chunking_strategy: ChunkingStrategy$inboundSchema.optional(),
|
|
148
156
|
chunk_count: z.nullable(z.number().int()).optional(),
|
|
149
157
|
processed_chunk_count: z.nullable(z.number().int()).optional(),
|
|
158
|
+
page_count: z.nullable(z.number().int()).optional(),
|
|
159
|
+
processed_page_count: z.nullable(z.number().int()).optional(),
|
|
150
160
|
attributes: z.record(z.union([z.string(), z.boolean(), z.number()]))
|
|
151
161
|
.optional(),
|
|
152
162
|
}).transform((v) => {
|
|
@@ -158,6 +168,8 @@ export const VectorStoreFile$inboundSchema: z.ZodType<
|
|
|
158
168
|
"chunking_strategy": "chunkingStrategy",
|
|
159
169
|
"chunk_count": "chunkCount",
|
|
160
170
|
"processed_chunk_count": "processedChunkCount",
|
|
171
|
+
"page_count": "pageCount",
|
|
172
|
+
"processed_page_count": "processedPageCount",
|
|
161
173
|
});
|
|
162
174
|
});
|
|
163
175
|
/** @internal */
|
|
@@ -173,6 +185,8 @@ export type VectorStoreFile$Outbound = {
|
|
|
173
185
|
chunking_strategy?: ChunkingStrategy$Outbound | undefined;
|
|
174
186
|
chunk_count?: number | null | undefined;
|
|
175
187
|
processed_chunk_count?: number | null | undefined;
|
|
188
|
+
page_count?: number | null | undefined;
|
|
189
|
+
processed_page_count?: number | null | undefined;
|
|
176
190
|
attributes?: { [k: string]: string | boolean | number } | undefined;
|
|
177
191
|
};
|
|
178
192
|
|
|
@@ -193,6 +207,8 @@ export const VectorStoreFile$outboundSchema: z.ZodType<
|
|
|
193
207
|
chunkingStrategy: ChunkingStrategy$outboundSchema.optional(),
|
|
194
208
|
chunkCount: z.nullable(z.number().int()).optional(),
|
|
195
209
|
processedChunkCount: z.nullable(z.number().int()).optional(),
|
|
210
|
+
pageCount: z.nullable(z.number().int()).optional(),
|
|
211
|
+
processedPageCount: z.nullable(z.number().int()).optional(),
|
|
196
212
|
attributes: z.record(z.union([z.string(), z.boolean(), z.number()]))
|
|
197
213
|
.optional(),
|
|
198
214
|
}).transform((v) => {
|
|
@@ -204,6 +220,8 @@ export const VectorStoreFile$outboundSchema: z.ZodType<
|
|
|
204
220
|
chunkingStrategy: "chunking_strategy",
|
|
205
221
|
chunkCount: "chunk_count",
|
|
206
222
|
processedChunkCount: "processed_chunk_count",
|
|
223
|
+
pageCount: "page_count",
|
|
224
|
+
processedPageCount: "processed_page_count",
|
|
207
225
|
});
|
|
208
226
|
});
|
|
209
227
|
|