@orq-ai/node 4.0.0-rc.51 → 4.0.0-rc.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -4
- package/bin/mcp-server.js +1125 -606
- package/bin/mcp-server.js.map +50 -51
- package/docs/sdks/agents/README.md +80 -80
- package/examples/package-lock.json +1 -1
- package/funcs/agentsInvoke.d.ts +1 -1
- package/funcs/agentsInvoke.d.ts.map +1 -1
- package/funcs/agentsInvoke.js +1 -1
- package/funcs/agentsInvoke.js.map +1 -1
- package/funcs/agentsListTasks.d.ts +1 -1
- package/funcs/agentsListTasks.d.ts.map +1 -1
- package/funcs/agentsListTasks.js +1 -1
- package/funcs/agentsListTasks.js.map +1 -1
- package/funcs/agentsRetrieveTask.d.ts +1 -1
- package/funcs/agentsRetrieveTask.d.ts.map +1 -1
- package/funcs/agentsRetrieveTask.js +1 -1
- package/funcs/agentsRetrieveTask.js.map +1 -1
- package/funcs/agentsRun.d.ts +1 -1
- package/funcs/agentsRun.d.ts.map +1 -1
- package/funcs/agentsRun.js +1 -1
- package/funcs/agentsRun.js.map +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 +2 -2
- package/mcp-server/server.js.map +1 -1
- package/models/errors/index.d.ts +0 -1
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -1
- package/models/errors/index.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- 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 +25 -25
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +41 -41
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +6 -6
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +9 -9
- package/models/operations/deploymentinvoke.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/getagenttask.d.ts +682 -108
- package/models/operations/getagenttask.d.ts.map +1 -1
- package/models/operations/getagenttask.js +635 -155
- package/models/operations/getagenttask.js.map +1 -1
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/invokeagent.d.ts +143 -123
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +143 -146
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/listagenttasks.d.ts +680 -118
- package/models/operations/listagenttasks.d.ts.map +1 -1
- package/models/operations/listagenttasks.js +612 -144
- package/models/operations/listagenttasks.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listchunks.d.ts +6 -6
- package/models/operations/listchunks.d.ts.map +1 -1
- package/models/operations/listchunks.js +9 -9
- package/models/operations/listchunks.js.map +1 -1
- 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.d.ts +6 -6
- package/models/operations/listdatasources.d.ts.map +1 -1
- package/models/operations/listdatasources.js +12 -11
- package/models/operations/listdatasources.js.map +1 -1
- 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 +112 -98
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +120 -121
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamagent.d.ts +18 -12
- package/models/operations/streamagent.d.ts.map +1 -1
- package/models/operations/streamagent.js +13 -13
- package/models/operations/streamagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +12 -12
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +15 -15
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +11 -8
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +13 -11
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.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/sdk/agents.d.ts +10 -10
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js +9 -9
- package/sdk/agents.js.map +1 -1
- package/src/funcs/agentsInvoke.ts +4 -4
- package/src/funcs/agentsListTasks.ts +4 -4
- package/src/funcs/agentsRetrieveTask.ts +8 -8
- package/src/funcs/agentsRun.ts +4 -4
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +2 -2
- package/src/models/errors/index.ts +0 -1
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- 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 +76 -76
- package/src/models/operations/deploymentinvoke.ts +17 -24
- 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/getagenttask.ts +1873 -428
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/invokeagent.ts +319 -299
- package/src/models/operations/listagenttasks.ts +2029 -540
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listchunks.ts +14 -14
- 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 +15 -22
- 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 +264 -220
- package/src/models/operations/streamagent.ts +28 -22
- package/src/models/operations/streamrunagent.ts +24 -24
- package/src/models/operations/updateagent.ts +25 -18
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.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
- package/src/sdk/agents.ts +20 -20
- package/models/errors/getagenttask.d.ts +0 -29
- package/models/errors/getagenttask.d.ts.map +0 -1
- package/models/errors/getagenttask.js +0 -74
- package/models/errors/getagenttask.js.map +0 -1
- package/src/models/errors/getagenttask.ts +0 -67
|
@@ -10,26 +10,26 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Message containing tool execution results
|
|
14
14
|
*/
|
|
15
15
|
export const StreamAgentRoleToolMessage = {
|
|
16
16
|
Tool: "tool",
|
|
17
17
|
} as const;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Message containing tool execution results
|
|
20
20
|
*/
|
|
21
21
|
export type StreamAgentRoleToolMessage = ClosedEnum<
|
|
22
22
|
typeof StreamAgentRoleToolMessage
|
|
23
23
|
>;
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Message from the end user
|
|
27
27
|
*/
|
|
28
28
|
export const StreamAgentRoleUserMessage = {
|
|
29
29
|
User: "user",
|
|
30
30
|
} as const;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Message from the end user
|
|
33
33
|
*/
|
|
34
34
|
export type StreamAgentRoleUserMessage = ClosedEnum<
|
|
35
35
|
typeof StreamAgentRoleUserMessage
|
|
@@ -138,7 +138,10 @@ export type StreamAgentPublicMessagePart =
|
|
|
138
138
|
| StreamAgentPublicMessagePartFilePart
|
|
139
139
|
| StreamAgentPublicMessagePartToolResultPart;
|
|
140
140
|
|
|
141
|
-
|
|
141
|
+
/**
|
|
142
|
+
* The A2A message to send to the agent (user input or tool results)
|
|
143
|
+
*/
|
|
144
|
+
export type StreamAgentA2AMessage = {
|
|
142
145
|
/**
|
|
143
146
|
* Optional A2A message ID in ULID format
|
|
144
147
|
*/
|
|
@@ -216,7 +219,10 @@ export type StreamAgentRequestBody = {
|
|
|
216
219
|
* Optional task ID to continue an existing agent execution. When provided, the agent will continue the conversation from the existing task state. The task must be in an inactive state to continue.
|
|
217
220
|
*/
|
|
218
221
|
taskId?: string | undefined;
|
|
219
|
-
|
|
222
|
+
/**
|
|
223
|
+
* The A2A message to send to the agent (user input or tool results)
|
|
224
|
+
*/
|
|
225
|
+
message: StreamAgentA2AMessage;
|
|
220
226
|
/**
|
|
221
227
|
* Optional variables for template replacement in system prompt, instructions, and messages
|
|
222
228
|
*/
|
|
@@ -693,8 +699,8 @@ export function streamAgentPublicMessagePartFromJSON(
|
|
|
693
699
|
}
|
|
694
700
|
|
|
695
701
|
/** @internal */
|
|
696
|
-
export const
|
|
697
|
-
|
|
702
|
+
export const StreamAgentA2AMessage$inboundSchema: z.ZodType<
|
|
703
|
+
StreamAgentA2AMessage,
|
|
698
704
|
z.ZodTypeDef,
|
|
699
705
|
unknown
|
|
700
706
|
> = z.object({
|
|
@@ -712,7 +718,7 @@ export const StreamAgentMessage$inboundSchema: z.ZodType<
|
|
|
712
718
|
),
|
|
713
719
|
});
|
|
714
720
|
/** @internal */
|
|
715
|
-
export type
|
|
721
|
+
export type StreamAgentA2AMessage$Outbound = {
|
|
716
722
|
messageId?: string | undefined;
|
|
717
723
|
role: string | string;
|
|
718
724
|
parts: Array<
|
|
@@ -723,10 +729,10 @@ export type StreamAgentMessage$Outbound = {
|
|
|
723
729
|
};
|
|
724
730
|
|
|
725
731
|
/** @internal */
|
|
726
|
-
export const
|
|
727
|
-
|
|
732
|
+
export const StreamAgentA2AMessage$outboundSchema: z.ZodType<
|
|
733
|
+
StreamAgentA2AMessage$Outbound,
|
|
728
734
|
z.ZodTypeDef,
|
|
729
|
-
|
|
735
|
+
StreamAgentA2AMessage
|
|
730
736
|
> = z.object({
|
|
731
737
|
messageId: z.string().optional(),
|
|
732
738
|
role: z.union([
|
|
@@ -742,20 +748,20 @@ export const StreamAgentMessage$outboundSchema: z.ZodType<
|
|
|
742
748
|
),
|
|
743
749
|
});
|
|
744
750
|
|
|
745
|
-
export function
|
|
746
|
-
|
|
751
|
+
export function streamAgentA2AMessageToJSON(
|
|
752
|
+
streamAgentA2AMessage: StreamAgentA2AMessage,
|
|
747
753
|
): string {
|
|
748
754
|
return JSON.stringify(
|
|
749
|
-
|
|
755
|
+
StreamAgentA2AMessage$outboundSchema.parse(streamAgentA2AMessage),
|
|
750
756
|
);
|
|
751
757
|
}
|
|
752
|
-
export function
|
|
758
|
+
export function streamAgentA2AMessageFromJSON(
|
|
753
759
|
jsonString: string,
|
|
754
|
-
): SafeParseResult<
|
|
760
|
+
): SafeParseResult<StreamAgentA2AMessage, SDKValidationError> {
|
|
755
761
|
return safeParse(
|
|
756
762
|
jsonString,
|
|
757
|
-
(x) =>
|
|
758
|
-
`Failed to parse '
|
|
763
|
+
(x) => StreamAgentA2AMessage$inboundSchema.parse(JSON.parse(x)),
|
|
764
|
+
`Failed to parse 'StreamAgentA2AMessage' from JSON`,
|
|
759
765
|
);
|
|
760
766
|
}
|
|
761
767
|
|
|
@@ -919,7 +925,7 @@ export const StreamAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
919
925
|
unknown
|
|
920
926
|
> = z.object({
|
|
921
927
|
task_id: z.string().optional(),
|
|
922
|
-
message: z.lazy(() =>
|
|
928
|
+
message: z.lazy(() => StreamAgentA2AMessage$inboundSchema),
|
|
923
929
|
variables: z.record(z.any()).optional(),
|
|
924
930
|
contact: z.lazy(() => StreamAgentContact$inboundSchema).optional(),
|
|
925
931
|
thread: z.lazy(() => StreamAgentThread$inboundSchema).optional(),
|
|
@@ -935,7 +941,7 @@ export const StreamAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
935
941
|
/** @internal */
|
|
936
942
|
export type StreamAgentRequestBody$Outbound = {
|
|
937
943
|
task_id?: string | undefined;
|
|
938
|
-
message:
|
|
944
|
+
message: StreamAgentA2AMessage$Outbound;
|
|
939
945
|
variables?: { [k: string]: any } | undefined;
|
|
940
946
|
contact?: StreamAgentContact$Outbound | undefined;
|
|
941
947
|
thread?: StreamAgentThread$Outbound | undefined;
|
|
@@ -951,7 +957,7 @@ export const StreamAgentRequestBody$outboundSchema: z.ZodType<
|
|
|
951
957
|
StreamAgentRequestBody
|
|
952
958
|
> = z.object({
|
|
953
959
|
taskId: z.string().optional(),
|
|
954
|
-
message: z.lazy(() =>
|
|
960
|
+
message: z.lazy(() => StreamAgentA2AMessage$outboundSchema),
|
|
955
961
|
variables: z.record(z.any()).optional(),
|
|
956
962
|
contact: z.lazy(() => StreamAgentContact$outboundSchema).optional(),
|
|
957
963
|
thread: z.lazy(() => StreamAgentThread$outboundSchema).optional(),
|
|
@@ -761,26 +761,26 @@ export type StreamRunAgentFallbackModelConfiguration =
|
|
|
761
761
|
| string;
|
|
762
762
|
|
|
763
763
|
/**
|
|
764
|
-
*
|
|
764
|
+
* Message containing tool execution results
|
|
765
765
|
*/
|
|
766
766
|
export const StreamRunAgentRoleToolMessage = {
|
|
767
767
|
Tool: "tool",
|
|
768
768
|
} as const;
|
|
769
769
|
/**
|
|
770
|
-
*
|
|
770
|
+
* Message containing tool execution results
|
|
771
771
|
*/
|
|
772
772
|
export type StreamRunAgentRoleToolMessage = ClosedEnum<
|
|
773
773
|
typeof StreamRunAgentRoleToolMessage
|
|
774
774
|
>;
|
|
775
775
|
|
|
776
776
|
/**
|
|
777
|
-
*
|
|
777
|
+
* Message from the end user
|
|
778
778
|
*/
|
|
779
779
|
export const StreamRunAgentRoleUserMessage = {
|
|
780
780
|
User: "user",
|
|
781
781
|
} as const;
|
|
782
782
|
/**
|
|
783
|
-
*
|
|
783
|
+
* Message from the end user
|
|
784
784
|
*/
|
|
785
785
|
export type StreamRunAgentRoleUserMessage = ClosedEnum<
|
|
786
786
|
typeof StreamRunAgentRoleUserMessage
|
|
@@ -892,7 +892,7 @@ export type StreamRunAgentPublicMessagePart =
|
|
|
892
892
|
/**
|
|
893
893
|
* The A2A format message containing the task for the agent to perform.
|
|
894
894
|
*/
|
|
895
|
-
export type
|
|
895
|
+
export type StreamRunAgentA2AMessage = {
|
|
896
896
|
/**
|
|
897
897
|
* Optional A2A message ID in ULID format
|
|
898
898
|
*/
|
|
@@ -1754,7 +1754,7 @@ export type StreamRunAgentRequestBody = {
|
|
|
1754
1754
|
/**
|
|
1755
1755
|
* The A2A format message containing the task for the agent to perform.
|
|
1756
1756
|
*/
|
|
1757
|
-
message:
|
|
1757
|
+
message: StreamRunAgentA2AMessage;
|
|
1758
1758
|
/**
|
|
1759
1759
|
* Optional variables for template replacement in system prompt, instructions, and messages
|
|
1760
1760
|
*/
|
|
@@ -4338,8 +4338,8 @@ export function streamRunAgentPublicMessagePartFromJSON(
|
|
|
4338
4338
|
}
|
|
4339
4339
|
|
|
4340
4340
|
/** @internal */
|
|
4341
|
-
export const
|
|
4342
|
-
|
|
4341
|
+
export const StreamRunAgentA2AMessage$inboundSchema: z.ZodType<
|
|
4342
|
+
StreamRunAgentA2AMessage,
|
|
4343
4343
|
z.ZodTypeDef,
|
|
4344
4344
|
unknown
|
|
4345
4345
|
> = z.object({
|
|
@@ -4357,7 +4357,7 @@ export const StreamRunAgentMessage$inboundSchema: z.ZodType<
|
|
|
4357
4357
|
),
|
|
4358
4358
|
});
|
|
4359
4359
|
/** @internal */
|
|
4360
|
-
export type
|
|
4360
|
+
export type StreamRunAgentA2AMessage$Outbound = {
|
|
4361
4361
|
messageId?: string | undefined;
|
|
4362
4362
|
role: string | string;
|
|
4363
4363
|
parts: Array<
|
|
@@ -4368,10 +4368,10 @@ export type StreamRunAgentMessage$Outbound = {
|
|
|
4368
4368
|
};
|
|
4369
4369
|
|
|
4370
4370
|
/** @internal */
|
|
4371
|
-
export const
|
|
4372
|
-
|
|
4371
|
+
export const StreamRunAgentA2AMessage$outboundSchema: z.ZodType<
|
|
4372
|
+
StreamRunAgentA2AMessage$Outbound,
|
|
4373
4373
|
z.ZodTypeDef,
|
|
4374
|
-
|
|
4374
|
+
StreamRunAgentA2AMessage
|
|
4375
4375
|
> = z.object({
|
|
4376
4376
|
messageId: z.string().optional(),
|
|
4377
4377
|
role: z.union([
|
|
@@ -4389,20 +4389,20 @@ export const StreamRunAgentMessage$outboundSchema: z.ZodType<
|
|
|
4389
4389
|
),
|
|
4390
4390
|
});
|
|
4391
4391
|
|
|
4392
|
-
export function
|
|
4393
|
-
|
|
4392
|
+
export function streamRunAgentA2AMessageToJSON(
|
|
4393
|
+
streamRunAgentA2AMessage: StreamRunAgentA2AMessage,
|
|
4394
4394
|
): string {
|
|
4395
4395
|
return JSON.stringify(
|
|
4396
|
-
|
|
4396
|
+
StreamRunAgentA2AMessage$outboundSchema.parse(streamRunAgentA2AMessage),
|
|
4397
4397
|
);
|
|
4398
4398
|
}
|
|
4399
|
-
export function
|
|
4399
|
+
export function streamRunAgentA2AMessageFromJSON(
|
|
4400
4400
|
jsonString: string,
|
|
4401
|
-
): SafeParseResult<
|
|
4401
|
+
): SafeParseResult<StreamRunAgentA2AMessage, SDKValidationError> {
|
|
4402
4402
|
return safeParse(
|
|
4403
4403
|
jsonString,
|
|
4404
|
-
(x) =>
|
|
4405
|
-
`Failed to parse '
|
|
4404
|
+
(x) => StreamRunAgentA2AMessage$inboundSchema.parse(JSON.parse(x)),
|
|
4405
|
+
`Failed to parse 'StreamRunAgentA2AMessage' from JSON`,
|
|
4406
4406
|
);
|
|
4407
4407
|
}
|
|
4408
4408
|
|
|
@@ -4784,7 +4784,7 @@ export const AgentToolInputRunTools$inboundSchema: z.ZodType<
|
|
|
4784
4784
|
z.ZodTypeDef,
|
|
4785
4785
|
unknown
|
|
4786
4786
|
> = z.object({
|
|
4787
|
-
id: z.string().default("
|
|
4787
|
+
id: z.string().default("01KAG3PPQHZ7FSFZG3EQS9WGTW"),
|
|
4788
4788
|
name: z.string(),
|
|
4789
4789
|
description: z.string().optional(),
|
|
4790
4790
|
schema: z.lazy(() => AgentToolInputRunSchema$inboundSchema),
|
|
@@ -4803,7 +4803,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
4803
4803
|
z.ZodTypeDef,
|
|
4804
4804
|
AgentToolInputRunTools
|
|
4805
4805
|
> = z.object({
|
|
4806
|
-
id: z.string().default("
|
|
4806
|
+
id: z.string().default("01KAG3PPQHZ7FSFZG3EQS9WGTW"),
|
|
4807
4807
|
name: z.string(),
|
|
4808
4808
|
description: z.string().optional(),
|
|
4809
4809
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -7075,7 +7075,7 @@ export const StreamRunAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
7075
7075
|
).optional(),
|
|
7076
7076
|
role: z.string(),
|
|
7077
7077
|
instructions: z.string(),
|
|
7078
|
-
message: z.lazy(() =>
|
|
7078
|
+
message: z.lazy(() => StreamRunAgentA2AMessage$inboundSchema),
|
|
7079
7079
|
variables: z.record(z.any()).optional(),
|
|
7080
7080
|
contact: z.lazy(() => StreamRunAgentContact$inboundSchema).optional(),
|
|
7081
7081
|
thread: z.lazy(() => StreamRunAgentThread$inboundSchema).optional(),
|
|
@@ -7114,7 +7114,7 @@ export type StreamRunAgentRequestBody$Outbound = {
|
|
|
7114
7114
|
| undefined;
|
|
7115
7115
|
role: string;
|
|
7116
7116
|
instructions: string;
|
|
7117
|
-
message:
|
|
7117
|
+
message: StreamRunAgentA2AMessage$Outbound;
|
|
7118
7118
|
variables?: { [k: string]: any } | undefined;
|
|
7119
7119
|
contact?: StreamRunAgentContact$Outbound | undefined;
|
|
7120
7120
|
thread?: StreamRunAgentThread$Outbound | undefined;
|
|
@@ -7150,7 +7150,7 @@ export const StreamRunAgentRequestBody$outboundSchema: z.ZodType<
|
|
|
7150
7150
|
).optional(),
|
|
7151
7151
|
role: z.string(),
|
|
7152
7152
|
instructions: z.string(),
|
|
7153
|
-
message: z.lazy(() =>
|
|
7153
|
+
message: z.lazy(() => StreamRunAgentA2AMessage$outboundSchema),
|
|
7154
7154
|
variables: z.record(z.any()).optional(),
|
|
7155
7155
|
contact: z.lazy(() => StreamRunAgentContact$outboundSchema).optional(),
|
|
7156
7156
|
thread: z.lazy(() => StreamRunAgentThread$outboundSchema).optional(),
|
|
@@ -1264,7 +1264,10 @@ export type UpdateAgentTeamOfAgents = {
|
|
|
1264
1264
|
role?: string | undefined;
|
|
1265
1265
|
};
|
|
1266
1266
|
|
|
1267
|
-
|
|
1267
|
+
/**
|
|
1268
|
+
* Request body for updating an existing agent via the API. Uses simplified tool input format.
|
|
1269
|
+
*/
|
|
1270
|
+
export type UpdateAgentUpdateAgentRequest = {
|
|
1268
1271
|
key?: string | undefined;
|
|
1269
1272
|
displayName?: string | undefined;
|
|
1270
1273
|
projectId?: string | undefined;
|
|
@@ -1316,7 +1319,7 @@ export type UpdateAgentRequest = {
|
|
|
1316
1319
|
* The unique key of the agent to update
|
|
1317
1320
|
*/
|
|
1318
1321
|
agentKey: string;
|
|
1319
|
-
requestBody?:
|
|
1322
|
+
requestBody?: UpdateAgentUpdateAgentRequest | undefined;
|
|
1320
1323
|
};
|
|
1321
1324
|
|
|
1322
1325
|
/**
|
|
@@ -5742,8 +5745,8 @@ export function updateAgentTeamOfAgentsFromJSON(
|
|
|
5742
5745
|
}
|
|
5743
5746
|
|
|
5744
5747
|
/** @internal */
|
|
5745
|
-
export const
|
|
5746
|
-
|
|
5748
|
+
export const UpdateAgentUpdateAgentRequest$inboundSchema: z.ZodType<
|
|
5749
|
+
UpdateAgentUpdateAgentRequest,
|
|
5747
5750
|
z.ZodTypeDef,
|
|
5748
5751
|
unknown
|
|
5749
5752
|
> = z.object({
|
|
@@ -5785,7 +5788,7 @@ export const UpdateAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
5785
5788
|
});
|
|
5786
5789
|
});
|
|
5787
5790
|
/** @internal */
|
|
5788
|
-
export type
|
|
5791
|
+
export type UpdateAgentUpdateAgentRequest$Outbound = {
|
|
5789
5792
|
key?: string | undefined;
|
|
5790
5793
|
display_name?: string | undefined;
|
|
5791
5794
|
project_id?: string | undefined;
|
|
@@ -5806,10 +5809,10 @@ export type UpdateAgentRequestBody$Outbound = {
|
|
|
5806
5809
|
};
|
|
5807
5810
|
|
|
5808
5811
|
/** @internal */
|
|
5809
|
-
export const
|
|
5810
|
-
|
|
5812
|
+
export const UpdateAgentUpdateAgentRequest$outboundSchema: z.ZodType<
|
|
5813
|
+
UpdateAgentUpdateAgentRequest$Outbound,
|
|
5811
5814
|
z.ZodTypeDef,
|
|
5812
|
-
|
|
5815
|
+
UpdateAgentUpdateAgentRequest
|
|
5813
5816
|
> = z.object({
|
|
5814
5817
|
key: z.string().optional(),
|
|
5815
5818
|
displayName: z.string().optional(),
|
|
@@ -5849,20 +5852,22 @@ export const UpdateAgentRequestBody$outboundSchema: z.ZodType<
|
|
|
5849
5852
|
});
|
|
5850
5853
|
});
|
|
5851
5854
|
|
|
5852
|
-
export function
|
|
5853
|
-
|
|
5855
|
+
export function updateAgentUpdateAgentRequestToJSON(
|
|
5856
|
+
updateAgentUpdateAgentRequest: UpdateAgentUpdateAgentRequest,
|
|
5854
5857
|
): string {
|
|
5855
5858
|
return JSON.stringify(
|
|
5856
|
-
|
|
5859
|
+
UpdateAgentUpdateAgentRequest$outboundSchema.parse(
|
|
5860
|
+
updateAgentUpdateAgentRequest,
|
|
5861
|
+
),
|
|
5857
5862
|
);
|
|
5858
5863
|
}
|
|
5859
|
-
export function
|
|
5864
|
+
export function updateAgentUpdateAgentRequestFromJSON(
|
|
5860
5865
|
jsonString: string,
|
|
5861
|
-
): SafeParseResult<
|
|
5866
|
+
): SafeParseResult<UpdateAgentUpdateAgentRequest, SDKValidationError> {
|
|
5862
5867
|
return safeParse(
|
|
5863
5868
|
jsonString,
|
|
5864
|
-
(x) =>
|
|
5865
|
-
`Failed to parse '
|
|
5869
|
+
(x) => UpdateAgentUpdateAgentRequest$inboundSchema.parse(JSON.parse(x)),
|
|
5870
|
+
`Failed to parse 'UpdateAgentUpdateAgentRequest' from JSON`,
|
|
5866
5871
|
);
|
|
5867
5872
|
}
|
|
5868
5873
|
|
|
@@ -5873,7 +5878,8 @@ export const UpdateAgentRequest$inboundSchema: z.ZodType<
|
|
|
5873
5878
|
unknown
|
|
5874
5879
|
> = z.object({
|
|
5875
5880
|
agent_key: z.string(),
|
|
5876
|
-
RequestBody: z.lazy(() =>
|
|
5881
|
+
RequestBody: z.lazy(() => UpdateAgentUpdateAgentRequest$inboundSchema)
|
|
5882
|
+
.optional(),
|
|
5877
5883
|
}).transform((v) => {
|
|
5878
5884
|
return remap$(v, {
|
|
5879
5885
|
"agent_key": "agentKey",
|
|
@@ -5883,7 +5889,7 @@ export const UpdateAgentRequest$inboundSchema: z.ZodType<
|
|
|
5883
5889
|
/** @internal */
|
|
5884
5890
|
export type UpdateAgentRequest$Outbound = {
|
|
5885
5891
|
agent_key: string;
|
|
5886
|
-
RequestBody?:
|
|
5892
|
+
RequestBody?: UpdateAgentUpdateAgentRequest$Outbound | undefined;
|
|
5887
5893
|
};
|
|
5888
5894
|
|
|
5889
5895
|
/** @internal */
|
|
@@ -5893,7 +5899,8 @@ export const UpdateAgentRequest$outboundSchema: z.ZodType<
|
|
|
5893
5899
|
UpdateAgentRequest
|
|
5894
5900
|
> = z.object({
|
|
5895
5901
|
agentKey: z.string(),
|
|
5896
|
-
requestBody: z.lazy(() =>
|
|
5902
|
+
requestBody: z.lazy(() => UpdateAgentUpdateAgentRequest$outboundSchema)
|
|
5903
|
+
.optional(),
|
|
5897
5904
|
}).transform((v) => {
|
|
5898
5905
|
return remap$(v, {
|
|
5899
5906
|
agentKey: "agent_key",
|
|
@@ -436,7 +436,7 @@ export const UpdateBudgetResponseBody$inboundSchema: z.ZodType<
|
|
|
436
436
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
437
437
|
.optional(),
|
|
438
438
|
updated: z.string().datetime({ offset: true }).default(
|
|
439
|
-
"2025-11-
|
|
439
|
+
"2025-11-20T07:47:05.297Z",
|
|
440
440
|
).transform(v => new Date(v)),
|
|
441
441
|
}).transform((v) => {
|
|
442
442
|
return remap$(v, {
|
|
@@ -473,7 +473,7 @@ export const UpdateBudgetResponseBody$outboundSchema: z.ZodType<
|
|
|
473
473
|
isActive: z.boolean(),
|
|
474
474
|
consumption: z.lazy(() => UpdateBudgetConsumption$outboundSchema).optional(),
|
|
475
475
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
476
|
-
updated: z.date().default(() => new Date("2025-11-
|
|
476
|
+
updated: z.date().default(() => new Date("2025-11-20T07:47:05.297Z"))
|
|
477
477
|
.transform(v => v.toISOString()),
|
|
478
478
|
}).transform((v) => {
|
|
479
479
|
return remap$(v, {
|
|
@@ -214,7 +214,7 @@ export const UpdateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
214
214
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
215
215
|
.optional(),
|
|
216
216
|
updated: z.string().datetime({ offset: true }).default(
|
|
217
|
-
"2025-11-
|
|
217
|
+
"2025-11-20T07:47:04.953Z",
|
|
218
218
|
).transform(v => new Date(v)),
|
|
219
219
|
}).transform((v) => {
|
|
220
220
|
return remap$(v, {
|
|
@@ -251,7 +251,7 @@ export const UpdateContactResponseBody$outboundSchema: z.ZodType<
|
|
|
251
251
|
tags: z.array(z.string()).optional(),
|
|
252
252
|
metadata: z.record(z.any()).optional(),
|
|
253
253
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
254
|
-
updated: z.date().default(() => new Date("2025-11-
|
|
254
|
+
updated: z.date().default(() => new Date("2025-11-20T07:47:04.953Z"))
|
|
255
255
|
.transform(v => v.toISOString()),
|
|
256
256
|
}).transform((v) => {
|
|
257
257
|
return remap$(v, {
|
|
@@ -4893,7 +4893,7 @@ export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
4893
4893
|
.default("orq"),
|
|
4894
4894
|
reviewed_by_id: z.string(),
|
|
4895
4895
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
4896
|
-
"2025-11-
|
|
4896
|
+
"2025-11-20T07:47:16.945Z",
|
|
4897
4897
|
).transform(v => new Date(v)),
|
|
4898
4898
|
type: UpdateDatapointEvaluationsDatasetsResponseType$inboundSchema,
|
|
4899
4899
|
values: z.array(z.string()),
|
|
@@ -4930,7 +4930,7 @@ export const UpdateDatapointEvaluations3$outboundSchema: z.ZodType<
|
|
|
4930
4930
|
source: UpdateDatapointEvaluationsDatasetsResponseSource$outboundSchema
|
|
4931
4931
|
.default("orq"),
|
|
4932
4932
|
reviewedById: z.string(),
|
|
4933
|
-
reviewedAt: z.date().default(() => new Date("2025-11-
|
|
4933
|
+
reviewedAt: z.date().default(() => new Date("2025-11-20T07:47:16.945Z"))
|
|
4934
4934
|
.transform(v => v.toISOString()),
|
|
4935
4935
|
type: UpdateDatapointEvaluationsDatasetsResponseType$outboundSchema,
|
|
4936
4936
|
values: z.array(z.string()),
|
|
@@ -5003,7 +5003,7 @@ export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
5003
5003
|
source: UpdateDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
|
|
5004
5004
|
reviewed_by_id: z.string(),
|
|
5005
5005
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
5006
|
-
"2025-11-
|
|
5006
|
+
"2025-11-20T07:47:16.944Z",
|
|
5007
5007
|
).transform(v => new Date(v)),
|
|
5008
5008
|
type: UpdateDatapointEvaluationsDatasetsType$inboundSchema,
|
|
5009
5009
|
value: z.number(),
|
|
@@ -5041,7 +5041,7 @@ export const UpdateDatapointEvaluations2$outboundSchema: z.ZodType<
|
|
|
5041
5041
|
"orq",
|
|
5042
5042
|
),
|
|
5043
5043
|
reviewedById: z.string(),
|
|
5044
|
-
reviewedAt: z.date().default(() => new Date("2025-11-
|
|
5044
|
+
reviewedAt: z.date().default(() => new Date("2025-11-20T07:47:16.944Z"))
|
|
5045
5045
|
.transform(v => v.toISOString()),
|
|
5046
5046
|
type: UpdateDatapointEvaluationsDatasetsType$outboundSchema,
|
|
5047
5047
|
value: z.number(),
|
|
@@ -5112,7 +5112,7 @@ export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
5112
5112
|
source: UpdateDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
5113
5113
|
reviewed_by_id: z.string(),
|
|
5114
5114
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
5115
|
-
"2025-11-
|
|
5115
|
+
"2025-11-20T07:47:16.938Z",
|
|
5116
5116
|
).transform(v => new Date(v)),
|
|
5117
5117
|
type: UpdateDatapointEvaluationsType$inboundSchema,
|
|
5118
5118
|
value: z.string(),
|
|
@@ -5147,7 +5147,7 @@ export const UpdateDatapointEvaluations1$outboundSchema: z.ZodType<
|
|
|
5147
5147
|
humanReviewId: z.string(),
|
|
5148
5148
|
source: UpdateDatapointEvaluationsSource$outboundSchema.default("orq"),
|
|
5149
5149
|
reviewedById: z.string(),
|
|
5150
|
-
reviewedAt: z.date().default(() => new Date("2025-11-
|
|
5150
|
+
reviewedAt: z.date().default(() => new Date("2025-11-20T07:47:16.938Z"))
|
|
5151
5151
|
.transform(v => v.toISOString()),
|
|
5152
5152
|
type: UpdateDatapointEvaluationsType$outboundSchema,
|
|
5153
5153
|
value: z.string(),
|
|
@@ -5262,7 +5262,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
5262
5262
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
5263
5263
|
.optional(),
|
|
5264
5264
|
updated: z.string().datetime({ offset: true }).default(
|
|
5265
|
-
"2025-11-
|
|
5265
|
+
"2025-11-20T07:47:04.953Z",
|
|
5266
5266
|
).transform(v => new Date(v)),
|
|
5267
5267
|
}).transform((v) => {
|
|
5268
5268
|
return remap$(v, {
|
|
@@ -5340,7 +5340,7 @@ export const UpdateDatapointResponseBody$outboundSchema: z.ZodType<
|
|
|
5340
5340
|
createdById: z.string().optional(),
|
|
5341
5341
|
updatedById: z.string().optional(),
|
|
5342
5342
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
5343
|
-
updated: z.date().default(() => new Date("2025-11-
|
|
5343
|
+
updated: z.date().default(() => new Date("2025-11-20T07:47:04.953Z"))
|
|
5344
5344
|
.transform(v => v.toISOString()),
|
|
5345
5345
|
}).transform((v) => {
|
|
5346
5346
|
return remap$(v, {
|
|
@@ -256,7 +256,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
256
256
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
257
257
|
.optional(),
|
|
258
258
|
updated: z.string().datetime({ offset: true }).default(
|
|
259
|
-
"2025-11-
|
|
259
|
+
"2025-11-20T07:47:04.953Z",
|
|
260
260
|
).transform(v => new Date(v)),
|
|
261
261
|
}).transform((v) => {
|
|
262
262
|
return remap$(v, {
|
|
@@ -295,7 +295,7 @@ export const UpdateDatasetResponseBody$outboundSchema: z.ZodType<
|
|
|
295
295
|
createdById: z.string().optional(),
|
|
296
296
|
updatedById: z.string().optional(),
|
|
297
297
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
298
|
-
updated: z.date().default(() => new Date("2025-11-
|
|
298
|
+
updated: z.date().default(() => new Date("2025-11-20T07:47:04.953Z"))
|
|
299
299
|
.transform(v => v.toISOString()),
|
|
300
300
|
}).transform((v) => {
|
|
301
301
|
return remap$(v, {
|
|
@@ -202,7 +202,7 @@ export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
202
202
|
z.ZodTypeDef,
|
|
203
203
|
unknown
|
|
204
204
|
> = z.object({
|
|
205
|
-
_id: z.string().default("
|
|
205
|
+
_id: z.string().default("01KAG3PQCY01GZSPW87ADQX0WS"),
|
|
206
206
|
display_name: z.string(),
|
|
207
207
|
description: z.string().optional(),
|
|
208
208
|
status: UpdateDatasourceStatus$inboundSchema,
|
|
@@ -245,7 +245,7 @@ export const UpdateDatasourceResponseBody$outboundSchema: z.ZodType<
|
|
|
245
245
|
z.ZodTypeDef,
|
|
246
246
|
UpdateDatasourceResponseBody
|
|
247
247
|
> = z.object({
|
|
248
|
-
id: z.string().default("
|
|
248
|
+
id: z.string().default("01KAG3PQCY01GZSPW87ADQX0WS"),
|
|
249
249
|
displayName: z.string(),
|
|
250
250
|
description: z.string().optional(),
|
|
251
251
|
status: UpdateDatasourceStatus$outboundSchema,
|