@ag-ui/core 0.1.1-canary.beta.0 → 1.0.0
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/.gitattributes +1 -0
- package/CHANGELOG.md +10 -37
- package/README.md +13 -33
- package/dist/index.d.mts +219 -201
- package/dist/index.d.mts.map +1 -1
- package/dist/index.d.ts +219 -201
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1038 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1029 -3
- package/dist/index.mjs.map +1 -1
- package/dist/schemas.d.mts +2576 -1076
- package/dist/schemas.d.mts.map +1 -1
- package/dist/schemas.d.ts +2576 -1076
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +959 -483
- package/dist/schemas.js.map +1 -1
- package/dist/schemas.mjs +899 -416
- package/dist/schemas.mjs.map +1 -1
- package/dist/{events-CMtdFXWl.js → version-BIes0ykB.js} +23 -12
- package/dist/version-BIes0ykB.js.map +1 -0
- package/dist/{events-BaoNrGbE.mjs → version-CTNE2I0_.mjs} +18 -13
- package/dist/version-CTNE2I0_.mjs.map +1 -0
- package/dist/version-DEKfpZNa.d.ts +2935 -0
- package/dist/version-DEKfpZNa.d.ts.map +1 -0
- package/dist/version-Dr0GiU8W.d.mts +2935 -0
- package/dist/version-Dr0GiU8W.d.mts.map +1 -0
- package/package.json +19 -3
- package/dist/events-BaoNrGbE.mjs.map +0 -1
- package/dist/events-Bg2nO3O2.d.mts +0 -467
- package/dist/events-Bg2nO3O2.d.mts.map +0 -1
- package/dist/events-CMtdFXWl.js.map +0 -1
- package/dist/events-JPFRVbr9.d.ts +0 -467
- package/dist/events-JPFRVbr9.d.ts.map +0 -1
package/dist/schemas.d.mts
CHANGED
|
@@ -1,327 +1,704 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as EventType, t as PROTOCOL_VERSION } from "./version-Dr0GiU8W.mjs";
|
|
2
|
+
import * as zod_v40 from "zod/v4";
|
|
2
3
|
import { z } from "zod/v4";
|
|
3
4
|
|
|
4
|
-
//#region src/schemas.d.ts
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
REASONING_MESSAGE_CONTENT: "REASONING_MESSAGE_CONTENT";
|
|
35
|
-
REASONING_MESSAGE_END: "REASONING_MESSAGE_END";
|
|
36
|
-
REASONING_MESSAGE_CHUNK: "REASONING_MESSAGE_CHUNK";
|
|
37
|
-
REASONING_END: "REASONING_END";
|
|
38
|
-
REASONING_ENCRYPTED_VALUE: "REASONING_ENCRYPTED_VALUE";
|
|
5
|
+
//#region src/generated/schemas.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* The discriminator carried by every event.
|
|
8
|
+
*/
|
|
9
|
+
declare const EventTypeSchema: z.ZodEnum<typeof EventType>;
|
|
10
|
+
/**
|
|
11
|
+
* Extra information attached to an event, a message, a tool call, a tool, an
|
|
12
|
+
* interrupt or a resume entry. Open by key: any JSON value is allowed under a
|
|
13
|
+
* key, including null, because a null there is meaningful data. The object
|
|
14
|
+
* itself may be absent but is never null when present. The key ag-ui is
|
|
15
|
+
* reserved for the protocol's own use; reservation is by convention, since
|
|
16
|
+
* validating the shape of a key's value would contradict being open by key.
|
|
17
|
+
*/
|
|
18
|
+
declare const MetadataSchema: z.ZodCustom<Record<string, any>, Record<string, any>>;
|
|
19
|
+
/**
|
|
20
|
+
* An opaque handle for one subagent invocation, not a reusable name for a
|
|
21
|
+
* subagent definition: two invocations of the same subagent carry two
|
|
22
|
+
* different values. Named to mirror runId one level down, the way the
|
|
23
|
+
* subagent's name mirrors agentId.
|
|
24
|
+
*/
|
|
25
|
+
declare const SubagentRunIdSchema: z.ZodString;
|
|
26
|
+
/**
|
|
27
|
+
* The roles a streamed text message may take. Excludes tool, which is carried
|
|
28
|
+
* by TOOL_CALL_RESULT rather than streamed as text.
|
|
29
|
+
*/
|
|
30
|
+
declare const TextMessageRoleSchema: z.ZodEnum<{
|
|
31
|
+
developer: "developer";
|
|
32
|
+
system: "system";
|
|
33
|
+
assistant: "assistant";
|
|
34
|
+
user: "user";
|
|
39
35
|
}>;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
declare const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
36
|
+
/**
|
|
37
|
+
* Opens a streamed text message. The content arrives as TEXT_MESSAGE_CONTENT
|
|
38
|
+
* events and the message closes with TEXT_MESSAGE_END.
|
|
39
|
+
*/
|
|
40
|
+
declare const TextMessageStartEventSchema: z.ZodObject<{
|
|
41
|
+
type: z.ZodLiteral<EventType.TEXT_MESSAGE_START>;
|
|
42
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
43
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
44
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
45
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
46
|
+
messageId: z.ZodString;
|
|
47
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
48
|
+
developer: "developer";
|
|
49
|
+
system: "system";
|
|
50
|
+
assistant: "assistant";
|
|
51
|
+
user: "user";
|
|
52
|
+
}>>;
|
|
53
|
+
name: z.ZodOptional<z.ZodString>;
|
|
54
|
+
}, z.core.$loose>;
|
|
55
|
+
/**
|
|
56
|
+
* Appends a fragment to a streamed text message.
|
|
57
|
+
*/
|
|
58
|
+
declare const TextMessageContentEventSchema: z.ZodObject<{
|
|
59
|
+
type: z.ZodLiteral<EventType.TEXT_MESSAGE_CONTENT>;
|
|
60
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
61
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
62
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
63
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
64
|
+
messageId: z.ZodString;
|
|
65
|
+
delta: z.ZodString;
|
|
66
|
+
}, z.core.$loose>;
|
|
67
|
+
/**
|
|
68
|
+
* Closes a streamed text message.
|
|
69
|
+
*/
|
|
70
|
+
declare const TextMessageEndEventSchema: z.ZodObject<{
|
|
71
|
+
type: z.ZodLiteral<EventType.TEXT_MESSAGE_END>;
|
|
72
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
73
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
74
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
75
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
76
|
+
messageId: z.ZodString;
|
|
77
|
+
}, z.core.$loose>;
|
|
78
|
+
/**
|
|
79
|
+
* A shorthand that stands in for a start, content and end sequence, for
|
|
80
|
+
* producers that cannot know in advance where a message begins. Every field is
|
|
81
|
+
* optional because a continuation chunk omits what has not changed; which
|
|
82
|
+
* message a field-less chunk continues is a sequence question the prose
|
|
83
|
+
* specification answers.
|
|
84
|
+
*/
|
|
85
|
+
declare const TextMessageChunkEventSchema: z.ZodObject<{
|
|
86
|
+
type: z.ZodLiteral<EventType.TEXT_MESSAGE_CHUNK>;
|
|
87
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
88
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
89
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
90
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
91
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
92
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
93
|
+
developer: "developer";
|
|
94
|
+
system: "system";
|
|
95
|
+
assistant: "assistant";
|
|
96
|
+
user: "user";
|
|
97
|
+
}>>;
|
|
98
|
+
delta: z.ZodOptional<z.ZodString>;
|
|
99
|
+
name: z.ZodOptional<z.ZodString>;
|
|
100
|
+
}, z.core.$loose>;
|
|
101
|
+
/**
|
|
102
|
+
* Opens a tool call. The arguments arrive as TOOL_CALL_ARGS events and the
|
|
103
|
+
* call closes with TOOL_CALL_END.
|
|
104
|
+
*/
|
|
105
|
+
declare const ToolCallStartEventSchema: z.ZodObject<{
|
|
106
|
+
type: z.ZodLiteral<EventType.TOOL_CALL_START>;
|
|
107
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
108
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
109
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
110
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
111
|
+
toolCallId: z.ZodString;
|
|
112
|
+
toolCallName: z.ZodString;
|
|
113
|
+
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
114
|
+
}, z.core.$loose>;
|
|
115
|
+
/**
|
|
116
|
+
* Appends a fragment of a tool call's arguments.
|
|
117
|
+
*/
|
|
118
|
+
declare const ToolCallArgsEventSchema: z.ZodObject<{
|
|
119
|
+
type: z.ZodLiteral<EventType.TOOL_CALL_ARGS>;
|
|
120
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
121
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
122
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
123
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
124
|
+
toolCallId: z.ZodString;
|
|
125
|
+
delta: z.ZodString;
|
|
126
|
+
}, z.core.$loose>;
|
|
127
|
+
/**
|
|
128
|
+
* Closes a tool call, meaning its arguments are complete.
|
|
129
|
+
*/
|
|
130
|
+
declare const ToolCallEndEventSchema: z.ZodObject<{
|
|
131
|
+
type: z.ZodLiteral<EventType.TOOL_CALL_END>;
|
|
132
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
133
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
134
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
135
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
136
|
+
toolCallId: z.ZodString;
|
|
137
|
+
}, z.core.$loose>;
|
|
138
|
+
/**
|
|
139
|
+
* A shorthand that stands in for a tool call's start, args and end sequence.
|
|
140
|
+
* Every field is optional for the same reason as TEXT_MESSAGE_CHUNK.
|
|
141
|
+
*/
|
|
142
|
+
declare const ToolCallChunkEventSchema: z.ZodObject<{
|
|
143
|
+
type: z.ZodLiteral<EventType.TOOL_CALL_CHUNK>;
|
|
144
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
145
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
146
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
147
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
148
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
149
|
+
toolCallName: z.ZodOptional<z.ZodString>;
|
|
150
|
+
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
151
|
+
delta: z.ZodOptional<z.ZodString>;
|
|
152
|
+
}, z.core.$loose>;
|
|
153
|
+
/**
|
|
154
|
+
* A text part.
|
|
155
|
+
*/
|
|
156
|
+
declare const TextPartSchema: z.ZodObject<{
|
|
54
157
|
type: z.ZodLiteral<"text">;
|
|
158
|
+
id: z.ZodOptional<z.ZodString>;
|
|
55
159
|
text: z.ZodString;
|
|
56
|
-
|
|
57
|
-
|
|
160
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
161
|
+
}, z.core.$loose>;
|
|
162
|
+
/**
|
|
163
|
+
* Bytes carried inline.
|
|
164
|
+
*/
|
|
165
|
+
declare const DataSourceSchema: z.ZodObject<{
|
|
58
166
|
type: z.ZodLiteral<"data">;
|
|
59
167
|
value: z.ZodString;
|
|
60
168
|
mimeType: z.ZodString;
|
|
61
|
-
}, z.core.$
|
|
62
|
-
|
|
169
|
+
}, z.core.$loose>;
|
|
170
|
+
/**
|
|
171
|
+
* Bytes referenced by URL, fetched by whoever needs them.
|
|
172
|
+
*/
|
|
173
|
+
declare const UrlSourceSchema: z.ZodObject<{
|
|
63
174
|
type: z.ZodLiteral<"url">;
|
|
64
175
|
value: z.ZodString;
|
|
65
176
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
66
|
-
}, z.core.$
|
|
67
|
-
|
|
177
|
+
}, z.core.$loose>;
|
|
178
|
+
/**
|
|
179
|
+
* Bytes already at the provider, named by a handle the provider issued: an
|
|
180
|
+
* OpenAI or Anthropic file id, a Gemini file URI, a storage URL only that
|
|
181
|
+
* provider can read. No bytes travel and nothing is fetched. Only the provider
|
|
182
|
+
* that minted the handle can resolve it; a peer that cannot drops the part as
|
|
183
|
+
* it drops any part it cannot use.
|
|
184
|
+
*/
|
|
185
|
+
declare const FileSourceSchema: z.ZodObject<{
|
|
186
|
+
type: z.ZodLiteral<"file">;
|
|
187
|
+
value: z.ZodString;
|
|
188
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
189
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
190
|
+
}, z.core.$loose>;
|
|
191
|
+
/**
|
|
192
|
+
* Where a media part's bytes come from: carried inline, referenced by URL, or
|
|
193
|
+
* already at the provider under a handle it issued.
|
|
194
|
+
*/
|
|
195
|
+
declare const PartSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
68
196
|
type: z.ZodLiteral<"data">;
|
|
69
197
|
value: z.ZodString;
|
|
70
198
|
mimeType: z.ZodString;
|
|
71
|
-
}, z.core.$
|
|
199
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
72
200
|
type: z.ZodLiteral<"url">;
|
|
73
201
|
value: z.ZodString;
|
|
74
202
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
75
|
-
}, z.core.$
|
|
76
|
-
|
|
203
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
204
|
+
type: z.ZodLiteral<"file">;
|
|
205
|
+
value: z.ZodString;
|
|
206
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
207
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
208
|
+
}, z.core.$loose>]>;
|
|
209
|
+
/**
|
|
210
|
+
* An image part.
|
|
211
|
+
*/
|
|
212
|
+
declare const ImagePartSchema: z.ZodObject<{
|
|
77
213
|
type: z.ZodLiteral<"image">;
|
|
214
|
+
id: z.ZodOptional<z.ZodString>;
|
|
78
215
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
79
216
|
type: z.ZodLiteral<"data">;
|
|
80
217
|
value: z.ZodString;
|
|
81
218
|
mimeType: z.ZodString;
|
|
82
|
-
}, z.core.$
|
|
219
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
83
220
|
type: z.ZodLiteral<"url">;
|
|
84
221
|
value: z.ZodString;
|
|
85
222
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
86
|
-
}, z.core.$
|
|
87
|
-
|
|
88
|
-
}, z.core.$strip>;
|
|
89
|
-
declare const AudioInputContentSchema: z.ZodObject<{
|
|
90
|
-
type: z.ZodLiteral<"audio">;
|
|
91
|
-
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
92
|
-
type: z.ZodLiteral<"data">;
|
|
93
|
-
value: z.ZodString;
|
|
94
|
-
mimeType: z.ZodString;
|
|
95
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
96
|
-
type: z.ZodLiteral<"url">;
|
|
223
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
224
|
+
type: z.ZodLiteral<"file">;
|
|
97
225
|
value: z.ZodString;
|
|
226
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
98
227
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
99
|
-
}, z.core.$
|
|
100
|
-
metadata: z.ZodOptional<z.
|
|
101
|
-
}, z.core.$
|
|
102
|
-
|
|
103
|
-
|
|
228
|
+
}, z.core.$loose>]>;
|
|
229
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
230
|
+
}, z.core.$loose>;
|
|
231
|
+
/**
|
|
232
|
+
* An audio part.
|
|
233
|
+
*/
|
|
234
|
+
declare const AudioPartSchema: z.ZodObject<{
|
|
235
|
+
type: z.ZodLiteral<"audio">;
|
|
236
|
+
id: z.ZodOptional<z.ZodString>;
|
|
104
237
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
105
238
|
type: z.ZodLiteral<"data">;
|
|
106
239
|
value: z.ZodString;
|
|
107
240
|
mimeType: z.ZodString;
|
|
108
|
-
}, z.core.$
|
|
241
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
109
242
|
type: z.ZodLiteral<"url">;
|
|
110
243
|
value: z.ZodString;
|
|
111
244
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
112
|
-
}, z.core.$
|
|
113
|
-
|
|
114
|
-
}, z.core.$strip>;
|
|
115
|
-
declare const DocumentInputContentSchema: z.ZodObject<{
|
|
116
|
-
type: z.ZodLiteral<"document">;
|
|
117
|
-
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
118
|
-
type: z.ZodLiteral<"data">;
|
|
119
|
-
value: z.ZodString;
|
|
120
|
-
mimeType: z.ZodString;
|
|
121
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
122
|
-
type: z.ZodLiteral<"url">;
|
|
245
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
246
|
+
type: z.ZodLiteral<"file">;
|
|
123
247
|
value: z.ZodString;
|
|
248
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
124
249
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
125
|
-
}, z.core.$
|
|
126
|
-
metadata: z.ZodOptional<z.
|
|
127
|
-
}, z.core.$
|
|
128
|
-
|
|
129
|
-
|
|
250
|
+
}, z.core.$loose>]>;
|
|
251
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
252
|
+
}, z.core.$loose>;
|
|
253
|
+
/**
|
|
254
|
+
* A video part.
|
|
255
|
+
*/
|
|
256
|
+
declare const VideoPartSchema: z.ZodObject<{
|
|
257
|
+
type: z.ZodLiteral<"video">;
|
|
258
|
+
id: z.ZodOptional<z.ZodString>;
|
|
130
259
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
131
260
|
type: z.ZodLiteral<"data">;
|
|
132
261
|
value: z.ZodString;
|
|
133
262
|
mimeType: z.ZodString;
|
|
134
|
-
}, z.core.$
|
|
263
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
135
264
|
type: z.ZodLiteral<"url">;
|
|
136
265
|
value: z.ZodString;
|
|
137
266
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
138
|
-
}, z.core.$
|
|
139
|
-
|
|
140
|
-
}, z.core.$strip>;
|
|
141
|
-
declare const AudioInputPartSchema: z.ZodObject<{
|
|
142
|
-
type: z.ZodLiteral<"audio">;
|
|
143
|
-
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
144
|
-
type: z.ZodLiteral<"data">;
|
|
145
|
-
value: z.ZodString;
|
|
146
|
-
mimeType: z.ZodString;
|
|
147
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
148
|
-
type: z.ZodLiteral<"url">;
|
|
267
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
268
|
+
type: z.ZodLiteral<"file">;
|
|
149
269
|
value: z.ZodString;
|
|
270
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
150
271
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
151
|
-
}, z.core.$
|
|
152
|
-
metadata: z.ZodOptional<z.
|
|
153
|
-
}, z.core.$
|
|
154
|
-
|
|
155
|
-
|
|
272
|
+
}, z.core.$loose>]>;
|
|
273
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
274
|
+
}, z.core.$loose>;
|
|
275
|
+
/**
|
|
276
|
+
* A document part.
|
|
277
|
+
*/
|
|
278
|
+
declare const DocumentPartSchema: z.ZodObject<{
|
|
279
|
+
type: z.ZodLiteral<"document">;
|
|
280
|
+
id: z.ZodOptional<z.ZodString>;
|
|
156
281
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
157
282
|
type: z.ZodLiteral<"data">;
|
|
158
283
|
value: z.ZodString;
|
|
159
284
|
mimeType: z.ZodString;
|
|
160
|
-
}, z.core.$
|
|
285
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
161
286
|
type: z.ZodLiteral<"url">;
|
|
162
287
|
value: z.ZodString;
|
|
163
288
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
164
|
-
}, z.core.$
|
|
165
|
-
|
|
166
|
-
}, z.core.$strip>;
|
|
167
|
-
declare const DocumentInputPartSchema: z.ZodObject<{
|
|
168
|
-
type: z.ZodLiteral<"document">;
|
|
169
|
-
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
170
|
-
type: z.ZodLiteral<"data">;
|
|
171
|
-
value: z.ZodString;
|
|
172
|
-
mimeType: z.ZodString;
|
|
173
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
174
|
-
type: z.ZodLiteral<"url">;
|
|
289
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
290
|
+
type: z.ZodLiteral<"file">;
|
|
175
291
|
value: z.ZodString;
|
|
292
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
176
293
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
177
|
-
}, z.core.$
|
|
178
|
-
metadata: z.ZodOptional<z.
|
|
179
|
-
}, z.core.$
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}, z.core.$strip>;
|
|
188
|
-
declare const InputContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
294
|
+
}, z.core.$loose>]>;
|
|
295
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
296
|
+
}, z.core.$loose>;
|
|
297
|
+
/**
|
|
298
|
+
* One part of a message body: what a person sends in a user message, or what a
|
|
299
|
+
* tool returns in a tool message. Discriminated by type. Named by what the
|
|
300
|
+
* part is rather than by direction, because the same part travels into the
|
|
301
|
+
* model inside a user message and back out of the stream inside a tool result.
|
|
302
|
+
*/
|
|
303
|
+
declare const ContentPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
189
304
|
type: z.ZodLiteral<"text">;
|
|
305
|
+
id: z.ZodOptional<z.ZodString>;
|
|
190
306
|
text: z.ZodString;
|
|
191
|
-
|
|
307
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
308
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
192
309
|
type: z.ZodLiteral<"image">;
|
|
310
|
+
id: z.ZodOptional<z.ZodString>;
|
|
193
311
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
194
312
|
type: z.ZodLiteral<"data">;
|
|
195
313
|
value: z.ZodString;
|
|
196
314
|
mimeType: z.ZodString;
|
|
197
|
-
}, z.core.$
|
|
315
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
198
316
|
type: z.ZodLiteral<"url">;
|
|
199
317
|
value: z.ZodString;
|
|
200
318
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
201
|
-
}, z.core.$
|
|
202
|
-
|
|
203
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
204
|
-
type: z.ZodLiteral<"audio">;
|
|
205
|
-
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
206
|
-
type: z.ZodLiteral<"data">;
|
|
207
|
-
value: z.ZodString;
|
|
208
|
-
mimeType: z.ZodString;
|
|
209
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
210
|
-
type: z.ZodLiteral<"url">;
|
|
319
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
320
|
+
type: z.ZodLiteral<"file">;
|
|
211
321
|
value: z.ZodString;
|
|
322
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
212
323
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
213
|
-
}, z.core.$
|
|
214
|
-
metadata: z.ZodOptional<z.
|
|
215
|
-
}, z.core.$
|
|
216
|
-
type: z.ZodLiteral<"
|
|
324
|
+
}, z.core.$loose>]>;
|
|
325
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
326
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
327
|
+
type: z.ZodLiteral<"audio">;
|
|
328
|
+
id: z.ZodOptional<z.ZodString>;
|
|
217
329
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
218
330
|
type: z.ZodLiteral<"data">;
|
|
219
331
|
value: z.ZodString;
|
|
220
332
|
mimeType: z.ZodString;
|
|
221
|
-
}, z.core.$
|
|
333
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
222
334
|
type: z.ZodLiteral<"url">;
|
|
223
335
|
value: z.ZodString;
|
|
224
336
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
225
|
-
}, z.core.$
|
|
226
|
-
|
|
227
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
228
|
-
type: z.ZodLiteral<"document">;
|
|
229
|
-
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
230
|
-
type: z.ZodLiteral<"data">;
|
|
231
|
-
value: z.ZodString;
|
|
232
|
-
mimeType: z.ZodString;
|
|
233
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
234
|
-
type: z.ZodLiteral<"url">;
|
|
337
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
338
|
+
type: z.ZodLiteral<"file">;
|
|
235
339
|
value: z.ZodString;
|
|
340
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
236
341
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
237
|
-
}, z.core.$
|
|
238
|
-
metadata: z.ZodOptional<z.
|
|
239
|
-
}, z.core.$
|
|
240
|
-
type: z.ZodLiteral<"
|
|
241
|
-
mimeType: z.ZodString;
|
|
342
|
+
}, z.core.$loose>]>;
|
|
343
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
344
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
345
|
+
type: z.ZodLiteral<"video">;
|
|
242
346
|
id: z.ZodOptional<z.ZodString>;
|
|
243
|
-
url: z.ZodOptional<z.ZodString>;
|
|
244
|
-
data: z.ZodOptional<z.ZodString>;
|
|
245
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
246
|
-
}, z.core.$strip>]>;
|
|
247
|
-
declare const InputContentPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
248
|
-
type: z.ZodLiteral<"text">;
|
|
249
|
-
text: z.ZodString;
|
|
250
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
251
|
-
type: z.ZodLiteral<"image">;
|
|
252
347
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
253
348
|
type: z.ZodLiteral<"data">;
|
|
254
349
|
value: z.ZodString;
|
|
255
350
|
mimeType: z.ZodString;
|
|
256
|
-
}, z.core.$
|
|
351
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
257
352
|
type: z.ZodLiteral<"url">;
|
|
258
353
|
value: z.ZodString;
|
|
259
354
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
260
|
-
}, z.core.$
|
|
261
|
-
|
|
262
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
263
|
-
type: z.ZodLiteral<"audio">;
|
|
264
|
-
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
265
|
-
type: z.ZodLiteral<"data">;
|
|
266
|
-
value: z.ZodString;
|
|
267
|
-
mimeType: z.ZodString;
|
|
268
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
269
|
-
type: z.ZodLiteral<"url">;
|
|
355
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
356
|
+
type: z.ZodLiteral<"file">;
|
|
270
357
|
value: z.ZodString;
|
|
358
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
271
359
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
272
|
-
}, z.core.$
|
|
273
|
-
metadata: z.ZodOptional<z.
|
|
274
|
-
}, z.core.$
|
|
275
|
-
type: z.ZodLiteral<"
|
|
360
|
+
}, z.core.$loose>]>;
|
|
361
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
362
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
363
|
+
type: z.ZodLiteral<"document">;
|
|
364
|
+
id: z.ZodOptional<z.ZodString>;
|
|
276
365
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
277
366
|
type: z.ZodLiteral<"data">;
|
|
278
367
|
value: z.ZodString;
|
|
279
368
|
mimeType: z.ZodString;
|
|
280
|
-
}, z.core.$
|
|
369
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
281
370
|
type: z.ZodLiteral<"url">;
|
|
282
371
|
value: z.ZodString;
|
|
283
372
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
284
|
-
}, z.core.$
|
|
285
|
-
|
|
286
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
287
|
-
type: z.ZodLiteral<"document">;
|
|
288
|
-
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
289
|
-
type: z.ZodLiteral<"data">;
|
|
290
|
-
value: z.ZodString;
|
|
291
|
-
mimeType: z.ZodString;
|
|
292
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
293
|
-
type: z.ZodLiteral<"url">;
|
|
373
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
374
|
+
type: z.ZodLiteral<"file">;
|
|
294
375
|
value: z.ZodString;
|
|
376
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
295
377
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
296
|
-
}, z.core.$
|
|
297
|
-
metadata: z.ZodOptional<z.
|
|
298
|
-
}, z.core.$
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
378
|
+
}, z.core.$loose>]>;
|
|
379
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
380
|
+
}, z.core.$loose>]>;
|
|
381
|
+
/**
|
|
382
|
+
* Carries what a tool returned. Mints a tool message rather than appending to
|
|
383
|
+
* an existing one, which is why it has its own messageId.
|
|
384
|
+
*/
|
|
385
|
+
declare const ToolCallResultEventSchema: z.ZodObject<{
|
|
386
|
+
type: z.ZodLiteral<EventType.TOOL_CALL_RESULT>;
|
|
387
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
388
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
389
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
390
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
391
|
+
messageId: z.ZodString;
|
|
392
|
+
toolCallId: z.ZodString;
|
|
393
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
394
|
+
type: z.ZodLiteral<"text">;
|
|
395
|
+
id: z.ZodOptional<z.ZodString>;
|
|
396
|
+
text: z.ZodString;
|
|
397
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
398
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
399
|
+
type: z.ZodLiteral<"image">;
|
|
400
|
+
id: z.ZodOptional<z.ZodString>;
|
|
401
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
402
|
+
type: z.ZodLiteral<"data">;
|
|
403
|
+
value: z.ZodString;
|
|
404
|
+
mimeType: z.ZodString;
|
|
405
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
406
|
+
type: z.ZodLiteral<"url">;
|
|
407
|
+
value: z.ZodString;
|
|
408
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
409
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
410
|
+
type: z.ZodLiteral<"file">;
|
|
411
|
+
value: z.ZodString;
|
|
412
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
413
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
414
|
+
}, z.core.$loose>]>;
|
|
415
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
416
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
417
|
+
type: z.ZodLiteral<"audio">;
|
|
418
|
+
id: z.ZodOptional<z.ZodString>;
|
|
419
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
420
|
+
type: z.ZodLiteral<"data">;
|
|
421
|
+
value: z.ZodString;
|
|
422
|
+
mimeType: z.ZodString;
|
|
423
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
424
|
+
type: z.ZodLiteral<"url">;
|
|
425
|
+
value: z.ZodString;
|
|
426
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
427
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
428
|
+
type: z.ZodLiteral<"file">;
|
|
429
|
+
value: z.ZodString;
|
|
430
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
431
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
432
|
+
}, z.core.$loose>]>;
|
|
433
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
434
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
435
|
+
type: z.ZodLiteral<"video">;
|
|
436
|
+
id: z.ZodOptional<z.ZodString>;
|
|
437
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
438
|
+
type: z.ZodLiteral<"data">;
|
|
439
|
+
value: z.ZodString;
|
|
440
|
+
mimeType: z.ZodString;
|
|
441
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
442
|
+
type: z.ZodLiteral<"url">;
|
|
443
|
+
value: z.ZodString;
|
|
444
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
445
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
446
|
+
type: z.ZodLiteral<"file">;
|
|
447
|
+
value: z.ZodString;
|
|
448
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
449
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
450
|
+
}, z.core.$loose>]>;
|
|
451
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
452
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
453
|
+
type: z.ZodLiteral<"document">;
|
|
454
|
+
id: z.ZodOptional<z.ZodString>;
|
|
455
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
456
|
+
type: z.ZodLiteral<"data">;
|
|
457
|
+
value: z.ZodString;
|
|
458
|
+
mimeType: z.ZodString;
|
|
459
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
460
|
+
type: z.ZodLiteral<"url">;
|
|
461
|
+
value: z.ZodString;
|
|
462
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
463
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
464
|
+
type: z.ZodLiteral<"file">;
|
|
465
|
+
value: z.ZodString;
|
|
466
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
467
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
468
|
+
}, z.core.$loose>]>;
|
|
469
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
470
|
+
}, z.core.$loose>]>>]>;
|
|
471
|
+
role: z.ZodOptional<z.ZodLiteral<"tool">>;
|
|
472
|
+
}, z.core.$loose>;
|
|
473
|
+
/**
|
|
474
|
+
* Agent state. Any JSON value: the protocol carries state without interpreting
|
|
475
|
+
* it, so an object, an array, a string and a number are all valid.
|
|
476
|
+
*/
|
|
477
|
+
declare const StateSchema: z.ZodAny;
|
|
478
|
+
/**
|
|
479
|
+
* Replaces the agent state wholesale. Sent when a delta cannot express the
|
|
480
|
+
* change, or to resynchronise a consumer.
|
|
481
|
+
*/
|
|
482
|
+
declare const StateSnapshotEventSchema: z.ZodObject<{
|
|
483
|
+
type: z.ZodLiteral<EventType.STATE_SNAPSHOT>;
|
|
484
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
485
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
486
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
487
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
488
|
+
snapshot: z.ZodAny;
|
|
489
|
+
}, z.core.$loose>;
|
|
490
|
+
/**
|
|
491
|
+
* A JSON Pointer as defined by RFC 6901. Either the empty string, meaning the
|
|
492
|
+
* whole document, or a sequence of slash-prefixed reference tokens in which a
|
|
493
|
+
* tilde is escaped as ~0 and a slash as ~1. A value with no leading slash, or
|
|
494
|
+
* a tilde followed by anything other than 0 or 1, is not a JSON Pointer.
|
|
495
|
+
*/
|
|
496
|
+
declare const JsonPointerSchema: z.ZodString;
|
|
497
|
+
/**
|
|
498
|
+
* Inserts value at path. RFC 6902 section 4.1.
|
|
499
|
+
*/
|
|
500
|
+
declare const AddOperationSchema: z.ZodObject<{
|
|
501
|
+
op: z.ZodLiteral<"add">;
|
|
502
|
+
path: z.ZodString;
|
|
503
|
+
value: z.ZodAny;
|
|
504
|
+
}, z.core.$loose>;
|
|
505
|
+
/**
|
|
506
|
+
* Removes the value at path. RFC 6902 section 4.2.
|
|
507
|
+
*/
|
|
508
|
+
declare const RemoveOperationSchema: z.ZodObject<{
|
|
509
|
+
op: z.ZodLiteral<"remove">;
|
|
510
|
+
path: z.ZodString;
|
|
511
|
+
}, z.core.$loose>;
|
|
512
|
+
/**
|
|
513
|
+
* Replaces the value at path. RFC 6902 section 4.3.
|
|
514
|
+
*/
|
|
515
|
+
declare const ReplaceOperationSchema: z.ZodObject<{
|
|
516
|
+
op: z.ZodLiteral<"replace">;
|
|
517
|
+
path: z.ZodString;
|
|
518
|
+
value: z.ZodAny;
|
|
519
|
+
}, z.core.$loose>;
|
|
520
|
+
/**
|
|
521
|
+
* Moves the value at from to path. RFC 6902 section 4.4.
|
|
522
|
+
*/
|
|
523
|
+
declare const MoveOperationSchema: z.ZodObject<{
|
|
524
|
+
op: z.ZodLiteral<"move">;
|
|
525
|
+
from: z.ZodString;
|
|
526
|
+
path: z.ZodString;
|
|
527
|
+
}, z.core.$loose>;
|
|
528
|
+
/**
|
|
529
|
+
* Copies the value at from to path. RFC 6902 section 4.5.
|
|
530
|
+
*/
|
|
531
|
+
declare const CopyOperationSchema: z.ZodObject<{
|
|
532
|
+
op: z.ZodLiteral<"copy">;
|
|
533
|
+
from: z.ZodString;
|
|
534
|
+
path: z.ZodString;
|
|
535
|
+
}, z.core.$loose>;
|
|
536
|
+
/**
|
|
537
|
+
* Asserts that the value at path equals value. RFC 6902 section 4.6.
|
|
538
|
+
*/
|
|
539
|
+
declare const TestOperationSchema: z.ZodObject<{
|
|
540
|
+
op: z.ZodLiteral<"test">;
|
|
541
|
+
path: z.ZodString;
|
|
542
|
+
value: z.ZodAny;
|
|
543
|
+
}, z.core.$loose>;
|
|
544
|
+
/**
|
|
545
|
+
* A single RFC 6902 operation. Exactly one of the operation shapes must match,
|
|
546
|
+
* discriminated by op. Unlike the protocol's own objects, the operations are
|
|
547
|
+
* open: RFC 6902 section 4 requires members an operation does not define to be
|
|
548
|
+
* ignored rather than rejected, so a remove carrying a leftover value is a
|
|
549
|
+
* valid patch. Two of the RFC's rules are relations between values rather than
|
|
550
|
+
* shapes, so no static schema can express them and neither is checked here: a
|
|
551
|
+
* move whose from is a proper prefix of its path (section 4.4), and any
|
|
552
|
+
* operation whose pointer does not resolve in the target document. Both are
|
|
553
|
+
* the applier's to reject.
|
|
554
|
+
*/
|
|
555
|
+
declare const JsonPatchOperationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
556
|
+
op: z.ZodLiteral<"add">;
|
|
557
|
+
path: z.ZodString;
|
|
558
|
+
value: z.ZodAny;
|
|
559
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
560
|
+
op: z.ZodLiteral<"remove">;
|
|
561
|
+
path: z.ZodString;
|
|
562
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
563
|
+
op: z.ZodLiteral<"replace">;
|
|
564
|
+
path: z.ZodString;
|
|
565
|
+
value: z.ZodAny;
|
|
566
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
567
|
+
op: z.ZodLiteral<"move">;
|
|
568
|
+
from: z.ZodString;
|
|
569
|
+
path: z.ZodString;
|
|
570
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
571
|
+
op: z.ZodLiteral<"copy">;
|
|
572
|
+
from: z.ZodString;
|
|
573
|
+
path: z.ZodString;
|
|
574
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
575
|
+
op: z.ZodLiteral<"test">;
|
|
576
|
+
path: z.ZodString;
|
|
577
|
+
value: z.ZodAny;
|
|
578
|
+
}, z.core.$loose>]>;
|
|
579
|
+
/**
|
|
580
|
+
* A JSON Patch document as defined by RFC 6902, referenced by
|
|
581
|
+
* STATE_DELTA.delta and ACTIVITY_DELTA.patch: an ordered sequence of
|
|
582
|
+
* operations applied to a target document. An empty array is a valid no-op
|
|
583
|
+
* patch. Whether the operations actually apply to the document they target is
|
|
584
|
+
* a runtime question RFC 6902 leaves to the applier; structural validity here
|
|
585
|
+
* says nothing about it.
|
|
586
|
+
*/
|
|
587
|
+
declare const JsonPatchSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
588
|
+
op: z.ZodLiteral<"add">;
|
|
589
|
+
path: z.ZodString;
|
|
590
|
+
value: z.ZodAny;
|
|
591
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
592
|
+
op: z.ZodLiteral<"remove">;
|
|
593
|
+
path: z.ZodString;
|
|
594
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
595
|
+
op: z.ZodLiteral<"replace">;
|
|
596
|
+
path: z.ZodString;
|
|
597
|
+
value: z.ZodAny;
|
|
598
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
599
|
+
op: z.ZodLiteral<"move">;
|
|
600
|
+
from: z.ZodString;
|
|
601
|
+
path: z.ZodString;
|
|
602
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
603
|
+
op: z.ZodLiteral<"copy">;
|
|
604
|
+
from: z.ZodString;
|
|
605
|
+
path: z.ZodString;
|
|
606
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
607
|
+
op: z.ZodLiteral<"test">;
|
|
608
|
+
path: z.ZodString;
|
|
609
|
+
value: z.ZodAny;
|
|
610
|
+
}, z.core.$loose>]>>;
|
|
611
|
+
/**
|
|
612
|
+
* Changes the agent state incrementally.
|
|
613
|
+
*/
|
|
614
|
+
declare const StateDeltaEventSchema: z.ZodObject<{
|
|
615
|
+
type: z.ZodLiteral<EventType.STATE_DELTA>;
|
|
616
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
617
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
618
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
619
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
620
|
+
delta: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
621
|
+
op: z.ZodLiteral<"add">;
|
|
622
|
+
path: z.ZodString;
|
|
623
|
+
value: z.ZodAny;
|
|
624
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
625
|
+
op: z.ZodLiteral<"remove">;
|
|
626
|
+
path: z.ZodString;
|
|
627
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
628
|
+
op: z.ZodLiteral<"replace">;
|
|
629
|
+
path: z.ZodString;
|
|
630
|
+
value: z.ZodAny;
|
|
631
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
632
|
+
op: z.ZodLiteral<"move">;
|
|
633
|
+
from: z.ZodString;
|
|
634
|
+
path: z.ZodString;
|
|
635
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
636
|
+
op: z.ZodLiteral<"copy">;
|
|
637
|
+
from: z.ZodString;
|
|
638
|
+
path: z.ZodString;
|
|
639
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
640
|
+
op: z.ZodLiteral<"test">;
|
|
641
|
+
path: z.ZodString;
|
|
642
|
+
value: z.ZodAny;
|
|
643
|
+
}, z.core.$loose>]>>;
|
|
644
|
+
}, z.core.$loose>;
|
|
645
|
+
/**
|
|
646
|
+
* Instructions from the application developer.
|
|
647
|
+
*/
|
|
306
648
|
declare const DeveloperMessageSchema: z.ZodObject<{
|
|
649
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
650
|
+
id: z.ZodString;
|
|
651
|
+
role: z.ZodLiteral<"developer">;
|
|
652
|
+
name: z.ZodOptional<z.ZodString>;
|
|
653
|
+
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
654
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
655
|
+
content: z.ZodString;
|
|
656
|
+
}, z.core.$loose>;
|
|
657
|
+
/**
|
|
658
|
+
* Instructions from the system.
|
|
659
|
+
*/
|
|
660
|
+
declare const SystemMessageSchema: z.ZodObject<{
|
|
661
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
307
662
|
id: z.ZodString;
|
|
663
|
+
role: z.ZodLiteral<"system">;
|
|
308
664
|
name: z.ZodOptional<z.ZodString>;
|
|
309
665
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
310
|
-
|
|
666
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
311
667
|
content: z.ZodString;
|
|
312
|
-
}, z.core.$
|
|
313
|
-
|
|
668
|
+
}, z.core.$loose>;
|
|
669
|
+
/**
|
|
670
|
+
* The name and arguments of a tool call.
|
|
671
|
+
*/
|
|
672
|
+
declare const FunctionCallSchema: z.ZodObject<{
|
|
673
|
+
name: z.ZodString;
|
|
674
|
+
arguments: z.ZodString;
|
|
675
|
+
}, z.core.$loose>;
|
|
676
|
+
/**
|
|
677
|
+
* A call an assistant message made. Carries no subagent attribution of its own
|
|
678
|
+
* and inherits its containing message's, since several calls can share one
|
|
679
|
+
* parent.
|
|
680
|
+
*/
|
|
681
|
+
declare const ToolCallSchema: z.ZodObject<{
|
|
314
682
|
id: z.ZodString;
|
|
315
|
-
|
|
683
|
+
type: z.ZodLiteral<"function">;
|
|
684
|
+
function: z.ZodObject<{
|
|
685
|
+
name: z.ZodString;
|
|
686
|
+
arguments: z.ZodString;
|
|
687
|
+
}, z.core.$loose>;
|
|
316
688
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
689
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
690
|
+
}, z.core.$loose>;
|
|
691
|
+
/**
|
|
692
|
+
* A message from the agent. Content is optional because a turn may consist
|
|
693
|
+
* only of tool calls.
|
|
694
|
+
*/
|
|
320
695
|
declare const AssistantMessageSchema: z.ZodObject<{
|
|
696
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
321
697
|
id: z.ZodString;
|
|
698
|
+
role: z.ZodLiteral<"assistant">;
|
|
322
699
|
name: z.ZodOptional<z.ZodString>;
|
|
323
700
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
324
|
-
|
|
701
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
325
702
|
content: z.ZodOptional<z.ZodString>;
|
|
326
703
|
toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
327
704
|
id: z.ZodString;
|
|
@@ -329,112 +706,243 @@ declare const AssistantMessageSchema: z.ZodObject<{
|
|
|
329
706
|
function: z.ZodObject<{
|
|
330
707
|
name: z.ZodString;
|
|
331
708
|
arguments: z.ZodString;
|
|
332
|
-
}, z.core.$
|
|
709
|
+
}, z.core.$loose>;
|
|
333
710
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
334
|
-
|
|
335
|
-
}, z.core.$
|
|
711
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
712
|
+
}, z.core.$loose>>>;
|
|
713
|
+
}, z.core.$loose>;
|
|
714
|
+
/**
|
|
715
|
+
* A message from the person using the application.
|
|
716
|
+
*/
|
|
336
717
|
declare const UserMessageSchema: z.ZodObject<{
|
|
718
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
337
719
|
id: z.ZodString;
|
|
720
|
+
role: z.ZodLiteral<"user">;
|
|
338
721
|
name: z.ZodOptional<z.ZodString>;
|
|
339
722
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
340
|
-
|
|
723
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
341
724
|
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
342
725
|
type: z.ZodLiteral<"text">;
|
|
726
|
+
id: z.ZodOptional<z.ZodString>;
|
|
343
727
|
text: z.ZodString;
|
|
344
|
-
|
|
728
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
729
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
345
730
|
type: z.ZodLiteral<"image">;
|
|
731
|
+
id: z.ZodOptional<z.ZodString>;
|
|
346
732
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
347
733
|
type: z.ZodLiteral<"data">;
|
|
348
734
|
value: z.ZodString;
|
|
349
735
|
mimeType: z.ZodString;
|
|
350
|
-
}, z.core.$
|
|
736
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
351
737
|
type: z.ZodLiteral<"url">;
|
|
352
738
|
value: z.ZodString;
|
|
353
739
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
354
|
-
}, z.core.$
|
|
355
|
-
|
|
356
|
-
|
|
740
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
741
|
+
type: z.ZodLiteral<"file">;
|
|
742
|
+
value: z.ZodString;
|
|
743
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
744
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
745
|
+
}, z.core.$loose>]>;
|
|
746
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
747
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
357
748
|
type: z.ZodLiteral<"audio">;
|
|
749
|
+
id: z.ZodOptional<z.ZodString>;
|
|
358
750
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
359
751
|
type: z.ZodLiteral<"data">;
|
|
360
752
|
value: z.ZodString;
|
|
361
753
|
mimeType: z.ZodString;
|
|
362
|
-
}, z.core.$
|
|
754
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
363
755
|
type: z.ZodLiteral<"url">;
|
|
364
756
|
value: z.ZodString;
|
|
365
757
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
366
|
-
}, z.core.$
|
|
367
|
-
|
|
368
|
-
|
|
758
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
759
|
+
type: z.ZodLiteral<"file">;
|
|
760
|
+
value: z.ZodString;
|
|
761
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
762
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
763
|
+
}, z.core.$loose>]>;
|
|
764
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
765
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
369
766
|
type: z.ZodLiteral<"video">;
|
|
767
|
+
id: z.ZodOptional<z.ZodString>;
|
|
370
768
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
371
769
|
type: z.ZodLiteral<"data">;
|
|
372
770
|
value: z.ZodString;
|
|
373
771
|
mimeType: z.ZodString;
|
|
374
|
-
}, z.core.$
|
|
772
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
375
773
|
type: z.ZodLiteral<"url">;
|
|
376
774
|
value: z.ZodString;
|
|
377
775
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
378
|
-
}, z.core.$
|
|
379
|
-
|
|
380
|
-
|
|
776
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
777
|
+
type: z.ZodLiteral<"file">;
|
|
778
|
+
value: z.ZodString;
|
|
779
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
780
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
781
|
+
}, z.core.$loose>]>;
|
|
782
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
783
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
381
784
|
type: z.ZodLiteral<"document">;
|
|
785
|
+
id: z.ZodOptional<z.ZodString>;
|
|
382
786
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
383
787
|
type: z.ZodLiteral<"data">;
|
|
384
788
|
value: z.ZodString;
|
|
385
789
|
mimeType: z.ZodString;
|
|
386
|
-
}, z.core.$
|
|
790
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
387
791
|
type: z.ZodLiteral<"url">;
|
|
388
792
|
value: z.ZodString;
|
|
389
793
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
390
|
-
}, z.core.$
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
794
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
795
|
+
type: z.ZodLiteral<"file">;
|
|
796
|
+
value: z.ZodString;
|
|
797
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
798
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
799
|
+
}, z.core.$loose>]>;
|
|
800
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
801
|
+
}, z.core.$loose>]>>]>;
|
|
802
|
+
}, z.core.$loose>;
|
|
803
|
+
/**
|
|
804
|
+
* What a tool returned, as a message in the conversation. Stands alone rather
|
|
805
|
+
* than composing BaseMessage, because it carries no name.
|
|
806
|
+
*/
|
|
401
807
|
declare const ToolMessageSchema: z.ZodObject<{
|
|
808
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
402
809
|
id: z.ZodString;
|
|
403
|
-
content: z.ZodString;
|
|
404
810
|
role: z.ZodLiteral<"tool">;
|
|
811
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
812
|
+
type: z.ZodLiteral<"text">;
|
|
813
|
+
id: z.ZodOptional<z.ZodString>;
|
|
814
|
+
text: z.ZodString;
|
|
815
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
816
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
817
|
+
type: z.ZodLiteral<"image">;
|
|
818
|
+
id: z.ZodOptional<z.ZodString>;
|
|
819
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
820
|
+
type: z.ZodLiteral<"data">;
|
|
821
|
+
value: z.ZodString;
|
|
822
|
+
mimeType: z.ZodString;
|
|
823
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
824
|
+
type: z.ZodLiteral<"url">;
|
|
825
|
+
value: z.ZodString;
|
|
826
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
827
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
828
|
+
type: z.ZodLiteral<"file">;
|
|
829
|
+
value: z.ZodString;
|
|
830
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
831
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
832
|
+
}, z.core.$loose>]>;
|
|
833
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
834
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
835
|
+
type: z.ZodLiteral<"audio">;
|
|
836
|
+
id: z.ZodOptional<z.ZodString>;
|
|
837
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
838
|
+
type: z.ZodLiteral<"data">;
|
|
839
|
+
value: z.ZodString;
|
|
840
|
+
mimeType: z.ZodString;
|
|
841
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
842
|
+
type: z.ZodLiteral<"url">;
|
|
843
|
+
value: z.ZodString;
|
|
844
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
845
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
846
|
+
type: z.ZodLiteral<"file">;
|
|
847
|
+
value: z.ZodString;
|
|
848
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
849
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
850
|
+
}, z.core.$loose>]>;
|
|
851
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
852
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
853
|
+
type: z.ZodLiteral<"video">;
|
|
854
|
+
id: z.ZodOptional<z.ZodString>;
|
|
855
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
856
|
+
type: z.ZodLiteral<"data">;
|
|
857
|
+
value: z.ZodString;
|
|
858
|
+
mimeType: z.ZodString;
|
|
859
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
860
|
+
type: z.ZodLiteral<"url">;
|
|
861
|
+
value: z.ZodString;
|
|
862
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
863
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
864
|
+
type: z.ZodLiteral<"file">;
|
|
865
|
+
value: z.ZodString;
|
|
866
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
867
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
868
|
+
}, z.core.$loose>]>;
|
|
869
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
870
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
871
|
+
type: z.ZodLiteral<"document">;
|
|
872
|
+
id: z.ZodOptional<z.ZodString>;
|
|
873
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
874
|
+
type: z.ZodLiteral<"data">;
|
|
875
|
+
value: z.ZodString;
|
|
876
|
+
mimeType: z.ZodString;
|
|
877
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
878
|
+
type: z.ZodLiteral<"url">;
|
|
879
|
+
value: z.ZodString;
|
|
880
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
881
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
882
|
+
type: z.ZodLiteral<"file">;
|
|
883
|
+
value: z.ZodString;
|
|
884
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
885
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
886
|
+
}, z.core.$loose>]>;
|
|
887
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
888
|
+
}, z.core.$loose>]>>]>;
|
|
405
889
|
toolCallId: z.ZodString;
|
|
406
890
|
error: z.ZodOptional<z.ZodString>;
|
|
407
891
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
408
|
-
|
|
892
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
893
|
+
}, z.core.$loose>;
|
|
894
|
+
/**
|
|
895
|
+
* Structured progress that is not conversation content, materialised as a
|
|
896
|
+
* message so it keeps its place in the sequence. Stands alone rather than
|
|
897
|
+
* composing BaseMessage, because its content is an object rather than a
|
|
898
|
+
* string.
|
|
899
|
+
*/
|
|
409
900
|
declare const ActivityMessageSchema: z.ZodObject<{
|
|
901
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
410
902
|
id: z.ZodString;
|
|
411
903
|
role: z.ZodLiteral<"activity">;
|
|
412
904
|
activityType: z.ZodString;
|
|
413
|
-
content: z.
|
|
414
|
-
|
|
905
|
+
content: z.ZodCustom<Record<string, any>, Record<string, any>>;
|
|
906
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
907
|
+
}, z.core.$loose>;
|
|
908
|
+
/**
|
|
909
|
+
* A span of the agent's reasoning, materialised as a message. Stands alone
|
|
910
|
+
* rather than composing BaseMessage, because it carries no name.
|
|
911
|
+
*/
|
|
415
912
|
declare const ReasoningMessageSchema: z.ZodObject<{
|
|
913
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
416
914
|
id: z.ZodString;
|
|
417
915
|
role: z.ZodLiteral<"reasoning">;
|
|
418
916
|
content: z.ZodString;
|
|
419
917
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
420
|
-
|
|
918
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
919
|
+
}, z.core.$loose>;
|
|
920
|
+
/**
|
|
921
|
+
* Any message in a conversation. Discriminated by role.
|
|
922
|
+
*/
|
|
421
923
|
declare const MessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
924
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
422
925
|
id: z.ZodString;
|
|
926
|
+
role: z.ZodLiteral<"developer">;
|
|
423
927
|
name: z.ZodOptional<z.ZodString>;
|
|
424
928
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
425
|
-
|
|
929
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
426
930
|
content: z.ZodString;
|
|
427
|
-
}, z.core.$
|
|
931
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
932
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
428
933
|
id: z.ZodString;
|
|
934
|
+
role: z.ZodLiteral<"system">;
|
|
429
935
|
name: z.ZodOptional<z.ZodString>;
|
|
430
936
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
431
|
-
|
|
937
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
432
938
|
content: z.ZodString;
|
|
433
|
-
}, z.core.$
|
|
939
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
940
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
434
941
|
id: z.ZodString;
|
|
942
|
+
role: z.ZodLiteral<"assistant">;
|
|
435
943
|
name: z.ZodOptional<z.ZodString>;
|
|
436
944
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
437
|
-
|
|
945
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
438
946
|
content: z.ZodOptional<z.ZodString>;
|
|
439
947
|
toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
440
948
|
id: z.ZodString;
|
|
@@ -442,141 +950,233 @@ declare const MessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
442
950
|
function: z.ZodObject<{
|
|
443
951
|
name: z.ZodString;
|
|
444
952
|
arguments: z.ZodString;
|
|
445
|
-
}, z.core.$
|
|
953
|
+
}, z.core.$loose>;
|
|
446
954
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
447
|
-
|
|
448
|
-
}, z.core.$
|
|
955
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
956
|
+
}, z.core.$loose>>>;
|
|
957
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
958
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
449
959
|
id: z.ZodString;
|
|
960
|
+
role: z.ZodLiteral<"user">;
|
|
450
961
|
name: z.ZodOptional<z.ZodString>;
|
|
451
962
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
452
|
-
|
|
963
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
453
964
|
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
454
965
|
type: z.ZodLiteral<"text">;
|
|
966
|
+
id: z.ZodOptional<z.ZodString>;
|
|
455
967
|
text: z.ZodString;
|
|
456
|
-
|
|
968
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
969
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
457
970
|
type: z.ZodLiteral<"image">;
|
|
971
|
+
id: z.ZodOptional<z.ZodString>;
|
|
458
972
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
459
973
|
type: z.ZodLiteral<"data">;
|
|
460
974
|
value: z.ZodString;
|
|
461
975
|
mimeType: z.ZodString;
|
|
462
|
-
}, z.core.$
|
|
976
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
463
977
|
type: z.ZodLiteral<"url">;
|
|
464
978
|
value: z.ZodString;
|
|
465
979
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
466
|
-
}, z.core.$
|
|
467
|
-
|
|
468
|
-
|
|
980
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
981
|
+
type: z.ZodLiteral<"file">;
|
|
982
|
+
value: z.ZodString;
|
|
983
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
984
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
985
|
+
}, z.core.$loose>]>;
|
|
986
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
987
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
469
988
|
type: z.ZodLiteral<"audio">;
|
|
989
|
+
id: z.ZodOptional<z.ZodString>;
|
|
470
990
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
471
991
|
type: z.ZodLiteral<"data">;
|
|
472
992
|
value: z.ZodString;
|
|
473
993
|
mimeType: z.ZodString;
|
|
474
|
-
}, z.core.$
|
|
994
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
475
995
|
type: z.ZodLiteral<"url">;
|
|
476
996
|
value: z.ZodString;
|
|
477
997
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
478
|
-
}, z.core.$
|
|
479
|
-
|
|
480
|
-
|
|
998
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
999
|
+
type: z.ZodLiteral<"file">;
|
|
1000
|
+
value: z.ZodString;
|
|
1001
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1002
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1003
|
+
}, z.core.$loose>]>;
|
|
1004
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1005
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
481
1006
|
type: z.ZodLiteral<"video">;
|
|
1007
|
+
id: z.ZodOptional<z.ZodString>;
|
|
482
1008
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
483
1009
|
type: z.ZodLiteral<"data">;
|
|
484
1010
|
value: z.ZodString;
|
|
485
1011
|
mimeType: z.ZodString;
|
|
486
|
-
}, z.core.$
|
|
1012
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
487
1013
|
type: z.ZodLiteral<"url">;
|
|
488
1014
|
value: z.ZodString;
|
|
489
1015
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
490
|
-
}, z.core.$
|
|
491
|
-
|
|
492
|
-
|
|
1016
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1017
|
+
type: z.ZodLiteral<"file">;
|
|
1018
|
+
value: z.ZodString;
|
|
1019
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1020
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1021
|
+
}, z.core.$loose>]>;
|
|
1022
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1023
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
493
1024
|
type: z.ZodLiteral<"document">;
|
|
1025
|
+
id: z.ZodOptional<z.ZodString>;
|
|
494
1026
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
495
1027
|
type: z.ZodLiteral<"data">;
|
|
496
1028
|
value: z.ZodString;
|
|
497
1029
|
mimeType: z.ZodString;
|
|
498
|
-
}, z.core.$
|
|
1030
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
499
1031
|
type: z.ZodLiteral<"url">;
|
|
500
1032
|
value: z.ZodString;
|
|
501
1033
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
502
|
-
}, z.core.$
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1034
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1035
|
+
type: z.ZodLiteral<"file">;
|
|
1036
|
+
value: z.ZodString;
|
|
1037
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1038
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1039
|
+
}, z.core.$loose>]>;
|
|
1040
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1041
|
+
}, z.core.$loose>]>>]>;
|
|
1042
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1043
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
513
1044
|
id: z.ZodString;
|
|
514
|
-
content: z.ZodString;
|
|
515
1045
|
role: z.ZodLiteral<"tool">;
|
|
1046
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1047
|
+
type: z.ZodLiteral<"text">;
|
|
1048
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1049
|
+
text: z.ZodString;
|
|
1050
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1051
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1052
|
+
type: z.ZodLiteral<"image">;
|
|
1053
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1054
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1055
|
+
type: z.ZodLiteral<"data">;
|
|
1056
|
+
value: z.ZodString;
|
|
1057
|
+
mimeType: z.ZodString;
|
|
1058
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1059
|
+
type: z.ZodLiteral<"url">;
|
|
1060
|
+
value: z.ZodString;
|
|
1061
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1062
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1063
|
+
type: z.ZodLiteral<"file">;
|
|
1064
|
+
value: z.ZodString;
|
|
1065
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1066
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1067
|
+
}, z.core.$loose>]>;
|
|
1068
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1069
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1070
|
+
type: z.ZodLiteral<"audio">;
|
|
1071
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1072
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1073
|
+
type: z.ZodLiteral<"data">;
|
|
1074
|
+
value: z.ZodString;
|
|
1075
|
+
mimeType: z.ZodString;
|
|
1076
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1077
|
+
type: z.ZodLiteral<"url">;
|
|
1078
|
+
value: z.ZodString;
|
|
1079
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1080
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1081
|
+
type: z.ZodLiteral<"file">;
|
|
1082
|
+
value: z.ZodString;
|
|
1083
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1084
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1085
|
+
}, z.core.$loose>]>;
|
|
1086
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1087
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1088
|
+
type: z.ZodLiteral<"video">;
|
|
1089
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1090
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1091
|
+
type: z.ZodLiteral<"data">;
|
|
1092
|
+
value: z.ZodString;
|
|
1093
|
+
mimeType: z.ZodString;
|
|
1094
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1095
|
+
type: z.ZodLiteral<"url">;
|
|
1096
|
+
value: z.ZodString;
|
|
1097
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1098
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1099
|
+
type: z.ZodLiteral<"file">;
|
|
1100
|
+
value: z.ZodString;
|
|
1101
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1102
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1103
|
+
}, z.core.$loose>]>;
|
|
1104
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1105
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1106
|
+
type: z.ZodLiteral<"document">;
|
|
1107
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1108
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1109
|
+
type: z.ZodLiteral<"data">;
|
|
1110
|
+
value: z.ZodString;
|
|
1111
|
+
mimeType: z.ZodString;
|
|
1112
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1113
|
+
type: z.ZodLiteral<"url">;
|
|
1114
|
+
value: z.ZodString;
|
|
1115
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1116
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1117
|
+
type: z.ZodLiteral<"file">;
|
|
1118
|
+
value: z.ZodString;
|
|
1119
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1120
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1121
|
+
}, z.core.$loose>]>;
|
|
1122
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1123
|
+
}, z.core.$loose>]>>]>;
|
|
516
1124
|
toolCallId: z.ZodString;
|
|
517
1125
|
error: z.ZodOptional<z.ZodString>;
|
|
518
1126
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
519
|
-
|
|
1127
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1128
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1129
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
520
1130
|
id: z.ZodString;
|
|
521
1131
|
role: z.ZodLiteral<"activity">;
|
|
522
1132
|
activityType: z.ZodString;
|
|
523
|
-
content: z.
|
|
524
|
-
|
|
1133
|
+
content: z.ZodCustom<Record<string, any>, Record<string, any>>;
|
|
1134
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1135
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1136
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
525
1137
|
id: z.ZodString;
|
|
526
1138
|
role: z.ZodLiteral<"reasoning">;
|
|
527
1139
|
content: z.ZodString;
|
|
528
1140
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
toolCallId: z.ZodOptional<z.ZodString>;
|
|
546
|
-
responseSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
547
|
-
expiresAt: z.ZodOptional<z.ZodString>;
|
|
548
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
549
|
-
}, z.core.$strip>;
|
|
550
|
-
declare const ResumeEntrySchema: z.ZodObject<{
|
|
551
|
-
interruptId: z.ZodString;
|
|
552
|
-
status: z.ZodEnum<{
|
|
553
|
-
resolved: "resolved";
|
|
554
|
-
cancelled: "cancelled";
|
|
555
|
-
}>;
|
|
556
|
-
payload: z.ZodOptional<z.ZodAny>;
|
|
557
|
-
}, z.core.$strip>;
|
|
558
|
-
declare const RunAgentInputSchema: z.ZodObject<{
|
|
559
|
-
threadId: z.ZodString;
|
|
560
|
-
runId: z.ZodString;
|
|
561
|
-
parentRunId: z.ZodOptional<z.ZodString>;
|
|
562
|
-
state: z.ZodOptional<z.ZodAny>;
|
|
1141
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1142
|
+
}, z.core.$loose>]>;
|
|
1143
|
+
/**
|
|
1144
|
+
* The complete set of messages the producer owns, in order. Conversation-wide
|
|
1145
|
+
* rather than a plain overwrite: a consumer may keep messages of its own that
|
|
1146
|
+
* no producer tracks, so exactly how a snapshot reconciles with those is
|
|
1147
|
+
* behavioural and belongs in the prose. Being conversation-wide it cannot
|
|
1148
|
+
* belong to a single subagent, so it carries no attribution; it does establish
|
|
1149
|
+
* which subagent owns each message it contains, through the messages
|
|
1150
|
+
* themselves.
|
|
1151
|
+
*/
|
|
1152
|
+
declare const MessagesSnapshotEventSchema: z.ZodObject<{
|
|
1153
|
+
type: z.ZodLiteral<EventType.MESSAGES_SNAPSHOT>;
|
|
1154
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
1155
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1156
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
563
1157
|
messages: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1158
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
564
1159
|
id: z.ZodString;
|
|
1160
|
+
role: z.ZodLiteral<"developer">;
|
|
565
1161
|
name: z.ZodOptional<z.ZodString>;
|
|
566
1162
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
567
|
-
|
|
1163
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
568
1164
|
content: z.ZodString;
|
|
569
|
-
}, z.core.$
|
|
1165
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1166
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
570
1167
|
id: z.ZodString;
|
|
1168
|
+
role: z.ZodLiteral<"system">;
|
|
571
1169
|
name: z.ZodOptional<z.ZodString>;
|
|
572
1170
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
573
|
-
|
|
1171
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
574
1172
|
content: z.ZodString;
|
|
575
|
-
}, z.core.$
|
|
1173
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1174
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
576
1175
|
id: z.ZodString;
|
|
1176
|
+
role: z.ZodLiteral<"assistant">;
|
|
577
1177
|
name: z.ZodOptional<z.ZodString>;
|
|
578
1178
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
579
|
-
|
|
1179
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
580
1180
|
content: z.ZodOptional<z.ZodString>;
|
|
581
1181
|
toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
582
1182
|
id: z.ZodString;
|
|
@@ -584,295 +1184,339 @@ declare const RunAgentInputSchema: z.ZodObject<{
|
|
|
584
1184
|
function: z.ZodObject<{
|
|
585
1185
|
name: z.ZodString;
|
|
586
1186
|
arguments: z.ZodString;
|
|
587
|
-
}, z.core.$
|
|
1187
|
+
}, z.core.$loose>;
|
|
588
1188
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
589
|
-
|
|
590
|
-
|
|
1189
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1190
|
+
}, z.core.$loose>>>;
|
|
1191
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1192
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1193
|
+
id: z.ZodString;
|
|
1194
|
+
role: z.ZodLiteral<"user">;
|
|
1195
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1196
|
+
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
1197
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1198
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1199
|
+
type: z.ZodLiteral<"text">;
|
|
1200
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1201
|
+
text: z.ZodString;
|
|
1202
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1203
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1204
|
+
type: z.ZodLiteral<"image">;
|
|
1205
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1206
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1207
|
+
type: z.ZodLiteral<"data">;
|
|
1208
|
+
value: z.ZodString;
|
|
1209
|
+
mimeType: z.ZodString;
|
|
1210
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1211
|
+
type: z.ZodLiteral<"url">;
|
|
1212
|
+
value: z.ZodString;
|
|
1213
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1214
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1215
|
+
type: z.ZodLiteral<"file">;
|
|
1216
|
+
value: z.ZodString;
|
|
1217
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1218
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1219
|
+
}, z.core.$loose>]>;
|
|
1220
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1221
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1222
|
+
type: z.ZodLiteral<"audio">;
|
|
1223
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1224
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1225
|
+
type: z.ZodLiteral<"data">;
|
|
1226
|
+
value: z.ZodString;
|
|
1227
|
+
mimeType: z.ZodString;
|
|
1228
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1229
|
+
type: z.ZodLiteral<"url">;
|
|
1230
|
+
value: z.ZodString;
|
|
1231
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1232
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1233
|
+
type: z.ZodLiteral<"file">;
|
|
1234
|
+
value: z.ZodString;
|
|
1235
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1236
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1237
|
+
}, z.core.$loose>]>;
|
|
1238
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1239
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1240
|
+
type: z.ZodLiteral<"video">;
|
|
1241
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1242
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1243
|
+
type: z.ZodLiteral<"data">;
|
|
1244
|
+
value: z.ZodString;
|
|
1245
|
+
mimeType: z.ZodString;
|
|
1246
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1247
|
+
type: z.ZodLiteral<"url">;
|
|
1248
|
+
value: z.ZodString;
|
|
1249
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1250
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1251
|
+
type: z.ZodLiteral<"file">;
|
|
1252
|
+
value: z.ZodString;
|
|
1253
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1254
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1255
|
+
}, z.core.$loose>]>;
|
|
1256
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1257
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1258
|
+
type: z.ZodLiteral<"document">;
|
|
1259
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1260
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1261
|
+
type: z.ZodLiteral<"data">;
|
|
1262
|
+
value: z.ZodString;
|
|
1263
|
+
mimeType: z.ZodString;
|
|
1264
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1265
|
+
type: z.ZodLiteral<"url">;
|
|
1266
|
+
value: z.ZodString;
|
|
1267
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1268
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1269
|
+
type: z.ZodLiteral<"file">;
|
|
1270
|
+
value: z.ZodString;
|
|
1271
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1272
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1273
|
+
}, z.core.$loose>]>;
|
|
1274
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1275
|
+
}, z.core.$loose>]>>]>;
|
|
1276
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1277
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
591
1278
|
id: z.ZodString;
|
|
592
|
-
|
|
593
|
-
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
594
|
-
role: z.ZodLiteral<"user">;
|
|
1279
|
+
role: z.ZodLiteral<"tool">;
|
|
595
1280
|
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
596
1281
|
type: z.ZodLiteral<"text">;
|
|
1282
|
+
id: z.ZodOptional<z.ZodString>;
|
|
597
1283
|
text: z.ZodString;
|
|
598
|
-
|
|
1284
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1285
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
599
1286
|
type: z.ZodLiteral<"image">;
|
|
1287
|
+
id: z.ZodOptional<z.ZodString>;
|
|
600
1288
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
601
1289
|
type: z.ZodLiteral<"data">;
|
|
602
1290
|
value: z.ZodString;
|
|
603
1291
|
mimeType: z.ZodString;
|
|
604
|
-
}, z.core.$
|
|
1292
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
605
1293
|
type: z.ZodLiteral<"url">;
|
|
606
1294
|
value: z.ZodString;
|
|
607
1295
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
608
|
-
}, z.core.$
|
|
609
|
-
|
|
610
|
-
|
|
1296
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1297
|
+
type: z.ZodLiteral<"file">;
|
|
1298
|
+
value: z.ZodString;
|
|
1299
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1300
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1301
|
+
}, z.core.$loose>]>;
|
|
1302
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1303
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
611
1304
|
type: z.ZodLiteral<"audio">;
|
|
1305
|
+
id: z.ZodOptional<z.ZodString>;
|
|
612
1306
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
613
1307
|
type: z.ZodLiteral<"data">;
|
|
614
1308
|
value: z.ZodString;
|
|
615
1309
|
mimeType: z.ZodString;
|
|
616
|
-
}, z.core.$
|
|
1310
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
617
1311
|
type: z.ZodLiteral<"url">;
|
|
618
1312
|
value: z.ZodString;
|
|
619
1313
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
620
|
-
}, z.core.$
|
|
621
|
-
|
|
622
|
-
|
|
1314
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1315
|
+
type: z.ZodLiteral<"file">;
|
|
1316
|
+
value: z.ZodString;
|
|
1317
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1318
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1319
|
+
}, z.core.$loose>]>;
|
|
1320
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1321
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
623
1322
|
type: z.ZodLiteral<"video">;
|
|
1323
|
+
id: z.ZodOptional<z.ZodString>;
|
|
624
1324
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
625
1325
|
type: z.ZodLiteral<"data">;
|
|
626
1326
|
value: z.ZodString;
|
|
627
1327
|
mimeType: z.ZodString;
|
|
628
|
-
}, z.core.$
|
|
1328
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
629
1329
|
type: z.ZodLiteral<"url">;
|
|
630
1330
|
value: z.ZodString;
|
|
631
1331
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
632
|
-
}, z.core.$
|
|
633
|
-
|
|
634
|
-
|
|
1332
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1333
|
+
type: z.ZodLiteral<"file">;
|
|
1334
|
+
value: z.ZodString;
|
|
1335
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1336
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1337
|
+
}, z.core.$loose>]>;
|
|
1338
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1339
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
635
1340
|
type: z.ZodLiteral<"document">;
|
|
1341
|
+
id: z.ZodOptional<z.ZodString>;
|
|
636
1342
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
637
1343
|
type: z.ZodLiteral<"data">;
|
|
638
1344
|
value: z.ZodString;
|
|
639
1345
|
mimeType: z.ZodString;
|
|
640
|
-
}, z.core.$
|
|
1346
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
641
1347
|
type: z.ZodLiteral<"url">;
|
|
642
1348
|
value: z.ZodString;
|
|
643
1349
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
644
|
-
}, z.core.$
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
653
|
-
}, z.core.$strip>]>>]>;
|
|
654
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
655
|
-
id: z.ZodString;
|
|
656
|
-
content: z.ZodString;
|
|
657
|
-
role: z.ZodLiteral<"tool">;
|
|
1350
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1351
|
+
type: z.ZodLiteral<"file">;
|
|
1352
|
+
value: z.ZodString;
|
|
1353
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1354
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1355
|
+
}, z.core.$loose>]>;
|
|
1356
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1357
|
+
}, z.core.$loose>]>>]>;
|
|
658
1358
|
toolCallId: z.ZodString;
|
|
659
1359
|
error: z.ZodOptional<z.ZodString>;
|
|
660
1360
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
661
|
-
|
|
1361
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1362
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1363
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
662
1364
|
id: z.ZodString;
|
|
663
1365
|
role: z.ZodLiteral<"activity">;
|
|
664
1366
|
activityType: z.ZodString;
|
|
665
|
-
content: z.
|
|
666
|
-
|
|
1367
|
+
content: z.ZodCustom<Record<string, any>, Record<string, any>>;
|
|
1368
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1369
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1370
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
667
1371
|
id: z.ZodString;
|
|
668
1372
|
role: z.ZodLiteral<"reasoning">;
|
|
669
1373
|
content: z.ZodString;
|
|
670
1374
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
name: z.ZodString;
|
|
674
|
-
description: z.ZodString;
|
|
675
|
-
parameters: z.ZodOptional<z.ZodAny>;
|
|
676
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
677
|
-
}, z.core.$strip>>;
|
|
678
|
-
context: z.ZodArray<z.ZodObject<{
|
|
679
|
-
description: z.ZodString;
|
|
680
|
-
value: z.ZodString;
|
|
681
|
-
}, z.core.$strip>>;
|
|
682
|
-
forwardedProps: z.ZodOptional<z.ZodAny>;
|
|
683
|
-
resume: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
684
|
-
interruptId: z.ZodString;
|
|
685
|
-
status: z.ZodEnum<{
|
|
686
|
-
resolved: "resolved";
|
|
687
|
-
cancelled: "cancelled";
|
|
688
|
-
}>;
|
|
689
|
-
payload: z.ZodOptional<z.ZodAny>;
|
|
690
|
-
}, z.core.$strip>>>;
|
|
691
|
-
}, z.core.$strip>;
|
|
692
|
-
declare const StateSchema: z.ZodAny;
|
|
693
|
-
declare const BaseEventSchema: z.ZodObject<{
|
|
694
|
-
type: z.ZodEnum<{
|
|
695
|
-
TEXT_MESSAGE_START: "TEXT_MESSAGE_START";
|
|
696
|
-
TEXT_MESSAGE_CONTENT: "TEXT_MESSAGE_CONTENT";
|
|
697
|
-
TEXT_MESSAGE_END: "TEXT_MESSAGE_END";
|
|
698
|
-
TEXT_MESSAGE_CHUNK: "TEXT_MESSAGE_CHUNK";
|
|
699
|
-
TOOL_CALL_START: "TOOL_CALL_START";
|
|
700
|
-
TOOL_CALL_ARGS: "TOOL_CALL_ARGS";
|
|
701
|
-
TOOL_CALL_END: "TOOL_CALL_END";
|
|
702
|
-
TOOL_CALL_CHUNK: "TOOL_CALL_CHUNK";
|
|
703
|
-
TOOL_CALL_RESULT: "TOOL_CALL_RESULT";
|
|
704
|
-
THINKING_START: "THINKING_START";
|
|
705
|
-
THINKING_END: "THINKING_END";
|
|
706
|
-
THINKING_TEXT_MESSAGE_START: "THINKING_TEXT_MESSAGE_START";
|
|
707
|
-
THINKING_TEXT_MESSAGE_CONTENT: "THINKING_TEXT_MESSAGE_CONTENT";
|
|
708
|
-
THINKING_TEXT_MESSAGE_END: "THINKING_TEXT_MESSAGE_END";
|
|
709
|
-
STATE_SNAPSHOT: "STATE_SNAPSHOT";
|
|
710
|
-
STATE_DELTA: "STATE_DELTA";
|
|
711
|
-
MESSAGES_SNAPSHOT: "MESSAGES_SNAPSHOT";
|
|
712
|
-
ACTIVITY_SNAPSHOT: "ACTIVITY_SNAPSHOT";
|
|
713
|
-
ACTIVITY_DELTA: "ACTIVITY_DELTA";
|
|
714
|
-
RAW: "RAW";
|
|
715
|
-
CUSTOM: "CUSTOM";
|
|
716
|
-
RUN_STARTED: "RUN_STARTED";
|
|
717
|
-
RUN_FINISHED: "RUN_FINISHED";
|
|
718
|
-
RUN_ERROR: "RUN_ERROR";
|
|
719
|
-
STEP_STARTED: "STEP_STARTED";
|
|
720
|
-
STEP_FINISHED: "STEP_FINISHED";
|
|
721
|
-
REASONING_START: "REASONING_START";
|
|
722
|
-
REASONING_MESSAGE_START: "REASONING_MESSAGE_START";
|
|
723
|
-
REASONING_MESSAGE_CONTENT: "REASONING_MESSAGE_CONTENT";
|
|
724
|
-
REASONING_MESSAGE_END: "REASONING_MESSAGE_END";
|
|
725
|
-
REASONING_MESSAGE_CHUNK: "REASONING_MESSAGE_CHUNK";
|
|
726
|
-
REASONING_END: "REASONING_END";
|
|
727
|
-
REASONING_ENCRYPTED_VALUE: "REASONING_ENCRYPTED_VALUE";
|
|
728
|
-
}>;
|
|
729
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
730
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
731
|
-
}, z.core.$loose>;
|
|
732
|
-
declare const TextMessageStartEventSchema: z.ZodObject<{
|
|
733
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
734
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
735
|
-
type: z.ZodLiteral<EventType.TEXT_MESSAGE_START>;
|
|
736
|
-
messageId: z.ZodString;
|
|
737
|
-
role: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">]>>;
|
|
738
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1375
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1376
|
+
}, z.core.$loose>]>>;
|
|
739
1377
|
}, z.core.$loose>;
|
|
740
|
-
|
|
741
|
-
|
|
1378
|
+
/**
|
|
1379
|
+
* Reports structured progress that is not conversation content, such as a step
|
|
1380
|
+
* a UI renders as its own widget.
|
|
1381
|
+
*/
|
|
1382
|
+
declare const ActivitySnapshotEventSchema: z.ZodObject<{
|
|
1383
|
+
type: z.ZodLiteral<EventType.ACTIVITY_SNAPSHOT>;
|
|
1384
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
742
1385
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
743
|
-
|
|
1386
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1387
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
744
1388
|
messageId: z.ZodString;
|
|
745
|
-
|
|
1389
|
+
activityType: z.ZodString;
|
|
1390
|
+
content: z.ZodCustom<Record<string, any>, Record<string, any>>;
|
|
1391
|
+
replace: z.ZodOptional<z.ZodBoolean>;
|
|
746
1392
|
}, z.core.$loose>;
|
|
747
|
-
|
|
748
|
-
|
|
1393
|
+
/**
|
|
1394
|
+
* Changes an activity message's content incrementally.
|
|
1395
|
+
*/
|
|
1396
|
+
declare const ActivityDeltaEventSchema: z.ZodObject<{
|
|
1397
|
+
type: z.ZodLiteral<EventType.ACTIVITY_DELTA>;
|
|
1398
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
749
1399
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
750
|
-
|
|
1400
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1401
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
751
1402
|
messageId: z.ZodString;
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
1403
|
+
activityType: z.ZodString;
|
|
1404
|
+
patch: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1405
|
+
op: z.ZodLiteral<"add">;
|
|
1406
|
+
path: z.ZodString;
|
|
1407
|
+
value: z.ZodAny;
|
|
1408
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1409
|
+
op: z.ZodLiteral<"remove">;
|
|
1410
|
+
path: z.ZodString;
|
|
1411
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1412
|
+
op: z.ZodLiteral<"replace">;
|
|
1413
|
+
path: z.ZodString;
|
|
1414
|
+
value: z.ZodAny;
|
|
1415
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1416
|
+
op: z.ZodLiteral<"move">;
|
|
1417
|
+
from: z.ZodString;
|
|
1418
|
+
path: z.ZodString;
|
|
1419
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1420
|
+
op: z.ZodLiteral<"copy">;
|
|
1421
|
+
from: z.ZodString;
|
|
1422
|
+
path: z.ZodString;
|
|
1423
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1424
|
+
op: z.ZodLiteral<"test">;
|
|
1425
|
+
path: z.ZodString;
|
|
1426
|
+
value: z.ZodAny;
|
|
1427
|
+
}, z.core.$loose>]>>;
|
|
761
1428
|
}, z.core.$loose>;
|
|
762
1429
|
/**
|
|
763
|
-
*
|
|
1430
|
+
* Passes a provider-native event through untranslated, for consumers that need
|
|
1431
|
+
* detail the protocol does not model.
|
|
764
1432
|
*/
|
|
765
|
-
declare const
|
|
766
|
-
|
|
1433
|
+
declare const RawEventSchema: z.ZodObject<{
|
|
1434
|
+
type: z.ZodLiteral<EventType.RAW>;
|
|
1435
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
767
1436
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
768
|
-
|
|
1437
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1438
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1439
|
+
event: z.ZodAny;
|
|
1440
|
+
source: z.ZodOptional<z.ZodString>;
|
|
769
1441
|
}, z.core.$loose>;
|
|
770
1442
|
/**
|
|
771
|
-
*
|
|
1443
|
+
* The protocol's extension point for an application's own events. Anything a
|
|
1444
|
+
* consumer does with one is outside the protocol.
|
|
772
1445
|
*/
|
|
773
|
-
declare const
|
|
774
|
-
|
|
1446
|
+
declare const CustomEventSchema: z.ZodObject<{
|
|
1447
|
+
type: z.ZodLiteral<EventType.CUSTOM>;
|
|
1448
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
775
1449
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
776
|
-
|
|
777
|
-
|
|
1450
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1451
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1452
|
+
name: z.ZodString;
|
|
1453
|
+
value: z.ZodAny;
|
|
778
1454
|
}, z.core.$loose>;
|
|
779
1455
|
/**
|
|
780
|
-
*
|
|
1456
|
+
* A tool the agent may call.
|
|
781
1457
|
*/
|
|
782
|
-
declare const
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
declare const ToolCallStartEventSchema: z.ZodObject<{
|
|
788
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
789
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
790
|
-
type: z.ZodLiteral<EventType.TOOL_CALL_START>;
|
|
791
|
-
toolCallId: z.ZodString;
|
|
792
|
-
toolCallName: z.ZodString;
|
|
793
|
-
parentMessageId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
794
|
-
}, z.core.$loose>;
|
|
795
|
-
declare const ToolCallArgsEventSchema: z.ZodObject<{
|
|
796
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
797
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
798
|
-
type: z.ZodLiteral<EventType.TOOL_CALL_ARGS>;
|
|
799
|
-
toolCallId: z.ZodString;
|
|
800
|
-
delta: z.ZodString;
|
|
801
|
-
}, z.core.$loose>;
|
|
802
|
-
declare const ToolCallEndEventSchema: z.ZodObject<{
|
|
803
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
804
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
805
|
-
type: z.ZodLiteral<EventType.TOOL_CALL_END>;
|
|
806
|
-
toolCallId: z.ZodString;
|
|
807
|
-
}, z.core.$loose>;
|
|
808
|
-
declare const ToolCallResultEventSchema: z.ZodObject<{
|
|
809
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
810
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
811
|
-
messageId: z.ZodString;
|
|
812
|
-
type: z.ZodLiteral<EventType.TOOL_CALL_RESULT>;
|
|
813
|
-
toolCallId: z.ZodString;
|
|
814
|
-
content: z.ZodString;
|
|
815
|
-
role: z.ZodOptional<z.ZodLiteral<"tool">>;
|
|
816
|
-
}, z.core.$loose>;
|
|
817
|
-
declare const ToolCallChunkEventSchema: z.ZodObject<{
|
|
818
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
819
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
820
|
-
type: z.ZodLiteral<EventType.TOOL_CALL_CHUNK>;
|
|
821
|
-
toolCallId: z.ZodOptional<z.ZodString>;
|
|
822
|
-
toolCallName: z.ZodOptional<z.ZodString>;
|
|
823
|
-
parentMessageId: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
824
|
-
delta: z.ZodOptional<z.ZodString>;
|
|
1458
|
+
declare const ToolSchema: z.ZodObject<{
|
|
1459
|
+
name: z.ZodString;
|
|
1460
|
+
description: z.ZodString;
|
|
1461
|
+
parameters: z.ZodOptional<z.ZodAny>;
|
|
1462
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
825
1463
|
}, z.core.$loose>;
|
|
826
1464
|
/**
|
|
827
|
-
*
|
|
1465
|
+
* A named piece of ambient information given to the agent for the run,
|
|
1466
|
+
* distinct from the conversation.
|
|
828
1467
|
*/
|
|
829
|
-
declare const
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
type: z.ZodLiteral<EventType.THINKING_START>;
|
|
833
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1468
|
+
declare const ContextSchema: z.ZodObject<{
|
|
1469
|
+
description: z.ZodString;
|
|
1470
|
+
value: z.ZodString;
|
|
834
1471
|
}, z.core.$loose>;
|
|
835
1472
|
/**
|
|
836
|
-
*
|
|
1473
|
+
* An answer to one interrupt, sent on the run that continues from it.
|
|
837
1474
|
*/
|
|
838
|
-
declare const
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
type: z.ZodLiteral<EventType.STATE_SNAPSHOT>;
|
|
847
|
-
snapshot: z.ZodOptional<z.ZodAny>;
|
|
848
|
-
}, z.core.$loose>;
|
|
849
|
-
declare const StateDeltaEventSchema: z.ZodObject<{
|
|
850
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
851
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
852
|
-
type: z.ZodLiteral<EventType.STATE_DELTA>;
|
|
853
|
-
delta: z.ZodArray<z.ZodAny>;
|
|
1475
|
+
declare const ResumeEntrySchema: z.ZodObject<{
|
|
1476
|
+
interruptId: z.ZodString;
|
|
1477
|
+
status: z.ZodEnum<{
|
|
1478
|
+
resolved: "resolved";
|
|
1479
|
+
cancelled: "cancelled";
|
|
1480
|
+
}>;
|
|
1481
|
+
payload: z.ZodOptional<z.ZodAny>;
|
|
1482
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
854
1483
|
}, z.core.$loose>;
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
1484
|
+
/**
|
|
1485
|
+
* A request to run an agent. Also echoed back as RUN_STARTED.input. Only
|
|
1486
|
+
* threadId, runId and messages are required: those are the three the SDKs
|
|
1487
|
+
* already agree on, and for tools and context an absent key and an empty array
|
|
1488
|
+
* mean the same thing, so requiring them would catch nothing a producer could
|
|
1489
|
+
* get wrong.
|
|
1490
|
+
*/
|
|
1491
|
+
declare const RunAgentInputSchema: z.ZodObject<{
|
|
1492
|
+
threadId: z.ZodString;
|
|
1493
|
+
runId: z.ZodString;
|
|
1494
|
+
protocolVersion: z.ZodOptional<z.ZodString>;
|
|
1495
|
+
parentRunId: z.ZodOptional<z.ZodString>;
|
|
1496
|
+
state: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodAny>, z.ZodTransform<any, any>>>;
|
|
859
1497
|
messages: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1498
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
860
1499
|
id: z.ZodString;
|
|
1500
|
+
role: z.ZodLiteral<"developer">;
|
|
861
1501
|
name: z.ZodOptional<z.ZodString>;
|
|
862
1502
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
863
|
-
|
|
1503
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
864
1504
|
content: z.ZodString;
|
|
865
|
-
}, z.core.$
|
|
1505
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1506
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
866
1507
|
id: z.ZodString;
|
|
1508
|
+
role: z.ZodLiteral<"system">;
|
|
867
1509
|
name: z.ZodOptional<z.ZodString>;
|
|
868
1510
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
869
|
-
|
|
1511
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
870
1512
|
content: z.ZodString;
|
|
871
|
-
}, z.core.$
|
|
1513
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1514
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
872
1515
|
id: z.ZodString;
|
|
1516
|
+
role: z.ZodLiteral<"assistant">;
|
|
873
1517
|
name: z.ZodOptional<z.ZodString>;
|
|
874
1518
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
875
|
-
|
|
1519
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
876
1520
|
content: z.ZodOptional<z.ZodString>;
|
|
877
1521
|
toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
878
1522
|
id: z.ZodString;
|
|
@@ -880,152 +1524,258 @@ declare const MessagesSnapshotEventSchema: z.ZodObject<{
|
|
|
880
1524
|
function: z.ZodObject<{
|
|
881
1525
|
name: z.ZodString;
|
|
882
1526
|
arguments: z.ZodString;
|
|
883
|
-
}, z.core.$
|
|
1527
|
+
}, z.core.$loose>;
|
|
884
1528
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
885
|
-
|
|
886
|
-
|
|
1529
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1530
|
+
}, z.core.$loose>>>;
|
|
1531
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1532
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
887
1533
|
id: z.ZodString;
|
|
1534
|
+
role: z.ZodLiteral<"user">;
|
|
888
1535
|
name: z.ZodOptional<z.ZodString>;
|
|
889
1536
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
890
|
-
|
|
1537
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
891
1538
|
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
892
1539
|
type: z.ZodLiteral<"text">;
|
|
1540
|
+
id: z.ZodOptional<z.ZodString>;
|
|
893
1541
|
text: z.ZodString;
|
|
894
|
-
|
|
1542
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1543
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
895
1544
|
type: z.ZodLiteral<"image">;
|
|
1545
|
+
id: z.ZodOptional<z.ZodString>;
|
|
896
1546
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
897
1547
|
type: z.ZodLiteral<"data">;
|
|
898
1548
|
value: z.ZodString;
|
|
899
1549
|
mimeType: z.ZodString;
|
|
900
|
-
}, z.core.$
|
|
1550
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
901
1551
|
type: z.ZodLiteral<"url">;
|
|
902
1552
|
value: z.ZodString;
|
|
903
1553
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
904
|
-
}, z.core.$
|
|
905
|
-
|
|
906
|
-
|
|
1554
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1555
|
+
type: z.ZodLiteral<"file">;
|
|
1556
|
+
value: z.ZodString;
|
|
1557
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1558
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1559
|
+
}, z.core.$loose>]>;
|
|
1560
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1561
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
907
1562
|
type: z.ZodLiteral<"audio">;
|
|
1563
|
+
id: z.ZodOptional<z.ZodString>;
|
|
908
1564
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
909
1565
|
type: z.ZodLiteral<"data">;
|
|
910
1566
|
value: z.ZodString;
|
|
911
1567
|
mimeType: z.ZodString;
|
|
912
|
-
}, z.core.$
|
|
1568
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
913
1569
|
type: z.ZodLiteral<"url">;
|
|
914
1570
|
value: z.ZodString;
|
|
915
1571
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
916
|
-
}, z.core.$
|
|
917
|
-
|
|
918
|
-
|
|
1572
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1573
|
+
type: z.ZodLiteral<"file">;
|
|
1574
|
+
value: z.ZodString;
|
|
1575
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1576
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1577
|
+
}, z.core.$loose>]>;
|
|
1578
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1579
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
919
1580
|
type: z.ZodLiteral<"video">;
|
|
1581
|
+
id: z.ZodOptional<z.ZodString>;
|
|
920
1582
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
921
1583
|
type: z.ZodLiteral<"data">;
|
|
922
1584
|
value: z.ZodString;
|
|
923
1585
|
mimeType: z.ZodString;
|
|
924
|
-
}, z.core.$
|
|
1586
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
925
1587
|
type: z.ZodLiteral<"url">;
|
|
926
1588
|
value: z.ZodString;
|
|
927
1589
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
928
|
-
}, z.core.$
|
|
929
|
-
|
|
930
|
-
|
|
1590
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1591
|
+
type: z.ZodLiteral<"file">;
|
|
1592
|
+
value: z.ZodString;
|
|
1593
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1594
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1595
|
+
}, z.core.$loose>]>;
|
|
1596
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1597
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
931
1598
|
type: z.ZodLiteral<"document">;
|
|
1599
|
+
id: z.ZodOptional<z.ZodString>;
|
|
932
1600
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
933
1601
|
type: z.ZodLiteral<"data">;
|
|
934
1602
|
value: z.ZodString;
|
|
935
1603
|
mimeType: z.ZodString;
|
|
936
|
-
}, z.core.$
|
|
1604
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
937
1605
|
type: z.ZodLiteral<"url">;
|
|
938
1606
|
value: z.ZodString;
|
|
939
1607
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
940
|
-
}, z.core.$
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1608
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1609
|
+
type: z.ZodLiteral<"file">;
|
|
1610
|
+
value: z.ZodString;
|
|
1611
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1612
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1613
|
+
}, z.core.$loose>]>;
|
|
1614
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1615
|
+
}, z.core.$loose>]>>]>;
|
|
1616
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1617
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
951
1618
|
id: z.ZodString;
|
|
952
|
-
content: z.ZodString;
|
|
953
1619
|
role: z.ZodLiteral<"tool">;
|
|
1620
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1621
|
+
type: z.ZodLiteral<"text">;
|
|
1622
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1623
|
+
text: z.ZodString;
|
|
1624
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1625
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1626
|
+
type: z.ZodLiteral<"image">;
|
|
1627
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1628
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1629
|
+
type: z.ZodLiteral<"data">;
|
|
1630
|
+
value: z.ZodString;
|
|
1631
|
+
mimeType: z.ZodString;
|
|
1632
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1633
|
+
type: z.ZodLiteral<"url">;
|
|
1634
|
+
value: z.ZodString;
|
|
1635
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1636
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1637
|
+
type: z.ZodLiteral<"file">;
|
|
1638
|
+
value: z.ZodString;
|
|
1639
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1640
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1641
|
+
}, z.core.$loose>]>;
|
|
1642
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1643
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1644
|
+
type: z.ZodLiteral<"audio">;
|
|
1645
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1646
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1647
|
+
type: z.ZodLiteral<"data">;
|
|
1648
|
+
value: z.ZodString;
|
|
1649
|
+
mimeType: z.ZodString;
|
|
1650
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1651
|
+
type: z.ZodLiteral<"url">;
|
|
1652
|
+
value: z.ZodString;
|
|
1653
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1654
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1655
|
+
type: z.ZodLiteral<"file">;
|
|
1656
|
+
value: z.ZodString;
|
|
1657
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1658
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1659
|
+
}, z.core.$loose>]>;
|
|
1660
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1661
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1662
|
+
type: z.ZodLiteral<"video">;
|
|
1663
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1664
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1665
|
+
type: z.ZodLiteral<"data">;
|
|
1666
|
+
value: z.ZodString;
|
|
1667
|
+
mimeType: z.ZodString;
|
|
1668
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1669
|
+
type: z.ZodLiteral<"url">;
|
|
1670
|
+
value: z.ZodString;
|
|
1671
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1672
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1673
|
+
type: z.ZodLiteral<"file">;
|
|
1674
|
+
value: z.ZodString;
|
|
1675
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1676
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1677
|
+
}, z.core.$loose>]>;
|
|
1678
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1679
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1680
|
+
type: z.ZodLiteral<"document">;
|
|
1681
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1682
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1683
|
+
type: z.ZodLiteral<"data">;
|
|
1684
|
+
value: z.ZodString;
|
|
1685
|
+
mimeType: z.ZodString;
|
|
1686
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1687
|
+
type: z.ZodLiteral<"url">;
|
|
1688
|
+
value: z.ZodString;
|
|
1689
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1690
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1691
|
+
type: z.ZodLiteral<"file">;
|
|
1692
|
+
value: z.ZodString;
|
|
1693
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1694
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1695
|
+
}, z.core.$loose>]>;
|
|
1696
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1697
|
+
}, z.core.$loose>]>>]>;
|
|
954
1698
|
toolCallId: z.ZodString;
|
|
955
1699
|
error: z.ZodOptional<z.ZodString>;
|
|
956
1700
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
957
|
-
|
|
1701
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1702
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1703
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
958
1704
|
id: z.ZodString;
|
|
959
|
-
role: z.ZodLiteral<"activity">;
|
|
960
|
-
activityType: z.ZodString;
|
|
961
|
-
content: z.
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
source: z.ZodOptional<z.ZodString>;
|
|
992
|
-
}, z.core.$loose>;
|
|
993
|
-
declare const CustomEventSchema: z.ZodObject<{
|
|
994
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
995
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
996
|
-
type: z.ZodLiteral<EventType.CUSTOM>;
|
|
997
|
-
name: z.ZodString;
|
|
998
|
-
value: z.ZodOptional<z.ZodAny>;
|
|
1705
|
+
role: z.ZodLiteral<"activity">;
|
|
1706
|
+
activityType: z.ZodString;
|
|
1707
|
+
content: z.ZodCustom<Record<string, any>, Record<string, any>>;
|
|
1708
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1709
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1710
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1711
|
+
id: z.ZodString;
|
|
1712
|
+
role: z.ZodLiteral<"reasoning">;
|
|
1713
|
+
content: z.ZodString;
|
|
1714
|
+
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
1715
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1716
|
+
}, z.core.$loose>]>>;
|
|
1717
|
+
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1718
|
+
name: z.ZodString;
|
|
1719
|
+
description: z.ZodString;
|
|
1720
|
+
parameters: z.ZodOptional<z.ZodAny>;
|
|
1721
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1722
|
+
}, z.core.$loose>>>;
|
|
1723
|
+
context: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1724
|
+
description: z.ZodString;
|
|
1725
|
+
value: z.ZodString;
|
|
1726
|
+
}, z.core.$loose>>>;
|
|
1727
|
+
forwardedProps: z.ZodOptional<z.ZodAny>;
|
|
1728
|
+
resume: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1729
|
+
interruptId: z.ZodString;
|
|
1730
|
+
status: z.ZodEnum<{
|
|
1731
|
+
resolved: "resolved";
|
|
1732
|
+
cancelled: "cancelled";
|
|
1733
|
+
}>;
|
|
1734
|
+
payload: z.ZodOptional<z.ZodAny>;
|
|
1735
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1736
|
+
}, z.core.$loose>>>;
|
|
999
1737
|
}, z.core.$loose>;
|
|
1738
|
+
/**
|
|
1739
|
+
* Opens a run. Run-scoped, so it carries no subagent attribution.
|
|
1740
|
+
*/
|
|
1000
1741
|
declare const RunStartedEventSchema: z.ZodObject<{
|
|
1001
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1002
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1003
1742
|
type: z.ZodLiteral<EventType.RUN_STARTED>;
|
|
1743
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
1744
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1745
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1004
1746
|
threadId: z.ZodString;
|
|
1005
1747
|
runId: z.ZodString;
|
|
1748
|
+
protocolVersion: z.ZodOptional<z.ZodString>;
|
|
1006
1749
|
parentRunId: z.ZodOptional<z.ZodString>;
|
|
1007
1750
|
input: z.ZodOptional<z.ZodObject<{
|
|
1008
1751
|
threadId: z.ZodString;
|
|
1009
1752
|
runId: z.ZodString;
|
|
1753
|
+
protocolVersion: z.ZodOptional<z.ZodString>;
|
|
1010
1754
|
parentRunId: z.ZodOptional<z.ZodString>;
|
|
1011
|
-
state: z.ZodOptional<z.ZodAny
|
|
1755
|
+
state: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodAny>, z.ZodTransform<any, any>>>;
|
|
1012
1756
|
messages: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1757
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1013
1758
|
id: z.ZodString;
|
|
1759
|
+
role: z.ZodLiteral<"developer">;
|
|
1014
1760
|
name: z.ZodOptional<z.ZodString>;
|
|
1015
1761
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
1016
|
-
|
|
1762
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1017
1763
|
content: z.ZodString;
|
|
1018
|
-
}, z.core.$
|
|
1764
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1765
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1019
1766
|
id: z.ZodString;
|
|
1767
|
+
role: z.ZodLiteral<"system">;
|
|
1020
1768
|
name: z.ZodOptional<z.ZodString>;
|
|
1021
1769
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
1022
|
-
|
|
1770
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1023
1771
|
content: z.ZodString;
|
|
1024
|
-
}, z.core.$
|
|
1772
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1773
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1025
1774
|
id: z.ZodString;
|
|
1775
|
+
role: z.ZodLiteral<"assistant">;
|
|
1026
1776
|
name: z.ZodOptional<z.ZodString>;
|
|
1027
1777
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
1028
|
-
|
|
1778
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1029
1779
|
content: z.ZodOptional<z.ZodString>;
|
|
1030
1780
|
toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1031
1781
|
id: z.ZodString;
|
|
@@ -1033,101 +1783,206 @@ declare const RunStartedEventSchema: z.ZodObject<{
|
|
|
1033
1783
|
function: z.ZodObject<{
|
|
1034
1784
|
name: z.ZodString;
|
|
1035
1785
|
arguments: z.ZodString;
|
|
1036
|
-
}, z.core.$
|
|
1786
|
+
}, z.core.$loose>;
|
|
1037
1787
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
1038
|
-
|
|
1039
|
-
|
|
1788
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1789
|
+
}, z.core.$loose>>>;
|
|
1790
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1791
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1040
1792
|
id: z.ZodString;
|
|
1793
|
+
role: z.ZodLiteral<"user">;
|
|
1041
1794
|
name: z.ZodOptional<z.ZodString>;
|
|
1042
1795
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
1043
|
-
|
|
1796
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1044
1797
|
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1045
1798
|
type: z.ZodLiteral<"text">;
|
|
1799
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1046
1800
|
text: z.ZodString;
|
|
1047
|
-
|
|
1801
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1802
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1048
1803
|
type: z.ZodLiteral<"image">;
|
|
1804
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1049
1805
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1050
1806
|
type: z.ZodLiteral<"data">;
|
|
1051
1807
|
value: z.ZodString;
|
|
1052
1808
|
mimeType: z.ZodString;
|
|
1053
|
-
}, z.core.$
|
|
1809
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1054
1810
|
type: z.ZodLiteral<"url">;
|
|
1055
1811
|
value: z.ZodString;
|
|
1056
1812
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
1057
|
-
}, z.core.$
|
|
1058
|
-
|
|
1059
|
-
|
|
1813
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1814
|
+
type: z.ZodLiteral<"file">;
|
|
1815
|
+
value: z.ZodString;
|
|
1816
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1817
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1818
|
+
}, z.core.$loose>]>;
|
|
1819
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1820
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1060
1821
|
type: z.ZodLiteral<"audio">;
|
|
1822
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1061
1823
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1062
1824
|
type: z.ZodLiteral<"data">;
|
|
1063
1825
|
value: z.ZodString;
|
|
1064
1826
|
mimeType: z.ZodString;
|
|
1065
|
-
}, z.core.$
|
|
1827
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1066
1828
|
type: z.ZodLiteral<"url">;
|
|
1067
1829
|
value: z.ZodString;
|
|
1068
1830
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
1069
|
-
}, z.core.$
|
|
1070
|
-
|
|
1071
|
-
|
|
1831
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1832
|
+
type: z.ZodLiteral<"file">;
|
|
1833
|
+
value: z.ZodString;
|
|
1834
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1835
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1836
|
+
}, z.core.$loose>]>;
|
|
1837
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1838
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1072
1839
|
type: z.ZodLiteral<"video">;
|
|
1840
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1073
1841
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1074
1842
|
type: z.ZodLiteral<"data">;
|
|
1075
1843
|
value: z.ZodString;
|
|
1076
1844
|
mimeType: z.ZodString;
|
|
1077
|
-
}, z.core.$
|
|
1845
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1078
1846
|
type: z.ZodLiteral<"url">;
|
|
1079
1847
|
value: z.ZodString;
|
|
1080
1848
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
1081
|
-
}, z.core.$
|
|
1082
|
-
|
|
1083
|
-
|
|
1849
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1850
|
+
type: z.ZodLiteral<"file">;
|
|
1851
|
+
value: z.ZodString;
|
|
1852
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1853
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1854
|
+
}, z.core.$loose>]>;
|
|
1855
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1856
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1084
1857
|
type: z.ZodLiteral<"document">;
|
|
1858
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1085
1859
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1086
1860
|
type: z.ZodLiteral<"data">;
|
|
1087
1861
|
value: z.ZodString;
|
|
1088
1862
|
mimeType: z.ZodString;
|
|
1089
|
-
}, z.core.$
|
|
1863
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1090
1864
|
type: z.ZodLiteral<"url">;
|
|
1091
1865
|
value: z.ZodString;
|
|
1092
1866
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
1093
|
-
}, z.core.$
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1867
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1868
|
+
type: z.ZodLiteral<"file">;
|
|
1869
|
+
value: z.ZodString;
|
|
1870
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1871
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1872
|
+
}, z.core.$loose>]>;
|
|
1873
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1874
|
+
}, z.core.$loose>]>>]>;
|
|
1875
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1876
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1104
1877
|
id: z.ZodString;
|
|
1105
|
-
content: z.ZodString;
|
|
1106
1878
|
role: z.ZodLiteral<"tool">;
|
|
1879
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1880
|
+
type: z.ZodLiteral<"text">;
|
|
1881
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1882
|
+
text: z.ZodString;
|
|
1883
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1884
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1885
|
+
type: z.ZodLiteral<"image">;
|
|
1886
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1887
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1888
|
+
type: z.ZodLiteral<"data">;
|
|
1889
|
+
value: z.ZodString;
|
|
1890
|
+
mimeType: z.ZodString;
|
|
1891
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1892
|
+
type: z.ZodLiteral<"url">;
|
|
1893
|
+
value: z.ZodString;
|
|
1894
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1895
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1896
|
+
type: z.ZodLiteral<"file">;
|
|
1897
|
+
value: z.ZodString;
|
|
1898
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1899
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1900
|
+
}, z.core.$loose>]>;
|
|
1901
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1902
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1903
|
+
type: z.ZodLiteral<"audio">;
|
|
1904
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1905
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1906
|
+
type: z.ZodLiteral<"data">;
|
|
1907
|
+
value: z.ZodString;
|
|
1908
|
+
mimeType: z.ZodString;
|
|
1909
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1910
|
+
type: z.ZodLiteral<"url">;
|
|
1911
|
+
value: z.ZodString;
|
|
1912
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1913
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1914
|
+
type: z.ZodLiteral<"file">;
|
|
1915
|
+
value: z.ZodString;
|
|
1916
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1917
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1918
|
+
}, z.core.$loose>]>;
|
|
1919
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1920
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1921
|
+
type: z.ZodLiteral<"video">;
|
|
1922
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1923
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1924
|
+
type: z.ZodLiteral<"data">;
|
|
1925
|
+
value: z.ZodString;
|
|
1926
|
+
mimeType: z.ZodString;
|
|
1927
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1928
|
+
type: z.ZodLiteral<"url">;
|
|
1929
|
+
value: z.ZodString;
|
|
1930
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1931
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1932
|
+
type: z.ZodLiteral<"file">;
|
|
1933
|
+
value: z.ZodString;
|
|
1934
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1935
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1936
|
+
}, z.core.$loose>]>;
|
|
1937
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1938
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1939
|
+
type: z.ZodLiteral<"document">;
|
|
1940
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1941
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1942
|
+
type: z.ZodLiteral<"data">;
|
|
1943
|
+
value: z.ZodString;
|
|
1944
|
+
mimeType: z.ZodString;
|
|
1945
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1946
|
+
type: z.ZodLiteral<"url">;
|
|
1947
|
+
value: z.ZodString;
|
|
1948
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1949
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1950
|
+
type: z.ZodLiteral<"file">;
|
|
1951
|
+
value: z.ZodString;
|
|
1952
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1953
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
1954
|
+
}, z.core.$loose>]>;
|
|
1955
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
1956
|
+
}, z.core.$loose>]>>]>;
|
|
1107
1957
|
toolCallId: z.ZodString;
|
|
1108
1958
|
error: z.ZodOptional<z.ZodString>;
|
|
1109
1959
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
1110
|
-
|
|
1960
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1961
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1962
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1111
1963
|
id: z.ZodString;
|
|
1112
1964
|
role: z.ZodLiteral<"activity">;
|
|
1113
1965
|
activityType: z.ZodString;
|
|
1114
|
-
content: z.
|
|
1115
|
-
|
|
1966
|
+
content: z.ZodCustom<Record<string, any>, Record<string, any>>;
|
|
1967
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1968
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1969
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1116
1970
|
id: z.ZodString;
|
|
1117
1971
|
role: z.ZodLiteral<"reasoning">;
|
|
1118
1972
|
content: z.ZodString;
|
|
1119
1973
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
1120
|
-
|
|
1121
|
-
|
|
1974
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1975
|
+
}, z.core.$loose>]>>;
|
|
1976
|
+
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1122
1977
|
name: z.ZodString;
|
|
1123
1978
|
description: z.ZodString;
|
|
1124
1979
|
parameters: z.ZodOptional<z.ZodAny>;
|
|
1125
|
-
metadata: z.ZodOptional<z.
|
|
1126
|
-
}, z.core.$
|
|
1127
|
-
context: z.ZodArray<z.ZodObject<{
|
|
1980
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1981
|
+
}, z.core.$loose>>>;
|
|
1982
|
+
context: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1128
1983
|
description: z.ZodString;
|
|
1129
1984
|
value: z.ZodString;
|
|
1130
|
-
}, z.core.$
|
|
1985
|
+
}, z.core.$loose>>>;
|
|
1131
1986
|
forwardedProps: z.ZodOptional<z.ZodAny>;
|
|
1132
1987
|
resume: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1133
1988
|
interruptId: z.ZodString;
|
|
@@ -1136,270 +1991,598 @@ declare const RunStartedEventSchema: z.ZodObject<{
|
|
|
1136
1991
|
cancelled: "cancelled";
|
|
1137
1992
|
}>;
|
|
1138
1993
|
payload: z.ZodOptional<z.ZodAny>;
|
|
1139
|
-
|
|
1140
|
-
|
|
1994
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1995
|
+
}, z.core.$loose>>>;
|
|
1996
|
+
}, z.core.$loose>>;
|
|
1141
1997
|
}, z.core.$loose>;
|
|
1998
|
+
/**
|
|
1999
|
+
* The run completed. Equivalent to an absent outcome. Closed like every other
|
|
2000
|
+
* object, which is also what keeps it from carrying the suspended sibling's
|
|
2001
|
+
* interrupts — a success with an interrupt still pending would be a
|
|
2002
|
+
* contradiction, not an extension. A completed run may still have left
|
|
2003
|
+
* frontend tool calls for the application to answer; pendingToolCallIds names
|
|
2004
|
+
* them.
|
|
2005
|
+
*/
|
|
1142
2006
|
declare const RunFinishedSuccessOutcomeSchema: z.ZodObject<{
|
|
1143
2007
|
type: z.ZodLiteral<"success">;
|
|
1144
|
-
|
|
2008
|
+
pendingToolCallIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2009
|
+
}, z.core.$loose>;
|
|
2010
|
+
/**
|
|
2011
|
+
* Something a run needs from outside before it can continue, such as an
|
|
2012
|
+
* approval or a missing value.
|
|
2013
|
+
*/
|
|
2014
|
+
declare const InterruptSchema: z.ZodObject<{
|
|
2015
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
2016
|
+
id: z.ZodString;
|
|
2017
|
+
reason: z.ZodString;
|
|
2018
|
+
message: z.ZodOptional<z.ZodString>;
|
|
2019
|
+
toolCallId: z.ZodOptional<z.ZodString>;
|
|
2020
|
+
responseSchema: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2021
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
2022
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2023
|
+
}, z.core.$loose>;
|
|
2024
|
+
/**
|
|
2025
|
+
* The run is paused, waiting for something outside it. Resuming means starting
|
|
2026
|
+
* a new run whose resume entries answer these interrupts.
|
|
2027
|
+
*/
|
|
1145
2028
|
declare const RunFinishedInterruptOutcomeSchema: z.ZodObject<{
|
|
1146
2029
|
type: z.ZodLiteral<"interrupt">;
|
|
1147
2030
|
interrupts: z.ZodArray<z.ZodObject<{
|
|
2031
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1148
2032
|
id: z.ZodString;
|
|
1149
2033
|
reason: z.ZodString;
|
|
1150
2034
|
message: z.ZodOptional<z.ZodString>;
|
|
1151
2035
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
1152
|
-
responseSchema: z.ZodOptional<z.
|
|
2036
|
+
responseSchema: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1153
2037
|
expiresAt: z.ZodOptional<z.ZodString>;
|
|
1154
|
-
metadata: z.ZodOptional<z.
|
|
1155
|
-
}, z.core.$
|
|
1156
|
-
}, z.core.$
|
|
2038
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2039
|
+
}, z.core.$loose>>;
|
|
2040
|
+
}, z.core.$loose>;
|
|
2041
|
+
/**
|
|
2042
|
+
* The run was stopped before it completed, by whoever was running it, and did
|
|
2043
|
+
* not fail. Neither success nor interrupt: nothing was produced as a result,
|
|
2044
|
+
* and nothing is waited for, so the next run on the thread is an ordinary new
|
|
2045
|
+
* run rather than a resume. Closed like its siblings: a cancelled run has no
|
|
2046
|
+
* interrupts to carry. Named in the schema before 1.0 because an outcome a
|
|
2047
|
+
* consumer does not recognise is stripped and read as success — a cancellation
|
|
2048
|
+
* added later would reach every 1.0 consumer as a completed run.
|
|
2049
|
+
*/
|
|
2050
|
+
declare const RunFinishedCancelledOutcomeSchema: z.ZodObject<{
|
|
2051
|
+
type: z.ZodLiteral<"cancelled">;
|
|
2052
|
+
}, z.core.$loose>;
|
|
2053
|
+
/**
|
|
2054
|
+
* Why a run ended.
|
|
2055
|
+
*/
|
|
1157
2056
|
declare const RunFinishedOutcomeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1158
2057
|
type: z.ZodLiteral<"success">;
|
|
1159
|
-
|
|
2058
|
+
pendingToolCallIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2059
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1160
2060
|
type: z.ZodLiteral<"interrupt">;
|
|
1161
2061
|
interrupts: z.ZodArray<z.ZodObject<{
|
|
2062
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1162
2063
|
id: z.ZodString;
|
|
1163
2064
|
reason: z.ZodString;
|
|
1164
2065
|
message: z.ZodOptional<z.ZodString>;
|
|
1165
2066
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
1166
|
-
responseSchema: z.ZodOptional<z.
|
|
2067
|
+
responseSchema: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1167
2068
|
expiresAt: z.ZodOptional<z.ZodString>;
|
|
1168
|
-
metadata: z.ZodOptional<z.
|
|
1169
|
-
}, z.core.$
|
|
1170
|
-
}, z.core.$
|
|
2069
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2070
|
+
}, z.core.$loose>>;
|
|
2071
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2072
|
+
type: z.ZodLiteral<"cancelled">;
|
|
2073
|
+
}, z.core.$loose>]>;
|
|
2074
|
+
/**
|
|
2075
|
+
* Token counts for one provider and model, in the protocol's own accounting:
|
|
2076
|
+
* every count is either a total or a named part of one, so entries from
|
|
2077
|
+
* different providers add up without double-counting. inputTokens and
|
|
2078
|
+
* outputTokens are the totals; reasoningTokens, cachedInputTokens and
|
|
2079
|
+
* cacheWriteInputTokens are parts of them, never additions to them;
|
|
2080
|
+
* totalTokens is the two totals summed. Every field is a label or a number —
|
|
2081
|
+
* nothing content-bearing or identifying, no prompts, completions, messages,
|
|
2082
|
+
* or thread, run and user identifiers.
|
|
2083
|
+
*/
|
|
2084
|
+
declare const TokenUsageSchema: z.ZodObject<{
|
|
2085
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
2086
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2087
|
+
inputTokens: z.ZodOptional<z.ZodInt>;
|
|
2088
|
+
outputTokens: z.ZodOptional<z.ZodInt>;
|
|
2089
|
+
totalTokens: z.ZodOptional<z.ZodInt>;
|
|
2090
|
+
reasoningTokens: z.ZodOptional<z.ZodInt>;
|
|
2091
|
+
cachedInputTokens: z.ZodOptional<z.ZodInt>;
|
|
2092
|
+
cacheWriteInputTokens: z.ZodOptional<z.ZodInt>;
|
|
2093
|
+
}, z.core.$loose>;
|
|
2094
|
+
/**
|
|
2095
|
+
* Closes a run that did not fail. Run-scoped, so it carries no subagent
|
|
2096
|
+
* attribution.
|
|
2097
|
+
*/
|
|
1171
2098
|
declare const RunFinishedEventSchema: z.ZodObject<{
|
|
1172
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1173
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1174
2099
|
type: z.ZodLiteral<EventType.RUN_FINISHED>;
|
|
2100
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
2101
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2102
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1175
2103
|
threadId: z.ZodString;
|
|
1176
2104
|
runId: z.ZodString;
|
|
1177
2105
|
result: z.ZodOptional<z.ZodAny>;
|
|
1178
|
-
outcome: z.
|
|
2106
|
+
outcome: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1179
2107
|
type: z.ZodLiteral<"success">;
|
|
1180
|
-
|
|
2108
|
+
pendingToolCallIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2109
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1181
2110
|
type: z.ZodLiteral<"interrupt">;
|
|
1182
2111
|
interrupts: z.ZodArray<z.ZodObject<{
|
|
2112
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1183
2113
|
id: z.ZodString;
|
|
1184
2114
|
reason: z.ZodString;
|
|
1185
2115
|
message: z.ZodOptional<z.ZodString>;
|
|
1186
2116
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
1187
|
-
responseSchema: z.ZodOptional<z.
|
|
2117
|
+
responseSchema: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1188
2118
|
expiresAt: z.ZodOptional<z.ZodString>;
|
|
1189
|
-
metadata: z.ZodOptional<z.
|
|
1190
|
-
}, z.core.$
|
|
1191
|
-
}, z.core.$
|
|
1192
|
-
type: "
|
|
1193
|
-
}
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
} | undefined, {
|
|
1205
|
-
type: "success";
|
|
1206
|
-
} | {
|
|
1207
|
-
type: "interrupt";
|
|
1208
|
-
interrupts: {
|
|
1209
|
-
id: string;
|
|
1210
|
-
reason: string;
|
|
1211
|
-
message?: string | undefined;
|
|
1212
|
-
toolCallId?: string | undefined;
|
|
1213
|
-
responseSchema?: Record<string, any> | undefined;
|
|
1214
|
-
expiresAt?: string | undefined;
|
|
1215
|
-
metadata?: Record<string, any> | undefined;
|
|
1216
|
-
}[];
|
|
1217
|
-
} | null | undefined>>;
|
|
2119
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2120
|
+
}, z.core.$loose>>;
|
|
2121
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2122
|
+
type: z.ZodLiteral<"cancelled">;
|
|
2123
|
+
}, z.core.$loose>]>>;
|
|
2124
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2125
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
2126
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2127
|
+
inputTokens: z.ZodOptional<z.ZodInt>;
|
|
2128
|
+
outputTokens: z.ZodOptional<z.ZodInt>;
|
|
2129
|
+
totalTokens: z.ZodOptional<z.ZodInt>;
|
|
2130
|
+
reasoningTokens: z.ZodOptional<z.ZodInt>;
|
|
2131
|
+
cachedInputTokens: z.ZodOptional<z.ZodInt>;
|
|
2132
|
+
cacheWriteInputTokens: z.ZodOptional<z.ZodInt>;
|
|
2133
|
+
}, z.core.$loose>>>;
|
|
1218
2134
|
}, z.core.$loose>;
|
|
2135
|
+
/**
|
|
2136
|
+
* Ends a run that failed. Run-scoped, so it carries no subagent attribution; a
|
|
2137
|
+
* subagent that fails without ending the run reports SUBAGENT_ERROR instead.
|
|
2138
|
+
*/
|
|
1219
2139
|
declare const RunErrorEventSchema: z.ZodObject<{
|
|
1220
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1221
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1222
2140
|
type: z.ZodLiteral<EventType.RUN_ERROR>;
|
|
2141
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
2142
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2143
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1223
2144
|
message: z.ZodString;
|
|
1224
2145
|
code: z.ZodOptional<z.ZodString>;
|
|
2146
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2147
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
2148
|
+
model: z.ZodOptional<z.ZodString>;
|
|
2149
|
+
inputTokens: z.ZodOptional<z.ZodInt>;
|
|
2150
|
+
outputTokens: z.ZodOptional<z.ZodInt>;
|
|
2151
|
+
totalTokens: z.ZodOptional<z.ZodInt>;
|
|
2152
|
+
reasoningTokens: z.ZodOptional<z.ZodInt>;
|
|
2153
|
+
cachedInputTokens: z.ZodOptional<z.ZodInt>;
|
|
2154
|
+
cacheWriteInputTokens: z.ZodOptional<z.ZodInt>;
|
|
2155
|
+
}, z.core.$loose>>>;
|
|
1225
2156
|
}, z.core.$loose>;
|
|
2157
|
+
/**
|
|
2158
|
+
* Opens a named step within a run, for producers whose frameworks have a step
|
|
2159
|
+
* concept worth surfacing.
|
|
2160
|
+
*/
|
|
1226
2161
|
declare const StepStartedEventSchema: z.ZodObject<{
|
|
1227
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1228
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1229
2162
|
type: z.ZodLiteral<EventType.STEP_STARTED>;
|
|
2163
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
2164
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2165
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2166
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1230
2167
|
stepName: z.ZodString;
|
|
1231
2168
|
}, z.core.$loose>;
|
|
2169
|
+
/**
|
|
2170
|
+
* Closes a named step.
|
|
2171
|
+
*/
|
|
1232
2172
|
declare const StepFinishedEventSchema: z.ZodObject<{
|
|
1233
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1234
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1235
2173
|
type: z.ZodLiteral<EventType.STEP_FINISHED>;
|
|
2174
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
2175
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2176
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2177
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1236
2178
|
stepName: z.ZodString;
|
|
1237
2179
|
}, z.core.$loose>;
|
|
1238
|
-
|
|
2180
|
+
/**
|
|
2181
|
+
* Opens a span of reasoning. A span may contain several reasoning messages.
|
|
2182
|
+
*/
|
|
1239
2183
|
declare const ReasoningStartEventSchema: z.ZodObject<{
|
|
1240
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1241
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1242
2184
|
type: z.ZodLiteral<EventType.REASONING_START>;
|
|
2185
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
2186
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2187
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2188
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1243
2189
|
messageId: z.ZodString;
|
|
1244
2190
|
}, z.core.$loose>;
|
|
2191
|
+
/**
|
|
2192
|
+
* Opens a streamed reasoning message.
|
|
2193
|
+
*/
|
|
1245
2194
|
declare const ReasoningMessageStartEventSchema: z.ZodObject<{
|
|
1246
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1247
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1248
2195
|
type: z.ZodLiteral<EventType.REASONING_MESSAGE_START>;
|
|
2196
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
2197
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2198
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2199
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1249
2200
|
messageId: z.ZodString;
|
|
1250
2201
|
role: z.ZodLiteral<"reasoning">;
|
|
1251
2202
|
}, z.core.$loose>;
|
|
2203
|
+
/**
|
|
2204
|
+
* Appends a fragment to a streamed reasoning message.
|
|
2205
|
+
*/
|
|
1252
2206
|
declare const ReasoningMessageContentEventSchema: z.ZodObject<{
|
|
1253
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1254
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1255
2207
|
type: z.ZodLiteral<EventType.REASONING_MESSAGE_CONTENT>;
|
|
2208
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
2209
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2210
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2211
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1256
2212
|
messageId: z.ZodString;
|
|
1257
2213
|
delta: z.ZodString;
|
|
1258
2214
|
}, z.core.$loose>;
|
|
2215
|
+
/**
|
|
2216
|
+
* Closes a streamed reasoning message.
|
|
2217
|
+
*/
|
|
1259
2218
|
declare const ReasoningMessageEndEventSchema: z.ZodObject<{
|
|
1260
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1261
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1262
2219
|
type: z.ZodLiteral<EventType.REASONING_MESSAGE_END>;
|
|
2220
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
2221
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2222
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2223
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1263
2224
|
messageId: z.ZodString;
|
|
1264
2225
|
}, z.core.$loose>;
|
|
2226
|
+
/**
|
|
2227
|
+
* A shorthand that stands in for a reasoning message's start, content and end
|
|
2228
|
+
* sequence.
|
|
2229
|
+
*/
|
|
1265
2230
|
declare const ReasoningMessageChunkEventSchema: z.ZodObject<{
|
|
1266
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1267
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1268
2231
|
type: z.ZodLiteral<EventType.REASONING_MESSAGE_CHUNK>;
|
|
2232
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
2233
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2234
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2235
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1269
2236
|
messageId: z.ZodOptional<z.ZodString>;
|
|
1270
2237
|
delta: z.ZodOptional<z.ZodString>;
|
|
1271
2238
|
}, z.core.$loose>;
|
|
2239
|
+
/**
|
|
2240
|
+
* Closes a span of reasoning.
|
|
2241
|
+
*/
|
|
1272
2242
|
declare const ReasoningEndEventSchema: z.ZodObject<{
|
|
1273
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1274
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1275
2243
|
type: z.ZodLiteral<EventType.REASONING_END>;
|
|
2244
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
2245
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2246
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2247
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1276
2248
|
messageId: z.ZodString;
|
|
1277
2249
|
}, z.core.$loose>;
|
|
2250
|
+
/**
|
|
2251
|
+
* Whether a REASONING_ENCRYPTED_VALUE belongs to a message or to a tool call.
|
|
2252
|
+
*/
|
|
2253
|
+
declare const ReasoningEncryptedValueSubtypeSchema: z.ZodEnum<{
|
|
2254
|
+
message: "message";
|
|
2255
|
+
"tool-call": "tool-call";
|
|
2256
|
+
}>;
|
|
2257
|
+
/**
|
|
2258
|
+
* Carries a provider's opaque, encrypted reasoning artefact, which a consumer
|
|
2259
|
+
* stores and returns on a later turn without being able to read it.
|
|
2260
|
+
*/
|
|
1278
2261
|
declare const ReasoningEncryptedValueEventSchema: z.ZodObject<{
|
|
1279
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1280
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1281
2262
|
type: z.ZodLiteral<EventType.REASONING_ENCRYPTED_VALUE>;
|
|
1282
|
-
|
|
2263
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
2264
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2265
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2266
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
2267
|
+
subtype: z.ZodEnum<{
|
|
2268
|
+
message: "message";
|
|
2269
|
+
"tool-call": "tool-call";
|
|
2270
|
+
}>;
|
|
1283
2271
|
entityId: z.ZodString;
|
|
1284
2272
|
encryptedValue: z.ZodString;
|
|
1285
2273
|
}, z.core.$loose>;
|
|
1286
2274
|
/**
|
|
1287
|
-
*
|
|
1288
|
-
*
|
|
2275
|
+
* Announces that a subagent invocation has begun. Everything the subagent
|
|
2276
|
+
* produces afterwards is attributed by carrying its subagentRunId, so a
|
|
2277
|
+
* consumer can group the work without replaying the stream. Composed from
|
|
2278
|
+
* BaseEvent alone rather than Attributable, because here subagentRunId
|
|
2279
|
+
* identifies the subagent rather than attributing the event to one;
|
|
2280
|
+
* attribution to an enclosing subagent is parentSubagentRunId.
|
|
2281
|
+
*/
|
|
2282
|
+
declare const SubagentStartedEventSchema: z.ZodObject<{
|
|
2283
|
+
type: z.ZodLiteral<EventType.SUBAGENT_STARTED>;
|
|
2284
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
2285
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2286
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2287
|
+
subagentRunId: z.ZodString;
|
|
2288
|
+
name: z.ZodString;
|
|
2289
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2290
|
+
parentSubagentRunId: z.ZodOptional<z.ZodString>;
|
|
2291
|
+
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
2292
|
+
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
2293
|
+
}, z.core.$loose>;
|
|
2294
|
+
/**
|
|
2295
|
+
* The subagent completed its work. Equivalent to an absent outcome.
|
|
2296
|
+
*/
|
|
2297
|
+
declare const SubagentFinishedSuccessOutcomeSchema: z.ZodObject<{
|
|
2298
|
+
type: z.ZodLiteral<"success">;
|
|
2299
|
+
}, z.core.$loose>;
|
|
2300
|
+
/**
|
|
2301
|
+
* The subagent is paused awaiting outside input. Terminal for this stream, not
|
|
2302
|
+
* for the subagent: a later run may continue the same invocation once the
|
|
2303
|
+
* interrupts are answered.
|
|
2304
|
+
*/
|
|
2305
|
+
declare const SubagentFinishedSuspendedOutcomeSchema: z.ZodObject<{
|
|
2306
|
+
type: z.ZodLiteral<"suspended">;
|
|
2307
|
+
interruptIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2308
|
+
}, z.core.$loose>;
|
|
2309
|
+
/**
|
|
2310
|
+
* Why a subagent's segment of a run ended. Mirrors RunFinishedOutcome one
|
|
2311
|
+
* level down.
|
|
2312
|
+
*/
|
|
2313
|
+
declare const SubagentFinishedOutcomeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2314
|
+
type: z.ZodLiteral<"success">;
|
|
2315
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2316
|
+
type: z.ZodLiteral<"suspended">;
|
|
2317
|
+
interruptIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2318
|
+
}, z.core.$loose>]>;
|
|
2319
|
+
/**
|
|
2320
|
+
* Ends a subagent invocation's segment of this run, either because the work
|
|
2321
|
+
* completed or because it is suspended awaiting outside input.
|
|
2322
|
+
*/
|
|
2323
|
+
declare const SubagentFinishedEventSchema: z.ZodObject<{
|
|
2324
|
+
type: z.ZodLiteral<EventType.SUBAGENT_FINISHED>;
|
|
2325
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
2326
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2327
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2328
|
+
subagentRunId: z.ZodString;
|
|
2329
|
+
result: z.ZodOptional<z.ZodAny>;
|
|
2330
|
+
outcome: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2331
|
+
type: z.ZodLiteral<"success">;
|
|
2332
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2333
|
+
type: z.ZodLiteral<"suspended">;
|
|
2334
|
+
interruptIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2335
|
+
}, z.core.$loose>]>>;
|
|
2336
|
+
}, z.core.$loose>;
|
|
2337
|
+
/**
|
|
2338
|
+
* Reports that a subagent invocation failed. The run may continue: a parent
|
|
2339
|
+
* agent is free to handle a failed subagent, which is why this is not
|
|
2340
|
+
* RUN_ERROR.
|
|
1289
2341
|
*/
|
|
1290
|
-
declare const
|
|
1291
|
-
|
|
2342
|
+
declare const SubagentErrorEventSchema: z.ZodObject<{
|
|
2343
|
+
type: z.ZodLiteral<EventType.SUBAGENT_ERROR>;
|
|
2344
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
1292
2345
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2346
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2347
|
+
subagentRunId: z.ZodString;
|
|
2348
|
+
message: z.ZodString;
|
|
2349
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2350
|
+
}, z.core.$loose>;
|
|
2351
|
+
/**
|
|
2352
|
+
* Any AG-UI event. Every member is normative: there is no optional tier and no
|
|
2353
|
+
* event a consumer may decline to implement. Discriminated by the type
|
|
2354
|
+
* property.
|
|
2355
|
+
*/
|
|
2356
|
+
declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1293
2357
|
type: z.ZodLiteral<EventType.TEXT_MESSAGE_START>;
|
|
2358
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
2359
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2360
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2361
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1294
2362
|
messageId: z.ZodString;
|
|
1295
|
-
role: z.
|
|
2363
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
2364
|
+
developer: "developer";
|
|
2365
|
+
system: "system";
|
|
2366
|
+
assistant: "assistant";
|
|
2367
|
+
user: "user";
|
|
2368
|
+
}>>;
|
|
1296
2369
|
name: z.ZodOptional<z.ZodString>;
|
|
1297
2370
|
}, z.core.$loose>, z.ZodObject<{
|
|
1298
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1299
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1300
2371
|
type: z.ZodLiteral<EventType.TEXT_MESSAGE_CONTENT>;
|
|
2372
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
2373
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2374
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2375
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1301
2376
|
messageId: z.ZodString;
|
|
1302
2377
|
delta: z.ZodString;
|
|
1303
2378
|
}, z.core.$loose>, z.ZodObject<{
|
|
1304
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1305
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1306
2379
|
type: z.ZodLiteral<EventType.TEXT_MESSAGE_END>;
|
|
2380
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
2381
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2382
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2383
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1307
2384
|
messageId: z.ZodString;
|
|
1308
2385
|
}, z.core.$loose>, z.ZodObject<{
|
|
1309
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1310
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1311
2386
|
type: z.ZodLiteral<EventType.TEXT_MESSAGE_CHUNK>;
|
|
2387
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
2388
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2389
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2390
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1312
2391
|
messageId: z.ZodOptional<z.ZodString>;
|
|
1313
|
-
role: z.ZodOptional<z.
|
|
2392
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
2393
|
+
developer: "developer";
|
|
2394
|
+
system: "system";
|
|
2395
|
+
assistant: "assistant";
|
|
2396
|
+
user: "user";
|
|
2397
|
+
}>>;
|
|
1314
2398
|
delta: z.ZodOptional<z.ZodString>;
|
|
1315
2399
|
name: z.ZodOptional<z.ZodString>;
|
|
1316
2400
|
}, z.core.$loose>, z.ZodObject<{
|
|
1317
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1318
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1319
|
-
type: z.ZodLiteral<EventType.THINKING_START>;
|
|
1320
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1321
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
1322
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1323
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1324
|
-
type: z.ZodLiteral<EventType.THINKING_END>;
|
|
1325
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
1326
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1327
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1328
|
-
type: z.ZodLiteral<EventType.THINKING_TEXT_MESSAGE_START>;
|
|
1329
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
1330
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1331
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1332
|
-
type: z.ZodLiteral<EventType.THINKING_TEXT_MESSAGE_CONTENT>;
|
|
1333
|
-
delta: z.ZodString;
|
|
1334
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
1335
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1336
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1337
|
-
type: z.ZodLiteral<EventType.THINKING_TEXT_MESSAGE_END>;
|
|
1338
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
1339
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1340
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1341
2401
|
type: z.ZodLiteral<EventType.TOOL_CALL_START>;
|
|
2402
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
2403
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2404
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2405
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1342
2406
|
toolCallId: z.ZodString;
|
|
1343
2407
|
toolCallName: z.ZodString;
|
|
1344
|
-
parentMessageId: z.
|
|
2408
|
+
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
1345
2409
|
}, z.core.$loose>, z.ZodObject<{
|
|
1346
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1347
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1348
2410
|
type: z.ZodLiteral<EventType.TOOL_CALL_ARGS>;
|
|
2411
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
2412
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2413
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2414
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1349
2415
|
toolCallId: z.ZodString;
|
|
1350
2416
|
delta: z.ZodString;
|
|
1351
2417
|
}, z.core.$loose>, z.ZodObject<{
|
|
1352
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1353
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1354
2418
|
type: z.ZodLiteral<EventType.TOOL_CALL_END>;
|
|
2419
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
2420
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2421
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2422
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1355
2423
|
toolCallId: z.ZodString;
|
|
1356
2424
|
}, z.core.$loose>, z.ZodObject<{
|
|
1357
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1358
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1359
2425
|
type: z.ZodLiteral<EventType.TOOL_CALL_CHUNK>;
|
|
2426
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
2427
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2428
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2429
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1360
2430
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
1361
2431
|
toolCallName: z.ZodOptional<z.ZodString>;
|
|
1362
|
-
parentMessageId: z.
|
|
2432
|
+
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
1363
2433
|
delta: z.ZodOptional<z.ZodString>;
|
|
1364
2434
|
}, z.core.$loose>, z.ZodObject<{
|
|
1365
|
-
|
|
2435
|
+
type: z.ZodLiteral<EventType.TOOL_CALL_RESULT>;
|
|
2436
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
1366
2437
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2438
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2439
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1367
2440
|
messageId: z.ZodString;
|
|
1368
|
-
type: z.ZodLiteral<EventType.TOOL_CALL_RESULT>;
|
|
1369
2441
|
toolCallId: z.ZodString;
|
|
1370
|
-
content: z.ZodString
|
|
2442
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2443
|
+
type: z.ZodLiteral<"text">;
|
|
2444
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2445
|
+
text: z.ZodString;
|
|
2446
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
2447
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2448
|
+
type: z.ZodLiteral<"image">;
|
|
2449
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2450
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2451
|
+
type: z.ZodLiteral<"data">;
|
|
2452
|
+
value: z.ZodString;
|
|
2453
|
+
mimeType: z.ZodString;
|
|
2454
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2455
|
+
type: z.ZodLiteral<"url">;
|
|
2456
|
+
value: z.ZodString;
|
|
2457
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2458
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2459
|
+
type: z.ZodLiteral<"file">;
|
|
2460
|
+
value: z.ZodString;
|
|
2461
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
2462
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2463
|
+
}, z.core.$loose>]>;
|
|
2464
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
2465
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2466
|
+
type: z.ZodLiteral<"audio">;
|
|
2467
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2468
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2469
|
+
type: z.ZodLiteral<"data">;
|
|
2470
|
+
value: z.ZodString;
|
|
2471
|
+
mimeType: z.ZodString;
|
|
2472
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2473
|
+
type: z.ZodLiteral<"url">;
|
|
2474
|
+
value: z.ZodString;
|
|
2475
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2476
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2477
|
+
type: z.ZodLiteral<"file">;
|
|
2478
|
+
value: z.ZodString;
|
|
2479
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
2480
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2481
|
+
}, z.core.$loose>]>;
|
|
2482
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
2483
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2484
|
+
type: z.ZodLiteral<"video">;
|
|
2485
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2486
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2487
|
+
type: z.ZodLiteral<"data">;
|
|
2488
|
+
value: z.ZodString;
|
|
2489
|
+
mimeType: z.ZodString;
|
|
2490
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2491
|
+
type: z.ZodLiteral<"url">;
|
|
2492
|
+
value: z.ZodString;
|
|
2493
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2494
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2495
|
+
type: z.ZodLiteral<"file">;
|
|
2496
|
+
value: z.ZodString;
|
|
2497
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
2498
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2499
|
+
}, z.core.$loose>]>;
|
|
2500
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
2501
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2502
|
+
type: z.ZodLiteral<"document">;
|
|
2503
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2504
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2505
|
+
type: z.ZodLiteral<"data">;
|
|
2506
|
+
value: z.ZodString;
|
|
2507
|
+
mimeType: z.ZodString;
|
|
2508
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2509
|
+
type: z.ZodLiteral<"url">;
|
|
2510
|
+
value: z.ZodString;
|
|
2511
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2512
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2513
|
+
type: z.ZodLiteral<"file">;
|
|
2514
|
+
value: z.ZodString;
|
|
2515
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
2516
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2517
|
+
}, z.core.$loose>]>;
|
|
2518
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
2519
|
+
}, z.core.$loose>]>>]>;
|
|
1371
2520
|
role: z.ZodOptional<z.ZodLiteral<"tool">>;
|
|
1372
2521
|
}, z.core.$loose>, z.ZodObject<{
|
|
1373
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1374
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1375
2522
|
type: z.ZodLiteral<EventType.STATE_SNAPSHOT>;
|
|
1376
|
-
|
|
1377
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
1378
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
2523
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
1379
2524
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2525
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2526
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
2527
|
+
snapshot: z.ZodAny;
|
|
2528
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1380
2529
|
type: z.ZodLiteral<EventType.STATE_DELTA>;
|
|
1381
|
-
|
|
2530
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
2531
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2532
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2533
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
2534
|
+
delta: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2535
|
+
op: z.ZodLiteral<"add">;
|
|
2536
|
+
path: z.ZodString;
|
|
2537
|
+
value: z.ZodAny;
|
|
2538
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2539
|
+
op: z.ZodLiteral<"remove">;
|
|
2540
|
+
path: z.ZodString;
|
|
2541
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2542
|
+
op: z.ZodLiteral<"replace">;
|
|
2543
|
+
path: z.ZodString;
|
|
2544
|
+
value: z.ZodAny;
|
|
2545
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2546
|
+
op: z.ZodLiteral<"move">;
|
|
2547
|
+
from: z.ZodString;
|
|
2548
|
+
path: z.ZodString;
|
|
2549
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2550
|
+
op: z.ZodLiteral<"copy">;
|
|
2551
|
+
from: z.ZodString;
|
|
2552
|
+
path: z.ZodString;
|
|
2553
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2554
|
+
op: z.ZodLiteral<"test">;
|
|
2555
|
+
path: z.ZodString;
|
|
2556
|
+
value: z.ZodAny;
|
|
2557
|
+
}, z.core.$loose>]>>;
|
|
1382
2558
|
}, z.core.$loose>, z.ZodObject<{
|
|
1383
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1384
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1385
2559
|
type: z.ZodLiteral<EventType.MESSAGES_SNAPSHOT>;
|
|
2560
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
2561
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2562
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1386
2563
|
messages: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2564
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1387
2565
|
id: z.ZodString;
|
|
2566
|
+
role: z.ZodLiteral<"developer">;
|
|
1388
2567
|
name: z.ZodOptional<z.ZodString>;
|
|
1389
2568
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
1390
|
-
|
|
2569
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1391
2570
|
content: z.ZodString;
|
|
1392
|
-
}, z.core.$
|
|
2571
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2572
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1393
2573
|
id: z.ZodString;
|
|
2574
|
+
role: z.ZodLiteral<"system">;
|
|
1394
2575
|
name: z.ZodOptional<z.ZodString>;
|
|
1395
2576
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
1396
|
-
|
|
2577
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1397
2578
|
content: z.ZodString;
|
|
1398
|
-
}, z.core.$
|
|
2579
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2580
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1399
2581
|
id: z.ZodString;
|
|
2582
|
+
role: z.ZodLiteral<"assistant">;
|
|
1400
2583
|
name: z.ZodOptional<z.ZodString>;
|
|
1401
2584
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
1402
|
-
|
|
2585
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1403
2586
|
content: z.ZodOptional<z.ZodString>;
|
|
1404
2587
|
toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1405
2588
|
id: z.ZodString;
|
|
@@ -1407,147 +2590,292 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1407
2590
|
function: z.ZodObject<{
|
|
1408
2591
|
name: z.ZodString;
|
|
1409
2592
|
arguments: z.ZodString;
|
|
1410
|
-
}, z.core.$
|
|
2593
|
+
}, z.core.$loose>;
|
|
1411
2594
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
1412
|
-
|
|
1413
|
-
|
|
2595
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2596
|
+
}, z.core.$loose>>>;
|
|
2597
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2598
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1414
2599
|
id: z.ZodString;
|
|
2600
|
+
role: z.ZodLiteral<"user">;
|
|
1415
2601
|
name: z.ZodOptional<z.ZodString>;
|
|
1416
2602
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
1417
|
-
|
|
2603
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1418
2604
|
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1419
2605
|
type: z.ZodLiteral<"text">;
|
|
2606
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1420
2607
|
text: z.ZodString;
|
|
1421
|
-
|
|
2608
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
2609
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1422
2610
|
type: z.ZodLiteral<"image">;
|
|
2611
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1423
2612
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1424
2613
|
type: z.ZodLiteral<"data">;
|
|
1425
2614
|
value: z.ZodString;
|
|
1426
2615
|
mimeType: z.ZodString;
|
|
1427
|
-
}, z.core.$
|
|
2616
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1428
2617
|
type: z.ZodLiteral<"url">;
|
|
1429
2618
|
value: z.ZodString;
|
|
1430
2619
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
1431
|
-
}, z.core.$
|
|
1432
|
-
|
|
1433
|
-
|
|
2620
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2621
|
+
type: z.ZodLiteral<"file">;
|
|
2622
|
+
value: z.ZodString;
|
|
2623
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
2624
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2625
|
+
}, z.core.$loose>]>;
|
|
2626
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
2627
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1434
2628
|
type: z.ZodLiteral<"audio">;
|
|
2629
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1435
2630
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1436
2631
|
type: z.ZodLiteral<"data">;
|
|
1437
2632
|
value: z.ZodString;
|
|
1438
2633
|
mimeType: z.ZodString;
|
|
1439
|
-
}, z.core.$
|
|
2634
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1440
2635
|
type: z.ZodLiteral<"url">;
|
|
1441
2636
|
value: z.ZodString;
|
|
1442
2637
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
1443
|
-
}, z.core.$
|
|
1444
|
-
|
|
1445
|
-
|
|
2638
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2639
|
+
type: z.ZodLiteral<"file">;
|
|
2640
|
+
value: z.ZodString;
|
|
2641
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
2642
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2643
|
+
}, z.core.$loose>]>;
|
|
2644
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
2645
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1446
2646
|
type: z.ZodLiteral<"video">;
|
|
2647
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1447
2648
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1448
2649
|
type: z.ZodLiteral<"data">;
|
|
1449
2650
|
value: z.ZodString;
|
|
1450
2651
|
mimeType: z.ZodString;
|
|
1451
|
-
}, z.core.$
|
|
2652
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1452
2653
|
type: z.ZodLiteral<"url">;
|
|
1453
2654
|
value: z.ZodString;
|
|
1454
2655
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
1455
|
-
}, z.core.$
|
|
1456
|
-
|
|
1457
|
-
|
|
2656
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2657
|
+
type: z.ZodLiteral<"file">;
|
|
2658
|
+
value: z.ZodString;
|
|
2659
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
2660
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2661
|
+
}, z.core.$loose>]>;
|
|
2662
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
2663
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1458
2664
|
type: z.ZodLiteral<"document">;
|
|
2665
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1459
2666
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1460
2667
|
type: z.ZodLiteral<"data">;
|
|
1461
2668
|
value: z.ZodString;
|
|
1462
2669
|
mimeType: z.ZodString;
|
|
1463
|
-
}, z.core.$
|
|
2670
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1464
2671
|
type: z.ZodLiteral<"url">;
|
|
1465
2672
|
value: z.ZodString;
|
|
1466
2673
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
1467
|
-
}, z.core.$
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2674
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2675
|
+
type: z.ZodLiteral<"file">;
|
|
2676
|
+
value: z.ZodString;
|
|
2677
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
2678
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2679
|
+
}, z.core.$loose>]>;
|
|
2680
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
2681
|
+
}, z.core.$loose>]>>]>;
|
|
2682
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2683
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1478
2684
|
id: z.ZodString;
|
|
1479
|
-
content: z.ZodString;
|
|
1480
2685
|
role: z.ZodLiteral<"tool">;
|
|
2686
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2687
|
+
type: z.ZodLiteral<"text">;
|
|
2688
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2689
|
+
text: z.ZodString;
|
|
2690
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
2691
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2692
|
+
type: z.ZodLiteral<"image">;
|
|
2693
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2694
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2695
|
+
type: z.ZodLiteral<"data">;
|
|
2696
|
+
value: z.ZodString;
|
|
2697
|
+
mimeType: z.ZodString;
|
|
2698
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2699
|
+
type: z.ZodLiteral<"url">;
|
|
2700
|
+
value: z.ZodString;
|
|
2701
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2702
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2703
|
+
type: z.ZodLiteral<"file">;
|
|
2704
|
+
value: z.ZodString;
|
|
2705
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
2706
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2707
|
+
}, z.core.$loose>]>;
|
|
2708
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
2709
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2710
|
+
type: z.ZodLiteral<"audio">;
|
|
2711
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2712
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2713
|
+
type: z.ZodLiteral<"data">;
|
|
2714
|
+
value: z.ZodString;
|
|
2715
|
+
mimeType: z.ZodString;
|
|
2716
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2717
|
+
type: z.ZodLiteral<"url">;
|
|
2718
|
+
value: z.ZodString;
|
|
2719
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2720
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2721
|
+
type: z.ZodLiteral<"file">;
|
|
2722
|
+
value: z.ZodString;
|
|
2723
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
2724
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2725
|
+
}, z.core.$loose>]>;
|
|
2726
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
2727
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2728
|
+
type: z.ZodLiteral<"video">;
|
|
2729
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2730
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2731
|
+
type: z.ZodLiteral<"data">;
|
|
2732
|
+
value: z.ZodString;
|
|
2733
|
+
mimeType: z.ZodString;
|
|
2734
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2735
|
+
type: z.ZodLiteral<"url">;
|
|
2736
|
+
value: z.ZodString;
|
|
2737
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2738
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2739
|
+
type: z.ZodLiteral<"file">;
|
|
2740
|
+
value: z.ZodString;
|
|
2741
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
2742
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2743
|
+
}, z.core.$loose>]>;
|
|
2744
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
2745
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2746
|
+
type: z.ZodLiteral<"document">;
|
|
2747
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2748
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2749
|
+
type: z.ZodLiteral<"data">;
|
|
2750
|
+
value: z.ZodString;
|
|
2751
|
+
mimeType: z.ZodString;
|
|
2752
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2753
|
+
type: z.ZodLiteral<"url">;
|
|
2754
|
+
value: z.ZodString;
|
|
2755
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2756
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2757
|
+
type: z.ZodLiteral<"file">;
|
|
2758
|
+
value: z.ZodString;
|
|
2759
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
2760
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2761
|
+
}, z.core.$loose>]>;
|
|
2762
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
2763
|
+
}, z.core.$loose>]>>]>;
|
|
1481
2764
|
toolCallId: z.ZodString;
|
|
1482
2765
|
error: z.ZodOptional<z.ZodString>;
|
|
1483
2766
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
1484
|
-
|
|
2767
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2768
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2769
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1485
2770
|
id: z.ZodString;
|
|
1486
2771
|
role: z.ZodLiteral<"activity">;
|
|
1487
2772
|
activityType: z.ZodString;
|
|
1488
|
-
content: z.
|
|
1489
|
-
|
|
2773
|
+
content: z.ZodCustom<Record<string, any>, Record<string, any>>;
|
|
2774
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2775
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2776
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1490
2777
|
id: z.ZodString;
|
|
1491
2778
|
role: z.ZodLiteral<"reasoning">;
|
|
1492
2779
|
content: z.ZodString;
|
|
1493
2780
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
1494
|
-
|
|
2781
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2782
|
+
}, z.core.$loose>]>>;
|
|
1495
2783
|
}, z.core.$loose>, z.ZodObject<{
|
|
1496
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1497
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1498
2784
|
type: z.ZodLiteral<EventType.ACTIVITY_SNAPSHOT>;
|
|
2785
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
2786
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2787
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2788
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1499
2789
|
messageId: z.ZodString;
|
|
1500
2790
|
activityType: z.ZodString;
|
|
1501
|
-
content: z.
|
|
1502
|
-
replace: z.
|
|
2791
|
+
content: z.ZodCustom<Record<string, any>, Record<string, any>>;
|
|
2792
|
+
replace: z.ZodOptional<z.ZodBoolean>;
|
|
1503
2793
|
}, z.core.$loose>, z.ZodObject<{
|
|
1504
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1505
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1506
2794
|
type: z.ZodLiteral<EventType.ACTIVITY_DELTA>;
|
|
2795
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
2796
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2797
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2798
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1507
2799
|
messageId: z.ZodString;
|
|
1508
2800
|
activityType: z.ZodString;
|
|
1509
|
-
patch: z.ZodArray<z.
|
|
2801
|
+
patch: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2802
|
+
op: z.ZodLiteral<"add">;
|
|
2803
|
+
path: z.ZodString;
|
|
2804
|
+
value: z.ZodAny;
|
|
2805
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2806
|
+
op: z.ZodLiteral<"remove">;
|
|
2807
|
+
path: z.ZodString;
|
|
2808
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2809
|
+
op: z.ZodLiteral<"replace">;
|
|
2810
|
+
path: z.ZodString;
|
|
2811
|
+
value: z.ZodAny;
|
|
2812
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2813
|
+
op: z.ZodLiteral<"move">;
|
|
2814
|
+
from: z.ZodString;
|
|
2815
|
+
path: z.ZodString;
|
|
2816
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2817
|
+
op: z.ZodLiteral<"copy">;
|
|
2818
|
+
from: z.ZodString;
|
|
2819
|
+
path: z.ZodString;
|
|
2820
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2821
|
+
op: z.ZodLiteral<"test">;
|
|
2822
|
+
path: z.ZodString;
|
|
2823
|
+
value: z.ZodAny;
|
|
2824
|
+
}, z.core.$loose>]>>;
|
|
1510
2825
|
}, z.core.$loose>, z.ZodObject<{
|
|
1511
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1512
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1513
2826
|
type: z.ZodLiteral<EventType.RAW>;
|
|
1514
|
-
|
|
2827
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
2828
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2829
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2830
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
2831
|
+
event: z.ZodAny;
|
|
1515
2832
|
source: z.ZodOptional<z.ZodString>;
|
|
1516
2833
|
}, z.core.$loose>, z.ZodObject<{
|
|
1517
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1518
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1519
2834
|
type: z.ZodLiteral<EventType.CUSTOM>;
|
|
2835
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
2836
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2837
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2838
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1520
2839
|
name: z.ZodString;
|
|
1521
|
-
value: z.
|
|
2840
|
+
value: z.ZodAny;
|
|
1522
2841
|
}, z.core.$loose>, z.ZodObject<{
|
|
1523
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1524
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1525
2842
|
type: z.ZodLiteral<EventType.RUN_STARTED>;
|
|
2843
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
2844
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
2845
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1526
2846
|
threadId: z.ZodString;
|
|
1527
2847
|
runId: z.ZodString;
|
|
2848
|
+
protocolVersion: z.ZodOptional<z.ZodString>;
|
|
1528
2849
|
parentRunId: z.ZodOptional<z.ZodString>;
|
|
1529
2850
|
input: z.ZodOptional<z.ZodObject<{
|
|
1530
2851
|
threadId: z.ZodString;
|
|
1531
2852
|
runId: z.ZodString;
|
|
2853
|
+
protocolVersion: z.ZodOptional<z.ZodString>;
|
|
1532
2854
|
parentRunId: z.ZodOptional<z.ZodString>;
|
|
1533
|
-
state: z.ZodOptional<z.ZodAny
|
|
2855
|
+
state: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodAny>, z.ZodTransform<any, any>>>;
|
|
1534
2856
|
messages: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2857
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1535
2858
|
id: z.ZodString;
|
|
2859
|
+
role: z.ZodLiteral<"developer">;
|
|
1536
2860
|
name: z.ZodOptional<z.ZodString>;
|
|
1537
2861
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
1538
|
-
|
|
2862
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1539
2863
|
content: z.ZodString;
|
|
1540
|
-
}, z.core.$
|
|
2864
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2865
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1541
2866
|
id: z.ZodString;
|
|
2867
|
+
role: z.ZodLiteral<"system">;
|
|
1542
2868
|
name: z.ZodOptional<z.ZodString>;
|
|
1543
2869
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
1544
|
-
|
|
2870
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1545
2871
|
content: z.ZodString;
|
|
1546
|
-
}, z.core.$
|
|
2872
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2873
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1547
2874
|
id: z.ZodString;
|
|
2875
|
+
role: z.ZodLiteral<"assistant">;
|
|
1548
2876
|
name: z.ZodOptional<z.ZodString>;
|
|
1549
2877
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
1550
|
-
|
|
2878
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1551
2879
|
content: z.ZodOptional<z.ZodString>;
|
|
1552
2880
|
toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1553
2881
|
id: z.ZodString;
|
|
@@ -1555,101 +2883,206 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1555
2883
|
function: z.ZodObject<{
|
|
1556
2884
|
name: z.ZodString;
|
|
1557
2885
|
arguments: z.ZodString;
|
|
1558
|
-
}, z.core.$
|
|
2886
|
+
}, z.core.$loose>;
|
|
1559
2887
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
1560
|
-
|
|
1561
|
-
|
|
2888
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2889
|
+
}, z.core.$loose>>>;
|
|
2890
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2891
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1562
2892
|
id: z.ZodString;
|
|
2893
|
+
role: z.ZodLiteral<"user">;
|
|
1563
2894
|
name: z.ZodOptional<z.ZodString>;
|
|
1564
2895
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
1565
|
-
|
|
2896
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1566
2897
|
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1567
2898
|
type: z.ZodLiteral<"text">;
|
|
2899
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1568
2900
|
text: z.ZodString;
|
|
1569
|
-
|
|
2901
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
2902
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1570
2903
|
type: z.ZodLiteral<"image">;
|
|
2904
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1571
2905
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1572
2906
|
type: z.ZodLiteral<"data">;
|
|
1573
2907
|
value: z.ZodString;
|
|
1574
2908
|
mimeType: z.ZodString;
|
|
1575
|
-
}, z.core.$
|
|
2909
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1576
2910
|
type: z.ZodLiteral<"url">;
|
|
1577
2911
|
value: z.ZodString;
|
|
1578
2912
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
1579
|
-
}, z.core.$
|
|
1580
|
-
|
|
1581
|
-
|
|
2913
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2914
|
+
type: z.ZodLiteral<"file">;
|
|
2915
|
+
value: z.ZodString;
|
|
2916
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
2917
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2918
|
+
}, z.core.$loose>]>;
|
|
2919
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
2920
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1582
2921
|
type: z.ZodLiteral<"audio">;
|
|
2922
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1583
2923
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1584
2924
|
type: z.ZodLiteral<"data">;
|
|
1585
2925
|
value: z.ZodString;
|
|
1586
2926
|
mimeType: z.ZodString;
|
|
1587
|
-
}, z.core.$
|
|
2927
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1588
2928
|
type: z.ZodLiteral<"url">;
|
|
1589
2929
|
value: z.ZodString;
|
|
1590
2930
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
1591
|
-
}, z.core.$
|
|
1592
|
-
|
|
1593
|
-
|
|
2931
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2932
|
+
type: z.ZodLiteral<"file">;
|
|
2933
|
+
value: z.ZodString;
|
|
2934
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
2935
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2936
|
+
}, z.core.$loose>]>;
|
|
2937
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
2938
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1594
2939
|
type: z.ZodLiteral<"video">;
|
|
2940
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1595
2941
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1596
2942
|
type: z.ZodLiteral<"data">;
|
|
1597
2943
|
value: z.ZodString;
|
|
1598
2944
|
mimeType: z.ZodString;
|
|
1599
|
-
}, z.core.$
|
|
2945
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1600
2946
|
type: z.ZodLiteral<"url">;
|
|
1601
2947
|
value: z.ZodString;
|
|
1602
2948
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
1603
|
-
}, z.core.$
|
|
1604
|
-
|
|
1605
|
-
|
|
2949
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2950
|
+
type: z.ZodLiteral<"file">;
|
|
2951
|
+
value: z.ZodString;
|
|
2952
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
2953
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2954
|
+
}, z.core.$loose>]>;
|
|
2955
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
2956
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1606
2957
|
type: z.ZodLiteral<"document">;
|
|
2958
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1607
2959
|
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1608
2960
|
type: z.ZodLiteral<"data">;
|
|
1609
2961
|
value: z.ZodString;
|
|
1610
2962
|
mimeType: z.ZodString;
|
|
1611
|
-
}, z.core.$
|
|
2963
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1612
2964
|
type: z.ZodLiteral<"url">;
|
|
1613
2965
|
value: z.ZodString;
|
|
1614
2966
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
1615
|
-
}, z.core.$
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2967
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2968
|
+
type: z.ZodLiteral<"file">;
|
|
2969
|
+
value: z.ZodString;
|
|
2970
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
2971
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2972
|
+
}, z.core.$loose>]>;
|
|
2973
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
2974
|
+
}, z.core.$loose>]>>]>;
|
|
2975
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2976
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1626
2977
|
id: z.ZodString;
|
|
1627
|
-
content: z.ZodString;
|
|
1628
2978
|
role: z.ZodLiteral<"tool">;
|
|
2979
|
+
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2980
|
+
type: z.ZodLiteral<"text">;
|
|
2981
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2982
|
+
text: z.ZodString;
|
|
2983
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
2984
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2985
|
+
type: z.ZodLiteral<"image">;
|
|
2986
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2987
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2988
|
+
type: z.ZodLiteral<"data">;
|
|
2989
|
+
value: z.ZodString;
|
|
2990
|
+
mimeType: z.ZodString;
|
|
2991
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2992
|
+
type: z.ZodLiteral<"url">;
|
|
2993
|
+
value: z.ZodString;
|
|
2994
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
2995
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
2996
|
+
type: z.ZodLiteral<"file">;
|
|
2997
|
+
value: z.ZodString;
|
|
2998
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
2999
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
3000
|
+
}, z.core.$loose>]>;
|
|
3001
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
3002
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
3003
|
+
type: z.ZodLiteral<"audio">;
|
|
3004
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3005
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3006
|
+
type: z.ZodLiteral<"data">;
|
|
3007
|
+
value: z.ZodString;
|
|
3008
|
+
mimeType: z.ZodString;
|
|
3009
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
3010
|
+
type: z.ZodLiteral<"url">;
|
|
3011
|
+
value: z.ZodString;
|
|
3012
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
3013
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
3014
|
+
type: z.ZodLiteral<"file">;
|
|
3015
|
+
value: z.ZodString;
|
|
3016
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
3017
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
3018
|
+
}, z.core.$loose>]>;
|
|
3019
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
3020
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
3021
|
+
type: z.ZodLiteral<"video">;
|
|
3022
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3023
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3024
|
+
type: z.ZodLiteral<"data">;
|
|
3025
|
+
value: z.ZodString;
|
|
3026
|
+
mimeType: z.ZodString;
|
|
3027
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
3028
|
+
type: z.ZodLiteral<"url">;
|
|
3029
|
+
value: z.ZodString;
|
|
3030
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
3031
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
3032
|
+
type: z.ZodLiteral<"file">;
|
|
3033
|
+
value: z.ZodString;
|
|
3034
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
3035
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
3036
|
+
}, z.core.$loose>]>;
|
|
3037
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
3038
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
3039
|
+
type: z.ZodLiteral<"document">;
|
|
3040
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3041
|
+
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3042
|
+
type: z.ZodLiteral<"data">;
|
|
3043
|
+
value: z.ZodString;
|
|
3044
|
+
mimeType: z.ZodString;
|
|
3045
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
3046
|
+
type: z.ZodLiteral<"url">;
|
|
3047
|
+
value: z.ZodString;
|
|
3048
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
3049
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
3050
|
+
type: z.ZodLiteral<"file">;
|
|
3051
|
+
value: z.ZodString;
|
|
3052
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
3053
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
3054
|
+
}, z.core.$loose>]>;
|
|
3055
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
3056
|
+
}, z.core.$loose>]>>]>;
|
|
1629
3057
|
toolCallId: z.ZodString;
|
|
1630
3058
|
error: z.ZodOptional<z.ZodString>;
|
|
1631
3059
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
1632
|
-
|
|
3060
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
3061
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
3062
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1633
3063
|
id: z.ZodString;
|
|
1634
3064
|
role: z.ZodLiteral<"activity">;
|
|
1635
3065
|
activityType: z.ZodString;
|
|
1636
|
-
content: z.
|
|
1637
|
-
|
|
3066
|
+
content: z.ZodCustom<Record<string, any>, Record<string, any>>;
|
|
3067
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
3068
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
3069
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1638
3070
|
id: z.ZodString;
|
|
1639
3071
|
role: z.ZodLiteral<"reasoning">;
|
|
1640
3072
|
content: z.ZodString;
|
|
1641
3073
|
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
1642
|
-
|
|
1643
|
-
|
|
3074
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
3075
|
+
}, z.core.$loose>]>>;
|
|
3076
|
+
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1644
3077
|
name: z.ZodString;
|
|
1645
3078
|
description: z.ZodString;
|
|
1646
3079
|
parameters: z.ZodOptional<z.ZodAny>;
|
|
1647
|
-
metadata: z.ZodOptional<z.
|
|
1648
|
-
}, z.core.$
|
|
1649
|
-
context: z.ZodArray<z.ZodObject<{
|
|
3080
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
3081
|
+
}, z.core.$loose>>>;
|
|
3082
|
+
context: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1650
3083
|
description: z.ZodString;
|
|
1651
3084
|
value: z.ZodString;
|
|
1652
|
-
}, z.core.$
|
|
3085
|
+
}, z.core.$loose>>>;
|
|
1653
3086
|
forwardedProps: z.ZodOptional<z.ZodAny>;
|
|
1654
3087
|
resume: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1655
3088
|
interruptId: z.ZodString;
|
|
@@ -1658,120 +3091,190 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1658
3091
|
cancelled: "cancelled";
|
|
1659
3092
|
}>;
|
|
1660
3093
|
payload: z.ZodOptional<z.ZodAny>;
|
|
1661
|
-
|
|
1662
|
-
|
|
3094
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
3095
|
+
}, z.core.$loose>>>;
|
|
3096
|
+
}, z.core.$loose>>;
|
|
1663
3097
|
}, z.core.$loose>, z.ZodObject<{
|
|
1664
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1665
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1666
3098
|
type: z.ZodLiteral<EventType.RUN_FINISHED>;
|
|
3099
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
3100
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
3101
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1667
3102
|
threadId: z.ZodString;
|
|
1668
3103
|
runId: z.ZodString;
|
|
1669
3104
|
result: z.ZodOptional<z.ZodAny>;
|
|
1670
|
-
outcome: z.
|
|
3105
|
+
outcome: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1671
3106
|
type: z.ZodLiteral<"success">;
|
|
1672
|
-
|
|
3107
|
+
pendingToolCallIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3108
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1673
3109
|
type: z.ZodLiteral<"interrupt">;
|
|
1674
3110
|
interrupts: z.ZodArray<z.ZodObject<{
|
|
3111
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1675
3112
|
id: z.ZodString;
|
|
1676
3113
|
reason: z.ZodString;
|
|
1677
3114
|
message: z.ZodOptional<z.ZodString>;
|
|
1678
3115
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
1679
|
-
responseSchema: z.ZodOptional<z.
|
|
3116
|
+
responseSchema: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1680
3117
|
expiresAt: z.ZodOptional<z.ZodString>;
|
|
1681
|
-
metadata: z.ZodOptional<z.
|
|
1682
|
-
}, z.core.$
|
|
1683
|
-
}, z.core.$
|
|
1684
|
-
type: "
|
|
1685
|
-
}
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
} | undefined, {
|
|
1697
|
-
type: "success";
|
|
1698
|
-
} | {
|
|
1699
|
-
type: "interrupt";
|
|
1700
|
-
interrupts: {
|
|
1701
|
-
id: string;
|
|
1702
|
-
reason: string;
|
|
1703
|
-
message?: string | undefined;
|
|
1704
|
-
toolCallId?: string | undefined;
|
|
1705
|
-
responseSchema?: Record<string, any> | undefined;
|
|
1706
|
-
expiresAt?: string | undefined;
|
|
1707
|
-
metadata?: Record<string, any> | undefined;
|
|
1708
|
-
}[];
|
|
1709
|
-
} | null | undefined>>;
|
|
3118
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
3119
|
+
}, z.core.$loose>>;
|
|
3120
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
3121
|
+
type: z.ZodLiteral<"cancelled">;
|
|
3122
|
+
}, z.core.$loose>]>>;
|
|
3123
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3124
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
3125
|
+
model: z.ZodOptional<z.ZodString>;
|
|
3126
|
+
inputTokens: z.ZodOptional<z.ZodInt>;
|
|
3127
|
+
outputTokens: z.ZodOptional<z.ZodInt>;
|
|
3128
|
+
totalTokens: z.ZodOptional<z.ZodInt>;
|
|
3129
|
+
reasoningTokens: z.ZodOptional<z.ZodInt>;
|
|
3130
|
+
cachedInputTokens: z.ZodOptional<z.ZodInt>;
|
|
3131
|
+
cacheWriteInputTokens: z.ZodOptional<z.ZodInt>;
|
|
3132
|
+
}, z.core.$loose>>>;
|
|
1710
3133
|
}, z.core.$loose>, z.ZodObject<{
|
|
1711
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1712
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1713
3134
|
type: z.ZodLiteral<EventType.RUN_ERROR>;
|
|
3135
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
3136
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
3137
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
1714
3138
|
message: z.ZodString;
|
|
1715
3139
|
code: z.ZodOptional<z.ZodString>;
|
|
3140
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3141
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
3142
|
+
model: z.ZodOptional<z.ZodString>;
|
|
3143
|
+
inputTokens: z.ZodOptional<z.ZodInt>;
|
|
3144
|
+
outputTokens: z.ZodOptional<z.ZodInt>;
|
|
3145
|
+
totalTokens: z.ZodOptional<z.ZodInt>;
|
|
3146
|
+
reasoningTokens: z.ZodOptional<z.ZodInt>;
|
|
3147
|
+
cachedInputTokens: z.ZodOptional<z.ZodInt>;
|
|
3148
|
+
cacheWriteInputTokens: z.ZodOptional<z.ZodInt>;
|
|
3149
|
+
}, z.core.$loose>>>;
|
|
1716
3150
|
}, z.core.$loose>, z.ZodObject<{
|
|
1717
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1718
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1719
3151
|
type: z.ZodLiteral<EventType.STEP_STARTED>;
|
|
3152
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
3153
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
3154
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
3155
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1720
3156
|
stepName: z.ZodString;
|
|
1721
3157
|
}, z.core.$loose>, z.ZodObject<{
|
|
1722
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1723
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1724
3158
|
type: z.ZodLiteral<EventType.STEP_FINISHED>;
|
|
3159
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
3160
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
3161
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
3162
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1725
3163
|
stepName: z.ZodString;
|
|
1726
3164
|
}, z.core.$loose>, z.ZodObject<{
|
|
1727
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1728
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1729
3165
|
type: z.ZodLiteral<EventType.REASONING_START>;
|
|
3166
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
3167
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
3168
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
3169
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1730
3170
|
messageId: z.ZodString;
|
|
1731
3171
|
}, z.core.$loose>, z.ZodObject<{
|
|
1732
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1733
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1734
3172
|
type: z.ZodLiteral<EventType.REASONING_MESSAGE_START>;
|
|
3173
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
3174
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
3175
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
3176
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1735
3177
|
messageId: z.ZodString;
|
|
1736
3178
|
role: z.ZodLiteral<"reasoning">;
|
|
1737
3179
|
}, z.core.$loose>, z.ZodObject<{
|
|
1738
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1739
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1740
3180
|
type: z.ZodLiteral<EventType.REASONING_MESSAGE_CONTENT>;
|
|
3181
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
3182
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
3183
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
3184
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1741
3185
|
messageId: z.ZodString;
|
|
1742
3186
|
delta: z.ZodString;
|
|
1743
3187
|
}, z.core.$loose>, z.ZodObject<{
|
|
1744
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1745
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1746
3188
|
type: z.ZodLiteral<EventType.REASONING_MESSAGE_END>;
|
|
3189
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
3190
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
3191
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
3192
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1747
3193
|
messageId: z.ZodString;
|
|
1748
3194
|
}, z.core.$loose>, z.ZodObject<{
|
|
1749
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1750
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1751
3195
|
type: z.ZodLiteral<EventType.REASONING_MESSAGE_CHUNK>;
|
|
3196
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
3197
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
3198
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
3199
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1752
3200
|
messageId: z.ZodOptional<z.ZodString>;
|
|
1753
3201
|
delta: z.ZodOptional<z.ZodString>;
|
|
1754
3202
|
}, z.core.$loose>, z.ZodObject<{
|
|
1755
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1756
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1757
3203
|
type: z.ZodLiteral<EventType.REASONING_END>;
|
|
3204
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
3205
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
3206
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
3207
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
1758
3208
|
messageId: z.ZodString;
|
|
1759
3209
|
}, z.core.$loose>, z.ZodObject<{
|
|
1760
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1761
|
-
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
1762
3210
|
type: z.ZodLiteral<EventType.REASONING_ENCRYPTED_VALUE>;
|
|
1763
|
-
|
|
3211
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
3212
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
3213
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
3214
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
3215
|
+
subtype: z.ZodEnum<{
|
|
3216
|
+
message: "message";
|
|
3217
|
+
"tool-call": "tool-call";
|
|
3218
|
+
}>;
|
|
1764
3219
|
entityId: z.ZodString;
|
|
1765
3220
|
encryptedValue: z.ZodString;
|
|
3221
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
3222
|
+
type: z.ZodLiteral<EventType.SUBAGENT_STARTED>;
|
|
3223
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
3224
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
3225
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
3226
|
+
subagentRunId: z.ZodString;
|
|
3227
|
+
name: z.ZodString;
|
|
3228
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3229
|
+
parentSubagentRunId: z.ZodOptional<z.ZodString>;
|
|
3230
|
+
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
3231
|
+
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
3232
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
3233
|
+
type: z.ZodLiteral<EventType.SUBAGENT_FINISHED>;
|
|
3234
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
3235
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
3236
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
3237
|
+
subagentRunId: z.ZodString;
|
|
3238
|
+
result: z.ZodOptional<z.ZodAny>;
|
|
3239
|
+
outcome: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3240
|
+
type: z.ZodLiteral<"success">;
|
|
3241
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
3242
|
+
type: z.ZodLiteral<"suspended">;
|
|
3243
|
+
interruptIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3244
|
+
}, z.core.$loose>]>>;
|
|
3245
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
3246
|
+
type: z.ZodLiteral<EventType.SUBAGENT_ERROR>;
|
|
3247
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
3248
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
3249
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
3250
|
+
subagentRunId: z.ZodString;
|
|
3251
|
+
message: z.ZodString;
|
|
3252
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1766
3253
|
}, z.core.$loose>]>;
|
|
1767
|
-
/**
|
|
1768
|
-
|
|
3254
|
+
/**
|
|
3255
|
+
* Every role a materialised message may have.
|
|
3256
|
+
*/
|
|
3257
|
+
declare const RoleSchema: z.ZodEnum<{
|
|
3258
|
+
developer: "developer";
|
|
3259
|
+
system: "system";
|
|
3260
|
+
assistant: "assistant";
|
|
3261
|
+
user: "user";
|
|
3262
|
+
tool: "tool";
|
|
3263
|
+
activity: "activity";
|
|
3264
|
+
reasoning: "reasoning";
|
|
3265
|
+
}>;
|
|
3266
|
+
/**
|
|
3267
|
+
* Describes a subagent that can be invoked by a parent agent.
|
|
3268
|
+
*/
|
|
3269
|
+
declare const SubagentInfoSchema: z.ZodObject<{
|
|
1769
3270
|
name: z.ZodString;
|
|
1770
3271
|
description: z.ZodOptional<z.ZodString>;
|
|
1771
|
-
}, z.core.$
|
|
3272
|
+
}, z.core.$loose>;
|
|
1772
3273
|
/**
|
|
1773
|
-
* Basic metadata about the agent. Useful for discovery UIs, agent
|
|
1774
|
-
* and debugging.
|
|
3274
|
+
* Basic metadata about the agent. Useful for discovery UIs, agent
|
|
3275
|
+
* marketplaces, and debugging. Set these when you want clients to display
|
|
3276
|
+
* agent information or when multiple agents are available and users need to
|
|
3277
|
+
* pick one.
|
|
1775
3278
|
*/
|
|
1776
3279
|
declare const IdentityCapabilitiesSchema: z.ZodObject<{
|
|
1777
3280
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -1780,10 +3283,12 @@ declare const IdentityCapabilitiesSchema: z.ZodObject<{
|
|
|
1780
3283
|
version: z.ZodOptional<z.ZodString>;
|
|
1781
3284
|
provider: z.ZodOptional<z.ZodString>;
|
|
1782
3285
|
documentationUrl: z.ZodOptional<z.ZodString>;
|
|
1783
|
-
metadata: z.ZodOptional<z.
|
|
1784
|
-
}, z.core.$
|
|
3286
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
3287
|
+
}, z.core.$loose>;
|
|
1785
3288
|
/**
|
|
1786
|
-
* Declares which transport mechanisms the agent supports.
|
|
3289
|
+
* Declares which transport mechanisms the agent supports. Clients use this to
|
|
3290
|
+
* pick the best connection strategy. Only set flags to true for transports
|
|
3291
|
+
* your agent actually handles — omit or set false for unsupported ones.
|
|
1787
3292
|
*/
|
|
1788
3293
|
declare const TransportCapabilitiesSchema: z.ZodObject<{
|
|
1789
3294
|
streaming: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1791,9 +3296,12 @@ declare const TransportCapabilitiesSchema: z.ZodObject<{
|
|
|
1791
3296
|
httpBinary: z.ZodOptional<z.ZodBoolean>;
|
|
1792
3297
|
pushNotifications: z.ZodOptional<z.ZodBoolean>;
|
|
1793
3298
|
resumable: z.ZodOptional<z.ZodBoolean>;
|
|
1794
|
-
}, z.core.$
|
|
3299
|
+
}, z.core.$loose>;
|
|
1795
3300
|
/**
|
|
1796
|
-
* Tool calling capabilities.
|
|
3301
|
+
* Tool calling capabilities. Distinguishes between tools the agent itself
|
|
3302
|
+
* provides (listed in items) and tools the client passes at runtime via
|
|
3303
|
+
* RunAgentInput.tools. Enable this when your agent can call functions, search
|
|
3304
|
+
* the web, execute code, etc.
|
|
1797
3305
|
*/
|
|
1798
3306
|
declare const ToolsCapabilitiesSchema: z.ZodObject<{
|
|
1799
3307
|
supported: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1801,49 +3309,56 @@ declare const ToolsCapabilitiesSchema: z.ZodObject<{
|
|
|
1801
3309
|
name: z.ZodString;
|
|
1802
3310
|
description: z.ZodString;
|
|
1803
3311
|
parameters: z.ZodOptional<z.ZodAny>;
|
|
1804
|
-
metadata: z.ZodOptional<z.
|
|
1805
|
-
}, z.core.$
|
|
3312
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
3313
|
+
}, z.core.$loose>>>;
|
|
1806
3314
|
parallelCalls: z.ZodOptional<z.ZodBoolean>;
|
|
1807
3315
|
clientProvided: z.ZodOptional<z.ZodBoolean>;
|
|
1808
|
-
}, z.core.$
|
|
3316
|
+
}, z.core.$loose>;
|
|
1809
3317
|
/**
|
|
1810
|
-
* Output format support.
|
|
3318
|
+
* Output format support. Enable structuredOutput when your agent can return
|
|
3319
|
+
* responses conforming to a JSON schema, which is useful for programmatic
|
|
3320
|
+
* consumption.
|
|
1811
3321
|
*/
|
|
1812
3322
|
declare const OutputCapabilitiesSchema: z.ZodObject<{
|
|
1813
3323
|
structuredOutput: z.ZodOptional<z.ZodBoolean>;
|
|
1814
3324
|
supportedMimeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1815
|
-
}, z.core.$
|
|
3325
|
+
}, z.core.$loose>;
|
|
1816
3326
|
/**
|
|
1817
|
-
* State and memory management capabilities.
|
|
3327
|
+
* State and memory management capabilities. These tell the client how the
|
|
3328
|
+
* agent handles shared state and whether conversation context persists across
|
|
3329
|
+
* runs.
|
|
1818
3330
|
*/
|
|
1819
3331
|
declare const StateCapabilitiesSchema: z.ZodObject<{
|
|
1820
3332
|
snapshots: z.ZodOptional<z.ZodBoolean>;
|
|
1821
3333
|
deltas: z.ZodOptional<z.ZodBoolean>;
|
|
1822
3334
|
memory: z.ZodOptional<z.ZodBoolean>;
|
|
1823
3335
|
persistentState: z.ZodOptional<z.ZodBoolean>;
|
|
1824
|
-
}, z.core.$
|
|
3336
|
+
}, z.core.$loose>;
|
|
1825
3337
|
/**
|
|
1826
|
-
* Multi-agent coordination capabilities.
|
|
3338
|
+
* Multi-agent coordination capabilities. Enable these when your agent can
|
|
3339
|
+
* orchestrate or hand off work to other agents.
|
|
1827
3340
|
*/
|
|
1828
3341
|
declare const MultiAgentCapabilitiesSchema: z.ZodObject<{
|
|
1829
3342
|
supported: z.ZodOptional<z.ZodBoolean>;
|
|
1830
3343
|
delegation: z.ZodOptional<z.ZodBoolean>;
|
|
1831
3344
|
handoffs: z.ZodOptional<z.ZodBoolean>;
|
|
1832
|
-
|
|
3345
|
+
subagents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1833
3346
|
name: z.ZodString;
|
|
1834
3347
|
description: z.ZodOptional<z.ZodString>;
|
|
1835
|
-
}, z.core.$
|
|
1836
|
-
}, z.core.$
|
|
3348
|
+
}, z.core.$loose>>>;
|
|
3349
|
+
}, z.core.$loose>;
|
|
1837
3350
|
/**
|
|
1838
|
-
* Reasoning and thinking capabilities.
|
|
3351
|
+
* Reasoning and thinking capabilities. Enable these when your agent exposes
|
|
3352
|
+
* its internal thought process (e.g., chain-of-thought, extended thinking).
|
|
1839
3353
|
*/
|
|
1840
3354
|
declare const ReasoningCapabilitiesSchema: z.ZodObject<{
|
|
1841
3355
|
supported: z.ZodOptional<z.ZodBoolean>;
|
|
1842
3356
|
streaming: z.ZodOptional<z.ZodBoolean>;
|
|
1843
3357
|
encrypted: z.ZodOptional<z.ZodBoolean>;
|
|
1844
|
-
}, z.core.$
|
|
3358
|
+
}, z.core.$loose>;
|
|
1845
3359
|
/**
|
|
1846
|
-
* Modalities the agent can accept as input.
|
|
3360
|
+
* Modalities the agent can accept as input. Clients use this to show or hide
|
|
3361
|
+
* file upload buttons, audio recorders, image pickers, etc.
|
|
1847
3362
|
*/
|
|
1848
3363
|
declare const MultimodalInputCapabilitiesSchema: z.ZodObject<{
|
|
1849
3364
|
image: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1851,16 +3366,19 @@ declare const MultimodalInputCapabilitiesSchema: z.ZodObject<{
|
|
|
1851
3366
|
video: z.ZodOptional<z.ZodBoolean>;
|
|
1852
3367
|
pdf: z.ZodOptional<z.ZodBoolean>;
|
|
1853
3368
|
file: z.ZodOptional<z.ZodBoolean>;
|
|
1854
|
-
}, z.core.$
|
|
3369
|
+
}, z.core.$loose>;
|
|
1855
3370
|
/**
|
|
1856
|
-
* Modalities the agent can produce as output.
|
|
3371
|
+
* Modalities the agent can produce as output. Clients use this to anticipate
|
|
3372
|
+
* rich content in the agent's response.
|
|
1857
3373
|
*/
|
|
1858
3374
|
declare const MultimodalOutputCapabilitiesSchema: z.ZodObject<{
|
|
1859
3375
|
image: z.ZodOptional<z.ZodBoolean>;
|
|
1860
3376
|
audio: z.ZodOptional<z.ZodBoolean>;
|
|
1861
|
-
}, z.core.$
|
|
3377
|
+
}, z.core.$loose>;
|
|
1862
3378
|
/**
|
|
1863
|
-
* Multimodal input and output support.
|
|
3379
|
+
* Multimodal input and output support. Organized into input and output
|
|
3380
|
+
* sub-objects so clients can independently query what the agent accepts versus
|
|
3381
|
+
* what it produces.
|
|
1864
3382
|
*/
|
|
1865
3383
|
declare const MultimodalCapabilitiesSchema: z.ZodObject<{
|
|
1866
3384
|
input: z.ZodOptional<z.ZodObject<{
|
|
@@ -1869,23 +3387,26 @@ declare const MultimodalCapabilitiesSchema: z.ZodObject<{
|
|
|
1869
3387
|
video: z.ZodOptional<z.ZodBoolean>;
|
|
1870
3388
|
pdf: z.ZodOptional<z.ZodBoolean>;
|
|
1871
3389
|
file: z.ZodOptional<z.ZodBoolean>;
|
|
1872
|
-
}, z.core.$
|
|
3390
|
+
}, z.core.$loose>>;
|
|
1873
3391
|
output: z.ZodOptional<z.ZodObject<{
|
|
1874
3392
|
image: z.ZodOptional<z.ZodBoolean>;
|
|
1875
3393
|
audio: z.ZodOptional<z.ZodBoolean>;
|
|
1876
|
-
}, z.core.$
|
|
1877
|
-
}, z.core.$
|
|
3394
|
+
}, z.core.$loose>>;
|
|
3395
|
+
}, z.core.$loose>;
|
|
1878
3396
|
/**
|
|
1879
|
-
* Execution control and limits.
|
|
3397
|
+
* Execution control and limits. Declare these so clients can set expectations
|
|
3398
|
+
* about how long or how many steps an agent run might take.
|
|
1880
3399
|
*/
|
|
1881
3400
|
declare const ExecutionCapabilitiesSchema: z.ZodObject<{
|
|
1882
3401
|
codeExecution: z.ZodOptional<z.ZodBoolean>;
|
|
1883
3402
|
sandboxed: z.ZodOptional<z.ZodBoolean>;
|
|
1884
|
-
maxIterations: z.ZodOptional<z.
|
|
1885
|
-
maxExecutionTime: z.ZodOptional<z.
|
|
1886
|
-
}, z.core.$
|
|
3403
|
+
maxIterations: z.ZodOptional<z.ZodInt>;
|
|
3404
|
+
maxExecutionTime: z.ZodOptional<z.ZodInt>;
|
|
3405
|
+
}, z.core.$loose>;
|
|
1887
3406
|
/**
|
|
1888
|
-
* Human-in-the-loop interaction support.
|
|
3407
|
+
* Human-in-the-loop interaction support. Enable these when your agent can
|
|
3408
|
+
* pause execution to request human input, approval, or feedback before
|
|
3409
|
+
* continuing.
|
|
1889
3410
|
*/
|
|
1890
3411
|
declare const HumanInTheLoopCapabilitiesSchema: z.ZodObject<{
|
|
1891
3412
|
supported: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1894,10 +3415,13 @@ declare const HumanInTheLoopCapabilitiesSchema: z.ZodObject<{
|
|
|
1894
3415
|
feedback: z.ZodOptional<z.ZodBoolean>;
|
|
1895
3416
|
interrupts: z.ZodOptional<z.ZodBoolean>;
|
|
1896
3417
|
approveWithEdits: z.ZodOptional<z.ZodBoolean>;
|
|
1897
|
-
}, z.core.$
|
|
3418
|
+
}, z.core.$loose>;
|
|
1898
3419
|
/**
|
|
1899
|
-
* A typed, categorized snapshot of an agent's current capabilities.
|
|
1900
|
-
*
|
|
3420
|
+
* A typed, categorized snapshot of an agent's current capabilities. All fields
|
|
3421
|
+
* are optional — agents only declare what they support. An omitted field means
|
|
3422
|
+
* the capability is not declared (unknown), not that it is unsupported. The
|
|
3423
|
+
* custom field is an escape hatch for integration-specific capabilities that
|
|
3424
|
+
* do not fit into the standard categories.
|
|
1901
3425
|
*/
|
|
1902
3426
|
declare const AgentCapabilitiesSchema: z.ZodObject<{
|
|
1903
3427
|
identity: z.ZodOptional<z.ZodObject<{
|
|
@@ -1907,50 +3431,50 @@ declare const AgentCapabilitiesSchema: z.ZodObject<{
|
|
|
1907
3431
|
version: z.ZodOptional<z.ZodString>;
|
|
1908
3432
|
provider: z.ZodOptional<z.ZodString>;
|
|
1909
3433
|
documentationUrl: z.ZodOptional<z.ZodString>;
|
|
1910
|
-
metadata: z.ZodOptional<z.
|
|
1911
|
-
}, z.core.$
|
|
3434
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
3435
|
+
}, z.core.$loose>>;
|
|
1912
3436
|
transport: z.ZodOptional<z.ZodObject<{
|
|
1913
3437
|
streaming: z.ZodOptional<z.ZodBoolean>;
|
|
1914
3438
|
websocket: z.ZodOptional<z.ZodBoolean>;
|
|
1915
3439
|
httpBinary: z.ZodOptional<z.ZodBoolean>;
|
|
1916
3440
|
pushNotifications: z.ZodOptional<z.ZodBoolean>;
|
|
1917
3441
|
resumable: z.ZodOptional<z.ZodBoolean>;
|
|
1918
|
-
}, z.core.$
|
|
3442
|
+
}, z.core.$loose>>;
|
|
1919
3443
|
tools: z.ZodOptional<z.ZodObject<{
|
|
1920
3444
|
supported: z.ZodOptional<z.ZodBoolean>;
|
|
1921
3445
|
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1922
3446
|
name: z.ZodString;
|
|
1923
3447
|
description: z.ZodString;
|
|
1924
3448
|
parameters: z.ZodOptional<z.ZodAny>;
|
|
1925
|
-
metadata: z.ZodOptional<z.
|
|
1926
|
-
}, z.core.$
|
|
3449
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
3450
|
+
}, z.core.$loose>>>;
|
|
1927
3451
|
parallelCalls: z.ZodOptional<z.ZodBoolean>;
|
|
1928
3452
|
clientProvided: z.ZodOptional<z.ZodBoolean>;
|
|
1929
|
-
}, z.core.$
|
|
3453
|
+
}, z.core.$loose>>;
|
|
1930
3454
|
output: z.ZodOptional<z.ZodObject<{
|
|
1931
3455
|
structuredOutput: z.ZodOptional<z.ZodBoolean>;
|
|
1932
3456
|
supportedMimeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1933
|
-
}, z.core.$
|
|
3457
|
+
}, z.core.$loose>>;
|
|
1934
3458
|
state: z.ZodOptional<z.ZodObject<{
|
|
1935
3459
|
snapshots: z.ZodOptional<z.ZodBoolean>;
|
|
1936
3460
|
deltas: z.ZodOptional<z.ZodBoolean>;
|
|
1937
3461
|
memory: z.ZodOptional<z.ZodBoolean>;
|
|
1938
3462
|
persistentState: z.ZodOptional<z.ZodBoolean>;
|
|
1939
|
-
}, z.core.$
|
|
3463
|
+
}, z.core.$loose>>;
|
|
1940
3464
|
multiAgent: z.ZodOptional<z.ZodObject<{
|
|
1941
3465
|
supported: z.ZodOptional<z.ZodBoolean>;
|
|
1942
3466
|
delegation: z.ZodOptional<z.ZodBoolean>;
|
|
1943
3467
|
handoffs: z.ZodOptional<z.ZodBoolean>;
|
|
1944
|
-
|
|
3468
|
+
subagents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1945
3469
|
name: z.ZodString;
|
|
1946
3470
|
description: z.ZodOptional<z.ZodString>;
|
|
1947
|
-
}, z.core.$
|
|
1948
|
-
}, z.core.$
|
|
3471
|
+
}, z.core.$loose>>>;
|
|
3472
|
+
}, z.core.$loose>>;
|
|
1949
3473
|
reasoning: z.ZodOptional<z.ZodObject<{
|
|
1950
3474
|
supported: z.ZodOptional<z.ZodBoolean>;
|
|
1951
3475
|
streaming: z.ZodOptional<z.ZodBoolean>;
|
|
1952
3476
|
encrypted: z.ZodOptional<z.ZodBoolean>;
|
|
1953
|
-
}, z.core.$
|
|
3477
|
+
}, z.core.$loose>>;
|
|
1954
3478
|
multimodal: z.ZodOptional<z.ZodObject<{
|
|
1955
3479
|
input: z.ZodOptional<z.ZodObject<{
|
|
1956
3480
|
image: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1958,18 +3482,18 @@ declare const AgentCapabilitiesSchema: z.ZodObject<{
|
|
|
1958
3482
|
video: z.ZodOptional<z.ZodBoolean>;
|
|
1959
3483
|
pdf: z.ZodOptional<z.ZodBoolean>;
|
|
1960
3484
|
file: z.ZodOptional<z.ZodBoolean>;
|
|
1961
|
-
}, z.core.$
|
|
3485
|
+
}, z.core.$loose>>;
|
|
1962
3486
|
output: z.ZodOptional<z.ZodObject<{
|
|
1963
3487
|
image: z.ZodOptional<z.ZodBoolean>;
|
|
1964
3488
|
audio: z.ZodOptional<z.ZodBoolean>;
|
|
1965
|
-
}, z.core.$
|
|
1966
|
-
}, z.core.$
|
|
3489
|
+
}, z.core.$loose>>;
|
|
3490
|
+
}, z.core.$loose>>;
|
|
1967
3491
|
execution: z.ZodOptional<z.ZodObject<{
|
|
1968
3492
|
codeExecution: z.ZodOptional<z.ZodBoolean>;
|
|
1969
3493
|
sandboxed: z.ZodOptional<z.ZodBoolean>;
|
|
1970
|
-
maxIterations: z.ZodOptional<z.
|
|
1971
|
-
maxExecutionTime: z.ZodOptional<z.
|
|
1972
|
-
}, z.core.$
|
|
3494
|
+
maxIterations: z.ZodOptional<z.ZodInt>;
|
|
3495
|
+
maxExecutionTime: z.ZodOptional<z.ZodInt>;
|
|
3496
|
+
}, z.core.$loose>>;
|
|
1973
3497
|
humanInTheLoop: z.ZodOptional<z.ZodObject<{
|
|
1974
3498
|
supported: z.ZodOptional<z.ZodBoolean>;
|
|
1975
3499
|
approvals: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1977,93 +3501,69 @@ declare const AgentCapabilitiesSchema: z.ZodObject<{
|
|
|
1977
3501
|
feedback: z.ZodOptional<z.ZodBoolean>;
|
|
1978
3502
|
interrupts: z.ZodOptional<z.ZodBoolean>;
|
|
1979
3503
|
approveWithEdits: z.ZodOptional<z.ZodBoolean>;
|
|
1980
|
-
}, z.core.$
|
|
1981
|
-
custom: z.ZodOptional<z.
|
|
1982
|
-
}, z.core.$
|
|
3504
|
+
}, z.core.$loose>>;
|
|
3505
|
+
custom: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
3506
|
+
}, z.core.$loose>;
|
|
3507
|
+
/**
|
|
3508
|
+
* Composed into everything that can belong to a subagent's work: the events
|
|
3509
|
+
* that describe content or progress, the message types, and each interrupt.
|
|
3510
|
+
* Run-scoped events omit it — RUN_STARTED, RUN_FINISHED and RUN_ERROR describe
|
|
3511
|
+
* the run itself and MESSAGES_SNAPSHOT is conversation-wide, so none of them
|
|
3512
|
+
* can belong to one subagent. A tool call omits it too and inherits its
|
|
3513
|
+
* containing message's attribution.
|
|
3514
|
+
*/
|
|
3515
|
+
declare const AttributableSchema: z.ZodObject<{
|
|
3516
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
3517
|
+
}, z.core.$loose>;
|
|
3518
|
+
/**
|
|
3519
|
+
* The fields every event carries, whatever its type. Composed into each event
|
|
3520
|
+
* definition rather than repeated, so a change here reaches every event at
|
|
3521
|
+
* once.
|
|
3522
|
+
*/
|
|
3523
|
+
declare const BaseEventSchema: z.ZodObject<{
|
|
3524
|
+
type: z.ZodEnum<typeof EventType>;
|
|
3525
|
+
timestamp: z.ZodOptional<z.ZodInt>;
|
|
3526
|
+
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
3527
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
3528
|
+
}, z.core.$loose>;
|
|
3529
|
+
/**
|
|
3530
|
+
* The fields shared by the developer, system, assistant and user messages.
|
|
3531
|
+
* Deliberately excludes content, because a user message's content may be an
|
|
3532
|
+
* array while the others are strings, and composition here intersects rather
|
|
3533
|
+
* than overrides: a base that constrained content to a string would make an
|
|
3534
|
+
* array content invalid. The tool, activity and reasoning messages do not
|
|
3535
|
+
* compose this, because they carry no name.
|
|
3536
|
+
*/
|
|
3537
|
+
declare const BaseMessageSchema: z.ZodObject<{
|
|
3538
|
+
subagentRunId: z.ZodOptional<z.ZodString>;
|
|
3539
|
+
id: z.ZodString;
|
|
3540
|
+
role: z.ZodString;
|
|
3541
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3542
|
+
encryptedValue: z.ZodOptional<z.ZodString>;
|
|
3543
|
+
metadata: z.ZodOptional<z.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
3544
|
+
}, z.core.$loose>;
|
|
1983
3545
|
//#endregion
|
|
1984
|
-
//#region src/
|
|
1985
|
-
/**
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
declare const createTextMessageChunkEvent: (props: TextMessageChunkEventProps) => TextMessageChunkEvent;
|
|
1993
|
-
/** @deprecated Use `createReasoningMessageStartEvent` instead. Will be removed in 1.0.0. */
|
|
1994
|
-
declare const createThinkingTextMessageStartEvent: (props: ThinkingTextMessageStartEventProps) => ThinkingTextMessageStartEvent;
|
|
1995
|
-
/** @deprecated Use `createReasoningMessageContentEvent` instead. Will be removed in 1.0.0. */
|
|
1996
|
-
declare const createThinkingTextMessageContentEvent: (props: ThinkingTextMessageContentEventProps) => ThinkingTextMessageContentEvent;
|
|
1997
|
-
/** @deprecated Use `createReasoningMessageEndEvent` instead. Will be removed in 1.0.0. */
|
|
1998
|
-
declare const createThinkingTextMessageEndEvent: (props: ThinkingTextMessageEndEventProps) => ThinkingTextMessageEndEvent;
|
|
1999
|
-
/** Creates a TOOL_CALL_START event. */
|
|
2000
|
-
declare const createToolCallStartEvent: (props: ToolCallStartEventProps) => ToolCallStartEvent;
|
|
2001
|
-
/** Creates a TOOL_CALL_ARGS event. */
|
|
2002
|
-
declare const createToolCallArgsEvent: (props: ToolCallArgsEventProps) => ToolCallArgsEvent;
|
|
2003
|
-
/** Creates a TOOL_CALL_END event. */
|
|
2004
|
-
declare const createToolCallEndEvent: (props: ToolCallEndEventProps) => ToolCallEndEvent;
|
|
2005
|
-
/** Creates a TOOL_CALL_CHUNK event. */
|
|
2006
|
-
declare const createToolCallChunkEvent: (props: ToolCallChunkEventProps) => ToolCallChunkEvent;
|
|
2007
|
-
/** Creates a TOOL_CALL_RESULT event. */
|
|
2008
|
-
declare const createToolCallResultEvent: (props: ToolCallResultEventProps) => ToolCallResultEvent;
|
|
2009
|
-
/** @deprecated Use `createReasoningStartEvent` instead. Will be removed in 1.0.0. */
|
|
2010
|
-
declare const createThinkingStartEvent: (props: ThinkingStartEventProps) => ThinkingStartEvent;
|
|
2011
|
-
/** @deprecated Use `createReasoningEndEvent` instead. Will be removed in 1.0.0. */
|
|
2012
|
-
declare const createThinkingEndEvent: (props: ThinkingEndEventProps) => ThinkingEndEvent;
|
|
2013
|
-
/** Creates a STATE_SNAPSHOT event. */
|
|
2014
|
-
declare const createStateSnapshotEvent: (props: StateSnapshotEventProps) => StateSnapshotEvent;
|
|
2015
|
-
/** Creates a STATE_DELTA event. */
|
|
2016
|
-
declare const createStateDeltaEvent: (props: StateDeltaEventProps) => StateDeltaEvent;
|
|
2017
|
-
/** Creates a MESSAGES_SNAPSHOT event. */
|
|
2018
|
-
declare const createMessagesSnapshotEvent: (props: MessagesSnapshotEventProps) => MessagesSnapshotEvent;
|
|
2019
|
-
/** Creates an ACTIVITY_SNAPSHOT event. `replace` defaults to `true` when omitted. */
|
|
2020
|
-
declare const createActivitySnapshotEvent: (props: ActivitySnapshotEventProps) => ActivitySnapshotEvent;
|
|
2021
|
-
/** Creates an ACTIVITY_DELTA event. */
|
|
2022
|
-
declare const createActivityDeltaEvent: (props: ActivityDeltaEventProps) => ActivityDeltaEvent;
|
|
2023
|
-
/** Creates a RAW event. */
|
|
2024
|
-
declare const createRawEvent: (props: RawEventProps) => RawEvent;
|
|
2025
|
-
/** Creates a CUSTOM event. */
|
|
2026
|
-
declare const createCustomEvent: (props: CustomEventProps) => CustomEvent;
|
|
2027
|
-
/** Creates a RUN_STARTED event. */
|
|
2028
|
-
declare const createRunStartedEvent: (props: RunStartedEventProps) => RunStartedEvent;
|
|
2029
|
-
/**
|
|
2030
|
-
* Creates a RUN_FINISHED event.
|
|
3546
|
+
//#region src/schemas.d.ts
|
|
3547
|
+
/**
|
|
3548
|
+
* How metadata is declared on events and messages.
|
|
3549
|
+
*
|
|
3550
|
+
* The object itself is absent or an object, never `null` — and parsing enforces
|
|
3551
|
+
* that invariant rather than coercing a `null` to absent. The schema pinning it
|
|
3552
|
+
* now lives in the generated source (MetadataSchema in
|
|
3553
|
+
* src/generated/schemas.ts); this comment survives as the recorded reasoning.
|
|
2031
3554
|
*
|
|
2032
|
-
*
|
|
2033
|
-
*
|
|
2034
|
-
*
|
|
2035
|
-
*
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
*
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
declare const createRunFinishedInterruptEvent: (props: Omit<RunFinishedEventProps, "outcome"> & {
|
|
2045
|
-
interrupts: Interrupt[];
|
|
2046
|
-
}) => RunFinishedEvent;
|
|
2047
|
-
/** Creates a RUN_ERROR event. */
|
|
2048
|
-
declare const createRunErrorEvent: (props: RunErrorEventProps) => RunErrorEvent;
|
|
2049
|
-
/** Creates a STEP_STARTED event. */
|
|
2050
|
-
declare const createStepStartedEvent: (props: StepStartedEventProps) => StepStartedEvent;
|
|
2051
|
-
/** Creates a STEP_FINISHED event. */
|
|
2052
|
-
declare const createStepFinishedEvent: (props: StepFinishedEventProps) => StepFinishedEvent;
|
|
2053
|
-
/** Creates a REASONING_START event. */
|
|
2054
|
-
declare const createReasoningStartEvent: (props: ReasoningStartEventProps) => ReasoningStartEvent;
|
|
2055
|
-
/** Creates a REASONING_MESSAGE_START event. */
|
|
2056
|
-
declare const createReasoningMessageStartEvent: (props: ReasoningMessageStartEventProps) => ReasoningMessageStartEvent;
|
|
2057
|
-
/** Creates a REASONING_MESSAGE_CONTENT event. */
|
|
2058
|
-
declare const createReasoningMessageContentEvent: (props: ReasoningMessageContentEventProps) => ReasoningMessageContentEvent;
|
|
2059
|
-
/** Creates a REASONING_MESSAGE_END event. */
|
|
2060
|
-
declare const createReasoningMessageEndEvent: (props: ReasoningMessageEndEventProps) => ReasoningMessageEndEvent;
|
|
2061
|
-
/** Creates a REASONING_MESSAGE_CHUNK event. */
|
|
2062
|
-
declare const createReasoningMessageChunkEvent: (props: ReasoningMessageChunkEventProps) => ReasoningMessageChunkEvent;
|
|
2063
|
-
/** Creates a REASONING_END event. */
|
|
2064
|
-
declare const createReasoningEndEvent: (props: ReasoningEndEventProps) => ReasoningEndEvent;
|
|
2065
|
-
/** Creates a REASONING_ENCRYPTED_VALUE event. */
|
|
2066
|
-
declare const createReasoningEncryptedValueEvent: (props: ReasoningEncryptedValueEventProps) => ReasoningEncryptedValueEvent;
|
|
3555
|
+
* Historically tolerated whole optional nulls are translated to absence in
|
|
3556
|
+
* the client's compatibility boundary before validation. That includes the
|
|
3557
|
+
* legacy `parentMessageId` and `outcome` cases and optional JSON fields such as
|
|
3558
|
+
* `rawEvent`, `result`, and media content-part `metadata`; see the repo-root
|
|
3559
|
+
* DEPRECATIONS.md for the exact list. Event and message metadata already
|
|
3560
|
+
* rejected a whole `null`, so their restriction remains. Compatibility for
|
|
3561
|
+
* media content-part metadata does not broaden this shared metadata schema.
|
|
3562
|
+
*
|
|
3563
|
+
* A `null` *value under a key* is meaningful data and is preserved. Only a
|
|
3564
|
+
* `null` in place of the whole object is a contract violation.
|
|
3565
|
+
*/
|
|
3566
|
+
declare const OptionalMetadataSchema: zod_v40.ZodOptional<zod_v40.ZodCustom<Record<string, any>, Record<string, any>>>;
|
|
2067
3567
|
//#endregion
|
|
2068
|
-
export { ActivityDeltaEventSchema, ActivityMessageSchema, ActivitySnapshotEventSchema, AgentCapabilitiesSchema, AssistantMessageSchema, AudioInputContentSchema, AudioInputPartSchema, BaseEventSchema,
|
|
3568
|
+
export { ActivityDeltaEventSchema, ActivityMessageSchema, ActivitySnapshotEventSchema, AddOperationSchema, AgentCapabilitiesSchema, AssistantMessageSchema, AttributableSchema, AudioPartSchema as AudioInputContentSchema, AudioPartSchema as AudioInputPartSchema, AudioPartSchema, BaseEventSchema, BaseMessageSchema, ContentPartSchema, ContentPartSchema as InputContentSchema, ContextSchema, CopyOperationSchema, CustomEventSchema, DataSourceSchema, DataSourceSchema as InputContentDataSourceSchema, DeveloperMessageSchema, DocumentPartSchema as DocumentInputContentSchema, DocumentPartSchema as DocumentInputPartSchema, DocumentPartSchema, EventSchema, EventSchema as EventSchemas, EventTypeSchema, ExecutionCapabilitiesSchema, FileSourceSchema, FunctionCallSchema, HumanInTheLoopCapabilitiesSchema, IdentityCapabilitiesSchema, ImagePartSchema as ImageInputContentSchema, ImagePartSchema as ImageInputPartSchema, ImagePartSchema, PartSourceSchema as InputContentSourceSchema, PartSourceSchema, UrlSourceSchema as InputContentUrlSourceSchema, UrlSourceSchema, InterruptSchema, JsonPatchOperationSchema, JsonPatchSchema, JsonPointerSchema, MessageSchema, MessagesSnapshotEventSchema, MetadataSchema, MoveOperationSchema, MultiAgentCapabilitiesSchema, MultimodalCapabilitiesSchema, MultimodalInputCapabilitiesSchema, MultimodalOutputCapabilitiesSchema, OptionalMetadataSchema, OutputCapabilitiesSchema, PROTOCOL_VERSION, RawEventSchema, ReasoningCapabilitiesSchema, ReasoningEncryptedValueEventSchema, ReasoningEncryptedValueSubtypeSchema, ReasoningEndEventSchema, ReasoningMessageChunkEventSchema, ReasoningMessageContentEventSchema, ReasoningMessageEndEventSchema, ReasoningMessageSchema, ReasoningMessageStartEventSchema, ReasoningStartEventSchema, RemoveOperationSchema, ReplaceOperationSchema, ResumeEntrySchema, RoleSchema, RunAgentInputSchema, RunErrorEventSchema, RunFinishedCancelledOutcomeSchema, RunFinishedEventSchema, RunFinishedInterruptOutcomeSchema, RunFinishedOutcomeSchema, RunFinishedSuccessOutcomeSchema, RunStartedEventSchema, StateCapabilitiesSchema, StateDeltaEventSchema, StateSchema, StateSnapshotEventSchema, StepFinishedEventSchema, StepStartedEventSchema, SubagentErrorEventSchema, SubagentFinishedEventSchema, SubagentFinishedOutcomeSchema, SubagentFinishedSuccessOutcomeSchema, SubagentFinishedSuspendedOutcomeSchema, SubagentInfoSchema, SubagentRunIdSchema, SubagentStartedEventSchema, SystemMessageSchema, TestOperationSchema, TextPartSchema as TextInputContentSchema, TextPartSchema, TextMessageChunkEventSchema, TextMessageContentEventSchema, TextMessageEndEventSchema, TextMessageRoleSchema, TextMessageStartEventSchema, TokenUsageSchema, ToolCallArgsEventSchema, ToolCallChunkEventSchema, ToolCallEndEventSchema, ToolCallResultEventSchema, ToolCallSchema, ToolCallStartEventSchema, ToolMessageSchema, ToolSchema, ToolsCapabilitiesSchema, TransportCapabilitiesSchema, UserMessageSchema, VideoPartSchema as VideoInputContentSchema, VideoPartSchema as VideoInputPartSchema, VideoPartSchema };
|
|
2069
3569
|
//# sourceMappingURL=schemas.d.mts.map
|