@orq-ai/node 4.2.0-rc.27 → 4.2.0-rc.29
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 +458 -268
- package/bin/mcp-server.js.map +43 -43
- package/examples/package-lock.json +1 -1
- 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.js +1 -1
- package/models/components/conversationresponse.js +2 -2
- package/models/components/conversationwithmessagesresponse.js +2 -2
- package/models/components/partdoneevent.js +2 -2
- package/models/components/reasoningpart.js +2 -2
- package/models/operations/createagentrequest.d.ts +58 -10
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +59 -13
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createconversation.js +2 -2
- package/models/operations/createconversationresponse.js +4 -4
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.d.ts +8 -8
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +23 -23
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/generateconversationname.js +2 -2
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getevals.js +28 -28
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.d.ts +120 -18
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +117 -22
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +120 -18
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +117 -20
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +58 -10
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +59 -13
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updateconversation.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +14 -14
- 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/conversationresponse.ts +2 -2
- package/src/models/components/conversationwithmessagesresponse.ts +2 -2
- package/src/models/components/partdoneevent.ts +2 -2
- package/src/models/components/reasoningpart.ts +2 -2
- package/src/models/operations/createagentrequest.ts +132 -15
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createconversation.ts +2 -2
- package/src/models/operations/createconversationresponse.ts +4 -4
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +33 -29
- 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/generateconversationname.ts +2 -2
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +280 -36
- package/src/models/operations/streamrunagent.ts +323 -46
- package/src/models/operations/updateagent.ts +138 -15
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updateconversation.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +14 -14
|
@@ -1012,18 +1012,18 @@ export type StreamRunAgentAgentToolInputRunAgentsHeaders = {
|
|
|
1012
1012
|
encrypted?: boolean | undefined;
|
|
1013
1013
|
};
|
|
1014
1014
|
|
|
1015
|
-
export const
|
|
1015
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools16McpType =
|
|
1016
1016
|
{
|
|
1017
1017
|
Object: "object",
|
|
1018
1018
|
} as const;
|
|
1019
|
-
export type
|
|
1019
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools16McpType =
|
|
1020
1020
|
ClosedEnum<
|
|
1021
|
-
typeof
|
|
1021
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools16McpType
|
|
1022
1022
|
>;
|
|
1023
1023
|
|
|
1024
|
-
export type
|
|
1024
|
+
export type StreamRunAgentAgentToolInputRunAgentsSchema = {
|
|
1025
1025
|
type:
|
|
1026
|
-
|
|
1026
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools16McpType;
|
|
1027
1027
|
properties?: { [k: string]: any } | undefined;
|
|
1028
1028
|
required?: Array<string> | undefined;
|
|
1029
1029
|
};
|
|
@@ -1032,7 +1032,7 @@ export type AgentToolInputRunTools = {
|
|
|
1032
1032
|
id?: string | undefined;
|
|
1033
1033
|
name: string;
|
|
1034
1034
|
description?: string | undefined;
|
|
1035
|
-
schema:
|
|
1035
|
+
schema: StreamRunAgentAgentToolInputRunAgentsSchema;
|
|
1036
1036
|
};
|
|
1037
1037
|
|
|
1038
1038
|
/**
|
|
@@ -1089,6 +1089,63 @@ export type AgentToolInputRunMCPToolRun = {
|
|
|
1089
1089
|
requiresApproval?: boolean | undefined;
|
|
1090
1090
|
};
|
|
1091
1091
|
|
|
1092
|
+
/**
|
|
1093
|
+
* The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
1094
|
+
*/
|
|
1095
|
+
export type StreamRunAgentAgentToolInputRunSchema = {
|
|
1096
|
+
/**
|
|
1097
|
+
* The JSON Schema type
|
|
1098
|
+
*/
|
|
1099
|
+
type: string;
|
|
1100
|
+
/**
|
|
1101
|
+
* The properties of the JSON Schema object
|
|
1102
|
+
*/
|
|
1103
|
+
properties: { [k: string]: any };
|
|
1104
|
+
/**
|
|
1105
|
+
* Array of required property names
|
|
1106
|
+
*/
|
|
1107
|
+
required: Array<string>;
|
|
1108
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
1109
|
+
};
|
|
1110
|
+
|
|
1111
|
+
export type StreamRunAgentAgentToolInputRunJsonSchema = {
|
|
1112
|
+
/**
|
|
1113
|
+
* The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
1114
|
+
*/
|
|
1115
|
+
name: string;
|
|
1116
|
+
/**
|
|
1117
|
+
* A description of what the response format is for. This will be shown to the user.
|
|
1118
|
+
*/
|
|
1119
|
+
description: string;
|
|
1120
|
+
/**
|
|
1121
|
+
* The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
1122
|
+
*/
|
|
1123
|
+
schema: StreamRunAgentAgentToolInputRunSchema;
|
|
1124
|
+
/**
|
|
1125
|
+
* Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. Only compatible with `OpenAI` models.
|
|
1126
|
+
*/
|
|
1127
|
+
strict?: boolean | undefined;
|
|
1128
|
+
};
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* JSON Schema tool with inline definition for on-the-fly creation in run endpoint
|
|
1132
|
+
*/
|
|
1133
|
+
export type AgentToolInputRunJSONSchemaToolRun = {
|
|
1134
|
+
type: "json_schema";
|
|
1135
|
+
/**
|
|
1136
|
+
* Unique key of the tool as it will be displayed in the UI
|
|
1137
|
+
*/
|
|
1138
|
+
key: string;
|
|
1139
|
+
id?: string | undefined;
|
|
1140
|
+
displayName?: string | undefined;
|
|
1141
|
+
/**
|
|
1142
|
+
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
1143
|
+
*/
|
|
1144
|
+
description: string;
|
|
1145
|
+
jsonSchema: StreamRunAgentAgentToolInputRunJsonSchema;
|
|
1146
|
+
requiresApproval?: boolean | undefined;
|
|
1147
|
+
};
|
|
1148
|
+
|
|
1092
1149
|
/**
|
|
1093
1150
|
* The type must be "object"
|
|
1094
1151
|
*/
|
|
@@ -1473,7 +1530,7 @@ export type StreamRunAgentAgentToolInputRunGoogleSearchTool = {
|
|
|
1473
1530
|
};
|
|
1474
1531
|
|
|
1475
1532
|
/**
|
|
1476
|
-
* Tool configuration for agent run operations. Built-in tools only require a type and requires_approval, while custom tools (HTTP, Code, Function, MCP) support full inline definitions for on-the-fly creation.
|
|
1533
|
+
* Tool configuration for agent run operations. Built-in tools only require a type and requires_approval, while custom tools (HTTP, Code, Function, JSON Schema, MCP) support full inline definitions for on-the-fly creation.
|
|
1477
1534
|
*/
|
|
1478
1535
|
export type StreamRunAgentAgentToolInputRun =
|
|
1479
1536
|
| StreamRunAgentAgentToolInputRunGoogleSearchTool
|
|
@@ -1490,6 +1547,7 @@ export type StreamRunAgentAgentToolInputRun =
|
|
|
1490
1547
|
| AgentToolInputRunHTTPToolRun
|
|
1491
1548
|
| AgentToolInputRunCodeToolRun
|
|
1492
1549
|
| AgentToolInputRunFunctionToolRun
|
|
1550
|
+
| AgentToolInputRunJSONSchemaToolRun
|
|
1493
1551
|
| AgentToolInputRunMCPToolRun;
|
|
1494
1552
|
|
|
1495
1553
|
/**
|
|
@@ -1585,6 +1643,7 @@ export type StreamRunAgentSettings = {
|
|
|
1585
1643
|
| AgentToolInputRunHTTPToolRun
|
|
1586
1644
|
| AgentToolInputRunCodeToolRun
|
|
1587
1645
|
| AgentToolInputRunFunctionToolRun
|
|
1646
|
+
| AgentToolInputRunJSONSchemaToolRun
|
|
1588
1647
|
| AgentToolInputRunMCPToolRun
|
|
1589
1648
|
>
|
|
1590
1649
|
| undefined;
|
|
@@ -4567,63 +4626,74 @@ export function streamRunAgentAgentToolInputRunAgentsHeadersFromJSON(
|
|
|
4567
4626
|
}
|
|
4568
4627
|
|
|
4569
4628
|
/** @internal */
|
|
4570
|
-
export const
|
|
4629
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools16McpType$inboundSchema:
|
|
4571
4630
|
z.ZodNativeEnum<
|
|
4572
|
-
typeof
|
|
4631
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools16McpType
|
|
4573
4632
|
> = z.nativeEnum(
|
|
4574
|
-
|
|
4633
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools16McpType,
|
|
4575
4634
|
);
|
|
4576
4635
|
/** @internal */
|
|
4577
|
-
export const
|
|
4636
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools16McpType$outboundSchema:
|
|
4578
4637
|
z.ZodNativeEnum<
|
|
4579
|
-
typeof
|
|
4638
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools16McpType
|
|
4580
4639
|
> =
|
|
4581
|
-
|
|
4640
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools16McpType$inboundSchema;
|
|
4582
4641
|
|
|
4583
4642
|
/** @internal */
|
|
4584
|
-
export const
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4643
|
+
export const StreamRunAgentAgentToolInputRunAgentsSchema$inboundSchema:
|
|
4644
|
+
z.ZodType<
|
|
4645
|
+
StreamRunAgentAgentToolInputRunAgentsSchema,
|
|
4646
|
+
z.ZodTypeDef,
|
|
4647
|
+
unknown
|
|
4648
|
+
> = z.object({
|
|
4649
|
+
type:
|
|
4650
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools16McpType$inboundSchema,
|
|
4651
|
+
properties: z.record(z.any()).optional(),
|
|
4652
|
+
required: z.array(z.string()).optional(),
|
|
4653
|
+
});
|
|
4594
4654
|
/** @internal */
|
|
4595
|
-
export type
|
|
4655
|
+
export type StreamRunAgentAgentToolInputRunAgentsSchema$Outbound = {
|
|
4596
4656
|
type: string;
|
|
4597
4657
|
properties?: { [k: string]: any } | undefined;
|
|
4598
4658
|
required?: Array<string> | undefined;
|
|
4599
4659
|
};
|
|
4600
4660
|
|
|
4601
4661
|
/** @internal */
|
|
4602
|
-
export const
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4662
|
+
export const StreamRunAgentAgentToolInputRunAgentsSchema$outboundSchema:
|
|
4663
|
+
z.ZodType<
|
|
4664
|
+
StreamRunAgentAgentToolInputRunAgentsSchema$Outbound,
|
|
4665
|
+
z.ZodTypeDef,
|
|
4666
|
+
StreamRunAgentAgentToolInputRunAgentsSchema
|
|
4667
|
+
> = z.object({
|
|
4668
|
+
type:
|
|
4669
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools16McpType$outboundSchema,
|
|
4670
|
+
properties: z.record(z.any()).optional(),
|
|
4671
|
+
required: z.array(z.string()).optional(),
|
|
4672
|
+
});
|
|
4612
4673
|
|
|
4613
|
-
export function
|
|
4614
|
-
|
|
4674
|
+
export function streamRunAgentAgentToolInputRunAgentsSchemaToJSON(
|
|
4675
|
+
streamRunAgentAgentToolInputRunAgentsSchema:
|
|
4676
|
+
StreamRunAgentAgentToolInputRunAgentsSchema,
|
|
4615
4677
|
): string {
|
|
4616
4678
|
return JSON.stringify(
|
|
4617
|
-
|
|
4679
|
+
StreamRunAgentAgentToolInputRunAgentsSchema$outboundSchema.parse(
|
|
4680
|
+
streamRunAgentAgentToolInputRunAgentsSchema,
|
|
4681
|
+
),
|
|
4618
4682
|
);
|
|
4619
4683
|
}
|
|
4620
|
-
export function
|
|
4684
|
+
export function streamRunAgentAgentToolInputRunAgentsSchemaFromJSON(
|
|
4621
4685
|
jsonString: string,
|
|
4622
|
-
): SafeParseResult<
|
|
4686
|
+
): SafeParseResult<
|
|
4687
|
+
StreamRunAgentAgentToolInputRunAgentsSchema,
|
|
4688
|
+
SDKValidationError
|
|
4689
|
+
> {
|
|
4623
4690
|
return safeParse(
|
|
4624
4691
|
jsonString,
|
|
4625
|
-
(x) =>
|
|
4626
|
-
|
|
4692
|
+
(x) =>
|
|
4693
|
+
StreamRunAgentAgentToolInputRunAgentsSchema$inboundSchema.parse(
|
|
4694
|
+
JSON.parse(x),
|
|
4695
|
+
),
|
|
4696
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunAgentsSchema' from JSON`,
|
|
4627
4697
|
);
|
|
4628
4698
|
}
|
|
4629
4699
|
|
|
@@ -4633,17 +4703,19 @@ export const AgentToolInputRunTools$inboundSchema: z.ZodType<
|
|
|
4633
4703
|
z.ZodTypeDef,
|
|
4634
4704
|
unknown
|
|
4635
4705
|
> = z.object({
|
|
4636
|
-
id: z.string().default("
|
|
4706
|
+
id: z.string().default("01KEYB6F5YM71SS1938HYST5P2"),
|
|
4637
4707
|
name: z.string(),
|
|
4638
4708
|
description: z.string().optional(),
|
|
4639
|
-
schema: z.lazy(() =>
|
|
4709
|
+
schema: z.lazy(() =>
|
|
4710
|
+
StreamRunAgentAgentToolInputRunAgentsSchema$inboundSchema
|
|
4711
|
+
),
|
|
4640
4712
|
});
|
|
4641
4713
|
/** @internal */
|
|
4642
4714
|
export type AgentToolInputRunTools$Outbound = {
|
|
4643
4715
|
id: string;
|
|
4644
4716
|
name: string;
|
|
4645
4717
|
description?: string | undefined;
|
|
4646
|
-
schema:
|
|
4718
|
+
schema: StreamRunAgentAgentToolInputRunAgentsSchema$Outbound;
|
|
4647
4719
|
};
|
|
4648
4720
|
|
|
4649
4721
|
/** @internal */
|
|
@@ -4652,10 +4724,12 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
4652
4724
|
z.ZodTypeDef,
|
|
4653
4725
|
AgentToolInputRunTools
|
|
4654
4726
|
> = z.object({
|
|
4655
|
-
id: z.string().default("
|
|
4727
|
+
id: z.string().default("01KEYB6F5YM71SS1938HYST5P2"),
|
|
4656
4728
|
name: z.string(),
|
|
4657
4729
|
description: z.string().optional(),
|
|
4658
|
-
schema: z.lazy(() =>
|
|
4730
|
+
schema: z.lazy(() =>
|
|
4731
|
+
StreamRunAgentAgentToolInputRunAgentsSchema$outboundSchema
|
|
4732
|
+
),
|
|
4659
4733
|
});
|
|
4660
4734
|
|
|
4661
4735
|
export function agentToolInputRunToolsToJSON(
|
|
@@ -4819,6 +4893,203 @@ export function agentToolInputRunMCPToolRunFromJSON(
|
|
|
4819
4893
|
);
|
|
4820
4894
|
}
|
|
4821
4895
|
|
|
4896
|
+
/** @internal */
|
|
4897
|
+
export const StreamRunAgentAgentToolInputRunSchema$inboundSchema: z.ZodType<
|
|
4898
|
+
StreamRunAgentAgentToolInputRunSchema,
|
|
4899
|
+
z.ZodTypeDef,
|
|
4900
|
+
unknown
|
|
4901
|
+
> = collectExtraKeys$(
|
|
4902
|
+
z.object({
|
|
4903
|
+
type: z.string(),
|
|
4904
|
+
properties: z.record(z.any()),
|
|
4905
|
+
required: z.array(z.string()),
|
|
4906
|
+
}).catchall(z.any()),
|
|
4907
|
+
"additionalProperties",
|
|
4908
|
+
true,
|
|
4909
|
+
);
|
|
4910
|
+
/** @internal */
|
|
4911
|
+
export type StreamRunAgentAgentToolInputRunSchema$Outbound = {
|
|
4912
|
+
type: string;
|
|
4913
|
+
properties: { [k: string]: any };
|
|
4914
|
+
required: Array<string>;
|
|
4915
|
+
[additionalProperties: string]: unknown;
|
|
4916
|
+
};
|
|
4917
|
+
|
|
4918
|
+
/** @internal */
|
|
4919
|
+
export const StreamRunAgentAgentToolInputRunSchema$outboundSchema: z.ZodType<
|
|
4920
|
+
StreamRunAgentAgentToolInputRunSchema$Outbound,
|
|
4921
|
+
z.ZodTypeDef,
|
|
4922
|
+
StreamRunAgentAgentToolInputRunSchema
|
|
4923
|
+
> = z.object({
|
|
4924
|
+
type: z.string(),
|
|
4925
|
+
properties: z.record(z.any()),
|
|
4926
|
+
required: z.array(z.string()),
|
|
4927
|
+
additionalProperties: z.record(z.any()).optional(),
|
|
4928
|
+
}).transform((v) => {
|
|
4929
|
+
return {
|
|
4930
|
+
...v.additionalProperties,
|
|
4931
|
+
...remap$(v, {
|
|
4932
|
+
additionalProperties: null,
|
|
4933
|
+
}),
|
|
4934
|
+
};
|
|
4935
|
+
});
|
|
4936
|
+
|
|
4937
|
+
export function streamRunAgentAgentToolInputRunSchemaToJSON(
|
|
4938
|
+
streamRunAgentAgentToolInputRunSchema: StreamRunAgentAgentToolInputRunSchema,
|
|
4939
|
+
): string {
|
|
4940
|
+
return JSON.stringify(
|
|
4941
|
+
StreamRunAgentAgentToolInputRunSchema$outboundSchema.parse(
|
|
4942
|
+
streamRunAgentAgentToolInputRunSchema,
|
|
4943
|
+
),
|
|
4944
|
+
);
|
|
4945
|
+
}
|
|
4946
|
+
export function streamRunAgentAgentToolInputRunSchemaFromJSON(
|
|
4947
|
+
jsonString: string,
|
|
4948
|
+
): SafeParseResult<StreamRunAgentAgentToolInputRunSchema, SDKValidationError> {
|
|
4949
|
+
return safeParse(
|
|
4950
|
+
jsonString,
|
|
4951
|
+
(x) =>
|
|
4952
|
+
StreamRunAgentAgentToolInputRunSchema$inboundSchema.parse(JSON.parse(x)),
|
|
4953
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunSchema' from JSON`,
|
|
4954
|
+
);
|
|
4955
|
+
}
|
|
4956
|
+
|
|
4957
|
+
/** @internal */
|
|
4958
|
+
export const StreamRunAgentAgentToolInputRunJsonSchema$inboundSchema: z.ZodType<
|
|
4959
|
+
StreamRunAgentAgentToolInputRunJsonSchema,
|
|
4960
|
+
z.ZodTypeDef,
|
|
4961
|
+
unknown
|
|
4962
|
+
> = z.object({
|
|
4963
|
+
name: z.string(),
|
|
4964
|
+
description: z.string(),
|
|
4965
|
+
schema: z.lazy(() => StreamRunAgentAgentToolInputRunSchema$inboundSchema),
|
|
4966
|
+
strict: z.boolean().optional(),
|
|
4967
|
+
});
|
|
4968
|
+
/** @internal */
|
|
4969
|
+
export type StreamRunAgentAgentToolInputRunJsonSchema$Outbound = {
|
|
4970
|
+
name: string;
|
|
4971
|
+
description: string;
|
|
4972
|
+
schema: StreamRunAgentAgentToolInputRunSchema$Outbound;
|
|
4973
|
+
strict?: boolean | undefined;
|
|
4974
|
+
};
|
|
4975
|
+
|
|
4976
|
+
/** @internal */
|
|
4977
|
+
export const StreamRunAgentAgentToolInputRunJsonSchema$outboundSchema:
|
|
4978
|
+
z.ZodType<
|
|
4979
|
+
StreamRunAgentAgentToolInputRunJsonSchema$Outbound,
|
|
4980
|
+
z.ZodTypeDef,
|
|
4981
|
+
StreamRunAgentAgentToolInputRunJsonSchema
|
|
4982
|
+
> = z.object({
|
|
4983
|
+
name: z.string(),
|
|
4984
|
+
description: z.string(),
|
|
4985
|
+
schema: z.lazy(() => StreamRunAgentAgentToolInputRunSchema$outboundSchema),
|
|
4986
|
+
strict: z.boolean().optional(),
|
|
4987
|
+
});
|
|
4988
|
+
|
|
4989
|
+
export function streamRunAgentAgentToolInputRunJsonSchemaToJSON(
|
|
4990
|
+
streamRunAgentAgentToolInputRunJsonSchema:
|
|
4991
|
+
StreamRunAgentAgentToolInputRunJsonSchema,
|
|
4992
|
+
): string {
|
|
4993
|
+
return JSON.stringify(
|
|
4994
|
+
StreamRunAgentAgentToolInputRunJsonSchema$outboundSchema.parse(
|
|
4995
|
+
streamRunAgentAgentToolInputRunJsonSchema,
|
|
4996
|
+
),
|
|
4997
|
+
);
|
|
4998
|
+
}
|
|
4999
|
+
export function streamRunAgentAgentToolInputRunJsonSchemaFromJSON(
|
|
5000
|
+
jsonString: string,
|
|
5001
|
+
): SafeParseResult<
|
|
5002
|
+
StreamRunAgentAgentToolInputRunJsonSchema,
|
|
5003
|
+
SDKValidationError
|
|
5004
|
+
> {
|
|
5005
|
+
return safeParse(
|
|
5006
|
+
jsonString,
|
|
5007
|
+
(x) =>
|
|
5008
|
+
StreamRunAgentAgentToolInputRunJsonSchema$inboundSchema.parse(
|
|
5009
|
+
JSON.parse(x),
|
|
5010
|
+
),
|
|
5011
|
+
`Failed to parse 'StreamRunAgentAgentToolInputRunJsonSchema' from JSON`,
|
|
5012
|
+
);
|
|
5013
|
+
}
|
|
5014
|
+
|
|
5015
|
+
/** @internal */
|
|
5016
|
+
export const AgentToolInputRunJSONSchemaToolRun$inboundSchema: z.ZodType<
|
|
5017
|
+
AgentToolInputRunJSONSchemaToolRun,
|
|
5018
|
+
z.ZodTypeDef,
|
|
5019
|
+
unknown
|
|
5020
|
+
> = z.object({
|
|
5021
|
+
type: z.literal("json_schema"),
|
|
5022
|
+
key: z.string(),
|
|
5023
|
+
_id: z.string().optional(),
|
|
5024
|
+
display_name: z.string().optional(),
|
|
5025
|
+
description: z.string(),
|
|
5026
|
+
json_schema: z.lazy(() =>
|
|
5027
|
+
StreamRunAgentAgentToolInputRunJsonSchema$inboundSchema
|
|
5028
|
+
),
|
|
5029
|
+
requires_approval: z.boolean().default(false),
|
|
5030
|
+
}).transform((v) => {
|
|
5031
|
+
return remap$(v, {
|
|
5032
|
+
"_id": "id",
|
|
5033
|
+
"display_name": "displayName",
|
|
5034
|
+
"json_schema": "jsonSchema",
|
|
5035
|
+
"requires_approval": "requiresApproval",
|
|
5036
|
+
});
|
|
5037
|
+
});
|
|
5038
|
+
/** @internal */
|
|
5039
|
+
export type AgentToolInputRunJSONSchemaToolRun$Outbound = {
|
|
5040
|
+
type: "json_schema";
|
|
5041
|
+
key: string;
|
|
5042
|
+
_id?: string | undefined;
|
|
5043
|
+
display_name?: string | undefined;
|
|
5044
|
+
description: string;
|
|
5045
|
+
json_schema: StreamRunAgentAgentToolInputRunJsonSchema$Outbound;
|
|
5046
|
+
requires_approval: boolean;
|
|
5047
|
+
};
|
|
5048
|
+
|
|
5049
|
+
/** @internal */
|
|
5050
|
+
export const AgentToolInputRunJSONSchemaToolRun$outboundSchema: z.ZodType<
|
|
5051
|
+
AgentToolInputRunJSONSchemaToolRun$Outbound,
|
|
5052
|
+
z.ZodTypeDef,
|
|
5053
|
+
AgentToolInputRunJSONSchemaToolRun
|
|
5054
|
+
> = z.object({
|
|
5055
|
+
type: z.literal("json_schema"),
|
|
5056
|
+
key: z.string(),
|
|
5057
|
+
id: z.string().optional(),
|
|
5058
|
+
displayName: z.string().optional(),
|
|
5059
|
+
description: z.string(),
|
|
5060
|
+
jsonSchema: z.lazy(() =>
|
|
5061
|
+
StreamRunAgentAgentToolInputRunJsonSchema$outboundSchema
|
|
5062
|
+
),
|
|
5063
|
+
requiresApproval: z.boolean().default(false),
|
|
5064
|
+
}).transform((v) => {
|
|
5065
|
+
return remap$(v, {
|
|
5066
|
+
id: "_id",
|
|
5067
|
+
displayName: "display_name",
|
|
5068
|
+
jsonSchema: "json_schema",
|
|
5069
|
+
requiresApproval: "requires_approval",
|
|
5070
|
+
});
|
|
5071
|
+
});
|
|
5072
|
+
|
|
5073
|
+
export function agentToolInputRunJSONSchemaToolRunToJSON(
|
|
5074
|
+
agentToolInputRunJSONSchemaToolRun: AgentToolInputRunJSONSchemaToolRun,
|
|
5075
|
+
): string {
|
|
5076
|
+
return JSON.stringify(
|
|
5077
|
+
AgentToolInputRunJSONSchemaToolRun$outboundSchema.parse(
|
|
5078
|
+
agentToolInputRunJSONSchemaToolRun,
|
|
5079
|
+
),
|
|
5080
|
+
);
|
|
5081
|
+
}
|
|
5082
|
+
export function agentToolInputRunJSONSchemaToolRunFromJSON(
|
|
5083
|
+
jsonString: string,
|
|
5084
|
+
): SafeParseResult<AgentToolInputRunJSONSchemaToolRun, SDKValidationError> {
|
|
5085
|
+
return safeParse(
|
|
5086
|
+
jsonString,
|
|
5087
|
+
(x) =>
|
|
5088
|
+
AgentToolInputRunJSONSchemaToolRun$inboundSchema.parse(JSON.parse(x)),
|
|
5089
|
+
`Failed to parse 'AgentToolInputRunJSONSchemaToolRun' from JSON`,
|
|
5090
|
+
);
|
|
5091
|
+
}
|
|
5092
|
+
|
|
4822
5093
|
/** @internal */
|
|
4823
5094
|
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType$inboundSchema:
|
|
4824
5095
|
z.ZodNativeEnum<
|
|
@@ -6321,6 +6592,7 @@ export const StreamRunAgentAgentToolInputRun$inboundSchema: z.ZodType<
|
|
|
6321
6592
|
z.lazy(() => AgentToolInputRunHTTPToolRun$inboundSchema),
|
|
6322
6593
|
z.lazy(() => AgentToolInputRunCodeToolRun$inboundSchema),
|
|
6323
6594
|
z.lazy(() => AgentToolInputRunFunctionToolRun$inboundSchema),
|
|
6595
|
+
z.lazy(() => AgentToolInputRunJSONSchemaToolRun$inboundSchema),
|
|
6324
6596
|
z.lazy(() => AgentToolInputRunMCPToolRun$inboundSchema),
|
|
6325
6597
|
]);
|
|
6326
6598
|
/** @internal */
|
|
@@ -6339,6 +6611,7 @@ export type StreamRunAgentAgentToolInputRun$Outbound =
|
|
|
6339
6611
|
| AgentToolInputRunHTTPToolRun$Outbound
|
|
6340
6612
|
| AgentToolInputRunCodeToolRun$Outbound
|
|
6341
6613
|
| AgentToolInputRunFunctionToolRun$Outbound
|
|
6614
|
+
| AgentToolInputRunJSONSchemaToolRun$Outbound
|
|
6342
6615
|
| AgentToolInputRunMCPToolRun$Outbound;
|
|
6343
6616
|
|
|
6344
6617
|
/** @internal */
|
|
@@ -6375,6 +6648,7 @@ export const StreamRunAgentAgentToolInputRun$outboundSchema: z.ZodType<
|
|
|
6375
6648
|
z.lazy(() => AgentToolInputRunHTTPToolRun$outboundSchema),
|
|
6376
6649
|
z.lazy(() => AgentToolInputRunCodeToolRun$outboundSchema),
|
|
6377
6650
|
z.lazy(() => AgentToolInputRunFunctionToolRun$outboundSchema),
|
|
6651
|
+
z.lazy(() => AgentToolInputRunJSONSchemaToolRun$outboundSchema),
|
|
6378
6652
|
z.lazy(() => AgentToolInputRunMCPToolRun$outboundSchema),
|
|
6379
6653
|
]);
|
|
6380
6654
|
|
|
@@ -6576,6 +6850,7 @@ export const StreamRunAgentSettings$inboundSchema: z.ZodType<
|
|
|
6576
6850
|
z.lazy(() => AgentToolInputRunHTTPToolRun$inboundSchema),
|
|
6577
6851
|
z.lazy(() => AgentToolInputRunCodeToolRun$inboundSchema),
|
|
6578
6852
|
z.lazy(() => AgentToolInputRunFunctionToolRun$inboundSchema),
|
|
6853
|
+
z.lazy(() => AgentToolInputRunJSONSchemaToolRun$inboundSchema),
|
|
6579
6854
|
z.lazy(() => AgentToolInputRunMCPToolRun$inboundSchema),
|
|
6580
6855
|
]),
|
|
6581
6856
|
).optional(),
|
|
@@ -6612,6 +6887,7 @@ export type StreamRunAgentSettings$Outbound = {
|
|
|
6612
6887
|
| AgentToolInputRunHTTPToolRun$Outbound
|
|
6613
6888
|
| AgentToolInputRunCodeToolRun$Outbound
|
|
6614
6889
|
| AgentToolInputRunFunctionToolRun$Outbound
|
|
6890
|
+
| AgentToolInputRunJSONSchemaToolRun$Outbound
|
|
6615
6891
|
| AgentToolInputRunMCPToolRun$Outbound
|
|
6616
6892
|
>
|
|
6617
6893
|
| undefined;
|
|
@@ -6666,6 +6942,7 @@ export const StreamRunAgentSettings$outboundSchema: z.ZodType<
|
|
|
6666
6942
|
z.lazy(() => AgentToolInputRunHTTPToolRun$outboundSchema),
|
|
6667
6943
|
z.lazy(() => AgentToolInputRunCodeToolRun$outboundSchema),
|
|
6668
6944
|
z.lazy(() => AgentToolInputRunFunctionToolRun$outboundSchema),
|
|
6945
|
+
z.lazy(() => AgentToolInputRunJSONSchemaToolRun$outboundSchema),
|
|
6669
6946
|
z.lazy(() => AgentToolInputRunMCPToolRun$outboundSchema),
|
|
6670
6947
|
]),
|
|
6671
6948
|
).optional(),
|