@meistrari/agent-sdk 0.1.3 → 0.3.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/README.md +31 -2
- package/dist/index.cjs +69 -120
- package/dist/index.d.cts +21 -104
- package/dist/index.d.mts +21 -104
- package/dist/index.d.ts +21 -104
- package/dist/index.mjs +63 -112
- package/dist/schemas.cjs +665 -0
- package/dist/schemas.d.cts +63 -0
- package/dist/schemas.d.mts +63 -0
- package/dist/schemas.d.ts +63 -0
- package/dist/schemas.mjs +639 -0
- package/dist/shared/agent-sdk.4ad2c746.d.cts +372 -0
- package/dist/shared/agent-sdk.4ad2c746.d.mts +372 -0
- package/dist/shared/agent-sdk.4ad2c746.d.ts +372 -0
- package/package.json +8 -1
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const agentInputSchema: z.ZodObject<{
|
|
4
|
+
vaultRef: z.ZodString;
|
|
5
|
+
filename: z.ZodString;
|
|
6
|
+
metadata: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strict>;
|
|
8
|
+
type AgentInput = z.infer<typeof agentInputSchema>;
|
|
9
|
+
declare const executeAgentRequestSchema: z.ZodObject<{
|
|
10
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
11
|
+
organizationName: z.ZodOptional<z.ZodString>;
|
|
12
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
13
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
14
|
+
message: z.ZodOptional<z.ZodString>;
|
|
15
|
+
inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16
|
+
vaultRef: z.ZodString;
|
|
17
|
+
filename: z.ZodString;
|
|
18
|
+
metadata: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, z.core.$strict>>>;
|
|
20
|
+
environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
21
|
+
recover: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
}, z.core.$strict>;
|
|
23
|
+
type ExecuteAgentRequest = z.infer<typeof executeAgentRequestSchema>;
|
|
24
|
+
declare const executeAgentSuccessResponseSchema: z.ZodObject<{
|
|
25
|
+
success: z.ZodLiteral<true>;
|
|
26
|
+
sessionId: z.ZodString;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
declare const executeAgentErrorResponseSchema: z.ZodObject<{
|
|
29
|
+
success: z.ZodLiteral<false>;
|
|
30
|
+
error: z.ZodString;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
declare const executeAgentResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
33
|
+
success: z.ZodLiteral<true>;
|
|
34
|
+
sessionId: z.ZodString;
|
|
35
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
+
success: z.ZodLiteral<false>;
|
|
37
|
+
error: z.ZodString;
|
|
38
|
+
}, z.core.$strip>], "success">;
|
|
39
|
+
type ExecuteAgentResponse = z.infer<typeof executeAgentResponseSchema>;
|
|
40
|
+
declare const updateAgentModelRequestSchema: z.ZodObject<{
|
|
41
|
+
repository: z.ZodString;
|
|
42
|
+
model: z.ZodEnum<{
|
|
43
|
+
[x: string]: string;
|
|
44
|
+
}>;
|
|
45
|
+
commitMessage: z.ZodOptional<z.ZodString>;
|
|
46
|
+
}, z.core.$strict>;
|
|
47
|
+
type UpdateAgentModelRequest = z.infer<typeof updateAgentModelRequestSchema>;
|
|
48
|
+
declare const updateAgentModelSuccessResponseSchema: z.ZodObject<{
|
|
49
|
+
success: z.ZodLiteral<true>;
|
|
50
|
+
organizationName: z.ZodOptional<z.ZodString>;
|
|
51
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
52
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
53
|
+
commitHash: z.ZodOptional<z.ZodString>;
|
|
54
|
+
model: z.ZodOptional<z.ZodEnum<{
|
|
55
|
+
[x: string]: string;
|
|
56
|
+
}>>;
|
|
57
|
+
providerTemplate: z.ZodOptional<z.ZodString>;
|
|
58
|
+
templateSynced: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
60
|
+
deletedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
declare const updateAgentModelErrorResponseSchema: z.ZodObject<{
|
|
63
|
+
success: z.ZodLiteral<false>;
|
|
64
|
+
error: z.ZodString;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
declare const updateAgentModelResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
67
|
+
success: z.ZodLiteral<true>;
|
|
68
|
+
organizationName: z.ZodOptional<z.ZodString>;
|
|
69
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
70
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
71
|
+
commitHash: z.ZodOptional<z.ZodString>;
|
|
72
|
+
model: z.ZodOptional<z.ZodEnum<{
|
|
73
|
+
[x: string]: string;
|
|
74
|
+
}>>;
|
|
75
|
+
providerTemplate: z.ZodOptional<z.ZodString>;
|
|
76
|
+
templateSynced: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
78
|
+
deletedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
79
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
80
|
+
success: z.ZodLiteral<false>;
|
|
81
|
+
error: z.ZodString;
|
|
82
|
+
}, z.core.$strip>], "success">;
|
|
83
|
+
type UpdateAgentModelResponse = z.infer<typeof updateAgentModelResponseSchema>;
|
|
84
|
+
|
|
85
|
+
declare const sessionStatusSchema: z.ZodEnum<{
|
|
86
|
+
pending: "pending";
|
|
87
|
+
running: "running";
|
|
88
|
+
completed: "completed";
|
|
89
|
+
failed: "failed";
|
|
90
|
+
waiting_messages: "waiting_messages";
|
|
91
|
+
cancelled: "cancelled";
|
|
92
|
+
}>;
|
|
93
|
+
type SessionStatus = z.infer<typeof sessionStatusSchema>;
|
|
94
|
+
declare const sessionTimelineIdSchema: z.ZodString;
|
|
95
|
+
declare const timelineMetricsSchema: z.ZodObject<{
|
|
96
|
+
durationMs: z.ZodNumber;
|
|
97
|
+
toolCalls: z.ZodNumber;
|
|
98
|
+
apiCalls: z.ZodNumber;
|
|
99
|
+
tokensIn: z.ZodNumber;
|
|
100
|
+
tokensOut: z.ZodNumber;
|
|
101
|
+
cachedTokens: z.ZodNumber;
|
|
102
|
+
totalCostUsd: z.ZodNumber;
|
|
103
|
+
cacheSavingsUsd: z.ZodNumber;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
type TimelineMetrics = z.infer<typeof timelineMetricsSchema>;
|
|
106
|
+
declare const timelinePromptSchema: z.ZodObject<{
|
|
107
|
+
model: z.ZodNullable<z.ZodString>;
|
|
108
|
+
claudeSessionId: z.ZodNullable<z.ZodString>;
|
|
109
|
+
timestamp: z.ZodNullable<z.ZodNumber>;
|
|
110
|
+
text: z.ZodNullable<z.ZodString>;
|
|
111
|
+
}, z.core.$strip>;
|
|
112
|
+
type TimelinePrompt = z.infer<typeof timelinePromptSchema>;
|
|
113
|
+
declare const timelineToolResultSchema: z.ZodObject<{
|
|
114
|
+
output: z.ZodString;
|
|
115
|
+
isError: z.ZodBoolean;
|
|
116
|
+
durationMs: z.ZodNumber;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
type TimelineToolResult = z.infer<typeof timelineToolResultSchema>;
|
|
119
|
+
declare const timelineRunTurnMetricsSchema: z.ZodObject<{
|
|
120
|
+
tokensIn: z.ZodNumber;
|
|
121
|
+
tokensOut: z.ZodNumber;
|
|
122
|
+
cachedTokens: z.ZodNumber;
|
|
123
|
+
costUsd: z.ZodNumber;
|
|
124
|
+
toolCallCount: z.ZodNumber;
|
|
125
|
+
apiCallCount: z.ZodNumber;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
type TimelineRunTurnMetrics = z.infer<typeof timelineRunTurnMetricsSchema>;
|
|
128
|
+
declare const timelineEventSchema: z.ZodObject<{
|
|
129
|
+
type: z.ZodEnum<{
|
|
130
|
+
text: "text";
|
|
131
|
+
api_response: "api_response";
|
|
132
|
+
tool_call: "tool_call";
|
|
133
|
+
thinking: "thinking";
|
|
134
|
+
tool_result: "tool_result";
|
|
135
|
+
}>;
|
|
136
|
+
relativeTimeMs: z.ZodNumber;
|
|
137
|
+
timestamp: z.ZodNumber;
|
|
138
|
+
sequenceIndex: z.ZodNumber;
|
|
139
|
+
runTurnId: z.ZodNullable<z.ZodString>;
|
|
140
|
+
toolName: z.ZodOptional<z.ZodString>;
|
|
141
|
+
callId: z.ZodOptional<z.ZodString>;
|
|
142
|
+
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
143
|
+
displaySummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
144
|
+
category: z.ZodOptional<z.ZodEnum<{
|
|
145
|
+
file: "file";
|
|
146
|
+
shell: "shell";
|
|
147
|
+
search: "search";
|
|
148
|
+
edit: "edit";
|
|
149
|
+
web: "web";
|
|
150
|
+
other: "other";
|
|
151
|
+
}>>;
|
|
152
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
153
|
+
success: "success";
|
|
154
|
+
failed: "failed";
|
|
155
|
+
cancelled: "cancelled";
|
|
156
|
+
timeout: "timeout";
|
|
157
|
+
}>>;
|
|
158
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
159
|
+
output: z.ZodString;
|
|
160
|
+
isError: z.ZodBoolean;
|
|
161
|
+
durationMs: z.ZodNumber;
|
|
162
|
+
}, z.core.$strip>>;
|
|
163
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
164
|
+
tokensIn: z.ZodOptional<z.ZodNumber>;
|
|
165
|
+
tokensOut: z.ZodOptional<z.ZodNumber>;
|
|
166
|
+
cachedTokens: z.ZodOptional<z.ZodNumber>;
|
|
167
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
168
|
+
}, z.core.$strip>;
|
|
169
|
+
type TimelineEvent = z.infer<typeof timelineEventSchema>;
|
|
170
|
+
declare const timelineSpanSchema: z.ZodObject<{
|
|
171
|
+
type: z.ZodEnum<{
|
|
172
|
+
session_loop: "session_loop";
|
|
173
|
+
session_task_turn: "session_task_turn";
|
|
174
|
+
run_turn: "run_turn";
|
|
175
|
+
wait: "wait";
|
|
176
|
+
}>;
|
|
177
|
+
id: z.ZodString;
|
|
178
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
179
|
+
startMs: z.ZodNumber;
|
|
180
|
+
endMs: z.ZodNumber;
|
|
181
|
+
metrics: z.ZodOptional<z.ZodObject<{
|
|
182
|
+
tokensIn: z.ZodNumber;
|
|
183
|
+
tokensOut: z.ZodNumber;
|
|
184
|
+
cachedTokens: z.ZodNumber;
|
|
185
|
+
costUsd: z.ZodNumber;
|
|
186
|
+
toolCallCount: z.ZodNumber;
|
|
187
|
+
apiCallCount: z.ZodNumber;
|
|
188
|
+
}, z.core.$strip>>;
|
|
189
|
+
}, z.core.$strip>;
|
|
190
|
+
type TimelineSpan = z.infer<typeof timelineSpanSchema>;
|
|
191
|
+
declare const sessionTimelineResponseSchema: z.ZodObject<{
|
|
192
|
+
sessionId: z.ZodString;
|
|
193
|
+
status: z.ZodString;
|
|
194
|
+
metrics: z.ZodObject<{
|
|
195
|
+
durationMs: z.ZodNumber;
|
|
196
|
+
toolCalls: z.ZodNumber;
|
|
197
|
+
apiCalls: z.ZodNumber;
|
|
198
|
+
tokensIn: z.ZodNumber;
|
|
199
|
+
tokensOut: z.ZodNumber;
|
|
200
|
+
cachedTokens: z.ZodNumber;
|
|
201
|
+
totalCostUsd: z.ZodNumber;
|
|
202
|
+
cacheSavingsUsd: z.ZodNumber;
|
|
203
|
+
}, z.core.$strip>;
|
|
204
|
+
prompt: z.ZodObject<{
|
|
205
|
+
model: z.ZodNullable<z.ZodString>;
|
|
206
|
+
claudeSessionId: z.ZodNullable<z.ZodString>;
|
|
207
|
+
timestamp: z.ZodNullable<z.ZodNumber>;
|
|
208
|
+
text: z.ZodNullable<z.ZodString>;
|
|
209
|
+
}, z.core.$strip>;
|
|
210
|
+
spans: z.ZodArray<z.ZodObject<{
|
|
211
|
+
type: z.ZodEnum<{
|
|
212
|
+
session_loop: "session_loop";
|
|
213
|
+
session_task_turn: "session_task_turn";
|
|
214
|
+
run_turn: "run_turn";
|
|
215
|
+
wait: "wait";
|
|
216
|
+
}>;
|
|
217
|
+
id: z.ZodString;
|
|
218
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
219
|
+
startMs: z.ZodNumber;
|
|
220
|
+
endMs: z.ZodNumber;
|
|
221
|
+
metrics: z.ZodOptional<z.ZodObject<{
|
|
222
|
+
tokensIn: z.ZodNumber;
|
|
223
|
+
tokensOut: z.ZodNumber;
|
|
224
|
+
cachedTokens: z.ZodNumber;
|
|
225
|
+
costUsd: z.ZodNumber;
|
|
226
|
+
toolCallCount: z.ZodNumber;
|
|
227
|
+
apiCallCount: z.ZodNumber;
|
|
228
|
+
}, z.core.$strip>>;
|
|
229
|
+
}, z.core.$strip>>;
|
|
230
|
+
}, z.core.$strip>;
|
|
231
|
+
type SessionTimelineResponse = z.infer<typeof sessionTimelineResponseSchema>;
|
|
232
|
+
declare const sessionStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
233
|
+
kind: z.ZodLiteral<"status">;
|
|
234
|
+
sessionId: z.ZodString;
|
|
235
|
+
status: z.ZodEnum<{
|
|
236
|
+
pending: "pending";
|
|
237
|
+
running: "running";
|
|
238
|
+
completed: "completed";
|
|
239
|
+
failed: "failed";
|
|
240
|
+
waiting_messages: "waiting_messages";
|
|
241
|
+
cancelled: "cancelled";
|
|
242
|
+
}>;
|
|
243
|
+
error: z.ZodOptional<z.ZodString>;
|
|
244
|
+
createdAt: z.ZodNumber;
|
|
245
|
+
updatedAt: z.ZodNumber;
|
|
246
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
247
|
+
kind: z.ZodLiteral<"steps">;
|
|
248
|
+
sessionId: z.ZodString;
|
|
249
|
+
status: z.ZodEnum<{
|
|
250
|
+
pending: "pending";
|
|
251
|
+
running: "running";
|
|
252
|
+
completed: "completed";
|
|
253
|
+
failed: "failed";
|
|
254
|
+
waiting_messages: "waiting_messages";
|
|
255
|
+
cancelled: "cancelled";
|
|
256
|
+
}>;
|
|
257
|
+
steps: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
258
|
+
nextCursor: z.ZodNullable<z.ZodNumber>;
|
|
259
|
+
createdAt: z.ZodNumber;
|
|
260
|
+
updatedAt: z.ZodNumber;
|
|
261
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
262
|
+
kind: z.ZodLiteral<"result">;
|
|
263
|
+
sessionId: z.ZodString;
|
|
264
|
+
status: z.ZodEnum<{
|
|
265
|
+
completed: "completed";
|
|
266
|
+
waiting_messages: "waiting_messages";
|
|
267
|
+
}>;
|
|
268
|
+
result: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
269
|
+
nextCursor: z.ZodNullable<z.ZodNumber>;
|
|
270
|
+
createdAt: z.ZodNumber;
|
|
271
|
+
updatedAt: z.ZodNumber;
|
|
272
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
273
|
+
kind: z.ZodLiteral<"timeline-finalize">;
|
|
274
|
+
sessionId: z.ZodString;
|
|
275
|
+
status: z.ZodEnum<{
|
|
276
|
+
pending: "pending";
|
|
277
|
+
running: "running";
|
|
278
|
+
completed: "completed";
|
|
279
|
+
failed: "failed";
|
|
280
|
+
waiting_messages: "waiting_messages";
|
|
281
|
+
cancelled: "cancelled";
|
|
282
|
+
}>;
|
|
283
|
+
metrics: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
284
|
+
durationMs: z.ZodNumber;
|
|
285
|
+
toolCalls: z.ZodNumber;
|
|
286
|
+
apiCalls: z.ZodNumber;
|
|
287
|
+
tokensIn: z.ZodNumber;
|
|
288
|
+
tokensOut: z.ZodNumber;
|
|
289
|
+
cachedTokens: z.ZodNumber;
|
|
290
|
+
totalCostUsd: z.ZodNumber;
|
|
291
|
+
cacheSavingsUsd: z.ZodNumber;
|
|
292
|
+
}, z.core.$strip>>>;
|
|
293
|
+
prompt: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
294
|
+
model: z.ZodNullable<z.ZodString>;
|
|
295
|
+
claudeSessionId: z.ZodNullable<z.ZodString>;
|
|
296
|
+
timestamp: z.ZodNullable<z.ZodNumber>;
|
|
297
|
+
text: z.ZodNullable<z.ZodString>;
|
|
298
|
+
}, z.core.$strip>>>;
|
|
299
|
+
spans: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
300
|
+
type: z.ZodEnum<{
|
|
301
|
+
session_loop: "session_loop";
|
|
302
|
+
session_task_turn: "session_task_turn";
|
|
303
|
+
run_turn: "run_turn";
|
|
304
|
+
wait: "wait";
|
|
305
|
+
}>;
|
|
306
|
+
id: z.ZodString;
|
|
307
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
308
|
+
startMs: z.ZodNumber;
|
|
309
|
+
endMs: z.ZodNumber;
|
|
310
|
+
metrics: z.ZodOptional<z.ZodObject<{
|
|
311
|
+
tokensIn: z.ZodNumber;
|
|
312
|
+
tokensOut: z.ZodNumber;
|
|
313
|
+
cachedTokens: z.ZodNumber;
|
|
314
|
+
costUsd: z.ZodNumber;
|
|
315
|
+
toolCallCount: z.ZodNumber;
|
|
316
|
+
apiCallCount: z.ZodNumber;
|
|
317
|
+
}, z.core.$strip>>;
|
|
318
|
+
}, z.core.$strip>>>>;
|
|
319
|
+
events: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
320
|
+
type: z.ZodEnum<{
|
|
321
|
+
text: "text";
|
|
322
|
+
api_response: "api_response";
|
|
323
|
+
tool_call: "tool_call";
|
|
324
|
+
thinking: "thinking";
|
|
325
|
+
tool_result: "tool_result";
|
|
326
|
+
}>;
|
|
327
|
+
relativeTimeMs: z.ZodNumber;
|
|
328
|
+
timestamp: z.ZodNumber;
|
|
329
|
+
sequenceIndex: z.ZodNumber;
|
|
330
|
+
runTurnId: z.ZodNullable<z.ZodString>;
|
|
331
|
+
toolName: z.ZodOptional<z.ZodString>;
|
|
332
|
+
callId: z.ZodOptional<z.ZodString>;
|
|
333
|
+
arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
334
|
+
displaySummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
335
|
+
category: z.ZodOptional<z.ZodEnum<{
|
|
336
|
+
file: "file";
|
|
337
|
+
shell: "shell";
|
|
338
|
+
search: "search";
|
|
339
|
+
edit: "edit";
|
|
340
|
+
web: "web";
|
|
341
|
+
other: "other";
|
|
342
|
+
}>>;
|
|
343
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
344
|
+
success: "success";
|
|
345
|
+
failed: "failed";
|
|
346
|
+
cancelled: "cancelled";
|
|
347
|
+
timeout: "timeout";
|
|
348
|
+
}>>;
|
|
349
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
350
|
+
output: z.ZodString;
|
|
351
|
+
isError: z.ZodBoolean;
|
|
352
|
+
durationMs: z.ZodNumber;
|
|
353
|
+
}, z.core.$strip>>;
|
|
354
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
355
|
+
tokensIn: z.ZodOptional<z.ZodNumber>;
|
|
356
|
+
tokensOut: z.ZodOptional<z.ZodNumber>;
|
|
357
|
+
cachedTokens: z.ZodOptional<z.ZodNumber>;
|
|
358
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
359
|
+
}, z.core.$strip>>>>;
|
|
360
|
+
continuation: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
361
|
+
createdAt: z.ZodNumber;
|
|
362
|
+
updatedAt: z.ZodNumber;
|
|
363
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
364
|
+
kind: z.ZodLiteral<"error">;
|
|
365
|
+
sessionId: z.ZodString;
|
|
366
|
+
error: z.ZodString;
|
|
367
|
+
}, z.core.$strip>], "kind">;
|
|
368
|
+
type SessionStreamEvent = z.infer<typeof sessionStreamEventSchema>;
|
|
369
|
+
declare const SESSION_STREAM_EVENT_KINDS: Set<string>;
|
|
370
|
+
|
|
371
|
+
export { sessionTimelineResponseSchema as B, sessionStreamEventSchema as C, SESSION_STREAM_EVENT_KINDS as D, agentInputSchema as j, executeAgentRequestSchema as k, executeAgentSuccessResponseSchema as l, executeAgentErrorResponseSchema as m, executeAgentResponseSchema as n, updateAgentModelSuccessResponseSchema as o, updateAgentModelErrorResponseSchema as p, updateAgentModelResponseSchema as q, sessionTimelineIdSchema as r, sessionStatusSchema as s, timelineMetricsSchema as t, updateAgentModelRequestSchema as u, timelinePromptSchema as v, timelineToolResultSchema as w, timelineRunTurnMetricsSchema as x, timelineEventSchema as y, timelineSpanSchema as z };
|
|
372
|
+
export type { AgentInput as A, ExecuteAgentRequest as E, SessionTimelineResponse as S, TimelineEvent as T, UpdateAgentModelRequest as U, ExecuteAgentResponse as a, UpdateAgentModelResponse as b, SessionStreamEvent as c, SessionStatus as d, TimelineMetrics as e, TimelinePrompt as f, TimelineRunTurnMetrics as g, TimelineSpan as h, TimelineToolResult as i };
|