@agenticrun/sdk 0.1.0-alpha.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 +60 -0
- package/dist/core-BxLvIHye.mjs +1258 -0
- package/dist/index-brUCQYsX.d.mts +837 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.mjs +2 -0
- package/dist/langchain.d.mts +17 -0
- package/dist/langchain.mjs +466 -0
- package/package.json +36 -0
|
@@ -0,0 +1,837 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region ../modules/src/tracing/tracing.contract.d.ts
|
|
3
|
+
declare const attributesSchema: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodBoolean>]>>>;
|
|
4
|
+
declare const messageContentBlockSchema: z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5
|
+
type: z.ZodLiteral<"text">;
|
|
6
|
+
text: z.ZodString;
|
|
7
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
8
|
+
type: z.ZodLiteral<"reasoning">;
|
|
9
|
+
text: z.ZodString;
|
|
10
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
11
|
+
type: z.ZodLiteral<"json">;
|
|
12
|
+
value: z.ZodJSONSchema;
|
|
13
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
14
|
+
type: z.ZodLiteral<"tool-call">;
|
|
15
|
+
toolName: z.ZodString;
|
|
16
|
+
callId: z.ZodString;
|
|
17
|
+
arguments: z.ZodJSONSchema;
|
|
18
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
19
|
+
type: z.ZodLiteral<"tool-result">;
|
|
20
|
+
callId: z.ZodString;
|
|
21
|
+
result: z.ZodJSONSchema;
|
|
22
|
+
}, z.core.$strict>], "type">>;
|
|
23
|
+
declare const traceContentSchema: z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
24
|
+
type: z.ZodLiteral<"messages">;
|
|
25
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
26
|
+
id: z.ZodOptional<z.ZodString>;
|
|
27
|
+
role: z.ZodEnum<{
|
|
28
|
+
system: "system";
|
|
29
|
+
developer: "developer";
|
|
30
|
+
user: "user";
|
|
31
|
+
assistant: "assistant";
|
|
32
|
+
tool: "tool";
|
|
33
|
+
}>;
|
|
34
|
+
name: z.ZodOptional<z.ZodString>;
|
|
35
|
+
content: z.ZodArray<z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
36
|
+
type: z.ZodLiteral<"text">;
|
|
37
|
+
text: z.ZodString;
|
|
38
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
39
|
+
type: z.ZodLiteral<"reasoning">;
|
|
40
|
+
text: z.ZodString;
|
|
41
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
42
|
+
type: z.ZodLiteral<"json">;
|
|
43
|
+
value: z.ZodJSONSchema;
|
|
44
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
45
|
+
type: z.ZodLiteral<"tool-call">;
|
|
46
|
+
toolName: z.ZodString;
|
|
47
|
+
callId: z.ZodString;
|
|
48
|
+
arguments: z.ZodJSONSchema;
|
|
49
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
50
|
+
type: z.ZodLiteral<"tool-result">;
|
|
51
|
+
callId: z.ZodString;
|
|
52
|
+
result: z.ZodJSONSchema;
|
|
53
|
+
}, z.core.$strict>], "type">>>;
|
|
54
|
+
}, z.core.$strict>>;
|
|
55
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
56
|
+
type: z.ZodLiteral<"text">;
|
|
57
|
+
text: z.ZodString;
|
|
58
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
59
|
+
type: z.ZodLiteral<"json">;
|
|
60
|
+
value: z.ZodJSONSchema;
|
|
61
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
62
|
+
type: z.ZodLiteral<"tool-call">;
|
|
63
|
+
toolName: z.ZodString;
|
|
64
|
+
callId: z.ZodString;
|
|
65
|
+
arguments: z.ZodJSONSchema;
|
|
66
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
67
|
+
type: z.ZodLiteral<"tool-result">;
|
|
68
|
+
callId: z.ZodString;
|
|
69
|
+
result: z.ZodJSONSchema;
|
|
70
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
71
|
+
type: z.ZodLiteral<"documents">;
|
|
72
|
+
documents: z.ZodArray<z.ZodObject<{
|
|
73
|
+
id: z.ZodOptional<z.ZodString>;
|
|
74
|
+
content: z.ZodString;
|
|
75
|
+
attributes: z.ZodOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodBoolean>]>>>>;
|
|
76
|
+
}, z.core.$strict>>;
|
|
77
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
78
|
+
type: z.ZodLiteral<"redacted">;
|
|
79
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
80
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
81
|
+
type: z.ZodLiteral<"omitted">;
|
|
82
|
+
reason: z.ZodEnum<{
|
|
83
|
+
disabled: "disabled";
|
|
84
|
+
unsupported: "unsupported";
|
|
85
|
+
"too-large": "too-large";
|
|
86
|
+
unavailable: "unavailable";
|
|
87
|
+
}>;
|
|
88
|
+
originalBytes: z.ZodOptional<z.ZodInt>;
|
|
89
|
+
}, z.core.$strict>], "type">>;
|
|
90
|
+
declare const tokenUsageSchema: z.ZodReadonly<z.ZodObject<{
|
|
91
|
+
inputTokensTotal: z.ZodOptional<z.ZodInt>;
|
|
92
|
+
inputTokensCacheRead: z.ZodOptional<z.ZodInt>;
|
|
93
|
+
inputTokensCacheWrite: z.ZodOptional<z.ZodInt>;
|
|
94
|
+
outputTokensTotal: z.ZodOptional<z.ZodInt>;
|
|
95
|
+
outputTokensReasoning: z.ZodOptional<z.ZodInt>;
|
|
96
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
97
|
+
}, z.core.$strict>>;
|
|
98
|
+
declare const traceCompletedEventSchema: z.ZodReadonly<z.ZodObject<{
|
|
99
|
+
type: z.ZodLiteral<"trace.completed">;
|
|
100
|
+
id: z.ZodUUID;
|
|
101
|
+
status: z.ZodEnum<{
|
|
102
|
+
error: "error";
|
|
103
|
+
success: "success";
|
|
104
|
+
cancelled: "cancelled";
|
|
105
|
+
}>;
|
|
106
|
+
endedAt: z.ZodISODateTime;
|
|
107
|
+
}, z.core.$strict>>;
|
|
108
|
+
declare const spanStartedEventSchema: z.ZodReadonly<z.ZodObject<{
|
|
109
|
+
type: z.ZodLiteral<"span.started">;
|
|
110
|
+
id: z.ZodUUID;
|
|
111
|
+
traceId: z.ZodUUID;
|
|
112
|
+
parentSpanId: z.ZodOptional<z.ZodUUID>;
|
|
113
|
+
sourceSpanId: z.ZodOptional<z.ZodString>;
|
|
114
|
+
name: z.ZodString;
|
|
115
|
+
spanType: z.ZodEnum<{
|
|
116
|
+
custom: "custom";
|
|
117
|
+
tool: "tool";
|
|
118
|
+
agent: "agent";
|
|
119
|
+
workflow: "workflow";
|
|
120
|
+
model: "model";
|
|
121
|
+
retrieval: "retrieval";
|
|
122
|
+
embedding: "embedding";
|
|
123
|
+
}>;
|
|
124
|
+
startedAt: z.ZodISODateTime;
|
|
125
|
+
input: z.ZodOptional<z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
126
|
+
type: z.ZodLiteral<"messages">;
|
|
127
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
128
|
+
id: z.ZodOptional<z.ZodString>;
|
|
129
|
+
role: z.ZodEnum<{
|
|
130
|
+
system: "system";
|
|
131
|
+
developer: "developer";
|
|
132
|
+
user: "user";
|
|
133
|
+
assistant: "assistant";
|
|
134
|
+
tool: "tool";
|
|
135
|
+
}>;
|
|
136
|
+
name: z.ZodOptional<z.ZodString>;
|
|
137
|
+
content: z.ZodArray<z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
138
|
+
type: z.ZodLiteral<"text">;
|
|
139
|
+
text: z.ZodString;
|
|
140
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
141
|
+
type: z.ZodLiteral<"reasoning">;
|
|
142
|
+
text: z.ZodString;
|
|
143
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
144
|
+
type: z.ZodLiteral<"json">;
|
|
145
|
+
value: z.ZodJSONSchema;
|
|
146
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
147
|
+
type: z.ZodLiteral<"tool-call">;
|
|
148
|
+
toolName: z.ZodString;
|
|
149
|
+
callId: z.ZodString;
|
|
150
|
+
arguments: z.ZodJSONSchema;
|
|
151
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
152
|
+
type: z.ZodLiteral<"tool-result">;
|
|
153
|
+
callId: z.ZodString;
|
|
154
|
+
result: z.ZodJSONSchema;
|
|
155
|
+
}, z.core.$strict>], "type">>>;
|
|
156
|
+
}, z.core.$strict>>;
|
|
157
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
158
|
+
type: z.ZodLiteral<"text">;
|
|
159
|
+
text: z.ZodString;
|
|
160
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
161
|
+
type: z.ZodLiteral<"json">;
|
|
162
|
+
value: z.ZodJSONSchema;
|
|
163
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
164
|
+
type: z.ZodLiteral<"tool-call">;
|
|
165
|
+
toolName: z.ZodString;
|
|
166
|
+
callId: z.ZodString;
|
|
167
|
+
arguments: z.ZodJSONSchema;
|
|
168
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
169
|
+
type: z.ZodLiteral<"tool-result">;
|
|
170
|
+
callId: z.ZodString;
|
|
171
|
+
result: z.ZodJSONSchema;
|
|
172
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
173
|
+
type: z.ZodLiteral<"documents">;
|
|
174
|
+
documents: z.ZodArray<z.ZodObject<{
|
|
175
|
+
id: z.ZodOptional<z.ZodString>;
|
|
176
|
+
content: z.ZodString;
|
|
177
|
+
attributes: z.ZodOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodBoolean>]>>>>;
|
|
178
|
+
}, z.core.$strict>>;
|
|
179
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
180
|
+
type: z.ZodLiteral<"redacted">;
|
|
181
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
182
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
183
|
+
type: z.ZodLiteral<"omitted">;
|
|
184
|
+
reason: z.ZodEnum<{
|
|
185
|
+
disabled: "disabled";
|
|
186
|
+
unsupported: "unsupported";
|
|
187
|
+
"too-large": "too-large";
|
|
188
|
+
unavailable: "unavailable";
|
|
189
|
+
}>;
|
|
190
|
+
originalBytes: z.ZodOptional<z.ZodInt>;
|
|
191
|
+
}, z.core.$strict>], "type">>>;
|
|
192
|
+
attributes: z.ZodOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodBoolean>]>>>>;
|
|
193
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
194
|
+
}, z.core.$strict>>;
|
|
195
|
+
declare const modelCallSchema: z.ZodReadonly<z.ZodObject<{
|
|
196
|
+
providerId: z.ZodNullable<z.ZodString>;
|
|
197
|
+
modelId: z.ZodNullable<z.ZodString>;
|
|
198
|
+
responseModelId: z.ZodOptional<z.ZodString>;
|
|
199
|
+
}, z.core.$strict>>;
|
|
200
|
+
type ModelCall = z.infer<typeof modelCallSchema>;
|
|
201
|
+
declare const spanCompletedEventSchema: z.ZodReadonly<z.ZodObject<{
|
|
202
|
+
type: z.ZodLiteral<"span.completed">;
|
|
203
|
+
id: z.ZodUUID;
|
|
204
|
+
traceId: z.ZodUUID;
|
|
205
|
+
endedAt: z.ZodISODateTime;
|
|
206
|
+
firstTokenAt: z.ZodOptional<z.ZodISODateTime>;
|
|
207
|
+
result: z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
208
|
+
status: z.ZodLiteral<"success">;
|
|
209
|
+
output: z.ZodOptional<z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
210
|
+
type: z.ZodLiteral<"messages">;
|
|
211
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
212
|
+
id: z.ZodOptional<z.ZodString>;
|
|
213
|
+
role: z.ZodEnum<{
|
|
214
|
+
system: "system";
|
|
215
|
+
developer: "developer";
|
|
216
|
+
user: "user";
|
|
217
|
+
assistant: "assistant";
|
|
218
|
+
tool: "tool";
|
|
219
|
+
}>;
|
|
220
|
+
name: z.ZodOptional<z.ZodString>;
|
|
221
|
+
content: z.ZodArray<z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
222
|
+
type: z.ZodLiteral<"text">;
|
|
223
|
+
text: z.ZodString;
|
|
224
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
225
|
+
type: z.ZodLiteral<"reasoning">;
|
|
226
|
+
text: z.ZodString;
|
|
227
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
228
|
+
type: z.ZodLiteral<"json">;
|
|
229
|
+
value: z.ZodJSONSchema;
|
|
230
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
231
|
+
type: z.ZodLiteral<"tool-call">;
|
|
232
|
+
toolName: z.ZodString;
|
|
233
|
+
callId: z.ZodString;
|
|
234
|
+
arguments: z.ZodJSONSchema;
|
|
235
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
236
|
+
type: z.ZodLiteral<"tool-result">;
|
|
237
|
+
callId: z.ZodString;
|
|
238
|
+
result: z.ZodJSONSchema;
|
|
239
|
+
}, z.core.$strict>], "type">>>;
|
|
240
|
+
}, z.core.$strict>>;
|
|
241
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
242
|
+
type: z.ZodLiteral<"text">;
|
|
243
|
+
text: z.ZodString;
|
|
244
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
245
|
+
type: z.ZodLiteral<"json">;
|
|
246
|
+
value: z.ZodJSONSchema;
|
|
247
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
248
|
+
type: z.ZodLiteral<"tool-call">;
|
|
249
|
+
toolName: z.ZodString;
|
|
250
|
+
callId: z.ZodString;
|
|
251
|
+
arguments: z.ZodJSONSchema;
|
|
252
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
253
|
+
type: z.ZodLiteral<"tool-result">;
|
|
254
|
+
callId: z.ZodString;
|
|
255
|
+
result: z.ZodJSONSchema;
|
|
256
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
257
|
+
type: z.ZodLiteral<"documents">;
|
|
258
|
+
documents: z.ZodArray<z.ZodObject<{
|
|
259
|
+
id: z.ZodOptional<z.ZodString>;
|
|
260
|
+
content: z.ZodString;
|
|
261
|
+
attributes: z.ZodOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodBoolean>]>>>>;
|
|
262
|
+
}, z.core.$strict>>;
|
|
263
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
264
|
+
type: z.ZodLiteral<"redacted">;
|
|
265
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
266
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
267
|
+
type: z.ZodLiteral<"omitted">;
|
|
268
|
+
reason: z.ZodEnum<{
|
|
269
|
+
disabled: "disabled";
|
|
270
|
+
unsupported: "unsupported";
|
|
271
|
+
"too-large": "too-large";
|
|
272
|
+
unavailable: "unavailable";
|
|
273
|
+
}>;
|
|
274
|
+
originalBytes: z.ZodOptional<z.ZodInt>;
|
|
275
|
+
}, z.core.$strict>], "type">>>;
|
|
276
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
277
|
+
status: z.ZodLiteral<"error">;
|
|
278
|
+
output: z.ZodOptional<z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
279
|
+
type: z.ZodLiteral<"messages">;
|
|
280
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
281
|
+
id: z.ZodOptional<z.ZodString>;
|
|
282
|
+
role: z.ZodEnum<{
|
|
283
|
+
system: "system";
|
|
284
|
+
developer: "developer";
|
|
285
|
+
user: "user";
|
|
286
|
+
assistant: "assistant";
|
|
287
|
+
tool: "tool";
|
|
288
|
+
}>;
|
|
289
|
+
name: z.ZodOptional<z.ZodString>;
|
|
290
|
+
content: z.ZodArray<z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
291
|
+
type: z.ZodLiteral<"text">;
|
|
292
|
+
text: z.ZodString;
|
|
293
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
294
|
+
type: z.ZodLiteral<"reasoning">;
|
|
295
|
+
text: z.ZodString;
|
|
296
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
297
|
+
type: z.ZodLiteral<"json">;
|
|
298
|
+
value: z.ZodJSONSchema;
|
|
299
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
300
|
+
type: z.ZodLiteral<"tool-call">;
|
|
301
|
+
toolName: z.ZodString;
|
|
302
|
+
callId: z.ZodString;
|
|
303
|
+
arguments: z.ZodJSONSchema;
|
|
304
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
305
|
+
type: z.ZodLiteral<"tool-result">;
|
|
306
|
+
callId: z.ZodString;
|
|
307
|
+
result: z.ZodJSONSchema;
|
|
308
|
+
}, z.core.$strict>], "type">>>;
|
|
309
|
+
}, z.core.$strict>>;
|
|
310
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
311
|
+
type: z.ZodLiteral<"text">;
|
|
312
|
+
text: z.ZodString;
|
|
313
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
314
|
+
type: z.ZodLiteral<"json">;
|
|
315
|
+
value: z.ZodJSONSchema;
|
|
316
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
317
|
+
type: z.ZodLiteral<"tool-call">;
|
|
318
|
+
toolName: z.ZodString;
|
|
319
|
+
callId: z.ZodString;
|
|
320
|
+
arguments: z.ZodJSONSchema;
|
|
321
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
322
|
+
type: z.ZodLiteral<"tool-result">;
|
|
323
|
+
callId: z.ZodString;
|
|
324
|
+
result: z.ZodJSONSchema;
|
|
325
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
326
|
+
type: z.ZodLiteral<"documents">;
|
|
327
|
+
documents: z.ZodArray<z.ZodObject<{
|
|
328
|
+
id: z.ZodOptional<z.ZodString>;
|
|
329
|
+
content: z.ZodString;
|
|
330
|
+
attributes: z.ZodOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodBoolean>]>>>>;
|
|
331
|
+
}, z.core.$strict>>;
|
|
332
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
333
|
+
type: z.ZodLiteral<"redacted">;
|
|
334
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
335
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
336
|
+
type: z.ZodLiteral<"omitted">;
|
|
337
|
+
reason: z.ZodEnum<{
|
|
338
|
+
disabled: "disabled";
|
|
339
|
+
unsupported: "unsupported";
|
|
340
|
+
"too-large": "too-large";
|
|
341
|
+
unavailable: "unavailable";
|
|
342
|
+
}>;
|
|
343
|
+
originalBytes: z.ZodOptional<z.ZodInt>;
|
|
344
|
+
}, z.core.$strict>], "type">>>;
|
|
345
|
+
error: z.ZodObject<{
|
|
346
|
+
type: z.ZodString;
|
|
347
|
+
message: z.ZodString;
|
|
348
|
+
}, z.core.$strict>;
|
|
349
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
350
|
+
status: z.ZodLiteral<"cancelled">;
|
|
351
|
+
output: z.ZodOptional<z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
352
|
+
type: z.ZodLiteral<"messages">;
|
|
353
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
354
|
+
id: z.ZodOptional<z.ZodString>;
|
|
355
|
+
role: z.ZodEnum<{
|
|
356
|
+
system: "system";
|
|
357
|
+
developer: "developer";
|
|
358
|
+
user: "user";
|
|
359
|
+
assistant: "assistant";
|
|
360
|
+
tool: "tool";
|
|
361
|
+
}>;
|
|
362
|
+
name: z.ZodOptional<z.ZodString>;
|
|
363
|
+
content: z.ZodArray<z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
364
|
+
type: z.ZodLiteral<"text">;
|
|
365
|
+
text: z.ZodString;
|
|
366
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
367
|
+
type: z.ZodLiteral<"reasoning">;
|
|
368
|
+
text: z.ZodString;
|
|
369
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
370
|
+
type: z.ZodLiteral<"json">;
|
|
371
|
+
value: z.ZodJSONSchema;
|
|
372
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
373
|
+
type: z.ZodLiteral<"tool-call">;
|
|
374
|
+
toolName: z.ZodString;
|
|
375
|
+
callId: z.ZodString;
|
|
376
|
+
arguments: z.ZodJSONSchema;
|
|
377
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
378
|
+
type: z.ZodLiteral<"tool-result">;
|
|
379
|
+
callId: z.ZodString;
|
|
380
|
+
result: z.ZodJSONSchema;
|
|
381
|
+
}, z.core.$strict>], "type">>>;
|
|
382
|
+
}, z.core.$strict>>;
|
|
383
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
384
|
+
type: z.ZodLiteral<"text">;
|
|
385
|
+
text: z.ZodString;
|
|
386
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
387
|
+
type: z.ZodLiteral<"json">;
|
|
388
|
+
value: z.ZodJSONSchema;
|
|
389
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
390
|
+
type: z.ZodLiteral<"tool-call">;
|
|
391
|
+
toolName: z.ZodString;
|
|
392
|
+
callId: z.ZodString;
|
|
393
|
+
arguments: z.ZodJSONSchema;
|
|
394
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
395
|
+
type: z.ZodLiteral<"tool-result">;
|
|
396
|
+
callId: z.ZodString;
|
|
397
|
+
result: z.ZodJSONSchema;
|
|
398
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
399
|
+
type: z.ZodLiteral<"documents">;
|
|
400
|
+
documents: z.ZodArray<z.ZodObject<{
|
|
401
|
+
id: z.ZodOptional<z.ZodString>;
|
|
402
|
+
content: z.ZodString;
|
|
403
|
+
attributes: z.ZodOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodBoolean>]>>>>;
|
|
404
|
+
}, z.core.$strict>>;
|
|
405
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
406
|
+
type: z.ZodLiteral<"redacted">;
|
|
407
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
408
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
409
|
+
type: z.ZodLiteral<"omitted">;
|
|
410
|
+
reason: z.ZodEnum<{
|
|
411
|
+
disabled: "disabled";
|
|
412
|
+
unsupported: "unsupported";
|
|
413
|
+
"too-large": "too-large";
|
|
414
|
+
unavailable: "unavailable";
|
|
415
|
+
}>;
|
|
416
|
+
originalBytes: z.ZodOptional<z.ZodInt>;
|
|
417
|
+
}, z.core.$strict>], "type">>>;
|
|
418
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
419
|
+
type: z.ZodString;
|
|
420
|
+
message: z.ZodString;
|
|
421
|
+
}, z.core.$strict>>;
|
|
422
|
+
}, z.core.$strict>], "status">>;
|
|
423
|
+
events: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
424
|
+
name: z.ZodString;
|
|
425
|
+
time: z.ZodISODateTime;
|
|
426
|
+
attributes: z.ZodOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodBoolean>]>>>>;
|
|
427
|
+
}, z.core.$strict>>>>>;
|
|
428
|
+
usage: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
429
|
+
inputTokensTotal: z.ZodOptional<z.ZodInt>;
|
|
430
|
+
inputTokensCacheRead: z.ZodOptional<z.ZodInt>;
|
|
431
|
+
inputTokensCacheWrite: z.ZodOptional<z.ZodInt>;
|
|
432
|
+
outputTokensTotal: z.ZodOptional<z.ZodInt>;
|
|
433
|
+
outputTokensReasoning: z.ZodOptional<z.ZodInt>;
|
|
434
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
435
|
+
}, z.core.$strict>>>;
|
|
436
|
+
model: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
437
|
+
providerId: z.ZodNullable<z.ZodString>;
|
|
438
|
+
modelId: z.ZodNullable<z.ZodString>;
|
|
439
|
+
responseModelId: z.ZodOptional<z.ZodString>;
|
|
440
|
+
}, z.core.$strict>>>;
|
|
441
|
+
attributes: z.ZodOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodBoolean>]>>>>;
|
|
442
|
+
}, z.core.$strict>>;
|
|
443
|
+
type Attributes = z.infer<typeof attributesSchema>;
|
|
444
|
+
type MessageContentBlock = z.infer<typeof messageContentBlockSchema>;
|
|
445
|
+
type TraceContent = z.infer<typeof traceContentSchema>;
|
|
446
|
+
type TokenUsage = z.infer<typeof tokenUsageSchema>;
|
|
447
|
+
type TraceCompletedEvent = z.infer<typeof traceCompletedEventSchema>;
|
|
448
|
+
type SpanStartedEvent = z.infer<typeof spanStartedEventSchema>;
|
|
449
|
+
type SpanCompletedEvent = z.infer<typeof spanCompletedEventSchema>;
|
|
450
|
+
//#endregion
|
|
451
|
+
//#region src/core/tracing/createTrace.d.ts
|
|
452
|
+
type StartSpanOptions = Pick<SpanStartedEvent, 'name' | 'spanType' | 'input' | 'attributes' | 'tags' | 'sourceSpanId'> & {
|
|
453
|
+
readonly parentSpanId?: string;
|
|
454
|
+
};
|
|
455
|
+
type CompleteSpanOptions = Pick<SpanCompletedEvent, 'attributes' | 'usage'> & {
|
|
456
|
+
readonly responseModelId?: string;
|
|
457
|
+
};
|
|
458
|
+
type TraceSpan = {
|
|
459
|
+
readonly id: string;
|
|
460
|
+
markFirstToken(): void;
|
|
461
|
+
complete(result: SpanCompletedEvent['result'], details?: CompleteSpanOptions): void;
|
|
462
|
+
};
|
|
463
|
+
type CreateTraceOptions = {
|
|
464
|
+
readonly sourceTraceId?: string;
|
|
465
|
+
readonly attributes?: Attributes;
|
|
466
|
+
readonly rootSpan: StartSpanOptions;
|
|
467
|
+
};
|
|
468
|
+
type AgenticRunTrace = {
|
|
469
|
+
readonly id: string;
|
|
470
|
+
readonly completed: boolean;
|
|
471
|
+
readonly rootSpan: TraceSpan;
|
|
472
|
+
readonly started: Promise<void>;
|
|
473
|
+
startSpan(options: StartSpanOptions): TraceSpan | undefined;
|
|
474
|
+
complete(status: TraceCompletedEvent['status']): Promise<void>;
|
|
475
|
+
};
|
|
476
|
+
//#endregion
|
|
477
|
+
//#region src/core/tracing/createTracingSession.d.ts
|
|
478
|
+
type CreateTracingSessionOptions = {
|
|
479
|
+
readonly attributes?: Attributes;
|
|
480
|
+
readonly externalSessionId?: string;
|
|
481
|
+
readonly id?: string;
|
|
482
|
+
};
|
|
483
|
+
type AgenticRunTracingSession = {
|
|
484
|
+
readonly id: string;
|
|
485
|
+
createTrace(options: CreateTraceOptions): AgenticRunTrace;
|
|
486
|
+
};
|
|
487
|
+
//#endregion
|
|
488
|
+
//#region src/core/createAgenticRunClient.d.ts
|
|
489
|
+
type AgenticRunOptions = {
|
|
490
|
+
readonly agentApiKey?: string;
|
|
491
|
+
readonly apiUrl?: string;
|
|
492
|
+
readonly fetch?: typeof globalThis.fetch;
|
|
493
|
+
readonly tracingTimeoutMs?: number;
|
|
494
|
+
};
|
|
495
|
+
declare class AgenticRunConfigurationError extends Error {
|
|
496
|
+
readonly code: string;
|
|
497
|
+
constructor(code: string, message: string, options?: {
|
|
498
|
+
cause?: unknown;
|
|
499
|
+
});
|
|
500
|
+
}
|
|
501
|
+
declare const createAgenticRunClient: (options?: AgenticRunOptions) => Promise<{
|
|
502
|
+
configuration: Readonly<{
|
|
503
|
+
agentId: string;
|
|
504
|
+
agentConfigurationVersion: number;
|
|
505
|
+
organizationId: string;
|
|
506
|
+
providerKeyId: string;
|
|
507
|
+
provider: "openai" | "anthropic" | "google" | "scaleway";
|
|
508
|
+
modelId: string;
|
|
509
|
+
credential: Readonly<{
|
|
510
|
+
mode: "managed";
|
|
511
|
+
apiKey: string;
|
|
512
|
+
}>;
|
|
513
|
+
}>;
|
|
514
|
+
provider: {
|
|
515
|
+
readonly id: "openai";
|
|
516
|
+
readonly name: "OpenAI";
|
|
517
|
+
readonly active: true;
|
|
518
|
+
readonly adapter: "openai";
|
|
519
|
+
readonly keyHintLength: 7;
|
|
520
|
+
readonly models: readonly [{
|
|
521
|
+
readonly id: "gpt-5.6-sol";
|
|
522
|
+
readonly name: "GPT-5.6 Sol";
|
|
523
|
+
readonly active: true;
|
|
524
|
+
readonly pricing: {
|
|
525
|
+
readonly currency: "USD";
|
|
526
|
+
readonly unit: "million_tokens";
|
|
527
|
+
readonly rates: {
|
|
528
|
+
readonly input: "4.00";
|
|
529
|
+
readonly cacheRead: "0.40";
|
|
530
|
+
readonly cacheWrite: "5.00";
|
|
531
|
+
readonly output: "20.00";
|
|
532
|
+
readonly reasoning: "20.00";
|
|
533
|
+
};
|
|
534
|
+
};
|
|
535
|
+
}, {
|
|
536
|
+
readonly id: "gpt-5.6-terra";
|
|
537
|
+
readonly name: "GPT-5.6 Terra";
|
|
538
|
+
readonly active: true;
|
|
539
|
+
readonly pricing: {
|
|
540
|
+
readonly currency: "USD";
|
|
541
|
+
readonly unit: "million_tokens";
|
|
542
|
+
readonly rates: {
|
|
543
|
+
readonly input: "2.00";
|
|
544
|
+
readonly cacheRead: "0.20";
|
|
545
|
+
readonly cacheWrite: "2.50";
|
|
546
|
+
readonly output: "12.00";
|
|
547
|
+
readonly reasoning: "12.00";
|
|
548
|
+
};
|
|
549
|
+
};
|
|
550
|
+
}, {
|
|
551
|
+
readonly id: "gpt-5.6-luna";
|
|
552
|
+
readonly name: "GPT-5.6 Luna";
|
|
553
|
+
readonly active: true;
|
|
554
|
+
readonly pricing: {
|
|
555
|
+
readonly currency: "USD";
|
|
556
|
+
readonly unit: "million_tokens";
|
|
557
|
+
readonly rates: {
|
|
558
|
+
readonly input: "0.20";
|
|
559
|
+
readonly cacheRead: "0.02";
|
|
560
|
+
readonly cacheWrite: "0.25";
|
|
561
|
+
readonly output: "1.20";
|
|
562
|
+
readonly reasoning: "1.20";
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
}];
|
|
566
|
+
} | {
|
|
567
|
+
readonly id: "anthropic";
|
|
568
|
+
readonly name: "Anthropic";
|
|
569
|
+
readonly active: true;
|
|
570
|
+
readonly adapter: "anthropic";
|
|
571
|
+
readonly keyHintLength: 14;
|
|
572
|
+
readonly models: readonly [{
|
|
573
|
+
readonly id: "claude-fable-5";
|
|
574
|
+
readonly name: "Claude Fable 5";
|
|
575
|
+
readonly active: true;
|
|
576
|
+
readonly pricing: {
|
|
577
|
+
readonly currency: "USD";
|
|
578
|
+
readonly unit: "million_tokens";
|
|
579
|
+
readonly rates: {
|
|
580
|
+
readonly input: "10";
|
|
581
|
+
readonly cacheRead: "1";
|
|
582
|
+
readonly cacheWrite: null;
|
|
583
|
+
readonly output: "50";
|
|
584
|
+
readonly reasoning: "50";
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
}, {
|
|
588
|
+
readonly id: "claude-opus-5";
|
|
589
|
+
readonly name: "Claude Opus 5";
|
|
590
|
+
readonly active: true;
|
|
591
|
+
readonly pricing: {
|
|
592
|
+
readonly currency: "USD";
|
|
593
|
+
readonly unit: "million_tokens";
|
|
594
|
+
readonly rates: {
|
|
595
|
+
readonly input: "5";
|
|
596
|
+
readonly cacheRead: "0.50";
|
|
597
|
+
readonly cacheWrite: null;
|
|
598
|
+
readonly output: "25";
|
|
599
|
+
readonly reasoning: "25";
|
|
600
|
+
};
|
|
601
|
+
};
|
|
602
|
+
}, {
|
|
603
|
+
readonly id: "claude-sonnet-5";
|
|
604
|
+
readonly name: "Claude Sonnet 5";
|
|
605
|
+
readonly active: true;
|
|
606
|
+
readonly pricing: {
|
|
607
|
+
readonly currency: "USD";
|
|
608
|
+
readonly unit: "million_tokens";
|
|
609
|
+
readonly rates: {
|
|
610
|
+
readonly input: "2";
|
|
611
|
+
readonly cacheRead: "0.20";
|
|
612
|
+
readonly cacheWrite: null;
|
|
613
|
+
readonly output: "10";
|
|
614
|
+
readonly reasoning: "10";
|
|
615
|
+
};
|
|
616
|
+
};
|
|
617
|
+
}, {
|
|
618
|
+
readonly id: "claude-haiku-4-5-20251001";
|
|
619
|
+
readonly name: "Claude Haiku 4.5";
|
|
620
|
+
readonly active: true;
|
|
621
|
+
readonly pricing: {
|
|
622
|
+
readonly currency: "USD";
|
|
623
|
+
readonly unit: "million_tokens";
|
|
624
|
+
readonly rates: {
|
|
625
|
+
readonly input: "1";
|
|
626
|
+
readonly cacheRead: "0.10";
|
|
627
|
+
readonly cacheWrite: null;
|
|
628
|
+
readonly output: "5";
|
|
629
|
+
readonly reasoning: "5";
|
|
630
|
+
};
|
|
631
|
+
};
|
|
632
|
+
}];
|
|
633
|
+
} | {
|
|
634
|
+
readonly id: "google";
|
|
635
|
+
readonly name: "Google";
|
|
636
|
+
readonly active: true;
|
|
637
|
+
readonly adapter: "google";
|
|
638
|
+
readonly keyHintLength: 8;
|
|
639
|
+
readonly models: readonly [{
|
|
640
|
+
readonly id: "gemini-3.7-flash";
|
|
641
|
+
readonly name: "Gemini 3.7 Flash";
|
|
642
|
+
readonly active: true;
|
|
643
|
+
readonly pricing: {
|
|
644
|
+
readonly currency: "USD";
|
|
645
|
+
readonly unit: "million_tokens";
|
|
646
|
+
readonly rates: {
|
|
647
|
+
readonly input: "0.75";
|
|
648
|
+
readonly cacheRead: "0.075";
|
|
649
|
+
readonly cacheWrite: null;
|
|
650
|
+
readonly output: "3.75";
|
|
651
|
+
readonly reasoning: "3.75";
|
|
652
|
+
};
|
|
653
|
+
};
|
|
654
|
+
}, {
|
|
655
|
+
readonly id: "gemini-3.6-flash";
|
|
656
|
+
readonly name: "Gemini 3.6 Flash";
|
|
657
|
+
readonly active: true;
|
|
658
|
+
readonly pricing: {
|
|
659
|
+
readonly currency: "USD";
|
|
660
|
+
readonly unit: "million_tokens";
|
|
661
|
+
readonly rates: {
|
|
662
|
+
readonly input: "0.75";
|
|
663
|
+
readonly cacheRead: "0.075";
|
|
664
|
+
readonly cacheWrite: null;
|
|
665
|
+
readonly output: "3.75";
|
|
666
|
+
readonly reasoning: "3.75";
|
|
667
|
+
};
|
|
668
|
+
};
|
|
669
|
+
}, {
|
|
670
|
+
readonly id: "gemini-3.5-flash";
|
|
671
|
+
readonly name: "Gemini 3.5 Flash";
|
|
672
|
+
readonly active: true;
|
|
673
|
+
readonly pricing: {
|
|
674
|
+
readonly currency: "USD";
|
|
675
|
+
readonly unit: "million_tokens";
|
|
676
|
+
readonly rates: {
|
|
677
|
+
readonly input: "1.50";
|
|
678
|
+
readonly cacheRead: "0.15";
|
|
679
|
+
readonly cacheWrite: null;
|
|
680
|
+
readonly output: "9.00";
|
|
681
|
+
readonly reasoning: "9.00";
|
|
682
|
+
};
|
|
683
|
+
};
|
|
684
|
+
}, {
|
|
685
|
+
readonly id: "gemini-3.5-flash-lite";
|
|
686
|
+
readonly name: "Gemini 3.5 Flash-Lite";
|
|
687
|
+
readonly active: true;
|
|
688
|
+
readonly pricing: {
|
|
689
|
+
readonly currency: "USD";
|
|
690
|
+
readonly unit: "million_tokens";
|
|
691
|
+
readonly rates: {
|
|
692
|
+
readonly input: "0.30";
|
|
693
|
+
readonly cacheRead: "0.03";
|
|
694
|
+
readonly cacheWrite: null;
|
|
695
|
+
readonly output: "2.50";
|
|
696
|
+
readonly reasoning: "2.50";
|
|
697
|
+
};
|
|
698
|
+
};
|
|
699
|
+
}, {
|
|
700
|
+
readonly id: "gemini-3.1-flash-lite";
|
|
701
|
+
readonly name: "Gemini 3.1 Flash-Lite";
|
|
702
|
+
readonly active: true;
|
|
703
|
+
readonly pricing: {
|
|
704
|
+
readonly currency: "USD";
|
|
705
|
+
readonly unit: "million_tokens";
|
|
706
|
+
readonly rates: {
|
|
707
|
+
readonly input: null;
|
|
708
|
+
readonly cacheRead: null;
|
|
709
|
+
readonly cacheWrite: null;
|
|
710
|
+
readonly output: "1.50";
|
|
711
|
+
readonly reasoning: "1.50";
|
|
712
|
+
};
|
|
713
|
+
};
|
|
714
|
+
}];
|
|
715
|
+
} | {
|
|
716
|
+
readonly id: "scaleway";
|
|
717
|
+
readonly name: "Scaleway";
|
|
718
|
+
readonly active: true;
|
|
719
|
+
readonly adapter: "openai-compatible";
|
|
720
|
+
readonly baseUrl: "https://api.scaleway.ai/v1";
|
|
721
|
+
readonly keyHintLength: 4;
|
|
722
|
+
readonly models: readonly [{
|
|
723
|
+
readonly id: "glm-5.2";
|
|
724
|
+
readonly name: "GLM 5.2";
|
|
725
|
+
readonly active: true;
|
|
726
|
+
readonly pricing: {
|
|
727
|
+
readonly currency: "EUR";
|
|
728
|
+
readonly unit: "million_tokens";
|
|
729
|
+
readonly rates: {
|
|
730
|
+
readonly input: "1.80";
|
|
731
|
+
readonly cacheRead: null;
|
|
732
|
+
readonly cacheWrite: null;
|
|
733
|
+
readonly output: "5.50";
|
|
734
|
+
readonly reasoning: null;
|
|
735
|
+
};
|
|
736
|
+
};
|
|
737
|
+
}, {
|
|
738
|
+
readonly id: "deepseek-v4-flash-0731";
|
|
739
|
+
readonly name: "DeepSeek V4 Flash 0731";
|
|
740
|
+
readonly active: true;
|
|
741
|
+
readonly pricing: {
|
|
742
|
+
readonly currency: "EUR";
|
|
743
|
+
readonly unit: "million_tokens";
|
|
744
|
+
readonly rates: {
|
|
745
|
+
readonly input: "0.40";
|
|
746
|
+
readonly cacheRead: "0.08";
|
|
747
|
+
readonly cacheWrite: null;
|
|
748
|
+
readonly output: "0.80";
|
|
749
|
+
readonly reasoning: null;
|
|
750
|
+
};
|
|
751
|
+
};
|
|
752
|
+
}, {
|
|
753
|
+
readonly id: "qwen3.6-35b-a3b";
|
|
754
|
+
readonly name: "Qwen 3.6 35B A3B";
|
|
755
|
+
readonly active: true;
|
|
756
|
+
readonly pricing: {
|
|
757
|
+
readonly currency: "EUR";
|
|
758
|
+
readonly unit: "million_tokens";
|
|
759
|
+
readonly rates: {
|
|
760
|
+
readonly input: "0.25";
|
|
761
|
+
readonly cacheRead: null;
|
|
762
|
+
readonly cacheWrite: null;
|
|
763
|
+
readonly output: "1.50";
|
|
764
|
+
readonly reasoning: null;
|
|
765
|
+
};
|
|
766
|
+
};
|
|
767
|
+
}, {
|
|
768
|
+
readonly id: "qwen3.5-397b-a17b";
|
|
769
|
+
readonly name: "Qwen 3.5 397B A17B";
|
|
770
|
+
readonly active: true;
|
|
771
|
+
readonly pricing: {
|
|
772
|
+
readonly currency: "EUR";
|
|
773
|
+
readonly unit: "million_tokens";
|
|
774
|
+
readonly rates: {
|
|
775
|
+
readonly input: "0.60";
|
|
776
|
+
readonly cacheRead: null;
|
|
777
|
+
readonly cacheWrite: null;
|
|
778
|
+
readonly output: "3.60";
|
|
779
|
+
readonly reasoning: null;
|
|
780
|
+
};
|
|
781
|
+
};
|
|
782
|
+
}, {
|
|
783
|
+
readonly id: "gemma-4-26b-a4b-it";
|
|
784
|
+
readonly name: "Gemma 4 26B A4B IT";
|
|
785
|
+
readonly active: true;
|
|
786
|
+
readonly pricing: {
|
|
787
|
+
readonly currency: "EUR";
|
|
788
|
+
readonly unit: "million_tokens";
|
|
789
|
+
readonly rates: {
|
|
790
|
+
readonly input: "0.25";
|
|
791
|
+
readonly cacheRead: null;
|
|
792
|
+
readonly cacheWrite: null;
|
|
793
|
+
readonly output: "0.50";
|
|
794
|
+
readonly reasoning: null;
|
|
795
|
+
};
|
|
796
|
+
};
|
|
797
|
+
}];
|
|
798
|
+
};
|
|
799
|
+
createSession: (options?: CreateTracingSessionOptions) => AgenticRunTracingSession;
|
|
800
|
+
}>;
|
|
801
|
+
//#endregion
|
|
802
|
+
//#region ../modules/src/agents/runtimeConfiguration/agentRuntimeConfiguration.contract.d.ts
|
|
803
|
+
declare const agentRuntimeConfigurationResponseSchema: z.ZodReadonly<z.ZodObject<{
|
|
804
|
+
agentId: z.ZodUUID;
|
|
805
|
+
agentConfigurationVersion: z.ZodInt;
|
|
806
|
+
organizationId: z.ZodUUID;
|
|
807
|
+
providerKeyId: z.ZodUUID;
|
|
808
|
+
provider: z.ZodEnum<{
|
|
809
|
+
openai: "openai";
|
|
810
|
+
anthropic: "anthropic";
|
|
811
|
+
google: "google";
|
|
812
|
+
scaleway: "scaleway";
|
|
813
|
+
}>;
|
|
814
|
+
modelId: z.ZodString;
|
|
815
|
+
credential: z.ZodReadonly<z.ZodObject<{
|
|
816
|
+
mode: z.ZodLiteral<"managed">;
|
|
817
|
+
apiKey: z.ZodString;
|
|
818
|
+
}, z.core.$strip>>;
|
|
819
|
+
}, z.core.$strip>>;
|
|
820
|
+
type AgentRuntimeConfigurationResponse = z.infer<typeof agentRuntimeConfigurationResponseSchema>;
|
|
821
|
+
//#endregion
|
|
822
|
+
//#region src/core/runtimeConfiguration.d.ts
|
|
823
|
+
type LoadAgentRuntimeConfigurationOptions = {
|
|
824
|
+
readonly agentApiKey: string;
|
|
825
|
+
readonly apiUrl?: string;
|
|
826
|
+
readonly fetch?: typeof globalThis.fetch;
|
|
827
|
+
};
|
|
828
|
+
declare class AgenticRunApiError extends Error {
|
|
829
|
+
readonly code: string;
|
|
830
|
+
readonly statusCode: number;
|
|
831
|
+
constructor(statusCode: number, code: string, options?: {
|
|
832
|
+
cause?: unknown;
|
|
833
|
+
});
|
|
834
|
+
}
|
|
835
|
+
declare const loadAgentRuntimeConfiguration: ({ agentApiKey, apiUrl, fetch }: LoadAgentRuntimeConfigurationOptions) => Promise<AgentRuntimeConfigurationResponse>;
|
|
836
|
+
//#endregion
|
|
837
|
+
export { TokenUsage as _, AgenticRunOptions as a, CreateTracingSessionOptions as c, CreateTraceOptions as d, StartSpanOptions as f, ModelCall as g, MessageContentBlock as h, AgenticRunConfigurationError as i, AgenticRunTrace as l, Attributes as m, LoadAgentRuntimeConfigurationOptions as n, createAgenticRunClient as o, TraceSpan as p, loadAgentRuntimeConfiguration as r, AgenticRunTracingSession as s, AgenticRunApiError as t, CompleteSpanOptions as u, TraceContent as v };
|