@meetkai/mka1 0.55.22 → 0.55.23
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 +109 -29
- package/bin/mcp-server.js.map +9 -8
- 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/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/sandboxsessionscope.d.ts +18 -0
- package/dist/commonjs/models/components/sandboxsessionscope.d.ts.map +1 -0
- package/dist/commonjs/models/components/sandboxsessionscope.js +52 -0
- package/dist/commonjs/models/components/sandboxsessionscope.js.map +1 -0
- package/dist/commonjs/models/components/tooldefinition.d.ts +95 -17
- package/dist/commonjs/models/components/tooldefinition.d.ts.map +1 -1
- package/dist/commonjs/models/components/tooldefinition.js +135 -27
- package/dist/commonjs/models/components/tooldefinition.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/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/sandboxsessionscope.d.ts +18 -0
- package/dist/esm/models/components/sandboxsessionscope.d.ts.map +1 -0
- package/dist/esm/models/components/sandboxsessionscope.js +16 -0
- package/dist/esm/models/components/sandboxsessionscope.js.map +1 -0
- package/dist/esm/models/components/tooldefinition.d.ts +95 -17
- package/dist/esm/models/components/tooldefinition.d.ts.map +1 -1
- package/dist/esm/models/components/tooldefinition.js +126 -25
- package/dist/esm/models/components/tooldefinition.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/index.ts +1 -0
- package/src/models/components/sandboxsessionscope.ts +27 -0
- package/src/models/components/tooldefinition.ts +269 -50
|
@@ -34,11 +34,16 @@ import {
|
|
|
34
34
|
MCPToolFilter$Outbound,
|
|
35
35
|
MCPToolFilter$outboundSchema,
|
|
36
36
|
} from "./mcptoolfilter.js";
|
|
37
|
+
import {
|
|
38
|
+
SandboxSessionScope,
|
|
39
|
+
SandboxSessionScope$inboundSchema,
|
|
40
|
+
SandboxSessionScope$outboundSchema,
|
|
41
|
+
} from "./sandboxsessionscope.js";
|
|
37
42
|
|
|
38
|
-
export const
|
|
43
|
+
export const ToolDefinition10Type = {
|
|
39
44
|
Shell: "shell",
|
|
40
45
|
} as const;
|
|
41
|
-
export type
|
|
46
|
+
export type ToolDefinition10Type = ClosedEnum<typeof ToolDefinition10Type>;
|
|
42
47
|
|
|
43
48
|
export const ToolDefinitionEnvironmentAccess = {
|
|
44
49
|
ReadOnly: "read_only",
|
|
@@ -83,6 +88,10 @@ export type MemoryStores = {
|
|
|
83
88
|
|
|
84
89
|
export type Environment1 = {
|
|
85
90
|
type: "container_auto";
|
|
91
|
+
/**
|
|
92
|
+
* Workspace lifetime. conversation (default) keeps files within the same conversation or response chain. Delegated agents inherit their parent's workspace without its conversation history. request starts a fresh workspace for this response and its default-scoped delegated agents. Explicit child request scope or container IDs override inheritance. Independent top-level responses start fresh.
|
|
93
|
+
*/
|
|
94
|
+
sessionScope?: SandboxSessionScope | undefined;
|
|
86
95
|
/**
|
|
87
96
|
* Arbitrary JSON value.
|
|
88
97
|
*/
|
|
@@ -96,8 +105,8 @@ export type Environment =
|
|
|
96
105
|
| Environment2
|
|
97
106
|
| discriminatedUnionTypes.Unknown<"type">;
|
|
98
107
|
|
|
99
|
-
export type
|
|
100
|
-
type:
|
|
108
|
+
export type Ten = {
|
|
109
|
+
type: ToolDefinition10Type;
|
|
101
110
|
environment?:
|
|
102
111
|
| Environment1
|
|
103
112
|
| Environment2
|
|
@@ -105,28 +114,64 @@ export type Nine = {
|
|
|
105
114
|
| undefined;
|
|
106
115
|
};
|
|
107
116
|
|
|
108
|
-
export const
|
|
117
|
+
export const ToolDefinition9Type = {
|
|
109
118
|
Agent: "agent",
|
|
110
119
|
} as const;
|
|
111
|
-
export type
|
|
120
|
+
export type ToolDefinition9Type = ClosedEnum<typeof ToolDefinition9Type>;
|
|
112
121
|
|
|
113
122
|
/**
|
|
114
123
|
* Another saved agent of the same team, called as a tool. mkllm-gateway starts a run of that agent and returns its answer.
|
|
115
124
|
*/
|
|
116
|
-
export type
|
|
117
|
-
type:
|
|
125
|
+
export type Nine = {
|
|
126
|
+
type: ToolDefinition9Type;
|
|
118
127
|
agentId: string;
|
|
119
128
|
name?: string | undefined;
|
|
120
129
|
description?: string | undefined;
|
|
121
130
|
};
|
|
122
131
|
|
|
123
|
-
export const
|
|
132
|
+
export const ToolDefinition8Type = {
|
|
124
133
|
Sleep: "sleep",
|
|
125
134
|
} as const;
|
|
135
|
+
export type ToolDefinition8Type = ClosedEnum<typeof ToolDefinition8Type>;
|
|
136
|
+
|
|
137
|
+
export type Eight = {
|
|
138
|
+
type: ToolDefinition8Type;
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
export const ToolDefinition7Type = {
|
|
142
|
+
CodeInterpreter: "code_interpreter",
|
|
143
|
+
} as const;
|
|
126
144
|
export type ToolDefinition7Type = ClosedEnum<typeof ToolDefinition7Type>;
|
|
127
145
|
|
|
146
|
+
export const ContainerType = {
|
|
147
|
+
Auto: "auto",
|
|
148
|
+
} as const;
|
|
149
|
+
export type ContainerType = ClosedEnum<typeof ContainerType>;
|
|
150
|
+
|
|
151
|
+
export const ToolDefinitionContainerMemoryLimit = {
|
|
152
|
+
FiveHundredAndTwelvem: "512m",
|
|
153
|
+
Oneg: "1g",
|
|
154
|
+
Twog: "2g",
|
|
155
|
+
} as const;
|
|
156
|
+
export type ToolDefinitionContainerMemoryLimit = ClosedEnum<
|
|
157
|
+
typeof ToolDefinitionContainerMemoryLimit
|
|
158
|
+
>;
|
|
159
|
+
|
|
160
|
+
export type ToolDefinitionContainer2 = {
|
|
161
|
+
type: ContainerType;
|
|
162
|
+
/**
|
|
163
|
+
* Workspace lifetime. conversation (default) keeps files within the same conversation or response chain. Delegated agents inherit their parent's workspace without its conversation history. request starts a fresh workspace for this response and its default-scoped delegated agents. Explicit child request scope or container IDs override inheritance. Independent top-level responses start fresh.
|
|
164
|
+
*/
|
|
165
|
+
sessionScope?: SandboxSessionScope | undefined;
|
|
166
|
+
fileIds?: Array<string> | null | undefined;
|
|
167
|
+
memoryLimit?: ToolDefinitionContainerMemoryLimit | null | undefined;
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
export type ToolDefinitionContainer = ToolDefinitionContainer2 | string;
|
|
171
|
+
|
|
128
172
|
export type Seven = {
|
|
129
173
|
type: ToolDefinition7Type;
|
|
174
|
+
container: ToolDefinitionContainer2 | string;
|
|
130
175
|
};
|
|
131
176
|
|
|
132
177
|
export const ToolDefinition6Type = {
|
|
@@ -314,22 +359,23 @@ export type ToolDefinition =
|
|
|
314
359
|
| ToolDefinition3
|
|
315
360
|
| FunctionToolReference
|
|
316
361
|
| ToolDefinition5
|
|
317
|
-
| Eight
|
|
318
|
-
| ToolDefinition2
|
|
319
|
-
| ToolDefinition6
|
|
320
362
|
| Seven
|
|
321
363
|
| Nine
|
|
364
|
+
| ToolDefinition2
|
|
365
|
+
| ToolDefinition6
|
|
366
|
+
| Eight
|
|
367
|
+
| Ten
|
|
322
368
|
| Four1
|
|
323
369
|
| Four2;
|
|
324
370
|
|
|
325
371
|
/** @internal */
|
|
326
|
-
export const
|
|
327
|
-
typeof
|
|
328
|
-
> = z.nativeEnum(
|
|
372
|
+
export const ToolDefinition10Type$inboundSchema: z.ZodNativeEnum<
|
|
373
|
+
typeof ToolDefinition10Type
|
|
374
|
+
> = z.nativeEnum(ToolDefinition10Type);
|
|
329
375
|
/** @internal */
|
|
330
|
-
export const
|
|
331
|
-
typeof
|
|
332
|
-
> =
|
|
376
|
+
export const ToolDefinition10Type$outboundSchema: z.ZodNativeEnum<
|
|
377
|
+
typeof ToolDefinition10Type
|
|
378
|
+
> = ToolDefinition10Type$inboundSchema;
|
|
333
379
|
|
|
334
380
|
/** @internal */
|
|
335
381
|
export const ToolDefinitionEnvironmentAccess$inboundSchema: z.ZodNativeEnum<
|
|
@@ -531,11 +577,13 @@ export const Environment1$inboundSchema: z.ZodType<
|
|
|
531
577
|
unknown
|
|
532
578
|
> = z.object({
|
|
533
579
|
type: z.literal("container_auto"),
|
|
580
|
+
session_scope: SandboxSessionScope$inboundSchema.optional(),
|
|
534
581
|
network_policy: z.any().optional(),
|
|
535
582
|
skills: z.array(z.any()).optional(),
|
|
536
583
|
memory_stores: z.array(z.lazy(() => MemoryStores$inboundSchema)).optional(),
|
|
537
584
|
}).transform((v) => {
|
|
538
585
|
return remap$(v, {
|
|
586
|
+
"session_scope": "sessionScope",
|
|
539
587
|
"network_policy": "networkPolicy",
|
|
540
588
|
"memory_stores": "memoryStores",
|
|
541
589
|
});
|
|
@@ -543,6 +591,7 @@ export const Environment1$inboundSchema: z.ZodType<
|
|
|
543
591
|
/** @internal */
|
|
544
592
|
export type Environment1$Outbound = {
|
|
545
593
|
type: "container_auto";
|
|
594
|
+
session_scope?: string | undefined;
|
|
546
595
|
network_policy?: any | undefined;
|
|
547
596
|
skills?: Array<any> | undefined;
|
|
548
597
|
memory_stores?: Array<MemoryStores$Outbound> | undefined;
|
|
@@ -555,11 +604,13 @@ export const Environment1$outboundSchema: z.ZodType<
|
|
|
555
604
|
Environment1
|
|
556
605
|
> = z.object({
|
|
557
606
|
type: z.literal("container_auto"),
|
|
607
|
+
sessionScope: SandboxSessionScope$outboundSchema.optional(),
|
|
558
608
|
networkPolicy: z.any().optional(),
|
|
559
609
|
skills: z.array(z.any()).optional(),
|
|
560
610
|
memoryStores: z.array(z.lazy(() => MemoryStores$outboundSchema)).optional(),
|
|
561
611
|
}).transform((v) => {
|
|
562
612
|
return remap$(v, {
|
|
613
|
+
sessionScope: "session_scope",
|
|
563
614
|
networkPolicy: "network_policy",
|
|
564
615
|
memoryStores: "memory_stores",
|
|
565
616
|
});
|
|
@@ -616,30 +667,85 @@ export function environmentFromJSON(
|
|
|
616
667
|
}
|
|
617
668
|
|
|
618
669
|
/** @internal */
|
|
619
|
-
export const
|
|
670
|
+
export const Ten$inboundSchema: z.ZodType<Ten, z.ZodTypeDef, unknown> = z
|
|
620
671
|
.object({
|
|
621
|
-
type:
|
|
672
|
+
type: ToolDefinition10Type$inboundSchema,
|
|
622
673
|
environment: discriminatedUnion("type", {
|
|
623
674
|
container_auto: z.lazy(() => Environment1$inboundSchema),
|
|
624
675
|
container_reference: z.lazy(() => Environment2$inboundSchema),
|
|
625
676
|
}).optional(),
|
|
626
677
|
});
|
|
627
678
|
/** @internal */
|
|
628
|
-
export type
|
|
679
|
+
export type Ten$Outbound = {
|
|
629
680
|
type: string;
|
|
630
681
|
environment?: Environment1$Outbound | Environment2$Outbound | undefined;
|
|
631
682
|
};
|
|
632
683
|
|
|
633
684
|
/** @internal */
|
|
634
|
-
export const
|
|
635
|
-
|
|
636
|
-
type:
|
|
685
|
+
export const Ten$outboundSchema: z.ZodType<Ten$Outbound, z.ZodTypeDef, Ten> = z
|
|
686
|
+
.object({
|
|
687
|
+
type: ToolDefinition10Type$outboundSchema,
|
|
637
688
|
environment: z.union([
|
|
638
689
|
z.lazy(() => Environment1$outboundSchema),
|
|
639
690
|
z.lazy(() => Environment2$outboundSchema),
|
|
640
691
|
]).optional(),
|
|
641
692
|
});
|
|
642
693
|
|
|
694
|
+
export function tenToJSON(ten: Ten): string {
|
|
695
|
+
return JSON.stringify(Ten$outboundSchema.parse(ten));
|
|
696
|
+
}
|
|
697
|
+
export function tenFromJSON(
|
|
698
|
+
jsonString: string,
|
|
699
|
+
): SafeParseResult<Ten, SDKValidationError> {
|
|
700
|
+
return safeParse(
|
|
701
|
+
jsonString,
|
|
702
|
+
(x) => Ten$inboundSchema.parse(JSON.parse(x)),
|
|
703
|
+
`Failed to parse 'Ten' from JSON`,
|
|
704
|
+
);
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
/** @internal */
|
|
708
|
+
export const ToolDefinition9Type$inboundSchema: z.ZodNativeEnum<
|
|
709
|
+
typeof ToolDefinition9Type
|
|
710
|
+
> = z.nativeEnum(ToolDefinition9Type);
|
|
711
|
+
/** @internal */
|
|
712
|
+
export const ToolDefinition9Type$outboundSchema: z.ZodNativeEnum<
|
|
713
|
+
typeof ToolDefinition9Type
|
|
714
|
+
> = ToolDefinition9Type$inboundSchema;
|
|
715
|
+
|
|
716
|
+
/** @internal */
|
|
717
|
+
export const Nine$inboundSchema: z.ZodType<Nine, z.ZodTypeDef, unknown> = z
|
|
718
|
+
.object({
|
|
719
|
+
type: ToolDefinition9Type$inboundSchema,
|
|
720
|
+
agent_id: z.string(),
|
|
721
|
+
name: z.string().optional(),
|
|
722
|
+
description: z.string().optional(),
|
|
723
|
+
}).transform((v) => {
|
|
724
|
+
return remap$(v, {
|
|
725
|
+
"agent_id": "agentId",
|
|
726
|
+
});
|
|
727
|
+
});
|
|
728
|
+
/** @internal */
|
|
729
|
+
export type Nine$Outbound = {
|
|
730
|
+
type: string;
|
|
731
|
+
agent_id: string;
|
|
732
|
+
name?: string | undefined;
|
|
733
|
+
description?: string | undefined;
|
|
734
|
+
};
|
|
735
|
+
|
|
736
|
+
/** @internal */
|
|
737
|
+
export const Nine$outboundSchema: z.ZodType<Nine$Outbound, z.ZodTypeDef, Nine> =
|
|
738
|
+
z.object({
|
|
739
|
+
type: ToolDefinition9Type$outboundSchema,
|
|
740
|
+
agentId: z.string(),
|
|
741
|
+
name: z.string().optional(),
|
|
742
|
+
description: z.string().optional(),
|
|
743
|
+
}).transform((v) => {
|
|
744
|
+
return remap$(v, {
|
|
745
|
+
agentId: "agent_id",
|
|
746
|
+
});
|
|
747
|
+
});
|
|
748
|
+
|
|
643
749
|
export function nineToJSON(nine: Nine): string {
|
|
644
750
|
return JSON.stringify(Nine$outboundSchema.parse(nine));
|
|
645
751
|
}
|
|
@@ -666,20 +772,10 @@ export const ToolDefinition8Type$outboundSchema: z.ZodNativeEnum<
|
|
|
666
772
|
export const Eight$inboundSchema: z.ZodType<Eight, z.ZodTypeDef, unknown> = z
|
|
667
773
|
.object({
|
|
668
774
|
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
775
|
});
|
|
677
776
|
/** @internal */
|
|
678
777
|
export type Eight$Outbound = {
|
|
679
778
|
type: string;
|
|
680
|
-
agent_id: string;
|
|
681
|
-
name?: string | undefined;
|
|
682
|
-
description?: string | undefined;
|
|
683
779
|
};
|
|
684
780
|
|
|
685
781
|
/** @internal */
|
|
@@ -689,13 +785,6 @@ export const Eight$outboundSchema: z.ZodType<
|
|
|
689
785
|
Eight
|
|
690
786
|
> = z.object({
|
|
691
787
|
type: ToolDefinition8Type$outboundSchema,
|
|
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
|
-
});
|
|
699
788
|
});
|
|
700
789
|
|
|
701
790
|
export function eightToJSON(eight: Eight): string {
|
|
@@ -720,14 +809,137 @@ export const ToolDefinition7Type$outboundSchema: z.ZodNativeEnum<
|
|
|
720
809
|
typeof ToolDefinition7Type
|
|
721
810
|
> = ToolDefinition7Type$inboundSchema;
|
|
722
811
|
|
|
812
|
+
/** @internal */
|
|
813
|
+
export const ContainerType$inboundSchema: z.ZodNativeEnum<
|
|
814
|
+
typeof ContainerType
|
|
815
|
+
> = z.nativeEnum(ContainerType);
|
|
816
|
+
/** @internal */
|
|
817
|
+
export const ContainerType$outboundSchema: z.ZodNativeEnum<
|
|
818
|
+
typeof ContainerType
|
|
819
|
+
> = ContainerType$inboundSchema;
|
|
820
|
+
|
|
821
|
+
/** @internal */
|
|
822
|
+
export const ToolDefinitionContainerMemoryLimit$inboundSchema: z.ZodNativeEnum<
|
|
823
|
+
typeof ToolDefinitionContainerMemoryLimit
|
|
824
|
+
> = z.nativeEnum(ToolDefinitionContainerMemoryLimit);
|
|
825
|
+
/** @internal */
|
|
826
|
+
export const ToolDefinitionContainerMemoryLimit$outboundSchema: z.ZodNativeEnum<
|
|
827
|
+
typeof ToolDefinitionContainerMemoryLimit
|
|
828
|
+
> = ToolDefinitionContainerMemoryLimit$inboundSchema;
|
|
829
|
+
|
|
830
|
+
/** @internal */
|
|
831
|
+
export const ToolDefinitionContainer2$inboundSchema: z.ZodType<
|
|
832
|
+
ToolDefinitionContainer2,
|
|
833
|
+
z.ZodTypeDef,
|
|
834
|
+
unknown
|
|
835
|
+
> = z.object({
|
|
836
|
+
type: ContainerType$inboundSchema,
|
|
837
|
+
session_scope: SandboxSessionScope$inboundSchema.optional(),
|
|
838
|
+
file_ids: z.nullable(z.array(z.string())).optional(),
|
|
839
|
+
memory_limit: z.nullable(ToolDefinitionContainerMemoryLimit$inboundSchema)
|
|
840
|
+
.optional(),
|
|
841
|
+
}).transform((v) => {
|
|
842
|
+
return remap$(v, {
|
|
843
|
+
"session_scope": "sessionScope",
|
|
844
|
+
"file_ids": "fileIds",
|
|
845
|
+
"memory_limit": "memoryLimit",
|
|
846
|
+
});
|
|
847
|
+
});
|
|
848
|
+
/** @internal */
|
|
849
|
+
export type ToolDefinitionContainer2$Outbound = {
|
|
850
|
+
type: string;
|
|
851
|
+
session_scope?: string | undefined;
|
|
852
|
+
file_ids?: Array<string> | null | undefined;
|
|
853
|
+
memory_limit?: string | null | undefined;
|
|
854
|
+
};
|
|
855
|
+
|
|
856
|
+
/** @internal */
|
|
857
|
+
export const ToolDefinitionContainer2$outboundSchema: z.ZodType<
|
|
858
|
+
ToolDefinitionContainer2$Outbound,
|
|
859
|
+
z.ZodTypeDef,
|
|
860
|
+
ToolDefinitionContainer2
|
|
861
|
+
> = z.object({
|
|
862
|
+
type: ContainerType$outboundSchema,
|
|
863
|
+
sessionScope: SandboxSessionScope$outboundSchema.optional(),
|
|
864
|
+
fileIds: z.nullable(z.array(z.string())).optional(),
|
|
865
|
+
memoryLimit: z.nullable(ToolDefinitionContainerMemoryLimit$outboundSchema)
|
|
866
|
+
.optional(),
|
|
867
|
+
}).transform((v) => {
|
|
868
|
+
return remap$(v, {
|
|
869
|
+
sessionScope: "session_scope",
|
|
870
|
+
fileIds: "file_ids",
|
|
871
|
+
memoryLimit: "memory_limit",
|
|
872
|
+
});
|
|
873
|
+
});
|
|
874
|
+
|
|
875
|
+
export function toolDefinitionContainer2ToJSON(
|
|
876
|
+
toolDefinitionContainer2: ToolDefinitionContainer2,
|
|
877
|
+
): string {
|
|
878
|
+
return JSON.stringify(
|
|
879
|
+
ToolDefinitionContainer2$outboundSchema.parse(toolDefinitionContainer2),
|
|
880
|
+
);
|
|
881
|
+
}
|
|
882
|
+
export function toolDefinitionContainer2FromJSON(
|
|
883
|
+
jsonString: string,
|
|
884
|
+
): SafeParseResult<ToolDefinitionContainer2, SDKValidationError> {
|
|
885
|
+
return safeParse(
|
|
886
|
+
jsonString,
|
|
887
|
+
(x) => ToolDefinitionContainer2$inboundSchema.parse(JSON.parse(x)),
|
|
888
|
+
`Failed to parse 'ToolDefinitionContainer2' from JSON`,
|
|
889
|
+
);
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
/** @internal */
|
|
893
|
+
export const ToolDefinitionContainer$inboundSchema: z.ZodType<
|
|
894
|
+
ToolDefinitionContainer,
|
|
895
|
+
z.ZodTypeDef,
|
|
896
|
+
unknown
|
|
897
|
+
> = z.union([z.lazy(() => ToolDefinitionContainer2$inboundSchema), z.string()]);
|
|
898
|
+
/** @internal */
|
|
899
|
+
export type ToolDefinitionContainer$Outbound =
|
|
900
|
+
| ToolDefinitionContainer2$Outbound
|
|
901
|
+
| string;
|
|
902
|
+
|
|
903
|
+
/** @internal */
|
|
904
|
+
export const ToolDefinitionContainer$outboundSchema: z.ZodType<
|
|
905
|
+
ToolDefinitionContainer$Outbound,
|
|
906
|
+
z.ZodTypeDef,
|
|
907
|
+
ToolDefinitionContainer
|
|
908
|
+
> = z.union([
|
|
909
|
+
z.lazy(() => ToolDefinitionContainer2$outboundSchema),
|
|
910
|
+
z.string(),
|
|
911
|
+
]);
|
|
912
|
+
|
|
913
|
+
export function toolDefinitionContainerToJSON(
|
|
914
|
+
toolDefinitionContainer: ToolDefinitionContainer,
|
|
915
|
+
): string {
|
|
916
|
+
return JSON.stringify(
|
|
917
|
+
ToolDefinitionContainer$outboundSchema.parse(toolDefinitionContainer),
|
|
918
|
+
);
|
|
919
|
+
}
|
|
920
|
+
export function toolDefinitionContainerFromJSON(
|
|
921
|
+
jsonString: string,
|
|
922
|
+
): SafeParseResult<ToolDefinitionContainer, SDKValidationError> {
|
|
923
|
+
return safeParse(
|
|
924
|
+
jsonString,
|
|
925
|
+
(x) => ToolDefinitionContainer$inboundSchema.parse(JSON.parse(x)),
|
|
926
|
+
`Failed to parse 'ToolDefinitionContainer' from JSON`,
|
|
927
|
+
);
|
|
928
|
+
}
|
|
929
|
+
|
|
723
930
|
/** @internal */
|
|
724
931
|
export const Seven$inboundSchema: z.ZodType<Seven, z.ZodTypeDef, unknown> = z
|
|
725
932
|
.object({
|
|
726
933
|
type: ToolDefinition7Type$inboundSchema,
|
|
934
|
+
container: z.union([
|
|
935
|
+
z.lazy(() => ToolDefinitionContainer2$inboundSchema),
|
|
936
|
+
z.string(),
|
|
937
|
+
]),
|
|
727
938
|
});
|
|
728
939
|
/** @internal */
|
|
729
940
|
export type Seven$Outbound = {
|
|
730
941
|
type: string;
|
|
942
|
+
container: ToolDefinitionContainer2$Outbound | string;
|
|
731
943
|
};
|
|
732
944
|
|
|
733
945
|
/** @internal */
|
|
@@ -737,6 +949,10 @@ export const Seven$outboundSchema: z.ZodType<
|
|
|
737
949
|
Seven
|
|
738
950
|
> = z.object({
|
|
739
951
|
type: ToolDefinition7Type$outboundSchema,
|
|
952
|
+
container: z.union([
|
|
953
|
+
z.lazy(() => ToolDefinitionContainer2$outboundSchema),
|
|
954
|
+
z.string(),
|
|
955
|
+
]),
|
|
740
956
|
});
|
|
741
957
|
|
|
742
958
|
export function sevenToJSON(seven: Seven): string {
|
|
@@ -1815,11 +2031,12 @@ export const ToolDefinition$inboundSchema: z.ZodType<
|
|
|
1815
2031
|
z.lazy(() => ToolDefinition3$inboundSchema),
|
|
1816
2032
|
FunctionToolReference$inboundSchema,
|
|
1817
2033
|
z.lazy(() => ToolDefinition5$inboundSchema),
|
|
1818
|
-
z.lazy(() => Eight$inboundSchema),
|
|
1819
|
-
z.lazy(() => ToolDefinition2$inboundSchema),
|
|
1820
|
-
z.lazy(() => ToolDefinition6$inboundSchema),
|
|
1821
2034
|
z.lazy(() => Seven$inboundSchema),
|
|
1822
2035
|
z.lazy(() => Nine$inboundSchema),
|
|
2036
|
+
z.lazy(() => ToolDefinition2$inboundSchema),
|
|
2037
|
+
z.lazy(() => ToolDefinition6$inboundSchema),
|
|
2038
|
+
z.lazy(() => Eight$inboundSchema),
|
|
2039
|
+
z.lazy(() => Ten$inboundSchema),
|
|
1823
2040
|
z.union([
|
|
1824
2041
|
z.lazy(() => Four1$inboundSchema),
|
|
1825
2042
|
z.lazy(() => Four2$inboundSchema),
|
|
@@ -1830,11 +2047,12 @@ export type ToolDefinition$Outbound =
|
|
|
1830
2047
|
| ToolDefinition3$Outbound
|
|
1831
2048
|
| FunctionToolReference$Outbound
|
|
1832
2049
|
| ToolDefinition5$Outbound
|
|
1833
|
-
| Eight$Outbound
|
|
1834
|
-
| ToolDefinition2$Outbound
|
|
1835
|
-
| ToolDefinition6$Outbound
|
|
1836
2050
|
| Seven$Outbound
|
|
1837
2051
|
| Nine$Outbound
|
|
2052
|
+
| ToolDefinition2$Outbound
|
|
2053
|
+
| ToolDefinition6$Outbound
|
|
2054
|
+
| Eight$Outbound
|
|
2055
|
+
| Ten$Outbound
|
|
1838
2056
|
| Four1$Outbound
|
|
1839
2057
|
| Four2$Outbound;
|
|
1840
2058
|
|
|
@@ -1847,11 +2065,12 @@ export const ToolDefinition$outboundSchema: z.ZodType<
|
|
|
1847
2065
|
z.lazy(() => ToolDefinition3$outboundSchema),
|
|
1848
2066
|
FunctionToolReference$outboundSchema,
|
|
1849
2067
|
z.lazy(() => ToolDefinition5$outboundSchema),
|
|
1850
|
-
z.lazy(() => Eight$outboundSchema),
|
|
1851
|
-
z.lazy(() => ToolDefinition2$outboundSchema),
|
|
1852
|
-
z.lazy(() => ToolDefinition6$outboundSchema),
|
|
1853
2068
|
z.lazy(() => Seven$outboundSchema),
|
|
1854
2069
|
z.lazy(() => Nine$outboundSchema),
|
|
2070
|
+
z.lazy(() => ToolDefinition2$outboundSchema),
|
|
2071
|
+
z.lazy(() => ToolDefinition6$outboundSchema),
|
|
2072
|
+
z.lazy(() => Eight$outboundSchema),
|
|
2073
|
+
z.lazy(() => Ten$outboundSchema),
|
|
1855
2074
|
z.union([
|
|
1856
2075
|
z.lazy(() => Four1$outboundSchema),
|
|
1857
2076
|
z.lazy(() => Four2$outboundSchema),
|