@orq-ai/node 4.0.0-rc.67 → 4.0.0-rc.68
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 +23 -18
- package/bin/mcp-server.js +2320 -1152
- package/bin/mcp-server.js.map +49 -46
- package/docs/sdks/responses/README.md +139 -0
- package/examples/package-lock.json +1 -1
- package/funcs/agentsResponsesCreate.d.ts +17 -0
- package/funcs/agentsResponsesCreate.d.ts.map +1 -0
- package/funcs/agentsResponsesCreate.js +120 -0
- package/funcs/agentsResponsesCreate.js.map +1 -0
- 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.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/agentsResponsesCreate.d.ts +8 -0
- package/mcp-server/tools/agentsResponsesCreate.d.ts.map +1 -0
- package/mcp-server/tools/agentsResponsesCreate.js +64 -0
- package/mcp-server/tools/agentsResponsesCreate.js.map +1 -0
- package/models/operations/createagent.js +4 -4
- package/models/operations/createagent.js.map +1 -1
- package/models/operations/createagentresponse.d.ts +564 -0
- package/models/operations/createagentresponse.d.ts.map +1 -0
- package/models/operations/createagentresponse.js +605 -0
- package/models/operations/createagentresponse.js.map +1 -0
- 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.js +12 -12
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getagent.js +2 -2
- package/models/operations/getagent.js.map +1 -1
- package/models/operations/getagenttask.d.ts +32 -32
- package/models/operations/getagenttask.d.ts.map +1 -1
- package/models/operations/getagenttask.js +50 -50
- 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/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeagent.d.ts +95 -95
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +143 -134
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/listagents.js +2 -2
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- 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 +54 -54
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +90 -90
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamagent.d.ts +541 -68
- package/models/operations/streamagent.d.ts.map +1 -1
- package/models/operations/streamagent.js +649 -118
- package/models/operations/streamagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +541 -68
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +657 -127
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.js +4 -4
- 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 +3 -0
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js +4 -0
- package/sdk/agents.js.map +1 -1
- package/sdk/responses.d.ts +12 -0
- package/sdk/responses.d.ts.map +1 -0
- package/sdk/responses.js +22 -0
- package/sdk/responses.js.map +1 -0
- package/src/funcs/agentsResponsesCreate.ts +168 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/agentsResponsesCreate.ts +37 -0
- package/src/models/operations/createagent.ts +4 -4
- package/src/models/operations/createagentresponse.ts +1339 -0
- 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 +12 -12
- 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/getagent.ts +2 -2
- package/src/models/operations/getagenttask.ts +94 -94
- 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/index.ts +1 -0
- package/src/models/operations/invokeagent.ts +322 -246
- package/src/models/operations/listagents.ts +2 -2
- package/src/models/operations/listbudgets.ts +2 -2
- 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 +174 -157
- package/src/models/operations/streamagent.ts +1739 -297
- package/src/models/operations/streamrunagent.ts +1742 -307
- package/src/models/operations/updateagent.ts +4 -4
- 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 +6 -0
- package/src/sdk/responses.ts +27 -0
|
@@ -12,56 +12,64 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
/**
|
|
13
13
|
* Message containing tool execution results
|
|
14
14
|
*/
|
|
15
|
-
export const
|
|
15
|
+
export const InvokeAgentRoleToolMessage = {
|
|
16
16
|
Tool: "tool",
|
|
17
17
|
} as const;
|
|
18
18
|
/**
|
|
19
19
|
* Message containing tool execution results
|
|
20
20
|
*/
|
|
21
|
-
export type
|
|
21
|
+
export type InvokeAgentRoleToolMessage = ClosedEnum<
|
|
22
|
+
typeof InvokeAgentRoleToolMessage
|
|
23
|
+
>;
|
|
22
24
|
|
|
23
25
|
/**
|
|
24
26
|
* Message from the end user
|
|
25
27
|
*/
|
|
26
|
-
export const
|
|
28
|
+
export const InvokeAgentRoleUserMessage = {
|
|
27
29
|
User: "user",
|
|
28
30
|
} as const;
|
|
29
31
|
/**
|
|
30
32
|
* Message from the end user
|
|
31
33
|
*/
|
|
32
|
-
export type
|
|
34
|
+
export type InvokeAgentRoleUserMessage = ClosedEnum<
|
|
35
|
+
typeof InvokeAgentRoleUserMessage
|
|
36
|
+
>;
|
|
33
37
|
|
|
34
38
|
/**
|
|
35
39
|
* Message role (user or tool for continuing executions)
|
|
36
40
|
*/
|
|
37
|
-
export type InvokeAgentRole =
|
|
41
|
+
export type InvokeAgentRole =
|
|
42
|
+
| InvokeAgentRoleUserMessage
|
|
43
|
+
| InvokeAgentRoleToolMessage;
|
|
38
44
|
|
|
39
|
-
export const
|
|
45
|
+
export const InvokeAgentPublicMessagePartAgentsRequestKind = {
|
|
40
46
|
ToolResult: "tool_result",
|
|
41
47
|
} as const;
|
|
42
|
-
export type
|
|
43
|
-
typeof
|
|
48
|
+
export type InvokeAgentPublicMessagePartAgentsRequestKind = ClosedEnum<
|
|
49
|
+
typeof InvokeAgentPublicMessagePartAgentsRequestKind
|
|
44
50
|
>;
|
|
45
51
|
|
|
46
52
|
/**
|
|
47
53
|
* Tool execution result part. Use this ONLY when providing results for a pending tool call from the agent. The tool_call_id must match the ID from the agent's tool call request.
|
|
48
54
|
*/
|
|
49
|
-
export type
|
|
50
|
-
kind:
|
|
55
|
+
export type PublicMessagePartToolResultPart = {
|
|
56
|
+
kind: InvokeAgentPublicMessagePartAgentsRequestKind;
|
|
51
57
|
toolCallId: string;
|
|
52
58
|
result?: any | undefined;
|
|
53
59
|
metadata?: { [k: string]: any } | undefined;
|
|
54
60
|
};
|
|
55
61
|
|
|
56
|
-
export const
|
|
62
|
+
export const InvokeAgentPublicMessagePartAgentsKind = {
|
|
57
63
|
File: "file",
|
|
58
64
|
} as const;
|
|
59
|
-
export type
|
|
65
|
+
export type InvokeAgentPublicMessagePartAgentsKind = ClosedEnum<
|
|
66
|
+
typeof InvokeAgentPublicMessagePartAgentsKind
|
|
67
|
+
>;
|
|
60
68
|
|
|
61
69
|
/**
|
|
62
70
|
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
63
71
|
*/
|
|
64
|
-
export type
|
|
72
|
+
export type FileFileInURIFormat = {
|
|
65
73
|
/**
|
|
66
74
|
* URL for the File content
|
|
67
75
|
*/
|
|
@@ -79,7 +87,7 @@ export type FileInURIFormat = {
|
|
|
79
87
|
/**
|
|
80
88
|
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
81
89
|
*/
|
|
82
|
-
export type
|
|
90
|
+
export type FileBinaryFormat = {
|
|
83
91
|
/**
|
|
84
92
|
* base64 encoded content of the file
|
|
85
93
|
*/
|
|
@@ -94,39 +102,46 @@ export type BinaryFormat = {
|
|
|
94
102
|
name?: string | undefined;
|
|
95
103
|
};
|
|
96
104
|
|
|
97
|
-
export type
|
|
105
|
+
export type InvokeAgentPublicMessagePartFile =
|
|
106
|
+
| FileBinaryFormat
|
|
107
|
+
| FileFileInURIFormat;
|
|
98
108
|
|
|
99
109
|
/**
|
|
100
110
|
* File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
|
|
101
111
|
*/
|
|
102
|
-
export type
|
|
103
|
-
kind:
|
|
104
|
-
file:
|
|
112
|
+
export type PublicMessagePartFilePart = {
|
|
113
|
+
kind: InvokeAgentPublicMessagePartAgentsKind;
|
|
114
|
+
file: FileBinaryFormat | FileFileInURIFormat;
|
|
105
115
|
metadata?: { [k: string]: any } | undefined;
|
|
106
116
|
};
|
|
107
117
|
|
|
108
|
-
export const
|
|
118
|
+
export const InvokeAgentPublicMessagePartKind = {
|
|
109
119
|
Text: "text",
|
|
110
120
|
} as const;
|
|
111
|
-
export type
|
|
121
|
+
export type InvokeAgentPublicMessagePartKind = ClosedEnum<
|
|
122
|
+
typeof InvokeAgentPublicMessagePartKind
|
|
123
|
+
>;
|
|
112
124
|
|
|
113
125
|
/**
|
|
114
126
|
* Text content part. Use this to send text messages to the agent.
|
|
115
127
|
*/
|
|
116
|
-
export type
|
|
117
|
-
kind:
|
|
128
|
+
export type PublicMessagePartTextPart = {
|
|
129
|
+
kind: InvokeAgentPublicMessagePartKind;
|
|
118
130
|
text: string;
|
|
119
131
|
};
|
|
120
132
|
|
|
121
133
|
/**
|
|
122
134
|
* Message part that can be provided by users. Use "text" for regular messages, "file" for attachments, or "tool_result" when responding to tool call requests.
|
|
123
135
|
*/
|
|
124
|
-
export type
|
|
136
|
+
export type InvokeAgentPublicMessagePart =
|
|
137
|
+
| PublicMessagePartTextPart
|
|
138
|
+
| PublicMessagePartFilePart
|
|
139
|
+
| PublicMessagePartToolResultPart;
|
|
125
140
|
|
|
126
141
|
/**
|
|
127
142
|
* The A2A message to send to the agent (user input or tool results)
|
|
128
143
|
*/
|
|
129
|
-
export type
|
|
144
|
+
export type InvokeAgentA2AMessage = {
|
|
130
145
|
/**
|
|
131
146
|
* Optional A2A message ID in ULID format
|
|
132
147
|
*/
|
|
@@ -134,17 +149,21 @@ export type A2AMessage = {
|
|
|
134
149
|
/**
|
|
135
150
|
* Message role (user or tool for continuing executions)
|
|
136
151
|
*/
|
|
137
|
-
role:
|
|
152
|
+
role: InvokeAgentRoleUserMessage | InvokeAgentRoleToolMessage;
|
|
138
153
|
/**
|
|
139
154
|
* A2A message parts (text, file, or tool_result only)
|
|
140
155
|
*/
|
|
141
|
-
parts: Array<
|
|
156
|
+
parts: Array<
|
|
157
|
+
| PublicMessagePartTextPart
|
|
158
|
+
| PublicMessagePartFilePart
|
|
159
|
+
| PublicMessagePartToolResultPart
|
|
160
|
+
>;
|
|
142
161
|
};
|
|
143
162
|
|
|
144
163
|
/**
|
|
145
164
|
* Information about the contact making the request. If the contact does not exist, it will be created automatically.
|
|
146
165
|
*/
|
|
147
|
-
export type
|
|
166
|
+
export type InvokeAgentContact = {
|
|
148
167
|
/**
|
|
149
168
|
* Unique identifier for the contact
|
|
150
169
|
*/
|
|
@@ -188,7 +207,7 @@ export type InvokeAgentThread = {
|
|
|
188
207
|
/**
|
|
189
208
|
* Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
|
|
190
209
|
*/
|
|
191
|
-
export type
|
|
210
|
+
export type InvokeAgentMemory = {
|
|
192
211
|
/**
|
|
193
212
|
* An entity ID used to link memory stores to a specific user, session, or conversation. This ID is used to isolate and retrieve memories specific to the entity across agent executions.
|
|
194
213
|
*/
|
|
@@ -203,7 +222,7 @@ export type InvokeAgentRequestBody = {
|
|
|
203
222
|
/**
|
|
204
223
|
* The A2A message to send to the agent (user input or tool results)
|
|
205
224
|
*/
|
|
206
|
-
message:
|
|
225
|
+
message: InvokeAgentA2AMessage;
|
|
207
226
|
/**
|
|
208
227
|
* Optional variables for template replacement in system prompt, instructions, and messages
|
|
209
228
|
*/
|
|
@@ -211,7 +230,7 @@ export type InvokeAgentRequestBody = {
|
|
|
211
230
|
/**
|
|
212
231
|
* Information about the contact making the request. If the contact does not exist, it will be created automatically.
|
|
213
232
|
*/
|
|
214
|
-
contact?:
|
|
233
|
+
contact?: InvokeAgentContact | undefined;
|
|
215
234
|
/**
|
|
216
235
|
* Thread information to group related requests
|
|
217
236
|
*/
|
|
@@ -219,7 +238,7 @@ export type InvokeAgentRequestBody = {
|
|
|
219
238
|
/**
|
|
220
239
|
* Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
|
|
221
240
|
*/
|
|
222
|
-
memory?:
|
|
241
|
+
memory?: InvokeAgentMemory | undefined;
|
|
223
242
|
/**
|
|
224
243
|
* Optional metadata for the agent invocation as key-value pairs that will be included in traces
|
|
225
244
|
*/
|
|
@@ -475,29 +494,32 @@ export type InvokeAgentA2ATaskResponse = {
|
|
|
475
494
|
};
|
|
476
495
|
|
|
477
496
|
/** @internal */
|
|
478
|
-
export const
|
|
479
|
-
typeof
|
|
480
|
-
> = z.nativeEnum(
|
|
497
|
+
export const InvokeAgentRoleToolMessage$inboundSchema: z.ZodNativeEnum<
|
|
498
|
+
typeof InvokeAgentRoleToolMessage
|
|
499
|
+
> = z.nativeEnum(InvokeAgentRoleToolMessage);
|
|
481
500
|
/** @internal */
|
|
482
|
-
export const
|
|
483
|
-
typeof
|
|
484
|
-
> =
|
|
501
|
+
export const InvokeAgentRoleToolMessage$outboundSchema: z.ZodNativeEnum<
|
|
502
|
+
typeof InvokeAgentRoleToolMessage
|
|
503
|
+
> = InvokeAgentRoleToolMessage$inboundSchema;
|
|
485
504
|
|
|
486
505
|
/** @internal */
|
|
487
|
-
export const
|
|
488
|
-
typeof
|
|
489
|
-
> = z.nativeEnum(
|
|
506
|
+
export const InvokeAgentRoleUserMessage$inboundSchema: z.ZodNativeEnum<
|
|
507
|
+
typeof InvokeAgentRoleUserMessage
|
|
508
|
+
> = z.nativeEnum(InvokeAgentRoleUserMessage);
|
|
490
509
|
/** @internal */
|
|
491
|
-
export const
|
|
492
|
-
typeof
|
|
493
|
-
> =
|
|
510
|
+
export const InvokeAgentRoleUserMessage$outboundSchema: z.ZodNativeEnum<
|
|
511
|
+
typeof InvokeAgentRoleUserMessage
|
|
512
|
+
> = InvokeAgentRoleUserMessage$inboundSchema;
|
|
494
513
|
|
|
495
514
|
/** @internal */
|
|
496
515
|
export const InvokeAgentRole$inboundSchema: z.ZodType<
|
|
497
516
|
InvokeAgentRole,
|
|
498
517
|
z.ZodTypeDef,
|
|
499
518
|
unknown
|
|
500
|
-
> = z.union([
|
|
519
|
+
> = z.union([
|
|
520
|
+
InvokeAgentRoleUserMessage$inboundSchema,
|
|
521
|
+
InvokeAgentRoleToolMessage$inboundSchema,
|
|
522
|
+
]);
|
|
501
523
|
/** @internal */
|
|
502
524
|
export type InvokeAgentRole$Outbound = string | string;
|
|
503
525
|
|
|
@@ -506,7 +528,10 @@ export const InvokeAgentRole$outboundSchema: z.ZodType<
|
|
|
506
528
|
InvokeAgentRole$Outbound,
|
|
507
529
|
z.ZodTypeDef,
|
|
508
530
|
InvokeAgentRole
|
|
509
|
-
> = z.union([
|
|
531
|
+
> = z.union([
|
|
532
|
+
InvokeAgentRoleUserMessage$outboundSchema,
|
|
533
|
+
InvokeAgentRoleToolMessage$outboundSchema,
|
|
534
|
+
]);
|
|
510
535
|
|
|
511
536
|
export function invokeAgentRoleToJSON(
|
|
512
537
|
invokeAgentRole: InvokeAgentRole,
|
|
@@ -524,21 +549,21 @@ export function invokeAgentRoleFromJSON(
|
|
|
524
549
|
}
|
|
525
550
|
|
|
526
551
|
/** @internal */
|
|
527
|
-
export const
|
|
528
|
-
typeof
|
|
529
|
-
|
|
552
|
+
export const InvokeAgentPublicMessagePartAgentsRequestKind$inboundSchema:
|
|
553
|
+
z.ZodNativeEnum<typeof InvokeAgentPublicMessagePartAgentsRequestKind> = z
|
|
554
|
+
.nativeEnum(InvokeAgentPublicMessagePartAgentsRequestKind);
|
|
530
555
|
/** @internal */
|
|
531
|
-
export const
|
|
532
|
-
typeof
|
|
533
|
-
|
|
556
|
+
export const InvokeAgentPublicMessagePartAgentsRequestKind$outboundSchema:
|
|
557
|
+
z.ZodNativeEnum<typeof InvokeAgentPublicMessagePartAgentsRequestKind> =
|
|
558
|
+
InvokeAgentPublicMessagePartAgentsRequestKind$inboundSchema;
|
|
534
559
|
|
|
535
560
|
/** @internal */
|
|
536
|
-
export const
|
|
537
|
-
|
|
561
|
+
export const PublicMessagePartToolResultPart$inboundSchema: z.ZodType<
|
|
562
|
+
PublicMessagePartToolResultPart,
|
|
538
563
|
z.ZodTypeDef,
|
|
539
564
|
unknown
|
|
540
565
|
> = z.object({
|
|
541
|
-
kind:
|
|
566
|
+
kind: InvokeAgentPublicMessagePartAgentsRequestKind$inboundSchema,
|
|
542
567
|
tool_call_id: z.string(),
|
|
543
568
|
result: z.any().optional(),
|
|
544
569
|
metadata: z.record(z.any()).optional(),
|
|
@@ -548,7 +573,7 @@ export const ToolResultPart$inboundSchema: z.ZodType<
|
|
|
548
573
|
});
|
|
549
574
|
});
|
|
550
575
|
/** @internal */
|
|
551
|
-
export type
|
|
576
|
+
export type PublicMessagePartToolResultPart$Outbound = {
|
|
552
577
|
kind: string;
|
|
553
578
|
tool_call_id: string;
|
|
554
579
|
result?: any | undefined;
|
|
@@ -556,12 +581,12 @@ export type ToolResultPart$Outbound = {
|
|
|
556
581
|
};
|
|
557
582
|
|
|
558
583
|
/** @internal */
|
|
559
|
-
export const
|
|
560
|
-
|
|
584
|
+
export const PublicMessagePartToolResultPart$outboundSchema: z.ZodType<
|
|
585
|
+
PublicMessagePartToolResultPart$Outbound,
|
|
561
586
|
z.ZodTypeDef,
|
|
562
|
-
|
|
587
|
+
PublicMessagePartToolResultPart
|
|
563
588
|
> = z.object({
|
|
564
|
-
kind:
|
|
589
|
+
kind: InvokeAgentPublicMessagePartAgentsRequestKind$outboundSchema,
|
|
565
590
|
toolCallId: z.string(),
|
|
566
591
|
result: z.any().optional(),
|
|
567
592
|
metadata: z.record(z.any()).optional(),
|
|
@@ -571,31 +596,38 @@ export const ToolResultPart$outboundSchema: z.ZodType<
|
|
|
571
596
|
});
|
|
572
597
|
});
|
|
573
598
|
|
|
574
|
-
export function
|
|
575
|
-
|
|
599
|
+
export function publicMessagePartToolResultPartToJSON(
|
|
600
|
+
publicMessagePartToolResultPart: PublicMessagePartToolResultPart,
|
|
601
|
+
): string {
|
|
602
|
+
return JSON.stringify(
|
|
603
|
+
PublicMessagePartToolResultPart$outboundSchema.parse(
|
|
604
|
+
publicMessagePartToolResultPart,
|
|
605
|
+
),
|
|
606
|
+
);
|
|
576
607
|
}
|
|
577
|
-
export function
|
|
608
|
+
export function publicMessagePartToolResultPartFromJSON(
|
|
578
609
|
jsonString: string,
|
|
579
|
-
): SafeParseResult<
|
|
610
|
+
): SafeParseResult<PublicMessagePartToolResultPart, SDKValidationError> {
|
|
580
611
|
return safeParse(
|
|
581
612
|
jsonString,
|
|
582
|
-
(x) =>
|
|
583
|
-
`Failed to parse '
|
|
613
|
+
(x) => PublicMessagePartToolResultPart$inboundSchema.parse(JSON.parse(x)),
|
|
614
|
+
`Failed to parse 'PublicMessagePartToolResultPart' from JSON`,
|
|
584
615
|
);
|
|
585
616
|
}
|
|
586
617
|
|
|
587
618
|
/** @internal */
|
|
588
|
-
export const
|
|
589
|
-
typeof
|
|
590
|
-
|
|
619
|
+
export const InvokeAgentPublicMessagePartAgentsKind$inboundSchema:
|
|
620
|
+
z.ZodNativeEnum<typeof InvokeAgentPublicMessagePartAgentsKind> = z.nativeEnum(
|
|
621
|
+
InvokeAgentPublicMessagePartAgentsKind,
|
|
622
|
+
);
|
|
591
623
|
/** @internal */
|
|
592
|
-
export const
|
|
593
|
-
typeof
|
|
594
|
-
|
|
624
|
+
export const InvokeAgentPublicMessagePartAgentsKind$outboundSchema:
|
|
625
|
+
z.ZodNativeEnum<typeof InvokeAgentPublicMessagePartAgentsKind> =
|
|
626
|
+
InvokeAgentPublicMessagePartAgentsKind$inboundSchema;
|
|
595
627
|
|
|
596
628
|
/** @internal */
|
|
597
|
-
export const
|
|
598
|
-
|
|
629
|
+
export const FileFileInURIFormat$inboundSchema: z.ZodType<
|
|
630
|
+
FileFileInURIFormat,
|
|
599
631
|
z.ZodTypeDef,
|
|
600
632
|
unknown
|
|
601
633
|
> = z.object({
|
|
@@ -604,41 +636,43 @@ export const FileInURIFormat$inboundSchema: z.ZodType<
|
|
|
604
636
|
name: z.string().optional(),
|
|
605
637
|
});
|
|
606
638
|
/** @internal */
|
|
607
|
-
export type
|
|
639
|
+
export type FileFileInURIFormat$Outbound = {
|
|
608
640
|
uri: string;
|
|
609
641
|
mimeType?: string | undefined;
|
|
610
642
|
name?: string | undefined;
|
|
611
643
|
};
|
|
612
644
|
|
|
613
645
|
/** @internal */
|
|
614
|
-
export const
|
|
615
|
-
|
|
646
|
+
export const FileFileInURIFormat$outboundSchema: z.ZodType<
|
|
647
|
+
FileFileInURIFormat$Outbound,
|
|
616
648
|
z.ZodTypeDef,
|
|
617
|
-
|
|
649
|
+
FileFileInURIFormat
|
|
618
650
|
> = z.object({
|
|
619
651
|
uri: z.string(),
|
|
620
652
|
mimeType: z.string().optional(),
|
|
621
653
|
name: z.string().optional(),
|
|
622
654
|
});
|
|
623
655
|
|
|
624
|
-
export function
|
|
625
|
-
|
|
656
|
+
export function fileFileInURIFormatToJSON(
|
|
657
|
+
fileFileInURIFormat: FileFileInURIFormat,
|
|
626
658
|
): string {
|
|
627
|
-
return JSON.stringify(
|
|
659
|
+
return JSON.stringify(
|
|
660
|
+
FileFileInURIFormat$outboundSchema.parse(fileFileInURIFormat),
|
|
661
|
+
);
|
|
628
662
|
}
|
|
629
|
-
export function
|
|
663
|
+
export function fileFileInURIFormatFromJSON(
|
|
630
664
|
jsonString: string,
|
|
631
|
-
): SafeParseResult<
|
|
665
|
+
): SafeParseResult<FileFileInURIFormat, SDKValidationError> {
|
|
632
666
|
return safeParse(
|
|
633
667
|
jsonString,
|
|
634
|
-
(x) =>
|
|
635
|
-
`Failed to parse '
|
|
668
|
+
(x) => FileFileInURIFormat$inboundSchema.parse(JSON.parse(x)),
|
|
669
|
+
`Failed to parse 'FileFileInURIFormat' from JSON`,
|
|
636
670
|
);
|
|
637
671
|
}
|
|
638
672
|
|
|
639
673
|
/** @internal */
|
|
640
|
-
export const
|
|
641
|
-
|
|
674
|
+
export const FileBinaryFormat$inboundSchema: z.ZodType<
|
|
675
|
+
FileBinaryFormat,
|
|
642
676
|
z.ZodTypeDef,
|
|
643
677
|
unknown
|
|
644
678
|
> = z.object({
|
|
@@ -647,287 +681,318 @@ export const BinaryFormat$inboundSchema: z.ZodType<
|
|
|
647
681
|
name: z.string().optional(),
|
|
648
682
|
});
|
|
649
683
|
/** @internal */
|
|
650
|
-
export type
|
|
684
|
+
export type FileBinaryFormat$Outbound = {
|
|
651
685
|
bytes: string;
|
|
652
686
|
mimeType?: string | undefined;
|
|
653
687
|
name?: string | undefined;
|
|
654
688
|
};
|
|
655
689
|
|
|
656
690
|
/** @internal */
|
|
657
|
-
export const
|
|
658
|
-
|
|
691
|
+
export const FileBinaryFormat$outboundSchema: z.ZodType<
|
|
692
|
+
FileBinaryFormat$Outbound,
|
|
659
693
|
z.ZodTypeDef,
|
|
660
|
-
|
|
694
|
+
FileBinaryFormat
|
|
661
695
|
> = z.object({
|
|
662
696
|
bytes: z.string(),
|
|
663
697
|
mimeType: z.string().optional(),
|
|
664
698
|
name: z.string().optional(),
|
|
665
699
|
});
|
|
666
700
|
|
|
667
|
-
export function
|
|
668
|
-
|
|
701
|
+
export function fileBinaryFormatToJSON(
|
|
702
|
+
fileBinaryFormat: FileBinaryFormat,
|
|
703
|
+
): string {
|
|
704
|
+
return JSON.stringify(
|
|
705
|
+
FileBinaryFormat$outboundSchema.parse(fileBinaryFormat),
|
|
706
|
+
);
|
|
669
707
|
}
|
|
670
|
-
export function
|
|
708
|
+
export function fileBinaryFormatFromJSON(
|
|
671
709
|
jsonString: string,
|
|
672
|
-
): SafeParseResult<
|
|
710
|
+
): SafeParseResult<FileBinaryFormat, SDKValidationError> {
|
|
673
711
|
return safeParse(
|
|
674
712
|
jsonString,
|
|
675
|
-
(x) =>
|
|
676
|
-
`Failed to parse '
|
|
713
|
+
(x) => FileBinaryFormat$inboundSchema.parse(JSON.parse(x)),
|
|
714
|
+
`Failed to parse 'FileBinaryFormat' from JSON`,
|
|
677
715
|
);
|
|
678
716
|
}
|
|
679
717
|
|
|
680
718
|
/** @internal */
|
|
681
|
-
export const
|
|
682
|
-
|
|
719
|
+
export const InvokeAgentPublicMessagePartFile$inboundSchema: z.ZodType<
|
|
720
|
+
InvokeAgentPublicMessagePartFile,
|
|
683
721
|
z.ZodTypeDef,
|
|
684
722
|
unknown
|
|
685
723
|
> = z.union([
|
|
686
|
-
z.lazy(() =>
|
|
687
|
-
z.lazy(() =>
|
|
724
|
+
z.lazy(() => FileBinaryFormat$inboundSchema),
|
|
725
|
+
z.lazy(() => FileFileInURIFormat$inboundSchema),
|
|
688
726
|
]);
|
|
689
727
|
/** @internal */
|
|
690
|
-
export type
|
|
691
|
-
|
|
|
692
|
-
|
|
|
728
|
+
export type InvokeAgentPublicMessagePartFile$Outbound =
|
|
729
|
+
| FileBinaryFormat$Outbound
|
|
730
|
+
| FileFileInURIFormat$Outbound;
|
|
693
731
|
|
|
694
732
|
/** @internal */
|
|
695
|
-
export const
|
|
696
|
-
|
|
733
|
+
export const InvokeAgentPublicMessagePartFile$outboundSchema: z.ZodType<
|
|
734
|
+
InvokeAgentPublicMessagePartFile$Outbound,
|
|
697
735
|
z.ZodTypeDef,
|
|
698
|
-
|
|
736
|
+
InvokeAgentPublicMessagePartFile
|
|
699
737
|
> = z.union([
|
|
700
|
-
z.lazy(() =>
|
|
701
|
-
z.lazy(() =>
|
|
738
|
+
z.lazy(() => FileBinaryFormat$outboundSchema),
|
|
739
|
+
z.lazy(() => FileFileInURIFormat$outboundSchema),
|
|
702
740
|
]);
|
|
703
741
|
|
|
704
|
-
export function
|
|
705
|
-
|
|
742
|
+
export function invokeAgentPublicMessagePartFileToJSON(
|
|
743
|
+
invokeAgentPublicMessagePartFile: InvokeAgentPublicMessagePartFile,
|
|
706
744
|
): string {
|
|
707
745
|
return JSON.stringify(
|
|
708
|
-
|
|
746
|
+
InvokeAgentPublicMessagePartFile$outboundSchema.parse(
|
|
747
|
+
invokeAgentPublicMessagePartFile,
|
|
748
|
+
),
|
|
709
749
|
);
|
|
710
750
|
}
|
|
711
|
-
export function
|
|
751
|
+
export function invokeAgentPublicMessagePartFileFromJSON(
|
|
712
752
|
jsonString: string,
|
|
713
|
-
): SafeParseResult<
|
|
753
|
+
): SafeParseResult<InvokeAgentPublicMessagePartFile, SDKValidationError> {
|
|
714
754
|
return safeParse(
|
|
715
755
|
jsonString,
|
|
716
|
-
(x) =>
|
|
717
|
-
`Failed to parse '
|
|
756
|
+
(x) => InvokeAgentPublicMessagePartFile$inboundSchema.parse(JSON.parse(x)),
|
|
757
|
+
`Failed to parse 'InvokeAgentPublicMessagePartFile' from JSON`,
|
|
718
758
|
);
|
|
719
759
|
}
|
|
720
760
|
|
|
721
761
|
/** @internal */
|
|
722
|
-
export const
|
|
723
|
-
|
|
762
|
+
export const PublicMessagePartFilePart$inboundSchema: z.ZodType<
|
|
763
|
+
PublicMessagePartFilePart,
|
|
724
764
|
z.ZodTypeDef,
|
|
725
765
|
unknown
|
|
726
766
|
> = z.object({
|
|
727
|
-
kind:
|
|
767
|
+
kind: InvokeAgentPublicMessagePartAgentsKind$inboundSchema,
|
|
728
768
|
file: z.union([
|
|
729
|
-
z.lazy(() =>
|
|
730
|
-
z.lazy(() =>
|
|
769
|
+
z.lazy(() => FileBinaryFormat$inboundSchema),
|
|
770
|
+
z.lazy(() => FileFileInURIFormat$inboundSchema),
|
|
731
771
|
]),
|
|
732
772
|
metadata: z.record(z.any()).optional(),
|
|
733
773
|
});
|
|
734
774
|
/** @internal */
|
|
735
|
-
export type
|
|
775
|
+
export type PublicMessagePartFilePart$Outbound = {
|
|
736
776
|
kind: string;
|
|
737
|
-
file:
|
|
777
|
+
file: FileBinaryFormat$Outbound | FileFileInURIFormat$Outbound;
|
|
738
778
|
metadata?: { [k: string]: any } | undefined;
|
|
739
779
|
};
|
|
740
780
|
|
|
741
781
|
/** @internal */
|
|
742
|
-
export const
|
|
743
|
-
|
|
782
|
+
export const PublicMessagePartFilePart$outboundSchema: z.ZodType<
|
|
783
|
+
PublicMessagePartFilePart$Outbound,
|
|
744
784
|
z.ZodTypeDef,
|
|
745
|
-
|
|
785
|
+
PublicMessagePartFilePart
|
|
746
786
|
> = z.object({
|
|
747
|
-
kind:
|
|
787
|
+
kind: InvokeAgentPublicMessagePartAgentsKind$outboundSchema,
|
|
748
788
|
file: z.union([
|
|
749
|
-
z.lazy(() =>
|
|
750
|
-
z.lazy(() =>
|
|
789
|
+
z.lazy(() => FileBinaryFormat$outboundSchema),
|
|
790
|
+
z.lazy(() => FileFileInURIFormat$outboundSchema),
|
|
751
791
|
]),
|
|
752
792
|
metadata: z.record(z.any()).optional(),
|
|
753
793
|
});
|
|
754
794
|
|
|
755
|
-
export function
|
|
756
|
-
|
|
795
|
+
export function publicMessagePartFilePartToJSON(
|
|
796
|
+
publicMessagePartFilePart: PublicMessagePartFilePart,
|
|
797
|
+
): string {
|
|
798
|
+
return JSON.stringify(
|
|
799
|
+
PublicMessagePartFilePart$outboundSchema.parse(publicMessagePartFilePart),
|
|
800
|
+
);
|
|
757
801
|
}
|
|
758
|
-
export function
|
|
802
|
+
export function publicMessagePartFilePartFromJSON(
|
|
759
803
|
jsonString: string,
|
|
760
|
-
): SafeParseResult<
|
|
804
|
+
): SafeParseResult<PublicMessagePartFilePart, SDKValidationError> {
|
|
761
805
|
return safeParse(
|
|
762
806
|
jsonString,
|
|
763
|
-
(x) =>
|
|
764
|
-
`Failed to parse '
|
|
807
|
+
(x) => PublicMessagePartFilePart$inboundSchema.parse(JSON.parse(x)),
|
|
808
|
+
`Failed to parse 'PublicMessagePartFilePart' from JSON`,
|
|
765
809
|
);
|
|
766
810
|
}
|
|
767
811
|
|
|
768
812
|
/** @internal */
|
|
769
|
-
export const
|
|
770
|
-
|
|
771
|
-
);
|
|
813
|
+
export const InvokeAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<
|
|
814
|
+
typeof InvokeAgentPublicMessagePartKind
|
|
815
|
+
> = z.nativeEnum(InvokeAgentPublicMessagePartKind);
|
|
772
816
|
/** @internal */
|
|
773
|
-
export const
|
|
774
|
-
|
|
817
|
+
export const InvokeAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<
|
|
818
|
+
typeof InvokeAgentPublicMessagePartKind
|
|
819
|
+
> = InvokeAgentPublicMessagePartKind$inboundSchema;
|
|
775
820
|
|
|
776
821
|
/** @internal */
|
|
777
|
-
export const
|
|
778
|
-
|
|
822
|
+
export const PublicMessagePartTextPart$inboundSchema: z.ZodType<
|
|
823
|
+
PublicMessagePartTextPart,
|
|
779
824
|
z.ZodTypeDef,
|
|
780
825
|
unknown
|
|
781
826
|
> = z.object({
|
|
782
|
-
kind:
|
|
827
|
+
kind: InvokeAgentPublicMessagePartKind$inboundSchema,
|
|
783
828
|
text: z.string(),
|
|
784
829
|
});
|
|
785
830
|
/** @internal */
|
|
786
|
-
export type
|
|
831
|
+
export type PublicMessagePartTextPart$Outbound = {
|
|
787
832
|
kind: string;
|
|
788
833
|
text: string;
|
|
789
834
|
};
|
|
790
835
|
|
|
791
836
|
/** @internal */
|
|
792
|
-
export const
|
|
793
|
-
|
|
837
|
+
export const PublicMessagePartTextPart$outboundSchema: z.ZodType<
|
|
838
|
+
PublicMessagePartTextPart$Outbound,
|
|
794
839
|
z.ZodTypeDef,
|
|
795
|
-
|
|
840
|
+
PublicMessagePartTextPart
|
|
796
841
|
> = z.object({
|
|
797
|
-
kind:
|
|
842
|
+
kind: InvokeAgentPublicMessagePartKind$outboundSchema,
|
|
798
843
|
text: z.string(),
|
|
799
844
|
});
|
|
800
845
|
|
|
801
|
-
export function
|
|
802
|
-
|
|
846
|
+
export function publicMessagePartTextPartToJSON(
|
|
847
|
+
publicMessagePartTextPart: PublicMessagePartTextPart,
|
|
848
|
+
): string {
|
|
849
|
+
return JSON.stringify(
|
|
850
|
+
PublicMessagePartTextPart$outboundSchema.parse(publicMessagePartTextPart),
|
|
851
|
+
);
|
|
803
852
|
}
|
|
804
|
-
export function
|
|
853
|
+
export function publicMessagePartTextPartFromJSON(
|
|
805
854
|
jsonString: string,
|
|
806
|
-
): SafeParseResult<
|
|
855
|
+
): SafeParseResult<PublicMessagePartTextPart, SDKValidationError> {
|
|
807
856
|
return safeParse(
|
|
808
857
|
jsonString,
|
|
809
|
-
(x) =>
|
|
810
|
-
`Failed to parse '
|
|
858
|
+
(x) => PublicMessagePartTextPart$inboundSchema.parse(JSON.parse(x)),
|
|
859
|
+
`Failed to parse 'PublicMessagePartTextPart' from JSON`,
|
|
811
860
|
);
|
|
812
861
|
}
|
|
813
862
|
|
|
814
863
|
/** @internal */
|
|
815
|
-
export const
|
|
816
|
-
|
|
864
|
+
export const InvokeAgentPublicMessagePart$inboundSchema: z.ZodType<
|
|
865
|
+
InvokeAgentPublicMessagePart,
|
|
817
866
|
z.ZodTypeDef,
|
|
818
867
|
unknown
|
|
819
868
|
> = z.union([
|
|
820
|
-
z.lazy(() =>
|
|
821
|
-
z.lazy(() =>
|
|
822
|
-
z.lazy(() =>
|
|
869
|
+
z.lazy(() => PublicMessagePartTextPart$inboundSchema),
|
|
870
|
+
z.lazy(() => PublicMessagePartFilePart$inboundSchema),
|
|
871
|
+
z.lazy(() => PublicMessagePartToolResultPart$inboundSchema),
|
|
823
872
|
]);
|
|
824
873
|
/** @internal */
|
|
825
|
-
export type
|
|
826
|
-
|
|
|
827
|
-
|
|
|
828
|
-
|
|
|
874
|
+
export type InvokeAgentPublicMessagePart$Outbound =
|
|
875
|
+
| PublicMessagePartTextPart$Outbound
|
|
876
|
+
| PublicMessagePartFilePart$Outbound
|
|
877
|
+
| PublicMessagePartToolResultPart$Outbound;
|
|
829
878
|
|
|
830
879
|
/** @internal */
|
|
831
|
-
export const
|
|
832
|
-
|
|
880
|
+
export const InvokeAgentPublicMessagePart$outboundSchema: z.ZodType<
|
|
881
|
+
InvokeAgentPublicMessagePart$Outbound,
|
|
833
882
|
z.ZodTypeDef,
|
|
834
|
-
|
|
883
|
+
InvokeAgentPublicMessagePart
|
|
835
884
|
> = z.union([
|
|
836
|
-
z.lazy(() =>
|
|
837
|
-
z.lazy(() =>
|
|
838
|
-
z.lazy(() =>
|
|
885
|
+
z.lazy(() => PublicMessagePartTextPart$outboundSchema),
|
|
886
|
+
z.lazy(() => PublicMessagePartFilePart$outboundSchema),
|
|
887
|
+
z.lazy(() => PublicMessagePartToolResultPart$outboundSchema),
|
|
839
888
|
]);
|
|
840
889
|
|
|
841
|
-
export function
|
|
842
|
-
|
|
890
|
+
export function invokeAgentPublicMessagePartToJSON(
|
|
891
|
+
invokeAgentPublicMessagePart: InvokeAgentPublicMessagePart,
|
|
843
892
|
): string {
|
|
844
893
|
return JSON.stringify(
|
|
845
|
-
|
|
894
|
+
InvokeAgentPublicMessagePart$outboundSchema.parse(
|
|
895
|
+
invokeAgentPublicMessagePart,
|
|
896
|
+
),
|
|
846
897
|
);
|
|
847
898
|
}
|
|
848
|
-
export function
|
|
899
|
+
export function invokeAgentPublicMessagePartFromJSON(
|
|
849
900
|
jsonString: string,
|
|
850
|
-
): SafeParseResult<
|
|
901
|
+
): SafeParseResult<InvokeAgentPublicMessagePart, SDKValidationError> {
|
|
851
902
|
return safeParse(
|
|
852
903
|
jsonString,
|
|
853
|
-
(x) =>
|
|
854
|
-
`Failed to parse '
|
|
904
|
+
(x) => InvokeAgentPublicMessagePart$inboundSchema.parse(JSON.parse(x)),
|
|
905
|
+
`Failed to parse 'InvokeAgentPublicMessagePart' from JSON`,
|
|
855
906
|
);
|
|
856
907
|
}
|
|
857
908
|
|
|
858
909
|
/** @internal */
|
|
859
|
-
export const
|
|
860
|
-
|
|
910
|
+
export const InvokeAgentA2AMessage$inboundSchema: z.ZodType<
|
|
911
|
+
InvokeAgentA2AMessage,
|
|
861
912
|
z.ZodTypeDef,
|
|
862
913
|
unknown
|
|
863
914
|
> = z.object({
|
|
864
915
|
messageId: z.string().optional(),
|
|
865
|
-
role: z.union([
|
|
916
|
+
role: z.union([
|
|
917
|
+
InvokeAgentRoleUserMessage$inboundSchema,
|
|
918
|
+
InvokeAgentRoleToolMessage$inboundSchema,
|
|
919
|
+
]),
|
|
866
920
|
parts: z.array(
|
|
867
921
|
z.union([
|
|
868
|
-
z.lazy(() =>
|
|
869
|
-
z.lazy(() =>
|
|
870
|
-
z.lazy(() =>
|
|
922
|
+
z.lazy(() => PublicMessagePartTextPart$inboundSchema),
|
|
923
|
+
z.lazy(() => PublicMessagePartFilePart$inboundSchema),
|
|
924
|
+
z.lazy(() => PublicMessagePartToolResultPart$inboundSchema),
|
|
871
925
|
]),
|
|
872
926
|
),
|
|
873
927
|
});
|
|
874
928
|
/** @internal */
|
|
875
|
-
export type
|
|
929
|
+
export type InvokeAgentA2AMessage$Outbound = {
|
|
876
930
|
messageId?: string | undefined;
|
|
877
931
|
role: string | string;
|
|
878
|
-
parts: Array<
|
|
932
|
+
parts: Array<
|
|
933
|
+
| PublicMessagePartTextPart$Outbound
|
|
934
|
+
| PublicMessagePartFilePart$Outbound
|
|
935
|
+
| PublicMessagePartToolResultPart$Outbound
|
|
936
|
+
>;
|
|
879
937
|
};
|
|
880
938
|
|
|
881
939
|
/** @internal */
|
|
882
|
-
export const
|
|
883
|
-
|
|
940
|
+
export const InvokeAgentA2AMessage$outboundSchema: z.ZodType<
|
|
941
|
+
InvokeAgentA2AMessage$Outbound,
|
|
884
942
|
z.ZodTypeDef,
|
|
885
|
-
|
|
943
|
+
InvokeAgentA2AMessage
|
|
886
944
|
> = z.object({
|
|
887
945
|
messageId: z.string().optional(),
|
|
888
946
|
role: z.union([
|
|
889
|
-
|
|
890
|
-
|
|
947
|
+
InvokeAgentRoleUserMessage$outboundSchema,
|
|
948
|
+
InvokeAgentRoleToolMessage$outboundSchema,
|
|
891
949
|
]),
|
|
892
950
|
parts: z.array(
|
|
893
951
|
z.union([
|
|
894
|
-
z.lazy(() =>
|
|
895
|
-
z.lazy(() =>
|
|
896
|
-
z.lazy(() =>
|
|
952
|
+
z.lazy(() => PublicMessagePartTextPart$outboundSchema),
|
|
953
|
+
z.lazy(() => PublicMessagePartFilePart$outboundSchema),
|
|
954
|
+
z.lazy(() => PublicMessagePartToolResultPart$outboundSchema),
|
|
897
955
|
]),
|
|
898
956
|
),
|
|
899
957
|
});
|
|
900
958
|
|
|
901
|
-
export function
|
|
902
|
-
|
|
959
|
+
export function invokeAgentA2AMessageToJSON(
|
|
960
|
+
invokeAgentA2AMessage: InvokeAgentA2AMessage,
|
|
961
|
+
): string {
|
|
962
|
+
return JSON.stringify(
|
|
963
|
+
InvokeAgentA2AMessage$outboundSchema.parse(invokeAgentA2AMessage),
|
|
964
|
+
);
|
|
903
965
|
}
|
|
904
|
-
export function
|
|
966
|
+
export function invokeAgentA2AMessageFromJSON(
|
|
905
967
|
jsonString: string,
|
|
906
|
-
): SafeParseResult<
|
|
968
|
+
): SafeParseResult<InvokeAgentA2AMessage, SDKValidationError> {
|
|
907
969
|
return safeParse(
|
|
908
970
|
jsonString,
|
|
909
|
-
(x) =>
|
|
910
|
-
`Failed to parse '
|
|
971
|
+
(x) => InvokeAgentA2AMessage$inboundSchema.parse(JSON.parse(x)),
|
|
972
|
+
`Failed to parse 'InvokeAgentA2AMessage' from JSON`,
|
|
911
973
|
);
|
|
912
974
|
}
|
|
913
975
|
|
|
914
976
|
/** @internal */
|
|
915
|
-
export const
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
977
|
+
export const InvokeAgentContact$inboundSchema: z.ZodType<
|
|
978
|
+
InvokeAgentContact,
|
|
979
|
+
z.ZodTypeDef,
|
|
980
|
+
unknown
|
|
981
|
+
> = z.object({
|
|
982
|
+
id: z.string(),
|
|
983
|
+
display_name: z.string().optional(),
|
|
984
|
+
email: z.string().optional(),
|
|
985
|
+
metadata: z.array(z.record(z.any())).optional(),
|
|
986
|
+
logo_url: z.string().optional(),
|
|
987
|
+
tags: z.array(z.string()).optional(),
|
|
988
|
+
}).transform((v) => {
|
|
989
|
+
return remap$(v, {
|
|
990
|
+
"display_name": "displayName",
|
|
991
|
+
"logo_url": "logoUrl",
|
|
928
992
|
});
|
|
993
|
+
});
|
|
929
994
|
/** @internal */
|
|
930
|
-
export type
|
|
995
|
+
export type InvokeAgentContact$Outbound = {
|
|
931
996
|
id: string;
|
|
932
997
|
display_name?: string | undefined;
|
|
933
998
|
email?: string | undefined;
|
|
@@ -937,10 +1002,10 @@ export type Contact$Outbound = {
|
|
|
937
1002
|
};
|
|
938
1003
|
|
|
939
1004
|
/** @internal */
|
|
940
|
-
export const
|
|
941
|
-
|
|
1005
|
+
export const InvokeAgentContact$outboundSchema: z.ZodType<
|
|
1006
|
+
InvokeAgentContact$Outbound,
|
|
942
1007
|
z.ZodTypeDef,
|
|
943
|
-
|
|
1008
|
+
InvokeAgentContact
|
|
944
1009
|
> = z.object({
|
|
945
1010
|
id: z.string(),
|
|
946
1011
|
displayName: z.string().optional(),
|
|
@@ -955,16 +1020,20 @@ export const Contact$outboundSchema: z.ZodType<
|
|
|
955
1020
|
});
|
|
956
1021
|
});
|
|
957
1022
|
|
|
958
|
-
export function
|
|
959
|
-
|
|
1023
|
+
export function invokeAgentContactToJSON(
|
|
1024
|
+
invokeAgentContact: InvokeAgentContact,
|
|
1025
|
+
): string {
|
|
1026
|
+
return JSON.stringify(
|
|
1027
|
+
InvokeAgentContact$outboundSchema.parse(invokeAgentContact),
|
|
1028
|
+
);
|
|
960
1029
|
}
|
|
961
|
-
export function
|
|
1030
|
+
export function invokeAgentContactFromJSON(
|
|
962
1031
|
jsonString: string,
|
|
963
|
-
): SafeParseResult<
|
|
1032
|
+
): SafeParseResult<InvokeAgentContact, SDKValidationError> {
|
|
964
1033
|
return safeParse(
|
|
965
1034
|
jsonString,
|
|
966
|
-
(x) =>
|
|
967
|
-
`Failed to parse '
|
|
1035
|
+
(x) => InvokeAgentContact$inboundSchema.parse(JSON.parse(x)),
|
|
1036
|
+
`Failed to parse 'InvokeAgentContact' from JSON`,
|
|
968
1037
|
);
|
|
969
1038
|
}
|
|
970
1039
|
|
|
@@ -1011,24 +1080,27 @@ export function invokeAgentThreadFromJSON(
|
|
|
1011
1080
|
}
|
|
1012
1081
|
|
|
1013
1082
|
/** @internal */
|
|
1014
|
-
export const
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1083
|
+
export const InvokeAgentMemory$inboundSchema: z.ZodType<
|
|
1084
|
+
InvokeAgentMemory,
|
|
1085
|
+
z.ZodTypeDef,
|
|
1086
|
+
unknown
|
|
1087
|
+
> = z.object({
|
|
1088
|
+
entity_id: z.string(),
|
|
1089
|
+
}).transform((v) => {
|
|
1090
|
+
return remap$(v, {
|
|
1091
|
+
"entity_id": "entityId",
|
|
1021
1092
|
});
|
|
1093
|
+
});
|
|
1022
1094
|
/** @internal */
|
|
1023
|
-
export type
|
|
1095
|
+
export type InvokeAgentMemory$Outbound = {
|
|
1024
1096
|
entity_id: string;
|
|
1025
1097
|
};
|
|
1026
1098
|
|
|
1027
1099
|
/** @internal */
|
|
1028
|
-
export const
|
|
1029
|
-
|
|
1100
|
+
export const InvokeAgentMemory$outboundSchema: z.ZodType<
|
|
1101
|
+
InvokeAgentMemory$Outbound,
|
|
1030
1102
|
z.ZodTypeDef,
|
|
1031
|
-
|
|
1103
|
+
InvokeAgentMemory
|
|
1032
1104
|
> = z.object({
|
|
1033
1105
|
entityId: z.string(),
|
|
1034
1106
|
}).transform((v) => {
|
|
@@ -1037,16 +1109,20 @@ export const Memory$outboundSchema: z.ZodType<
|
|
|
1037
1109
|
});
|
|
1038
1110
|
});
|
|
1039
1111
|
|
|
1040
|
-
export function
|
|
1041
|
-
|
|
1112
|
+
export function invokeAgentMemoryToJSON(
|
|
1113
|
+
invokeAgentMemory: InvokeAgentMemory,
|
|
1114
|
+
): string {
|
|
1115
|
+
return JSON.stringify(
|
|
1116
|
+
InvokeAgentMemory$outboundSchema.parse(invokeAgentMemory),
|
|
1117
|
+
);
|
|
1042
1118
|
}
|
|
1043
|
-
export function
|
|
1119
|
+
export function invokeAgentMemoryFromJSON(
|
|
1044
1120
|
jsonString: string,
|
|
1045
|
-
): SafeParseResult<
|
|
1121
|
+
): SafeParseResult<InvokeAgentMemory, SDKValidationError> {
|
|
1046
1122
|
return safeParse(
|
|
1047
1123
|
jsonString,
|
|
1048
|
-
(x) =>
|
|
1049
|
-
`Failed to parse '
|
|
1124
|
+
(x) => InvokeAgentMemory$inboundSchema.parse(JSON.parse(x)),
|
|
1125
|
+
`Failed to parse 'InvokeAgentMemory' from JSON`,
|
|
1050
1126
|
);
|
|
1051
1127
|
}
|
|
1052
1128
|
|
|
@@ -1057,11 +1133,11 @@ export const InvokeAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
1057
1133
|
unknown
|
|
1058
1134
|
> = z.object({
|
|
1059
1135
|
task_id: z.string().optional(),
|
|
1060
|
-
message: z.lazy(() =>
|
|
1136
|
+
message: z.lazy(() => InvokeAgentA2AMessage$inboundSchema),
|
|
1061
1137
|
variables: z.record(z.any()).optional(),
|
|
1062
|
-
contact: z.lazy(() =>
|
|
1138
|
+
contact: z.lazy(() => InvokeAgentContact$inboundSchema).optional(),
|
|
1063
1139
|
thread: z.lazy(() => InvokeAgentThread$inboundSchema).optional(),
|
|
1064
|
-
memory: z.lazy(() =>
|
|
1140
|
+
memory: z.lazy(() => InvokeAgentMemory$inboundSchema).optional(),
|
|
1065
1141
|
metadata: z.record(z.any()).optional(),
|
|
1066
1142
|
}).transform((v) => {
|
|
1067
1143
|
return remap$(v, {
|
|
@@ -1071,11 +1147,11 @@ export const InvokeAgentRequestBody$inboundSchema: z.ZodType<
|
|
|
1071
1147
|
/** @internal */
|
|
1072
1148
|
export type InvokeAgentRequestBody$Outbound = {
|
|
1073
1149
|
task_id?: string | undefined;
|
|
1074
|
-
message:
|
|
1150
|
+
message: InvokeAgentA2AMessage$Outbound;
|
|
1075
1151
|
variables?: { [k: string]: any } | undefined;
|
|
1076
|
-
contact?:
|
|
1152
|
+
contact?: InvokeAgentContact$Outbound | undefined;
|
|
1077
1153
|
thread?: InvokeAgentThread$Outbound | undefined;
|
|
1078
|
-
memory?:
|
|
1154
|
+
memory?: InvokeAgentMemory$Outbound | undefined;
|
|
1079
1155
|
metadata?: { [k: string]: any } | undefined;
|
|
1080
1156
|
};
|
|
1081
1157
|
|
|
@@ -1086,11 +1162,11 @@ export const InvokeAgentRequestBody$outboundSchema: z.ZodType<
|
|
|
1086
1162
|
InvokeAgentRequestBody
|
|
1087
1163
|
> = z.object({
|
|
1088
1164
|
taskId: z.string().optional(),
|
|
1089
|
-
message: z.lazy(() =>
|
|
1165
|
+
message: z.lazy(() => InvokeAgentA2AMessage$outboundSchema),
|
|
1090
1166
|
variables: z.record(z.any()).optional(),
|
|
1091
|
-
contact: z.lazy(() =>
|
|
1167
|
+
contact: z.lazy(() => InvokeAgentContact$outboundSchema).optional(),
|
|
1092
1168
|
thread: z.lazy(() => InvokeAgentThread$outboundSchema).optional(),
|
|
1093
|
-
memory: z.lazy(() =>
|
|
1169
|
+
memory: z.lazy(() => InvokeAgentMemory$outboundSchema).optional(),
|
|
1094
1170
|
metadata: z.record(z.any()).optional(),
|
|
1095
1171
|
}).transform((v) => {
|
|
1096
1172
|
return remap$(v, {
|