@orq-ai/node 4.13.0-rc.4 → 4.13.0-rc.5
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/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/agenttoolinputcrud.d.ts +69 -3
- package/models/components/agenttoolinputcrud.d.ts.map +1 -1
- package/models/components/agenttoolinputcrud.js +42 -4
- package/models/components/agenttoolinputcrud.js.map +1 -1
- package/models/components/evaluatorresponsefunction.js +2 -2
- package/models/components/evaluatorresponsehttp.js +2 -2
- package/models/components/evaluatorresponsejsonschema.js +2 -2
- package/models/components/evaluatorresponsellm.js +2 -2
- package/models/components/evaluatorresponsepython.js +2 -2
- package/models/components/evaluatorresponseragas.js +2 -2
- package/models/components/evaluatorresponsetypescript.js +2 -2
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.d.ts +74 -20
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +48 -16
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +74 -20
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +48 -16
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/sdk/feedback.d.ts +6 -0
- package/sdk/feedback.d.ts.map +1 -1
- package/sdk/feedback.js +6 -0
- package/sdk/feedback.js.map +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/agenttoolinputcrud.ts +113 -7
- package/src/models/components/evaluatorresponsefunction.ts +2 -2
- package/src/models/components/evaluatorresponsehttp.ts +2 -2
- package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
- package/src/models/components/evaluatorresponsellm.ts +2 -2
- package/src/models/components/evaluatorresponsepython.ts +2 -2
- package/src/models/components/evaluatorresponseragas.ts +2 -2
- package/src/models/components/evaluatorresponsetypescript.ts +2 -2
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +127 -33
- package/src/models/operations/streamrunagent.ts +139 -33
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/feedback.ts +6 -0
|
@@ -1193,18 +1193,18 @@ export type StreamRunAgentAgentToolInputRunAgentsHeaders = {
|
|
|
1193
1193
|
encrypted?: boolean | undefined;
|
|
1194
1194
|
};
|
|
1195
1195
|
|
|
1196
|
-
export const
|
|
1196
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools19McpType =
|
|
1197
1197
|
{
|
|
1198
1198
|
Object: "object",
|
|
1199
1199
|
} as const;
|
|
1200
|
-
export type
|
|
1200
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools19McpType =
|
|
1201
1201
|
ClosedEnum<
|
|
1202
|
-
typeof
|
|
1202
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools19McpType
|
|
1203
1203
|
>;
|
|
1204
1204
|
|
|
1205
1205
|
export type StreamRunAgentAgentToolInputRunAgentsSchema = {
|
|
1206
1206
|
type:
|
|
1207
|
-
|
|
1207
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools19McpType;
|
|
1208
1208
|
properties?: { [k: string]: any } | undefined;
|
|
1209
1209
|
required?: Array<string> | undefined;
|
|
1210
1210
|
};
|
|
@@ -1330,16 +1330,16 @@ export type AgentToolInputRunJSONSchemaToolRun = {
|
|
|
1330
1330
|
/**
|
|
1331
1331
|
* The type must be "object"
|
|
1332
1332
|
*/
|
|
1333
|
-
export const
|
|
1333
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools17FunctionType =
|
|
1334
1334
|
{
|
|
1335
1335
|
Object: "object",
|
|
1336
1336
|
} as const;
|
|
1337
1337
|
/**
|
|
1338
1338
|
* The type must be "object"
|
|
1339
1339
|
*/
|
|
1340
|
-
export type
|
|
1340
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools17FunctionType =
|
|
1341
1341
|
ClosedEnum<
|
|
1342
|
-
typeof
|
|
1342
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools17FunctionType
|
|
1343
1343
|
>;
|
|
1344
1344
|
|
|
1345
1345
|
/**
|
|
@@ -1350,7 +1350,7 @@ export type StreamRunAgentAgentToolInputRunAgentsParameters = {
|
|
|
1350
1350
|
* The type must be "object"
|
|
1351
1351
|
*/
|
|
1352
1352
|
type:
|
|
1353
|
-
|
|
1353
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools17FunctionType;
|
|
1354
1354
|
/**
|
|
1355
1355
|
* The properties of the function parameters
|
|
1356
1356
|
*/
|
|
@@ -1400,16 +1400,16 @@ export type AgentToolInputRunFunctionToolRun = {
|
|
|
1400
1400
|
/**
|
|
1401
1401
|
* The type must be "object"
|
|
1402
1402
|
*/
|
|
1403
|
-
export const
|
|
1403
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools16CodeToolType =
|
|
1404
1404
|
{
|
|
1405
1405
|
Object: "object",
|
|
1406
1406
|
} as const;
|
|
1407
1407
|
/**
|
|
1408
1408
|
* The type must be "object"
|
|
1409
1409
|
*/
|
|
1410
|
-
export type
|
|
1410
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools16CodeToolType =
|
|
1411
1411
|
ClosedEnum<
|
|
1412
|
-
typeof
|
|
1412
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools16CodeToolType
|
|
1413
1413
|
>;
|
|
1414
1414
|
|
|
1415
1415
|
/**
|
|
@@ -1420,7 +1420,7 @@ export type StreamRunAgentAgentToolInputRunParameters = {
|
|
|
1420
1420
|
* The type must be "object"
|
|
1421
1421
|
*/
|
|
1422
1422
|
type:
|
|
1423
|
-
|
|
1423
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools16CodeToolType;
|
|
1424
1424
|
/**
|
|
1425
1425
|
* The properties of the function parameters
|
|
1426
1426
|
*/
|
|
@@ -1528,7 +1528,7 @@ export type AgentToolInputRunBlueprint = {
|
|
|
1528
1528
|
/**
|
|
1529
1529
|
* The type of the argument.
|
|
1530
1530
|
*/
|
|
1531
|
-
export const
|
|
1531
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15HttpType =
|
|
1532
1532
|
{
|
|
1533
1533
|
String: "string",
|
|
1534
1534
|
Number: "number",
|
|
@@ -1537,9 +1537,9 @@ export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTool
|
|
|
1537
1537
|
/**
|
|
1538
1538
|
* The type of the argument.
|
|
1539
1539
|
*/
|
|
1540
|
-
export type
|
|
1540
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15HttpType =
|
|
1541
1541
|
ClosedEnum<
|
|
1542
|
-
typeof
|
|
1542
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15HttpType
|
|
1543
1543
|
>;
|
|
1544
1544
|
|
|
1545
1545
|
/**
|
|
@@ -1552,7 +1552,7 @@ export type AgentToolInputRunArguments = {
|
|
|
1552
1552
|
* The type of the argument.
|
|
1553
1553
|
*/
|
|
1554
1554
|
type:
|
|
1555
|
-
|
|
1555
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15HttpType;
|
|
1556
1556
|
/**
|
|
1557
1557
|
* A description of the argument.
|
|
1558
1558
|
*/
|
|
@@ -1616,6 +1616,36 @@ export type AgentToolInputRunCodeInterpreterTool = {
|
|
|
1616
1616
|
configuration?: { [k: string]: any } | undefined;
|
|
1617
1617
|
};
|
|
1618
1618
|
|
|
1619
|
+
/**
|
|
1620
|
+
* Delegate a subtask to a secondary model for execution
|
|
1621
|
+
*/
|
|
1622
|
+
export type AgentToolInputRunSidekickTool = {
|
|
1623
|
+
type: "sidekick";
|
|
1624
|
+
/**
|
|
1625
|
+
* Whether this tool requires approval before execution
|
|
1626
|
+
*/
|
|
1627
|
+
requiresApproval?: boolean | undefined;
|
|
1628
|
+
/**
|
|
1629
|
+
* Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
|
|
1630
|
+
*/
|
|
1631
|
+
configuration?: { [k: string]: any } | undefined;
|
|
1632
|
+
};
|
|
1633
|
+
|
|
1634
|
+
/**
|
|
1635
|
+
* Consult a secondary model for advice on the current task
|
|
1636
|
+
*/
|
|
1637
|
+
export type AgentToolInputRunAdvisorTool = {
|
|
1638
|
+
type: "advisor";
|
|
1639
|
+
/**
|
|
1640
|
+
* Whether this tool requires approval before execution
|
|
1641
|
+
*/
|
|
1642
|
+
requiresApproval?: boolean | undefined;
|
|
1643
|
+
/**
|
|
1644
|
+
* Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
|
|
1645
|
+
*/
|
|
1646
|
+
configuration?: { [k: string]: any } | undefined;
|
|
1647
|
+
};
|
|
1648
|
+
|
|
1619
1649
|
/**
|
|
1620
1650
|
* Returns the current date and time
|
|
1621
1651
|
*/
|
|
@@ -1796,6 +1826,8 @@ export type StreamRunAgentAgentToolInputRun =
|
|
|
1796
1826
|
| AgentToolInputRunRetrieveKnowledgeBasesTool
|
|
1797
1827
|
| AgentToolInputRunQueryKnowledgeBaseTool
|
|
1798
1828
|
| AgentToolInputRunCurrentDateTool
|
|
1829
|
+
| AgentToolInputRunAdvisorTool
|
|
1830
|
+
| AgentToolInputRunSidekickTool
|
|
1799
1831
|
| AgentToolInputRunCodeInterpreterTool
|
|
1800
1832
|
| AgentToolInputRunHTTPToolRun
|
|
1801
1833
|
| AgentToolInputRunCodeToolRun
|
|
@@ -1893,6 +1925,8 @@ export type StreamRunAgentSettings = {
|
|
|
1893
1925
|
| AgentToolInputRunRetrieveKnowledgeBasesTool
|
|
1894
1926
|
| AgentToolInputRunQueryKnowledgeBaseTool
|
|
1895
1927
|
| AgentToolInputRunCurrentDateTool
|
|
1928
|
+
| AgentToolInputRunAdvisorTool
|
|
1929
|
+
| AgentToolInputRunSidekickTool
|
|
1896
1930
|
| AgentToolInputRunCodeInterpreterTool
|
|
1897
1931
|
| AgentToolInputRunHTTPToolRun
|
|
1898
1932
|
| AgentToolInputRunCodeToolRun
|
|
@@ -4058,11 +4092,11 @@ export function streamRunAgentAgentToolInputRunAgentsHeadersToJSON(
|
|
|
4058
4092
|
}
|
|
4059
4093
|
|
|
4060
4094
|
/** @internal */
|
|
4061
|
-
export const
|
|
4095
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools19McpType$outboundSchema:
|
|
4062
4096
|
z.ZodNativeEnum<
|
|
4063
|
-
typeof
|
|
4097
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools19McpType
|
|
4064
4098
|
> = z.nativeEnum(
|
|
4065
|
-
|
|
4099
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools19McpType,
|
|
4066
4100
|
);
|
|
4067
4101
|
|
|
4068
4102
|
/** @internal */
|
|
@@ -4080,7 +4114,7 @@ export const StreamRunAgentAgentToolInputRunAgentsSchema$outboundSchema:
|
|
|
4080
4114
|
StreamRunAgentAgentToolInputRunAgentsSchema
|
|
4081
4115
|
> = z.object({
|
|
4082
4116
|
type:
|
|
4083
|
-
|
|
4117
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools19McpType$outboundSchema,
|
|
4084
4118
|
properties: z.record(z.any()).optional(),
|
|
4085
4119
|
required: z.array(z.string()).optional(),
|
|
4086
4120
|
});
|
|
@@ -4110,7 +4144,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
4110
4144
|
z.ZodTypeDef,
|
|
4111
4145
|
AgentToolInputRunTools
|
|
4112
4146
|
> = z.object({
|
|
4113
|
-
id: z.string().default("
|
|
4147
|
+
id: z.string().default("01KYDMWCSG5D6M80BRHKT56TJJ"),
|
|
4114
4148
|
name: z.string(),
|
|
4115
4149
|
description: z.string().optional(),
|
|
4116
4150
|
schema: z.lazy(() =>
|
|
@@ -4325,11 +4359,11 @@ export function agentToolInputRunJSONSchemaToolRunToJSON(
|
|
|
4325
4359
|
}
|
|
4326
4360
|
|
|
4327
4361
|
/** @internal */
|
|
4328
|
-
export const
|
|
4362
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools17FunctionType$outboundSchema:
|
|
4329
4363
|
z.ZodNativeEnum<
|
|
4330
|
-
typeof
|
|
4364
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools17FunctionType
|
|
4331
4365
|
> = z.nativeEnum(
|
|
4332
|
-
|
|
4366
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools17FunctionType,
|
|
4333
4367
|
);
|
|
4334
4368
|
|
|
4335
4369
|
/** @internal */
|
|
@@ -4348,7 +4382,7 @@ export const StreamRunAgentAgentToolInputRunAgentsParameters$outboundSchema:
|
|
|
4348
4382
|
StreamRunAgentAgentToolInputRunAgentsParameters
|
|
4349
4383
|
> = z.object({
|
|
4350
4384
|
type:
|
|
4351
|
-
|
|
4385
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools17FunctionType$outboundSchema,
|
|
4352
4386
|
properties: z.record(z.any()),
|
|
4353
4387
|
required: z.array(z.string()),
|
|
4354
4388
|
additionalProperties: z.record(z.any()).optional(),
|
|
@@ -4452,11 +4486,11 @@ export function agentToolInputRunFunctionToolRunToJSON(
|
|
|
4452
4486
|
}
|
|
4453
4487
|
|
|
4454
4488
|
/** @internal */
|
|
4455
|
-
export const
|
|
4489
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools16CodeToolType$outboundSchema:
|
|
4456
4490
|
z.ZodNativeEnum<
|
|
4457
|
-
typeof
|
|
4491
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools16CodeToolType
|
|
4458
4492
|
> = z.nativeEnum(
|
|
4459
|
-
|
|
4493
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools16CodeToolType,
|
|
4460
4494
|
);
|
|
4461
4495
|
|
|
4462
4496
|
/** @internal */
|
|
@@ -4475,7 +4509,7 @@ export const StreamRunAgentAgentToolInputRunParameters$outboundSchema:
|
|
|
4475
4509
|
StreamRunAgentAgentToolInputRunParameters
|
|
4476
4510
|
> = z.object({
|
|
4477
4511
|
type:
|
|
4478
|
-
|
|
4512
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools16CodeToolType$outboundSchema,
|
|
4479
4513
|
properties: z.record(z.any()),
|
|
4480
4514
|
required: z.array(z.string()),
|
|
4481
4515
|
additionalProperties: z.record(z.any()).optional(),
|
|
@@ -4664,11 +4698,11 @@ export function agentToolInputRunBlueprintToJSON(
|
|
|
4664
4698
|
}
|
|
4665
4699
|
|
|
4666
4700
|
/** @internal */
|
|
4667
|
-
export const
|
|
4701
|
+
export const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15HttpType$outboundSchema:
|
|
4668
4702
|
z.ZodNativeEnum<
|
|
4669
|
-
typeof
|
|
4703
|
+
typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15HttpType
|
|
4670
4704
|
> = z.nativeEnum(
|
|
4671
|
-
|
|
4705
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15HttpType,
|
|
4672
4706
|
);
|
|
4673
4707
|
|
|
4674
4708
|
/** @internal */
|
|
@@ -4706,7 +4740,7 @@ export const AgentToolInputRunArguments$outboundSchema: z.ZodType<
|
|
|
4706
4740
|
AgentToolInputRunArguments
|
|
4707
4741
|
> = z.object({
|
|
4708
4742
|
type:
|
|
4709
|
-
|
|
4743
|
+
StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15HttpType$outboundSchema,
|
|
4710
4744
|
description: z.string(),
|
|
4711
4745
|
sendToModel: z.boolean().default(true),
|
|
4712
4746
|
defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
@@ -4826,6 +4860,70 @@ export function agentToolInputRunCodeInterpreterToolToJSON(
|
|
|
4826
4860
|
);
|
|
4827
4861
|
}
|
|
4828
4862
|
|
|
4863
|
+
/** @internal */
|
|
4864
|
+
export type AgentToolInputRunSidekickTool$Outbound = {
|
|
4865
|
+
type: "sidekick";
|
|
4866
|
+
requires_approval?: boolean | undefined;
|
|
4867
|
+
configuration?: { [k: string]: any } | undefined;
|
|
4868
|
+
};
|
|
4869
|
+
|
|
4870
|
+
/** @internal */
|
|
4871
|
+
export const AgentToolInputRunSidekickTool$outboundSchema: z.ZodType<
|
|
4872
|
+
AgentToolInputRunSidekickTool$Outbound,
|
|
4873
|
+
z.ZodTypeDef,
|
|
4874
|
+
AgentToolInputRunSidekickTool
|
|
4875
|
+
> = z.object({
|
|
4876
|
+
type: z.literal("sidekick"),
|
|
4877
|
+
requiresApproval: z.boolean().optional(),
|
|
4878
|
+
configuration: z.record(z.any()).optional(),
|
|
4879
|
+
}).transform((v) => {
|
|
4880
|
+
return remap$(v, {
|
|
4881
|
+
requiresApproval: "requires_approval",
|
|
4882
|
+
});
|
|
4883
|
+
});
|
|
4884
|
+
|
|
4885
|
+
export function agentToolInputRunSidekickToolToJSON(
|
|
4886
|
+
agentToolInputRunSidekickTool: AgentToolInputRunSidekickTool,
|
|
4887
|
+
): string {
|
|
4888
|
+
return JSON.stringify(
|
|
4889
|
+
AgentToolInputRunSidekickTool$outboundSchema.parse(
|
|
4890
|
+
agentToolInputRunSidekickTool,
|
|
4891
|
+
),
|
|
4892
|
+
);
|
|
4893
|
+
}
|
|
4894
|
+
|
|
4895
|
+
/** @internal */
|
|
4896
|
+
export type AgentToolInputRunAdvisorTool$Outbound = {
|
|
4897
|
+
type: "advisor";
|
|
4898
|
+
requires_approval?: boolean | undefined;
|
|
4899
|
+
configuration?: { [k: string]: any } | undefined;
|
|
4900
|
+
};
|
|
4901
|
+
|
|
4902
|
+
/** @internal */
|
|
4903
|
+
export const AgentToolInputRunAdvisorTool$outboundSchema: z.ZodType<
|
|
4904
|
+
AgentToolInputRunAdvisorTool$Outbound,
|
|
4905
|
+
z.ZodTypeDef,
|
|
4906
|
+
AgentToolInputRunAdvisorTool
|
|
4907
|
+
> = z.object({
|
|
4908
|
+
type: z.literal("advisor"),
|
|
4909
|
+
requiresApproval: z.boolean().optional(),
|
|
4910
|
+
configuration: z.record(z.any()).optional(),
|
|
4911
|
+
}).transform((v) => {
|
|
4912
|
+
return remap$(v, {
|
|
4913
|
+
requiresApproval: "requires_approval",
|
|
4914
|
+
});
|
|
4915
|
+
});
|
|
4916
|
+
|
|
4917
|
+
export function agentToolInputRunAdvisorToolToJSON(
|
|
4918
|
+
agentToolInputRunAdvisorTool: AgentToolInputRunAdvisorTool,
|
|
4919
|
+
): string {
|
|
4920
|
+
return JSON.stringify(
|
|
4921
|
+
AgentToolInputRunAdvisorTool$outboundSchema.parse(
|
|
4922
|
+
agentToolInputRunAdvisorTool,
|
|
4923
|
+
),
|
|
4924
|
+
);
|
|
4925
|
+
}
|
|
4926
|
+
|
|
4829
4927
|
/** @internal */
|
|
4830
4928
|
export type AgentToolInputRunCurrentDateTool$Outbound = {
|
|
4831
4929
|
type: "current_date";
|
|
@@ -5198,6 +5296,8 @@ export type StreamRunAgentAgentToolInputRun$Outbound =
|
|
|
5198
5296
|
| AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound
|
|
5199
5297
|
| AgentToolInputRunQueryKnowledgeBaseTool$Outbound
|
|
5200
5298
|
| AgentToolInputRunCurrentDateTool$Outbound
|
|
5299
|
+
| AgentToolInputRunAdvisorTool$Outbound
|
|
5300
|
+
| AgentToolInputRunSidekickTool$Outbound
|
|
5201
5301
|
| AgentToolInputRunCodeInterpreterTool$Outbound
|
|
5202
5302
|
| AgentToolInputRunHTTPToolRun$Outbound
|
|
5203
5303
|
| AgentToolInputRunCodeToolRun$Outbound
|
|
@@ -5222,6 +5322,8 @@ export const StreamRunAgentAgentToolInputRun$outboundSchema: z.ZodType<
|
|
|
5222
5322
|
z.lazy(() => AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema),
|
|
5223
5323
|
z.lazy(() => AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema),
|
|
5224
5324
|
z.lazy(() => AgentToolInputRunCurrentDateTool$outboundSchema),
|
|
5325
|
+
z.lazy(() => AgentToolInputRunAdvisorTool$outboundSchema),
|
|
5326
|
+
z.lazy(() => AgentToolInputRunSidekickTool$outboundSchema),
|
|
5225
5327
|
z.lazy(() => AgentToolInputRunCodeInterpreterTool$outboundSchema),
|
|
5226
5328
|
z.lazy(() => AgentToolInputRunHTTPToolRun$outboundSchema),
|
|
5227
5329
|
z.lazy(() => AgentToolInputRunCodeToolRun$outboundSchema),
|
|
@@ -5332,6 +5434,8 @@ export type StreamRunAgentSettings$Outbound = {
|
|
|
5332
5434
|
| AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound
|
|
5333
5435
|
| AgentToolInputRunQueryKnowledgeBaseTool$Outbound
|
|
5334
5436
|
| AgentToolInputRunCurrentDateTool$Outbound
|
|
5437
|
+
| AgentToolInputRunAdvisorTool$Outbound
|
|
5438
|
+
| AgentToolInputRunSidekickTool$Outbound
|
|
5335
5439
|
| AgentToolInputRunCodeInterpreterTool$Outbound
|
|
5336
5440
|
| AgentToolInputRunHTTPToolRun$Outbound
|
|
5337
5441
|
| AgentToolInputRunCodeToolRun$Outbound
|
|
@@ -5368,6 +5472,8 @@ export const StreamRunAgentSettings$outboundSchema: z.ZodType<
|
|
|
5368
5472
|
z.lazy(() => AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema),
|
|
5369
5473
|
z.lazy(() => AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema),
|
|
5370
5474
|
z.lazy(() => AgentToolInputRunCurrentDateTool$outboundSchema),
|
|
5475
|
+
z.lazy(() => AgentToolInputRunAdvisorTool$outboundSchema),
|
|
5476
|
+
z.lazy(() => AgentToolInputRunSidekickTool$outboundSchema),
|
|
5371
5477
|
z.lazy(() => AgentToolInputRunCodeInterpreterTool$outboundSchema),
|
|
5372
5478
|
z.lazy(() => AgentToolInputRunHTTPToolRun$outboundSchema),
|
|
5373
5479
|
z.lazy(() => AgentToolInputRunCodeToolRun$outboundSchema),
|
|
@@ -2747,7 +2747,7 @@ export const UpdateDatapointEvaluations4$inboundSchema: z.ZodType<
|
|
|
2747
2747
|
explanation: z.string().optional(),
|
|
2748
2748
|
reviewed_by_id: z.string(),
|
|
2749
2749
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2750
|
-
"2026-07-
|
|
2750
|
+
"2026-07-25T22:03:41.841Z",
|
|
2751
2751
|
).transform(v => new Date(v)),
|
|
2752
2752
|
type: z.literal("string_array"),
|
|
2753
2753
|
values: z.array(z.string()),
|
|
@@ -2847,7 +2847,7 @@ export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
2847
2847
|
explanation: z.string().optional(),
|
|
2848
2848
|
reviewed_by_id: z.string(),
|
|
2849
2849
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2850
|
-
"2026-07-
|
|
2850
|
+
"2026-07-25T22:03:41.840Z",
|
|
2851
2851
|
).transform(v => new Date(v)),
|
|
2852
2852
|
type: z.literal("boolean"),
|
|
2853
2853
|
value: z.boolean(),
|
|
@@ -2944,7 +2944,7 @@ export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
2944
2944
|
explanation: z.string().optional(),
|
|
2945
2945
|
reviewed_by_id: z.string(),
|
|
2946
2946
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2947
|
-
"2026-07-
|
|
2947
|
+
"2026-07-25T22:03:41.839Z",
|
|
2948
2948
|
).transform(v => new Date(v)),
|
|
2949
2949
|
type: z.literal("number"),
|
|
2950
2950
|
value: z.number(),
|
|
@@ -3033,7 +3033,7 @@ export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
3033
3033
|
explanation: z.string().optional(),
|
|
3034
3034
|
reviewed_by_id: z.string(),
|
|
3035
3035
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
3036
|
-
"2026-07-
|
|
3036
|
+
"2026-07-25T22:03:41.838Z",
|
|
3037
3037
|
).transform(v => new Date(v)),
|
|
3038
3038
|
type: z.literal("string"),
|
|
3039
3039
|
value: z.string(),
|
|
@@ -3118,7 +3118,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
3118
3118
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
3119
3119
|
.optional(),
|
|
3120
3120
|
updated: z.string().datetime({ offset: true }).default(
|
|
3121
|
-
"2026-07-
|
|
3121
|
+
"2026-07-25T22:03:03.348Z",
|
|
3122
3122
|
).transform(v => new Date(v)),
|
|
3123
3123
|
}).transform((v) => {
|
|
3124
3124
|
return remap$(v, {
|
|
@@ -182,7 +182,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
182
182
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
183
183
|
.optional(),
|
|
184
184
|
updated: z.string().datetime({ offset: true }).default(
|
|
185
|
-
"2026-07-
|
|
185
|
+
"2026-07-25T22:03:03.348Z",
|
|
186
186
|
).transform(v => new Date(v)),
|
|
187
187
|
}).transform((v) => {
|
|
188
188
|
return remap$(v, {
|
|
@@ -221,7 +221,7 @@ export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
221
221
|
z.ZodTypeDef,
|
|
222
222
|
unknown
|
|
223
223
|
> = z.object({
|
|
224
|
-
_id: z.string().default("
|
|
224
|
+
_id: z.string().default("01KYDMWD74RWYDYFKJA5J3033F"),
|
|
225
225
|
display_name: z.string(),
|
|
226
226
|
description: z.nullable(z.string()).optional(),
|
|
227
227
|
status: UpdateDatasourceStatus$inboundSchema,
|
|
@@ -1480,7 +1480,7 @@ export const RequestBodyTools$outboundSchema: z.ZodType<
|
|
|
1480
1480
|
z.ZodTypeDef,
|
|
1481
1481
|
RequestBodyTools
|
|
1482
1482
|
> = z.object({
|
|
1483
|
-
id: z.string().default("
|
|
1483
|
+
id: z.string().default("01KYDMWD1T2QXXH1J8JWB85GR5"),
|
|
1484
1484
|
name: z.string(),
|
|
1485
1485
|
description: z.string().optional(),
|
|
1486
1486
|
schema: z.lazy(() => UpdateToolRequestBodyToolsSchema$outboundSchema),
|
|
@@ -2203,7 +2203,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
2203
2203
|
z.ZodTypeDef,
|
|
2204
2204
|
unknown
|
|
2205
2205
|
> = z.object({
|
|
2206
|
-
_id: z.string().default("
|
|
2206
|
+
_id: z.string().default("tool_01KYDMWD1HCQ2XFFDKCD3GYBFF"),
|
|
2207
2207
|
path: z.string(),
|
|
2208
2208
|
key: z.string(),
|
|
2209
2209
|
display_name: z.string().optional(),
|
|
@@ -2306,7 +2306,7 @@ export const UpdateToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
2306
2306
|
z.ZodTypeDef,
|
|
2307
2307
|
unknown
|
|
2308
2308
|
> = z.object({
|
|
2309
|
-
id: z.string().default("
|
|
2309
|
+
id: z.string().default("01KYDMWD1GJ0PX5H1E7EM7YDQN"),
|
|
2310
2310
|
name: z.string(),
|
|
2311
2311
|
description: z.string().optional(),
|
|
2312
2312
|
schema: z.lazy(() => UpdateToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -2364,7 +2364,7 @@ export const UpdateToolResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
2364
2364
|
z.ZodTypeDef,
|
|
2365
2365
|
unknown
|
|
2366
2366
|
> = z.object({
|
|
2367
|
-
_id: z.string().default("
|
|
2367
|
+
_id: z.string().default("tool_01KYDMWD1E0DJFTPRX8XAD4TDA"),
|
|
2368
2368
|
path: z.string(),
|
|
2369
2369
|
key: z.string(),
|
|
2370
2370
|
display_name: z.string().optional(),
|
|
@@ -2554,7 +2554,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
2554
2554
|
z.ZodTypeDef,
|
|
2555
2555
|
unknown
|
|
2556
2556
|
> = z.object({
|
|
2557
|
-
_id: z.string().default("
|
|
2557
|
+
_id: z.string().default("tool_01KYDMWD1CY7YVNRPS18ADS7B4"),
|
|
2558
2558
|
path: z.string(),
|
|
2559
2559
|
key: z.string(),
|
|
2560
2560
|
display_name: z.string().optional(),
|
|
@@ -2649,7 +2649,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2649
2649
|
z.ZodTypeDef,
|
|
2650
2650
|
unknown
|
|
2651
2651
|
> = z.object({
|
|
2652
|
-
_id: z.string().default("
|
|
2652
|
+
_id: z.string().default("tool_01KYDMWD1AEEBZ9G138AZ9XY7D"),
|
|
2653
2653
|
path: z.string(),
|
|
2654
2654
|
key: z.string(),
|
|
2655
2655
|
display_name: z.string().optional(),
|
|
@@ -2752,7 +2752,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2752
2752
|
z.ZodTypeDef,
|
|
2753
2753
|
unknown
|
|
2754
2754
|
> = z.object({
|
|
2755
|
-
_id: z.string().default("
|
|
2755
|
+
_id: z.string().default("tool_01KYDMWD18V14VAWN66JCMKDYP"),
|
|
2756
2756
|
path: z.string(),
|
|
2757
2757
|
key: z.string(),
|
|
2758
2758
|
display_name: z.string().optional(),
|
package/src/sdk/feedback.ts
CHANGED
|
@@ -44,6 +44,12 @@ export class Feedback extends ClientSDK {
|
|
|
44
44
|
));
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
/**
|
|
48
|
+
* Create response
|
|
49
|
+
*
|
|
50
|
+
* @remarks
|
|
51
|
+
* Initiates an agent conversation and returns a complete response. This endpoint manages the full lifecycle of an agent interaction, from receiving the initial message through all processing steps until completion. Supports synchronous execution (waits for completion) and asynchronous execution (returns immediately with task ID). The response includes all messages exchanged, tool calls made, and token usage statistics. Ideal for request-response patterns where you need the complete interaction result.
|
|
52
|
+
*/
|
|
47
53
|
async create(
|
|
48
54
|
request?: operations.PostV2FeedbackRequestBody | undefined,
|
|
49
55
|
options?: RequestOptions,
|