@codeworksh/aikit 0.7.2-dev.20260825090340 → 0.8.0-dev.20260905193244
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/cli.mjs +5 -5
- package/cli.mjs.map +1 -1
- package/{codex-DyQHzQmn.mjs → codex-MtP1574D.mjs} +63 -50
- package/codex-MtP1574D.mjs.map +1 -0
- package/{failure-C0lCOdFE.d.mts → failure-5Wjd-qFH.d.mts} +6 -2
- package/{failure-xra3YPdY.mjs → failure-SAPyG-w2.mjs} +8 -77
- package/failure-SAPyG-w2.mjs.map +1 -0
- package/index.d.mts +120 -3898
- package/index.mjs +490 -559
- package/index.mjs.map +1 -1
- package/llm/failure.d.mts +1 -1
- package/llm/failure.mjs +2 -1
- package/model-CBnredXj.mjs +453 -0
- package/model-CBnredXj.mjs.map +1 -0
- package/{model-CKKq3s4y.d.mts → model-CpX11Oob.d.mts} +126 -46
- package/{modelgen-xolcfdfT.mjs → modelgen-BjSsusLQ.mjs} +78 -5
- package/modelgen-BjSsusLQ.mjs.map +1 -0
- package/modelgen.d.mts +1 -1
- package/modelgen.mjs +1 -1
- package/oauth/openai/codex.mjs +1 -1
- package/openai-codex-BRH4Qa7l.mjs +2 -0
- package/{openai-codex-_3XkJ4bs.mjs → openai-codex-t4B7g-gv.mjs} +542 -105
- package/openai-codex-t4B7g-gv.mjs.map +1 -0
- package/package.json +2 -2
- package/registry-DYdYTwFt.mjs +65 -0
- package/registry-DYdYTwFt.mjs.map +1 -0
- package/schema-rXSoWhic.mjs +80 -0
- package/schema-rXSoWhic.mjs.map +1 -0
- package/codex-DyQHzQmn.mjs.map +0 -1
- package/failure-xra3YPdY.mjs.map +0 -1
- package/modelgen-xolcfdfT.mjs.map +0 -1
- package/openai-codex-FcyE8vxh.mjs +0 -2
- package/openai-codex-_3XkJ4bs.mjs.map +0 -1
- package/registry-DHskX4NP.mjs +0 -5266
- package/registry-DHskX4NP.mjs.map +0 -1
package/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { t as failure_d_exports } from "./failure-
|
|
1
|
+
import { a as KnownProviderEnum, c as ThinkingBudgets$1, d as getProviders, f as model_d_exports, i as Info, l as getModel, m as registry, n as ActiveThinkingLevel, o as ProviderToProtocol, p as modelsAreEqual, r as Compatibility, s as TModel, t as APIMethodEnum, u as getModels } from "./model-CpX11Oob.mjs";
|
|
2
|
+
import { t as failure_d_exports } from "./failure-5Wjd-qFH.mjs";
|
|
3
3
|
import Type$2, { Static, Static as Static$1, TSchema, TSchema as TSchema$1, Type, Type as Type$1 } from "typebox";
|
|
4
4
|
import { APICallError, LanguageModelV3, ProviderV3 } from "@ai-sdk/provider";
|
|
5
5
|
import { AnthropicLanguageModelOptions, AnthropicProviderSettings } from "@ai-sdk/anthropic";
|
|
@@ -11,7 +11,7 @@ import { OpenAICompatibleLanguageModelChatOptions, OpenAICompatibleLanguageModel
|
|
|
11
11
|
import { XaiLanguageModelChatOptions, XaiLanguageModelResponsesOptions, XaiProviderSettings } from "@ai-sdk/xai";
|
|
12
12
|
import { OpenRouterProviderOptions, OpenRouterProviderSettings } from "@openrouter/ai-sdk-provider";
|
|
13
13
|
declare namespace event_d_exports {
|
|
14
|
-
export {
|
|
14
|
+
export { LLMMessageEvent, LLMMessageEventSchema, LLMMessageEventType };
|
|
15
15
|
}
|
|
16
16
|
declare const LLMMessageEventType: {
|
|
17
17
|
readonly start: "start";
|
|
@@ -56,6 +56,7 @@ declare const LLMMessageEventSchema: Type$2.TUnion<[Type$2.TObject<{
|
|
|
56
56
|
output: Type$2.TNumber;
|
|
57
57
|
cacheRead: Type$2.TNumber;
|
|
58
58
|
cacheWrite: Type$2.TNumber;
|
|
59
|
+
cacheWrite1h: Type$2.TOptional<Type$2.TNumber>;
|
|
59
60
|
reasoning: Type$2.TOptional<Type$2.TNumber>;
|
|
60
61
|
totalTokens: Type$2.TNumber;
|
|
61
62
|
cost: Type$2.TObject<{
|
|
@@ -359,6 +360,7 @@ declare const LLMMessageEventSchema: Type$2.TUnion<[Type$2.TObject<{
|
|
|
359
360
|
output: Type$2.TNumber;
|
|
360
361
|
cacheRead: Type$2.TNumber;
|
|
361
362
|
cacheWrite: Type$2.TNumber;
|
|
363
|
+
cacheWrite1h: Type$2.TOptional<Type$2.TNumber>;
|
|
362
364
|
reasoning: Type$2.TOptional<Type$2.TNumber>;
|
|
363
365
|
totalTokens: Type$2.TNumber;
|
|
364
366
|
cost: Type$2.TObject<{
|
|
@@ -663,6 +665,7 @@ declare const LLMMessageEventSchema: Type$2.TUnion<[Type$2.TObject<{
|
|
|
663
665
|
output: Type$2.TNumber;
|
|
664
666
|
cacheRead: Type$2.TNumber;
|
|
665
667
|
cacheWrite: Type$2.TNumber;
|
|
668
|
+
cacheWrite1h: Type$2.TOptional<Type$2.TNumber>;
|
|
666
669
|
reasoning: Type$2.TOptional<Type$2.TNumber>;
|
|
667
670
|
totalTokens: Type$2.TNumber;
|
|
668
671
|
cost: Type$2.TObject<{
|
|
@@ -967,6 +970,7 @@ declare const LLMMessageEventSchema: Type$2.TUnion<[Type$2.TObject<{
|
|
|
967
970
|
output: Type$2.TNumber;
|
|
968
971
|
cacheRead: Type$2.TNumber;
|
|
969
972
|
cacheWrite: Type$2.TNumber;
|
|
973
|
+
cacheWrite1h: Type$2.TOptional<Type$2.TNumber>;
|
|
970
974
|
reasoning: Type$2.TOptional<Type$2.TNumber>;
|
|
971
975
|
totalTokens: Type$2.TNumber;
|
|
972
976
|
cost: Type$2.TObject<{
|
|
@@ -1270,6 +1274,7 @@ declare const LLMMessageEventSchema: Type$2.TUnion<[Type$2.TObject<{
|
|
|
1270
1274
|
output: Type$2.TNumber;
|
|
1271
1275
|
cacheRead: Type$2.TNumber;
|
|
1272
1276
|
cacheWrite: Type$2.TNumber;
|
|
1277
|
+
cacheWrite1h: Type$2.TOptional<Type$2.TNumber>;
|
|
1273
1278
|
reasoning: Type$2.TOptional<Type$2.TNumber>;
|
|
1274
1279
|
totalTokens: Type$2.TNumber;
|
|
1275
1280
|
cost: Type$2.TObject<{
|
|
@@ -1574,6 +1579,7 @@ declare const LLMMessageEventSchema: Type$2.TUnion<[Type$2.TObject<{
|
|
|
1574
1579
|
output: Type$2.TNumber;
|
|
1575
1580
|
cacheRead: Type$2.TNumber;
|
|
1576
1581
|
cacheWrite: Type$2.TNumber;
|
|
1582
|
+
cacheWrite1h: Type$2.TOptional<Type$2.TNumber>;
|
|
1577
1583
|
reasoning: Type$2.TOptional<Type$2.TNumber>;
|
|
1578
1584
|
totalTokens: Type$2.TNumber;
|
|
1579
1585
|
cost: Type$2.TObject<{
|
|
@@ -1878,6 +1884,7 @@ declare const LLMMessageEventSchema: Type$2.TUnion<[Type$2.TObject<{
|
|
|
1878
1884
|
output: Type$2.TNumber;
|
|
1879
1885
|
cacheRead: Type$2.TNumber;
|
|
1880
1886
|
cacheWrite: Type$2.TNumber;
|
|
1887
|
+
cacheWrite1h: Type$2.TOptional<Type$2.TNumber>;
|
|
1881
1888
|
reasoning: Type$2.TOptional<Type$2.TNumber>;
|
|
1882
1889
|
totalTokens: Type$2.TNumber;
|
|
1883
1890
|
cost: Type$2.TObject<{
|
|
@@ -2181,6 +2188,7 @@ declare const LLMMessageEventSchema: Type$2.TUnion<[Type$2.TObject<{
|
|
|
2181
2188
|
output: Type$2.TNumber;
|
|
2182
2189
|
cacheRead: Type$2.TNumber;
|
|
2183
2190
|
cacheWrite: Type$2.TNumber;
|
|
2191
|
+
cacheWrite1h: Type$2.TOptional<Type$2.TNumber>;
|
|
2184
2192
|
reasoning: Type$2.TOptional<Type$2.TNumber>;
|
|
2185
2193
|
totalTokens: Type$2.TNumber;
|
|
2186
2194
|
cost: Type$2.TObject<{
|
|
@@ -2485,6 +2493,7 @@ declare const LLMMessageEventSchema: Type$2.TUnion<[Type$2.TObject<{
|
|
|
2485
2493
|
output: Type$2.TNumber;
|
|
2486
2494
|
cacheRead: Type$2.TNumber;
|
|
2487
2495
|
cacheWrite: Type$2.TNumber;
|
|
2496
|
+
cacheWrite1h: Type$2.TOptional<Type$2.TNumber>;
|
|
2488
2497
|
reasoning: Type$2.TOptional<Type$2.TNumber>;
|
|
2489
2498
|
totalTokens: Type$2.TNumber;
|
|
2490
2499
|
cost: Type$2.TObject<{
|
|
@@ -2932,6 +2941,7 @@ declare const LLMMessageEventSchema: Type$2.TUnion<[Type$2.TObject<{
|
|
|
2932
2941
|
output: Type$2.TNumber;
|
|
2933
2942
|
cacheRead: Type$2.TNumber;
|
|
2934
2943
|
cacheWrite: Type$2.TNumber;
|
|
2944
|
+
cacheWrite1h: Type$2.TOptional<Type$2.TNumber>;
|
|
2935
2945
|
reasoning: Type$2.TOptional<Type$2.TNumber>;
|
|
2936
2946
|
totalTokens: Type$2.TNumber;
|
|
2937
2947
|
cost: Type$2.TObject<{
|
|
@@ -3379,6 +3389,7 @@ declare const LLMMessageEventSchema: Type$2.TUnion<[Type$2.TObject<{
|
|
|
3379
3389
|
output: Type$2.TNumber;
|
|
3380
3390
|
cacheRead: Type$2.TNumber;
|
|
3381
3391
|
cacheWrite: Type$2.TNumber;
|
|
3392
|
+
cacheWrite1h: Type$2.TOptional<Type$2.TNumber>;
|
|
3382
3393
|
reasoning: Type$2.TOptional<Type$2.TNumber>;
|
|
3383
3394
|
totalTokens: Type$2.TNumber;
|
|
3384
3395
|
cost: Type$2.TObject<{
|
|
@@ -3682,6 +3693,7 @@ declare const LLMMessageEventSchema: Type$2.TUnion<[Type$2.TObject<{
|
|
|
3682
3693
|
output: Type$2.TNumber;
|
|
3683
3694
|
cacheRead: Type$2.TNumber;
|
|
3684
3695
|
cacheWrite: Type$2.TNumber;
|
|
3696
|
+
cacheWrite1h: Type$2.TOptional<Type$2.TNumber>;
|
|
3685
3697
|
reasoning: Type$2.TOptional<Type$2.TNumber>;
|
|
3686
3698
|
totalTokens: Type$2.TNumber;
|
|
3687
3699
|
cost: Type$2.TObject<{
|
|
@@ -3985,6 +3997,7 @@ declare const LLMMessageEventSchema: Type$2.TUnion<[Type$2.TObject<{
|
|
|
3985
3997
|
output: Type$2.TNumber;
|
|
3986
3998
|
cacheRead: Type$2.TNumber;
|
|
3987
3999
|
cacheWrite: Type$2.TNumber;
|
|
4000
|
+
cacheWrite1h: Type$2.TOptional<Type$2.TNumber>;
|
|
3988
4001
|
reasoning: Type$2.TOptional<Type$2.TNumber>;
|
|
3989
4002
|
totalTokens: Type$2.TNumber;
|
|
3990
4003
|
cost: Type$2.TObject<{
|
|
@@ -4270,3822 +4283,10 @@ declare const LLMMessageEventSchema: Type$2.TUnion<[Type$2.TObject<{
|
|
|
4270
4283
|
}>;
|
|
4271
4284
|
}>]>;
|
|
4272
4285
|
type LLMMessageEvent = Static$1<typeof LLMMessageEventSchema>;
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
readonly turnEnd: "turn.end";
|
|
4278
|
-
readonly messageStart: "message.start";
|
|
4279
|
-
readonly messagePartStart: "message.part.start";
|
|
4280
|
-
readonly messagePartUpdate: "message.part.update";
|
|
4281
|
-
readonly messagePartEnd: "message.part.end";
|
|
4282
|
-
readonly messageUpdate: "message.update";
|
|
4283
|
-
readonly messageEnd: "message.end";
|
|
4284
|
-
readonly toolExecutionStart: "tool.execution.start";
|
|
4285
|
-
readonly toolExecutionUpdate: "tool.execution.update";
|
|
4286
|
-
readonly toolExecutionEnd: "tool.execution.end";
|
|
4287
|
-
};
|
|
4288
|
-
type AgentEventType = (typeof AgentEventType)[keyof typeof AgentEventType];
|
|
4289
|
-
declare const ToolExecutionStartSchema: Type$2.TObject<{
|
|
4290
|
-
type: Type$2.TLiteral<"tool.execution.start">;
|
|
4291
|
-
messageId: Type$2.TString;
|
|
4292
|
-
partIndex: Type$2.TNumber;
|
|
4293
|
-
toolCall: Type$2.TIntersect<[Type$2.TObject<{
|
|
4294
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
4295
|
-
callID: Type$2.TString;
|
|
4296
|
-
name: Type$2.TString;
|
|
4297
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
4298
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
4299
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
4300
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
4301
|
-
time: Type$2.TObject<{
|
|
4302
|
-
start: Type$2.TNumber;
|
|
4303
|
-
end: Type$2.TNumber;
|
|
4304
|
-
}>;
|
|
4305
|
-
}>, Type$2.TObject<{
|
|
4306
|
-
status: Type$2.TLiteral<"pending">;
|
|
4307
|
-
}>]>;
|
|
4308
|
-
}>;
|
|
4309
|
-
type ToolExecutionStart = Static$1<typeof ToolExecutionStartSchema>;
|
|
4310
|
-
declare const ToolExecutionUpdateSchema: Type$2.TObject<{
|
|
4311
|
-
type: Type$2.TLiteral<"tool.execution.update">;
|
|
4312
|
-
messageId: Type$2.TString;
|
|
4313
|
-
partIndex: Type$2.TNumber;
|
|
4314
|
-
toolCall: Type$2.TObject<{
|
|
4315
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
4316
|
-
callID: Type$2.TString;
|
|
4317
|
-
name: Type$2.TString;
|
|
4318
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
4319
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
4320
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
4321
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
4322
|
-
time: Type$2.TObject<{
|
|
4323
|
-
start: Type$2.TNumber;
|
|
4324
|
-
end: Type$2.TNumber;
|
|
4325
|
-
}>;
|
|
4326
|
-
status: Type$2.TLiteral<"running">;
|
|
4327
|
-
partial: Type$2.TOptional<Type$2.TObject<{
|
|
4328
|
-
content: Type$2.TOptional<Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
4329
|
-
type: Type$2.TLiteral<"text">;
|
|
4330
|
-
text: Type$2.TString;
|
|
4331
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
4332
|
-
}>, Type$2.TObject<{
|
|
4333
|
-
type: Type$2.TLiteral<"image">;
|
|
4334
|
-
data: Type$2.TString;
|
|
4335
|
-
mimeType: Type$2.TString;
|
|
4336
|
-
}>]>>>;
|
|
4337
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
4338
|
-
}>>;
|
|
4339
|
-
}>;
|
|
4340
|
-
}>;
|
|
4341
|
-
type ToolExecutionUpdate = Static$1<typeof ToolExecutionUpdateSchema>;
|
|
4342
|
-
declare const ToolExecutionEndSchema: Type$2.TObject<{
|
|
4343
|
-
type: Type$2.TLiteral<"tool.execution.end">;
|
|
4344
|
-
messageId: Type$2.TString;
|
|
4345
|
-
partIndex: Type$2.TNumber;
|
|
4346
|
-
toolCall: Type$2.TUnion<[Type$2.TObject<{
|
|
4347
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
4348
|
-
callID: Type$2.TString;
|
|
4349
|
-
name: Type$2.TString;
|
|
4350
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
4351
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
4352
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
4353
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
4354
|
-
time: Type$2.TObject<{
|
|
4355
|
-
start: Type$2.TNumber;
|
|
4356
|
-
end: Type$2.TNumber;
|
|
4357
|
-
}>;
|
|
4358
|
-
status: Type$2.TLiteral<"completed">;
|
|
4359
|
-
result: Type$2.TObject<{
|
|
4360
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
4361
|
-
type: Type$2.TLiteral<"text">;
|
|
4362
|
-
text: Type$2.TString;
|
|
4363
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
4364
|
-
}>, Type$2.TObject<{
|
|
4365
|
-
type: Type$2.TLiteral<"image">;
|
|
4366
|
-
data: Type$2.TString;
|
|
4367
|
-
mimeType: Type$2.TString;
|
|
4368
|
-
}>]>>;
|
|
4369
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
4370
|
-
isError: Type$2.TLiteral<false>;
|
|
4371
|
-
}>;
|
|
4372
|
-
}>, Type$2.TObject<{
|
|
4373
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
4374
|
-
callID: Type$2.TString;
|
|
4375
|
-
name: Type$2.TString;
|
|
4376
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
4377
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
4378
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
4379
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
4380
|
-
time: Type$2.TObject<{
|
|
4381
|
-
start: Type$2.TNumber;
|
|
4382
|
-
end: Type$2.TNumber;
|
|
4383
|
-
}>;
|
|
4384
|
-
status: Type$2.TLiteral<"error">;
|
|
4385
|
-
result: Type$2.TObject<{
|
|
4386
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
4387
|
-
type: Type$2.TLiteral<"text">;
|
|
4388
|
-
text: Type$2.TString;
|
|
4389
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
4390
|
-
}>, Type$2.TObject<{
|
|
4391
|
-
type: Type$2.TLiteral<"image">;
|
|
4392
|
-
data: Type$2.TString;
|
|
4393
|
-
mimeType: Type$2.TString;
|
|
4394
|
-
}>]>>;
|
|
4395
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
4396
|
-
isError: Type$2.TLiteral<true>;
|
|
4397
|
-
}>;
|
|
4398
|
-
}>, Type$2.TObject<{
|
|
4399
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
4400
|
-
callID: Type$2.TString;
|
|
4401
|
-
name: Type$2.TString;
|
|
4402
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
4403
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
4404
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
4405
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
4406
|
-
time: Type$2.TObject<{
|
|
4407
|
-
start: Type$2.TNumber;
|
|
4408
|
-
end: Type$2.TNumber;
|
|
4409
|
-
}>;
|
|
4410
|
-
status: Type$2.TLiteral<"skipped">;
|
|
4411
|
-
result: Type$2.TObject<{
|
|
4412
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
4413
|
-
type: Type$2.TLiteral<"text">;
|
|
4414
|
-
text: Type$2.TString;
|
|
4415
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
4416
|
-
}>, Type$2.TObject<{
|
|
4417
|
-
type: Type$2.TLiteral<"image">;
|
|
4418
|
-
data: Type$2.TString;
|
|
4419
|
-
mimeType: Type$2.TString;
|
|
4420
|
-
}>]>>;
|
|
4421
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
4422
|
-
isError: Type$2.TLiteral<true>;
|
|
4423
|
-
}>;
|
|
4424
|
-
}>, Type$2.TObject<{
|
|
4425
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
4426
|
-
callID: Type$2.TString;
|
|
4427
|
-
name: Type$2.TString;
|
|
4428
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
4429
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
4430
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
4431
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
4432
|
-
time: Type$2.TObject<{
|
|
4433
|
-
start: Type$2.TNumber;
|
|
4434
|
-
end: Type$2.TNumber;
|
|
4435
|
-
}>;
|
|
4436
|
-
status: Type$2.TLiteral<"aborted">;
|
|
4437
|
-
result: Type$2.TObject<{
|
|
4438
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
4439
|
-
type: Type$2.TLiteral<"text">;
|
|
4440
|
-
text: Type$2.TString;
|
|
4441
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
4442
|
-
}>, Type$2.TObject<{
|
|
4443
|
-
type: Type$2.TLiteral<"image">;
|
|
4444
|
-
data: Type$2.TString;
|
|
4445
|
-
mimeType: Type$2.TString;
|
|
4446
|
-
}>]>>;
|
|
4447
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
4448
|
-
isError: Type$2.TLiteral<true>;
|
|
4449
|
-
}>;
|
|
4450
|
-
}>]>;
|
|
4451
|
-
}>;
|
|
4452
|
-
type ToolExecutionEnd = Static$1<typeof ToolExecutionEndSchema>;
|
|
4453
|
-
/**
|
|
4454
|
-
* Events emitted by the Agent lifecycle
|
|
4455
|
-
* These events provide fine-grained lifecycle information for messages, turns, and tool execution.
|
|
4456
|
-
*/
|
|
4457
|
-
declare const AgentEventSchema: Type$2.TUnion<[Type$2.TObject<{
|
|
4458
|
-
type: Type$2.TLiteral<"agent.start">;
|
|
4459
|
-
}>, Type$2.TObject<{
|
|
4460
|
-
type: Type$2.TLiteral<"agent.end">;
|
|
4461
|
-
messages: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
4462
|
-
messageId: Type$2.TString;
|
|
4463
|
-
role: Type$2.TLiteral<"user">;
|
|
4464
|
-
time: Type$2.TObject<{
|
|
4465
|
-
created: Type$2.TNumber;
|
|
4466
|
-
}>;
|
|
4467
|
-
parts: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
4468
|
-
type: Type$2.TLiteral<"text">;
|
|
4469
|
-
text: Type$2.TString;
|
|
4470
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
4471
|
-
}>, Type$2.TObject<{
|
|
4472
|
-
type: Type$2.TLiteral<"image">;
|
|
4473
|
-
data: Type$2.TString;
|
|
4474
|
-
mimeType: Type$2.TString;
|
|
4475
|
-
}>]>>;
|
|
4476
|
-
}>, Type$2.TObject<{
|
|
4477
|
-
role: Type$2.TLiteral<"assistant">;
|
|
4478
|
-
protocol: Type$2.TUnion<[Type$2.TLiteral<"anthropic">, Type$2.TLiteral<"google">, Type$2.TLiteral<"google-vertex">, Type$2.TLiteral<"google-vertex-anthropic">, Type$2.TLiteral<"openai">, Type$2.TLiteral<"openai-compatible">, Type$2.TLiteral<"openai-codex">, Type$2.TLiteral<"openrouter">, Type$2.TLiteral<"xai">]>;
|
|
4479
|
-
provider: Type$2.TObject<{
|
|
4480
|
-
id: Type$2.TString;
|
|
4481
|
-
name: Type$2.TString;
|
|
4482
|
-
source: Type$2.TEnum<["env", "config", "custom", "api", "unknown"]>;
|
|
4483
|
-
env: Type$2.TArray<Type$2.TString>;
|
|
4484
|
-
key: Type$2.TOptional<Type$2.TString>;
|
|
4485
|
-
options: Type$2.TOptional<Type$2.TRecord<"^.*$", Type$2.TAny>>;
|
|
4486
|
-
}>;
|
|
4487
|
-
model: Type$2.TString;
|
|
4488
|
-
usage: Type$2.TObject<{
|
|
4489
|
-
input: Type$2.TNumber;
|
|
4490
|
-
output: Type$2.TNumber;
|
|
4491
|
-
cacheRead: Type$2.TNumber;
|
|
4492
|
-
cacheWrite: Type$2.TNumber;
|
|
4493
|
-
reasoning: Type$2.TOptional<Type$2.TNumber>;
|
|
4494
|
-
totalTokens: Type$2.TNumber;
|
|
4495
|
-
cost: Type$2.TObject<{
|
|
4496
|
-
input: Type$2.TNumber;
|
|
4497
|
-
output: Type$2.TNumber;
|
|
4498
|
-
cacheRead: Type$2.TNumber;
|
|
4499
|
-
cacheWrite: Type$2.TNumber;
|
|
4500
|
-
total: Type$2.TNumber;
|
|
4501
|
-
}>;
|
|
4502
|
-
}>;
|
|
4503
|
-
stopReason: Type$2.TUnion<[Type$2.TLiteral<"stop">, Type$2.TLiteral<"length">, Type$2.TLiteral<"toolUse">, Type$2.TLiteral<"error">, Type$2.TLiteral<"aborted">]>;
|
|
4504
|
-
errorMessage: Type$2.TOptional<Type$2.TString>;
|
|
4505
|
-
failure: Type$2.TOptional<Type$2.TUnion<[Type$2.TObject<{
|
|
4506
|
-
message: Type$2.TString;
|
|
4507
|
-
retryable: Type$2.TBoolean;
|
|
4508
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
4509
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
4510
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
4511
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
4512
|
-
_tag: Type$2.TLiteral<"Authentication">;
|
|
4513
|
-
reason: Type$2.TUnion<[Type$2.TLiteral<"missing">, Type$2.TLiteral<"invalid">, Type$2.TLiteral<"expired">]>;
|
|
4514
|
-
}>, Type$2.TObject<{
|
|
4515
|
-
message: Type$2.TString;
|
|
4516
|
-
retryable: Type$2.TBoolean;
|
|
4517
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
4518
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
4519
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
4520
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
4521
|
-
_tag: Type$2.TLiteral<"Configuration">;
|
|
4522
|
-
}>, Type$2.TObject<{
|
|
4523
|
-
message: Type$2.TString;
|
|
4524
|
-
retryable: Type$2.TBoolean;
|
|
4525
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
4526
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
4527
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
4528
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
4529
|
-
_tag: Type$2.TLiteral<"Authorization">;
|
|
4530
|
-
}>, Type$2.TObject<{
|
|
4531
|
-
message: Type$2.TString;
|
|
4532
|
-
retryable: Type$2.TBoolean;
|
|
4533
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
4534
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
4535
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
4536
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
4537
|
-
_tag: Type$2.TLiteral<"ModelUnavailable">;
|
|
4538
|
-
}>, Type$2.TObject<{
|
|
4539
|
-
message: Type$2.TString;
|
|
4540
|
-
retryable: Type$2.TBoolean;
|
|
4541
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
4542
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
4543
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
4544
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
4545
|
-
_tag: Type$2.TLiteral<"RateLimit">;
|
|
4546
|
-
}>, Type$2.TObject<{
|
|
4547
|
-
message: Type$2.TString;
|
|
4548
|
-
retryable: Type$2.TBoolean;
|
|
4549
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
4550
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
4551
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
4552
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
4553
|
-
_tag: Type$2.TLiteral<"Quota">;
|
|
4554
|
-
}>, Type$2.TObject<{
|
|
4555
|
-
message: Type$2.TString;
|
|
4556
|
-
retryable: Type$2.TBoolean;
|
|
4557
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
4558
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
4559
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
4560
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
4561
|
-
_tag: Type$2.TLiteral<"InvalidRequest">;
|
|
4562
|
-
}>, Type$2.TObject<{
|
|
4563
|
-
message: Type$2.TString;
|
|
4564
|
-
retryable: Type$2.TBoolean;
|
|
4565
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
4566
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
4567
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
4568
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
4569
|
-
_tag: Type$2.TLiteral<"ContentPolicy">;
|
|
4570
|
-
}>, Type$2.TObject<{
|
|
4571
|
-
message: Type$2.TString;
|
|
4572
|
-
retryable: Type$2.TBoolean;
|
|
4573
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
4574
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
4575
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
4576
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
4577
|
-
_tag: Type$2.TLiteral<"Timeout">;
|
|
4578
|
-
}>, Type$2.TObject<{
|
|
4579
|
-
message: Type$2.TString;
|
|
4580
|
-
retryable: Type$2.TBoolean;
|
|
4581
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
4582
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
4583
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
4584
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
4585
|
-
_tag: Type$2.TLiteral<"Transport">;
|
|
4586
|
-
}>, Type$2.TObject<{
|
|
4587
|
-
message: Type$2.TString;
|
|
4588
|
-
retryable: Type$2.TBoolean;
|
|
4589
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
4590
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
4591
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
4592
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
4593
|
-
_tag: Type$2.TLiteral<"Unavailable">;
|
|
4594
|
-
}>, Type$2.TObject<{
|
|
4595
|
-
message: Type$2.TString;
|
|
4596
|
-
retryable: Type$2.TBoolean;
|
|
4597
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
4598
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
4599
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
4600
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
4601
|
-
_tag: Type$2.TLiteral<"InvalidResponse">;
|
|
4602
|
-
}>, Type$2.TObject<{
|
|
4603
|
-
message: Type$2.TString;
|
|
4604
|
-
retryable: Type$2.TBoolean;
|
|
4605
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
4606
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
4607
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
4608
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
4609
|
-
_tag: Type$2.TLiteral<"Unknown">;
|
|
4610
|
-
}>]>>;
|
|
4611
|
-
time: Type$2.TObject<{
|
|
4612
|
-
created: Type$2.TNumber;
|
|
4613
|
-
completed: Type$2.TNumber;
|
|
4614
|
-
}>;
|
|
4615
|
-
parts: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
4616
|
-
type: Type$2.TLiteral<"text">;
|
|
4617
|
-
text: Type$2.TString;
|
|
4618
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
4619
|
-
}>, Type$2.TObject<{
|
|
4620
|
-
type: Type$2.TLiteral<"image">;
|
|
4621
|
-
data: Type$2.TString;
|
|
4622
|
-
mimeType: Type$2.TString;
|
|
4623
|
-
}>, Type$2.TObject<{
|
|
4624
|
-
type: Type$2.TLiteral<"thinking">;
|
|
4625
|
-
thinking: Type$2.TString;
|
|
4626
|
-
thinkingSignature: Type$2.TOptional<Type$2.TString>;
|
|
4627
|
-
redacted: Type$2.TOptional<Type$2.TBoolean>;
|
|
4628
|
-
}>, Type$2.TUnion<[Type$2.TIntersect<[Type$2.TObject<{
|
|
4629
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
4630
|
-
callID: Type$2.TString;
|
|
4631
|
-
name: Type$2.TString;
|
|
4632
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
4633
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
4634
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
4635
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
4636
|
-
time: Type$2.TObject<{
|
|
4637
|
-
start: Type$2.TNumber;
|
|
4638
|
-
end: Type$2.TNumber;
|
|
4639
|
-
}>;
|
|
4640
|
-
}>, Type$2.TObject<{
|
|
4641
|
-
status: Type$2.TLiteral<"pending">;
|
|
4642
|
-
}>]>, Type$2.TObject<{
|
|
4643
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
4644
|
-
callID: Type$2.TString;
|
|
4645
|
-
name: Type$2.TString;
|
|
4646
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
4647
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
4648
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
4649
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
4650
|
-
time: Type$2.TObject<{
|
|
4651
|
-
start: Type$2.TNumber;
|
|
4652
|
-
end: Type$2.TNumber;
|
|
4653
|
-
}>;
|
|
4654
|
-
status: Type$2.TLiteral<"running">;
|
|
4655
|
-
partial: Type$2.TOptional<Type$2.TObject<{
|
|
4656
|
-
content: Type$2.TOptional<Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
4657
|
-
type: Type$2.TLiteral<"text">;
|
|
4658
|
-
text: Type$2.TString;
|
|
4659
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
4660
|
-
}>, Type$2.TObject<{
|
|
4661
|
-
type: Type$2.TLiteral<"image">;
|
|
4662
|
-
data: Type$2.TString;
|
|
4663
|
-
mimeType: Type$2.TString;
|
|
4664
|
-
}>]>>>;
|
|
4665
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
4666
|
-
}>>;
|
|
4667
|
-
}>, Type$2.TUnion<[Type$2.TObject<{
|
|
4668
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
4669
|
-
callID: Type$2.TString;
|
|
4670
|
-
name: Type$2.TString;
|
|
4671
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
4672
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
4673
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
4674
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
4675
|
-
time: Type$2.TObject<{
|
|
4676
|
-
start: Type$2.TNumber;
|
|
4677
|
-
end: Type$2.TNumber;
|
|
4678
|
-
}>;
|
|
4679
|
-
status: Type$2.TLiteral<"completed">;
|
|
4680
|
-
result: Type$2.TObject<{
|
|
4681
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
4682
|
-
type: Type$2.TLiteral<"text">;
|
|
4683
|
-
text: Type$2.TString;
|
|
4684
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
4685
|
-
}>, Type$2.TObject<{
|
|
4686
|
-
type: Type$2.TLiteral<"image">;
|
|
4687
|
-
data: Type$2.TString;
|
|
4688
|
-
mimeType: Type$2.TString;
|
|
4689
|
-
}>]>>;
|
|
4690
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
4691
|
-
isError: Type$2.TLiteral<false>;
|
|
4692
|
-
}>;
|
|
4693
|
-
}>, Type$2.TObject<{
|
|
4694
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
4695
|
-
callID: Type$2.TString;
|
|
4696
|
-
name: Type$2.TString;
|
|
4697
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
4698
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
4699
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
4700
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
4701
|
-
time: Type$2.TObject<{
|
|
4702
|
-
start: Type$2.TNumber;
|
|
4703
|
-
end: Type$2.TNumber;
|
|
4704
|
-
}>;
|
|
4705
|
-
status: Type$2.TLiteral<"error">;
|
|
4706
|
-
result: Type$2.TObject<{
|
|
4707
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
4708
|
-
type: Type$2.TLiteral<"text">;
|
|
4709
|
-
text: Type$2.TString;
|
|
4710
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
4711
|
-
}>, Type$2.TObject<{
|
|
4712
|
-
type: Type$2.TLiteral<"image">;
|
|
4713
|
-
data: Type$2.TString;
|
|
4714
|
-
mimeType: Type$2.TString;
|
|
4715
|
-
}>]>>;
|
|
4716
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
4717
|
-
isError: Type$2.TLiteral<true>;
|
|
4718
|
-
}>;
|
|
4719
|
-
}>, Type$2.TObject<{
|
|
4720
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
4721
|
-
callID: Type$2.TString;
|
|
4722
|
-
name: Type$2.TString;
|
|
4723
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
4724
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
4725
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
4726
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
4727
|
-
time: Type$2.TObject<{
|
|
4728
|
-
start: Type$2.TNumber;
|
|
4729
|
-
end: Type$2.TNumber;
|
|
4730
|
-
}>;
|
|
4731
|
-
status: Type$2.TLiteral<"skipped">;
|
|
4732
|
-
result: Type$2.TObject<{
|
|
4733
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
4734
|
-
type: Type$2.TLiteral<"text">;
|
|
4735
|
-
text: Type$2.TString;
|
|
4736
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
4737
|
-
}>, Type$2.TObject<{
|
|
4738
|
-
type: Type$2.TLiteral<"image">;
|
|
4739
|
-
data: Type$2.TString;
|
|
4740
|
-
mimeType: Type$2.TString;
|
|
4741
|
-
}>]>>;
|
|
4742
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
4743
|
-
isError: Type$2.TLiteral<true>;
|
|
4744
|
-
}>;
|
|
4745
|
-
}>, Type$2.TObject<{
|
|
4746
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
4747
|
-
callID: Type$2.TString;
|
|
4748
|
-
name: Type$2.TString;
|
|
4749
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
4750
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
4751
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
4752
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
4753
|
-
time: Type$2.TObject<{
|
|
4754
|
-
start: Type$2.TNumber;
|
|
4755
|
-
end: Type$2.TNumber;
|
|
4756
|
-
}>;
|
|
4757
|
-
status: Type$2.TLiteral<"aborted">;
|
|
4758
|
-
result: Type$2.TObject<{
|
|
4759
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
4760
|
-
type: Type$2.TLiteral<"text">;
|
|
4761
|
-
text: Type$2.TString;
|
|
4762
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
4763
|
-
}>, Type$2.TObject<{
|
|
4764
|
-
type: Type$2.TLiteral<"image">;
|
|
4765
|
-
data: Type$2.TString;
|
|
4766
|
-
mimeType: Type$2.TString;
|
|
4767
|
-
}>]>>;
|
|
4768
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
4769
|
-
isError: Type$2.TLiteral<true>;
|
|
4770
|
-
}>;
|
|
4771
|
-
}>]>]>]>>;
|
|
4772
|
-
responseId: Type$2.TOptional<Type$2.TString>;
|
|
4773
|
-
responseModel: Type$2.TOptional<Type$2.TString>;
|
|
4774
|
-
messageId: Type$2.TString;
|
|
4775
|
-
}>]>>;
|
|
4776
|
-
}>, Type$2.TObject<{
|
|
4777
|
-
type: Type$2.TLiteral<"turn.start">;
|
|
4778
|
-
}>, Type$2.TObject<{
|
|
4779
|
-
type: Type$2.TLiteral<"turn.end">;
|
|
4780
|
-
message: Type$2.TObject<{
|
|
4781
|
-
role: Type$2.TLiteral<"assistant">;
|
|
4782
|
-
protocol: Type$2.TUnion<[Type$2.TLiteral<"anthropic">, Type$2.TLiteral<"google">, Type$2.TLiteral<"google-vertex">, Type$2.TLiteral<"google-vertex-anthropic">, Type$2.TLiteral<"openai">, Type$2.TLiteral<"openai-compatible">, Type$2.TLiteral<"openai-codex">, Type$2.TLiteral<"openrouter">, Type$2.TLiteral<"xai">]>;
|
|
4783
|
-
provider: Type$2.TObject<{
|
|
4784
|
-
id: Type$2.TString;
|
|
4785
|
-
name: Type$2.TString;
|
|
4786
|
-
source: Type$2.TEnum<["env", "config", "custom", "api", "unknown"]>;
|
|
4787
|
-
env: Type$2.TArray<Type$2.TString>;
|
|
4788
|
-
key: Type$2.TOptional<Type$2.TString>;
|
|
4789
|
-
options: Type$2.TOptional<Type$2.TRecord<"^.*$", Type$2.TAny>>;
|
|
4790
|
-
}>;
|
|
4791
|
-
model: Type$2.TString;
|
|
4792
|
-
usage: Type$2.TObject<{
|
|
4793
|
-
input: Type$2.TNumber;
|
|
4794
|
-
output: Type$2.TNumber;
|
|
4795
|
-
cacheRead: Type$2.TNumber;
|
|
4796
|
-
cacheWrite: Type$2.TNumber;
|
|
4797
|
-
reasoning: Type$2.TOptional<Type$2.TNumber>;
|
|
4798
|
-
totalTokens: Type$2.TNumber;
|
|
4799
|
-
cost: Type$2.TObject<{
|
|
4800
|
-
input: Type$2.TNumber;
|
|
4801
|
-
output: Type$2.TNumber;
|
|
4802
|
-
cacheRead: Type$2.TNumber;
|
|
4803
|
-
cacheWrite: Type$2.TNumber;
|
|
4804
|
-
total: Type$2.TNumber;
|
|
4805
|
-
}>;
|
|
4806
|
-
}>;
|
|
4807
|
-
stopReason: Type$2.TUnion<[Type$2.TLiteral<"stop">, Type$2.TLiteral<"length">, Type$2.TLiteral<"toolUse">, Type$2.TLiteral<"error">, Type$2.TLiteral<"aborted">]>;
|
|
4808
|
-
errorMessage: Type$2.TOptional<Type$2.TString>;
|
|
4809
|
-
failure: Type$2.TOptional<Type$2.TUnion<[Type$2.TObject<{
|
|
4810
|
-
message: Type$2.TString;
|
|
4811
|
-
retryable: Type$2.TBoolean;
|
|
4812
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
4813
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
4814
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
4815
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
4816
|
-
_tag: Type$2.TLiteral<"Authentication">;
|
|
4817
|
-
reason: Type$2.TUnion<[Type$2.TLiteral<"missing">, Type$2.TLiteral<"invalid">, Type$2.TLiteral<"expired">]>;
|
|
4818
|
-
}>, Type$2.TObject<{
|
|
4819
|
-
message: Type$2.TString;
|
|
4820
|
-
retryable: Type$2.TBoolean;
|
|
4821
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
4822
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
4823
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
4824
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
4825
|
-
_tag: Type$2.TLiteral<"Configuration">;
|
|
4826
|
-
}>, Type$2.TObject<{
|
|
4827
|
-
message: Type$2.TString;
|
|
4828
|
-
retryable: Type$2.TBoolean;
|
|
4829
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
4830
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
4831
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
4832
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
4833
|
-
_tag: Type$2.TLiteral<"Authorization">;
|
|
4834
|
-
}>, Type$2.TObject<{
|
|
4835
|
-
message: Type$2.TString;
|
|
4836
|
-
retryable: Type$2.TBoolean;
|
|
4837
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
4838
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
4839
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
4840
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
4841
|
-
_tag: Type$2.TLiteral<"ModelUnavailable">;
|
|
4842
|
-
}>, Type$2.TObject<{
|
|
4843
|
-
message: Type$2.TString;
|
|
4844
|
-
retryable: Type$2.TBoolean;
|
|
4845
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
4846
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
4847
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
4848
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
4849
|
-
_tag: Type$2.TLiteral<"RateLimit">;
|
|
4850
|
-
}>, Type$2.TObject<{
|
|
4851
|
-
message: Type$2.TString;
|
|
4852
|
-
retryable: Type$2.TBoolean;
|
|
4853
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
4854
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
4855
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
4856
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
4857
|
-
_tag: Type$2.TLiteral<"Quota">;
|
|
4858
|
-
}>, Type$2.TObject<{
|
|
4859
|
-
message: Type$2.TString;
|
|
4860
|
-
retryable: Type$2.TBoolean;
|
|
4861
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
4862
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
4863
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
4864
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
4865
|
-
_tag: Type$2.TLiteral<"InvalidRequest">;
|
|
4866
|
-
}>, Type$2.TObject<{
|
|
4867
|
-
message: Type$2.TString;
|
|
4868
|
-
retryable: Type$2.TBoolean;
|
|
4869
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
4870
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
4871
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
4872
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
4873
|
-
_tag: Type$2.TLiteral<"ContentPolicy">;
|
|
4874
|
-
}>, Type$2.TObject<{
|
|
4875
|
-
message: Type$2.TString;
|
|
4876
|
-
retryable: Type$2.TBoolean;
|
|
4877
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
4878
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
4879
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
4880
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
4881
|
-
_tag: Type$2.TLiteral<"Timeout">;
|
|
4882
|
-
}>, Type$2.TObject<{
|
|
4883
|
-
message: Type$2.TString;
|
|
4884
|
-
retryable: Type$2.TBoolean;
|
|
4885
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
4886
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
4887
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
4888
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
4889
|
-
_tag: Type$2.TLiteral<"Transport">;
|
|
4890
|
-
}>, Type$2.TObject<{
|
|
4891
|
-
message: Type$2.TString;
|
|
4892
|
-
retryable: Type$2.TBoolean;
|
|
4893
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
4894
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
4895
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
4896
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
4897
|
-
_tag: Type$2.TLiteral<"Unavailable">;
|
|
4898
|
-
}>, Type$2.TObject<{
|
|
4899
|
-
message: Type$2.TString;
|
|
4900
|
-
retryable: Type$2.TBoolean;
|
|
4901
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
4902
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
4903
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
4904
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
4905
|
-
_tag: Type$2.TLiteral<"InvalidResponse">;
|
|
4906
|
-
}>, Type$2.TObject<{
|
|
4907
|
-
message: Type$2.TString;
|
|
4908
|
-
retryable: Type$2.TBoolean;
|
|
4909
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
4910
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
4911
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
4912
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
4913
|
-
_tag: Type$2.TLiteral<"Unknown">;
|
|
4914
|
-
}>]>>;
|
|
4915
|
-
time: Type$2.TObject<{
|
|
4916
|
-
created: Type$2.TNumber;
|
|
4917
|
-
completed: Type$2.TNumber;
|
|
4918
|
-
}>;
|
|
4919
|
-
parts: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
4920
|
-
type: Type$2.TLiteral<"text">;
|
|
4921
|
-
text: Type$2.TString;
|
|
4922
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
4923
|
-
}>, Type$2.TObject<{
|
|
4924
|
-
type: Type$2.TLiteral<"image">;
|
|
4925
|
-
data: Type$2.TString;
|
|
4926
|
-
mimeType: Type$2.TString;
|
|
4927
|
-
}>, Type$2.TObject<{
|
|
4928
|
-
type: Type$2.TLiteral<"thinking">;
|
|
4929
|
-
thinking: Type$2.TString;
|
|
4930
|
-
thinkingSignature: Type$2.TOptional<Type$2.TString>;
|
|
4931
|
-
redacted: Type$2.TOptional<Type$2.TBoolean>;
|
|
4932
|
-
}>, Type$2.TUnion<[Type$2.TIntersect<[Type$2.TObject<{
|
|
4933
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
4934
|
-
callID: Type$2.TString;
|
|
4935
|
-
name: Type$2.TString;
|
|
4936
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
4937
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
4938
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
4939
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
4940
|
-
time: Type$2.TObject<{
|
|
4941
|
-
start: Type$2.TNumber;
|
|
4942
|
-
end: Type$2.TNumber;
|
|
4943
|
-
}>;
|
|
4944
|
-
}>, Type$2.TObject<{
|
|
4945
|
-
status: Type$2.TLiteral<"pending">;
|
|
4946
|
-
}>]>, Type$2.TObject<{
|
|
4947
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
4948
|
-
callID: Type$2.TString;
|
|
4949
|
-
name: Type$2.TString;
|
|
4950
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
4951
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
4952
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
4953
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
4954
|
-
time: Type$2.TObject<{
|
|
4955
|
-
start: Type$2.TNumber;
|
|
4956
|
-
end: Type$2.TNumber;
|
|
4957
|
-
}>;
|
|
4958
|
-
status: Type$2.TLiteral<"running">;
|
|
4959
|
-
partial: Type$2.TOptional<Type$2.TObject<{
|
|
4960
|
-
content: Type$2.TOptional<Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
4961
|
-
type: Type$2.TLiteral<"text">;
|
|
4962
|
-
text: Type$2.TString;
|
|
4963
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
4964
|
-
}>, Type$2.TObject<{
|
|
4965
|
-
type: Type$2.TLiteral<"image">;
|
|
4966
|
-
data: Type$2.TString;
|
|
4967
|
-
mimeType: Type$2.TString;
|
|
4968
|
-
}>]>>>;
|
|
4969
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
4970
|
-
}>>;
|
|
4971
|
-
}>, Type$2.TUnion<[Type$2.TObject<{
|
|
4972
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
4973
|
-
callID: Type$2.TString;
|
|
4974
|
-
name: Type$2.TString;
|
|
4975
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
4976
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
4977
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
4978
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
4979
|
-
time: Type$2.TObject<{
|
|
4980
|
-
start: Type$2.TNumber;
|
|
4981
|
-
end: Type$2.TNumber;
|
|
4982
|
-
}>;
|
|
4983
|
-
status: Type$2.TLiteral<"completed">;
|
|
4984
|
-
result: Type$2.TObject<{
|
|
4985
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
4986
|
-
type: Type$2.TLiteral<"text">;
|
|
4987
|
-
text: Type$2.TString;
|
|
4988
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
4989
|
-
}>, Type$2.TObject<{
|
|
4990
|
-
type: Type$2.TLiteral<"image">;
|
|
4991
|
-
data: Type$2.TString;
|
|
4992
|
-
mimeType: Type$2.TString;
|
|
4993
|
-
}>]>>;
|
|
4994
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
4995
|
-
isError: Type$2.TLiteral<false>;
|
|
4996
|
-
}>;
|
|
4997
|
-
}>, Type$2.TObject<{
|
|
4998
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
4999
|
-
callID: Type$2.TString;
|
|
5000
|
-
name: Type$2.TString;
|
|
5001
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
5002
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
5003
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
5004
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
5005
|
-
time: Type$2.TObject<{
|
|
5006
|
-
start: Type$2.TNumber;
|
|
5007
|
-
end: Type$2.TNumber;
|
|
5008
|
-
}>;
|
|
5009
|
-
status: Type$2.TLiteral<"error">;
|
|
5010
|
-
result: Type$2.TObject<{
|
|
5011
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
5012
|
-
type: Type$2.TLiteral<"text">;
|
|
5013
|
-
text: Type$2.TString;
|
|
5014
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
5015
|
-
}>, Type$2.TObject<{
|
|
5016
|
-
type: Type$2.TLiteral<"image">;
|
|
5017
|
-
data: Type$2.TString;
|
|
5018
|
-
mimeType: Type$2.TString;
|
|
5019
|
-
}>]>>;
|
|
5020
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
5021
|
-
isError: Type$2.TLiteral<true>;
|
|
5022
|
-
}>;
|
|
5023
|
-
}>, Type$2.TObject<{
|
|
5024
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
5025
|
-
callID: Type$2.TString;
|
|
5026
|
-
name: Type$2.TString;
|
|
5027
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
5028
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
5029
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
5030
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
5031
|
-
time: Type$2.TObject<{
|
|
5032
|
-
start: Type$2.TNumber;
|
|
5033
|
-
end: Type$2.TNumber;
|
|
5034
|
-
}>;
|
|
5035
|
-
status: Type$2.TLiteral<"skipped">;
|
|
5036
|
-
result: Type$2.TObject<{
|
|
5037
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
5038
|
-
type: Type$2.TLiteral<"text">;
|
|
5039
|
-
text: Type$2.TString;
|
|
5040
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
5041
|
-
}>, Type$2.TObject<{
|
|
5042
|
-
type: Type$2.TLiteral<"image">;
|
|
5043
|
-
data: Type$2.TString;
|
|
5044
|
-
mimeType: Type$2.TString;
|
|
5045
|
-
}>]>>;
|
|
5046
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
5047
|
-
isError: Type$2.TLiteral<true>;
|
|
5048
|
-
}>;
|
|
5049
|
-
}>, Type$2.TObject<{
|
|
5050
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
5051
|
-
callID: Type$2.TString;
|
|
5052
|
-
name: Type$2.TString;
|
|
5053
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
5054
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
5055
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
5056
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
5057
|
-
time: Type$2.TObject<{
|
|
5058
|
-
start: Type$2.TNumber;
|
|
5059
|
-
end: Type$2.TNumber;
|
|
5060
|
-
}>;
|
|
5061
|
-
status: Type$2.TLiteral<"aborted">;
|
|
5062
|
-
result: Type$2.TObject<{
|
|
5063
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
5064
|
-
type: Type$2.TLiteral<"text">;
|
|
5065
|
-
text: Type$2.TString;
|
|
5066
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
5067
|
-
}>, Type$2.TObject<{
|
|
5068
|
-
type: Type$2.TLiteral<"image">;
|
|
5069
|
-
data: Type$2.TString;
|
|
5070
|
-
mimeType: Type$2.TString;
|
|
5071
|
-
}>]>>;
|
|
5072
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
5073
|
-
isError: Type$2.TLiteral<true>;
|
|
5074
|
-
}>;
|
|
5075
|
-
}>]>]>]>>;
|
|
5076
|
-
responseId: Type$2.TOptional<Type$2.TString>;
|
|
5077
|
-
responseModel: Type$2.TOptional<Type$2.TString>;
|
|
5078
|
-
messageId: Type$2.TString;
|
|
5079
|
-
}>;
|
|
5080
|
-
}>, Type$2.TObject<{
|
|
5081
|
-
type: Type$2.TLiteral<"message.start">;
|
|
5082
|
-
message: Type$2.TUnion<[Type$2.TObject<{
|
|
5083
|
-
messageId: Type$2.TString;
|
|
5084
|
-
role: Type$2.TLiteral<"user">;
|
|
5085
|
-
time: Type$2.TObject<{
|
|
5086
|
-
created: Type$2.TNumber;
|
|
5087
|
-
}>;
|
|
5088
|
-
parts: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
5089
|
-
type: Type$2.TLiteral<"text">;
|
|
5090
|
-
text: Type$2.TString;
|
|
5091
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
5092
|
-
}>, Type$2.TObject<{
|
|
5093
|
-
type: Type$2.TLiteral<"image">;
|
|
5094
|
-
data: Type$2.TString;
|
|
5095
|
-
mimeType: Type$2.TString;
|
|
5096
|
-
}>]>>;
|
|
5097
|
-
}>, Type$2.TObject<{
|
|
5098
|
-
role: Type$2.TLiteral<"assistant">;
|
|
5099
|
-
protocol: Type$2.TUnion<[Type$2.TLiteral<"anthropic">, Type$2.TLiteral<"google">, Type$2.TLiteral<"google-vertex">, Type$2.TLiteral<"google-vertex-anthropic">, Type$2.TLiteral<"openai">, Type$2.TLiteral<"openai-compatible">, Type$2.TLiteral<"openai-codex">, Type$2.TLiteral<"openrouter">, Type$2.TLiteral<"xai">]>;
|
|
5100
|
-
provider: Type$2.TObject<{
|
|
5101
|
-
id: Type$2.TString;
|
|
5102
|
-
name: Type$2.TString;
|
|
5103
|
-
source: Type$2.TEnum<["env", "config", "custom", "api", "unknown"]>;
|
|
5104
|
-
env: Type$2.TArray<Type$2.TString>;
|
|
5105
|
-
key: Type$2.TOptional<Type$2.TString>;
|
|
5106
|
-
options: Type$2.TOptional<Type$2.TRecord<"^.*$", Type$2.TAny>>;
|
|
5107
|
-
}>;
|
|
5108
|
-
model: Type$2.TString;
|
|
5109
|
-
usage: Type$2.TObject<{
|
|
5110
|
-
input: Type$2.TNumber;
|
|
5111
|
-
output: Type$2.TNumber;
|
|
5112
|
-
cacheRead: Type$2.TNumber;
|
|
5113
|
-
cacheWrite: Type$2.TNumber;
|
|
5114
|
-
reasoning: Type$2.TOptional<Type$2.TNumber>;
|
|
5115
|
-
totalTokens: Type$2.TNumber;
|
|
5116
|
-
cost: Type$2.TObject<{
|
|
5117
|
-
input: Type$2.TNumber;
|
|
5118
|
-
output: Type$2.TNumber;
|
|
5119
|
-
cacheRead: Type$2.TNumber;
|
|
5120
|
-
cacheWrite: Type$2.TNumber;
|
|
5121
|
-
total: Type$2.TNumber;
|
|
5122
|
-
}>;
|
|
5123
|
-
}>;
|
|
5124
|
-
stopReason: Type$2.TUnion<[Type$2.TLiteral<"stop">, Type$2.TLiteral<"length">, Type$2.TLiteral<"toolUse">, Type$2.TLiteral<"error">, Type$2.TLiteral<"aborted">]>;
|
|
5125
|
-
errorMessage: Type$2.TOptional<Type$2.TString>;
|
|
5126
|
-
failure: Type$2.TOptional<Type$2.TUnion<[Type$2.TObject<{
|
|
5127
|
-
message: Type$2.TString;
|
|
5128
|
-
retryable: Type$2.TBoolean;
|
|
5129
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5130
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5131
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5132
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5133
|
-
_tag: Type$2.TLiteral<"Authentication">;
|
|
5134
|
-
reason: Type$2.TUnion<[Type$2.TLiteral<"missing">, Type$2.TLiteral<"invalid">, Type$2.TLiteral<"expired">]>;
|
|
5135
|
-
}>, Type$2.TObject<{
|
|
5136
|
-
message: Type$2.TString;
|
|
5137
|
-
retryable: Type$2.TBoolean;
|
|
5138
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5139
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5140
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5141
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5142
|
-
_tag: Type$2.TLiteral<"Configuration">;
|
|
5143
|
-
}>, Type$2.TObject<{
|
|
5144
|
-
message: Type$2.TString;
|
|
5145
|
-
retryable: Type$2.TBoolean;
|
|
5146
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5147
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5148
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5149
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5150
|
-
_tag: Type$2.TLiteral<"Authorization">;
|
|
5151
|
-
}>, Type$2.TObject<{
|
|
5152
|
-
message: Type$2.TString;
|
|
5153
|
-
retryable: Type$2.TBoolean;
|
|
5154
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5155
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5156
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5157
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5158
|
-
_tag: Type$2.TLiteral<"ModelUnavailable">;
|
|
5159
|
-
}>, Type$2.TObject<{
|
|
5160
|
-
message: Type$2.TString;
|
|
5161
|
-
retryable: Type$2.TBoolean;
|
|
5162
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5163
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5164
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5165
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5166
|
-
_tag: Type$2.TLiteral<"RateLimit">;
|
|
5167
|
-
}>, Type$2.TObject<{
|
|
5168
|
-
message: Type$2.TString;
|
|
5169
|
-
retryable: Type$2.TBoolean;
|
|
5170
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5171
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5172
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5173
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5174
|
-
_tag: Type$2.TLiteral<"Quota">;
|
|
5175
|
-
}>, Type$2.TObject<{
|
|
5176
|
-
message: Type$2.TString;
|
|
5177
|
-
retryable: Type$2.TBoolean;
|
|
5178
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5179
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5180
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5181
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5182
|
-
_tag: Type$2.TLiteral<"InvalidRequest">;
|
|
5183
|
-
}>, Type$2.TObject<{
|
|
5184
|
-
message: Type$2.TString;
|
|
5185
|
-
retryable: Type$2.TBoolean;
|
|
5186
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5187
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5188
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5189
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5190
|
-
_tag: Type$2.TLiteral<"ContentPolicy">;
|
|
5191
|
-
}>, Type$2.TObject<{
|
|
5192
|
-
message: Type$2.TString;
|
|
5193
|
-
retryable: Type$2.TBoolean;
|
|
5194
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5195
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5196
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5197
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5198
|
-
_tag: Type$2.TLiteral<"Timeout">;
|
|
5199
|
-
}>, Type$2.TObject<{
|
|
5200
|
-
message: Type$2.TString;
|
|
5201
|
-
retryable: Type$2.TBoolean;
|
|
5202
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5203
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5204
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5205
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5206
|
-
_tag: Type$2.TLiteral<"Transport">;
|
|
5207
|
-
}>, Type$2.TObject<{
|
|
5208
|
-
message: Type$2.TString;
|
|
5209
|
-
retryable: Type$2.TBoolean;
|
|
5210
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5211
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5212
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5213
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5214
|
-
_tag: Type$2.TLiteral<"Unavailable">;
|
|
5215
|
-
}>, Type$2.TObject<{
|
|
5216
|
-
message: Type$2.TString;
|
|
5217
|
-
retryable: Type$2.TBoolean;
|
|
5218
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5219
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5220
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5221
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5222
|
-
_tag: Type$2.TLiteral<"InvalidResponse">;
|
|
5223
|
-
}>, Type$2.TObject<{
|
|
5224
|
-
message: Type$2.TString;
|
|
5225
|
-
retryable: Type$2.TBoolean;
|
|
5226
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5227
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5228
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5229
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5230
|
-
_tag: Type$2.TLiteral<"Unknown">;
|
|
5231
|
-
}>]>>;
|
|
5232
|
-
time: Type$2.TObject<{
|
|
5233
|
-
created: Type$2.TNumber;
|
|
5234
|
-
completed: Type$2.TNumber;
|
|
5235
|
-
}>;
|
|
5236
|
-
parts: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
5237
|
-
type: Type$2.TLiteral<"text">;
|
|
5238
|
-
text: Type$2.TString;
|
|
5239
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
5240
|
-
}>, Type$2.TObject<{
|
|
5241
|
-
type: Type$2.TLiteral<"image">;
|
|
5242
|
-
data: Type$2.TString;
|
|
5243
|
-
mimeType: Type$2.TString;
|
|
5244
|
-
}>, Type$2.TObject<{
|
|
5245
|
-
type: Type$2.TLiteral<"thinking">;
|
|
5246
|
-
thinking: Type$2.TString;
|
|
5247
|
-
thinkingSignature: Type$2.TOptional<Type$2.TString>;
|
|
5248
|
-
redacted: Type$2.TOptional<Type$2.TBoolean>;
|
|
5249
|
-
}>, Type$2.TUnion<[Type$2.TIntersect<[Type$2.TObject<{
|
|
5250
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
5251
|
-
callID: Type$2.TString;
|
|
5252
|
-
name: Type$2.TString;
|
|
5253
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
5254
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
5255
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
5256
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
5257
|
-
time: Type$2.TObject<{
|
|
5258
|
-
start: Type$2.TNumber;
|
|
5259
|
-
end: Type$2.TNumber;
|
|
5260
|
-
}>;
|
|
5261
|
-
}>, Type$2.TObject<{
|
|
5262
|
-
status: Type$2.TLiteral<"pending">;
|
|
5263
|
-
}>]>, Type$2.TObject<{
|
|
5264
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
5265
|
-
callID: Type$2.TString;
|
|
5266
|
-
name: Type$2.TString;
|
|
5267
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
5268
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
5269
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
5270
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
5271
|
-
time: Type$2.TObject<{
|
|
5272
|
-
start: Type$2.TNumber;
|
|
5273
|
-
end: Type$2.TNumber;
|
|
5274
|
-
}>;
|
|
5275
|
-
status: Type$2.TLiteral<"running">;
|
|
5276
|
-
partial: Type$2.TOptional<Type$2.TObject<{
|
|
5277
|
-
content: Type$2.TOptional<Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
5278
|
-
type: Type$2.TLiteral<"text">;
|
|
5279
|
-
text: Type$2.TString;
|
|
5280
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
5281
|
-
}>, Type$2.TObject<{
|
|
5282
|
-
type: Type$2.TLiteral<"image">;
|
|
5283
|
-
data: Type$2.TString;
|
|
5284
|
-
mimeType: Type$2.TString;
|
|
5285
|
-
}>]>>>;
|
|
5286
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
5287
|
-
}>>;
|
|
5288
|
-
}>, Type$2.TUnion<[Type$2.TObject<{
|
|
5289
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
5290
|
-
callID: Type$2.TString;
|
|
5291
|
-
name: Type$2.TString;
|
|
5292
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
5293
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
5294
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
5295
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
5296
|
-
time: Type$2.TObject<{
|
|
5297
|
-
start: Type$2.TNumber;
|
|
5298
|
-
end: Type$2.TNumber;
|
|
5299
|
-
}>;
|
|
5300
|
-
status: Type$2.TLiteral<"completed">;
|
|
5301
|
-
result: Type$2.TObject<{
|
|
5302
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
5303
|
-
type: Type$2.TLiteral<"text">;
|
|
5304
|
-
text: Type$2.TString;
|
|
5305
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
5306
|
-
}>, Type$2.TObject<{
|
|
5307
|
-
type: Type$2.TLiteral<"image">;
|
|
5308
|
-
data: Type$2.TString;
|
|
5309
|
-
mimeType: Type$2.TString;
|
|
5310
|
-
}>]>>;
|
|
5311
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
5312
|
-
isError: Type$2.TLiteral<false>;
|
|
5313
|
-
}>;
|
|
5314
|
-
}>, Type$2.TObject<{
|
|
5315
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
5316
|
-
callID: Type$2.TString;
|
|
5317
|
-
name: Type$2.TString;
|
|
5318
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
5319
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
5320
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
5321
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
5322
|
-
time: Type$2.TObject<{
|
|
5323
|
-
start: Type$2.TNumber;
|
|
5324
|
-
end: Type$2.TNumber;
|
|
5325
|
-
}>;
|
|
5326
|
-
status: Type$2.TLiteral<"error">;
|
|
5327
|
-
result: Type$2.TObject<{
|
|
5328
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
5329
|
-
type: Type$2.TLiteral<"text">;
|
|
5330
|
-
text: Type$2.TString;
|
|
5331
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
5332
|
-
}>, Type$2.TObject<{
|
|
5333
|
-
type: Type$2.TLiteral<"image">;
|
|
5334
|
-
data: Type$2.TString;
|
|
5335
|
-
mimeType: Type$2.TString;
|
|
5336
|
-
}>]>>;
|
|
5337
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
5338
|
-
isError: Type$2.TLiteral<true>;
|
|
5339
|
-
}>;
|
|
5340
|
-
}>, Type$2.TObject<{
|
|
5341
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
5342
|
-
callID: Type$2.TString;
|
|
5343
|
-
name: Type$2.TString;
|
|
5344
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
5345
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
5346
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
5347
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
5348
|
-
time: Type$2.TObject<{
|
|
5349
|
-
start: Type$2.TNumber;
|
|
5350
|
-
end: Type$2.TNumber;
|
|
5351
|
-
}>;
|
|
5352
|
-
status: Type$2.TLiteral<"skipped">;
|
|
5353
|
-
result: Type$2.TObject<{
|
|
5354
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
5355
|
-
type: Type$2.TLiteral<"text">;
|
|
5356
|
-
text: Type$2.TString;
|
|
5357
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
5358
|
-
}>, Type$2.TObject<{
|
|
5359
|
-
type: Type$2.TLiteral<"image">;
|
|
5360
|
-
data: Type$2.TString;
|
|
5361
|
-
mimeType: Type$2.TString;
|
|
5362
|
-
}>]>>;
|
|
5363
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
5364
|
-
isError: Type$2.TLiteral<true>;
|
|
5365
|
-
}>;
|
|
5366
|
-
}>, Type$2.TObject<{
|
|
5367
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
5368
|
-
callID: Type$2.TString;
|
|
5369
|
-
name: Type$2.TString;
|
|
5370
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
5371
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
5372
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
5373
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
5374
|
-
time: Type$2.TObject<{
|
|
5375
|
-
start: Type$2.TNumber;
|
|
5376
|
-
end: Type$2.TNumber;
|
|
5377
|
-
}>;
|
|
5378
|
-
status: Type$2.TLiteral<"aborted">;
|
|
5379
|
-
result: Type$2.TObject<{
|
|
5380
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
5381
|
-
type: Type$2.TLiteral<"text">;
|
|
5382
|
-
text: Type$2.TString;
|
|
5383
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
5384
|
-
}>, Type$2.TObject<{
|
|
5385
|
-
type: Type$2.TLiteral<"image">;
|
|
5386
|
-
data: Type$2.TString;
|
|
5387
|
-
mimeType: Type$2.TString;
|
|
5388
|
-
}>]>>;
|
|
5389
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
5390
|
-
isError: Type$2.TLiteral<true>;
|
|
5391
|
-
}>;
|
|
5392
|
-
}>]>]>]>>;
|
|
5393
|
-
responseId: Type$2.TOptional<Type$2.TString>;
|
|
5394
|
-
responseModel: Type$2.TOptional<Type$2.TString>;
|
|
5395
|
-
messageId: Type$2.TString;
|
|
5396
|
-
}>]>;
|
|
5397
|
-
}>, Type$2.TUnion<[Type$2.TObject<{
|
|
5398
|
-
type: Type$2.TLiteral<"message.part.start">;
|
|
5399
|
-
message: Type$2.TObject<{
|
|
5400
|
-
messageId: Type$2.TString;
|
|
5401
|
-
role: Type$2.TLiteral<"user">;
|
|
5402
|
-
time: Type$2.TObject<{
|
|
5403
|
-
created: Type$2.TNumber;
|
|
5404
|
-
}>;
|
|
5405
|
-
parts: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
5406
|
-
type: Type$2.TLiteral<"text">;
|
|
5407
|
-
text: Type$2.TString;
|
|
5408
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
5409
|
-
}>, Type$2.TObject<{
|
|
5410
|
-
type: Type$2.TLiteral<"image">;
|
|
5411
|
-
data: Type$2.TString;
|
|
5412
|
-
mimeType: Type$2.TString;
|
|
5413
|
-
}>]>>;
|
|
5414
|
-
}>;
|
|
5415
|
-
partIndex: Type$2.TNumber;
|
|
5416
|
-
part: Type$2.TUnion<[Type$2.TObject<{
|
|
5417
|
-
type: Type$2.TLiteral<"text">;
|
|
5418
|
-
text: Type$2.TString;
|
|
5419
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
5420
|
-
}>, Type$2.TObject<{
|
|
5421
|
-
type: Type$2.TLiteral<"image">;
|
|
5422
|
-
data: Type$2.TString;
|
|
5423
|
-
mimeType: Type$2.TString;
|
|
5424
|
-
}>]>;
|
|
5425
|
-
}>, Type$2.TObject<{
|
|
5426
|
-
type: Type$2.TLiteral<"message.part.end">;
|
|
5427
|
-
message: Type$2.TObject<{
|
|
5428
|
-
messageId: Type$2.TString;
|
|
5429
|
-
role: Type$2.TLiteral<"user">;
|
|
5430
|
-
time: Type$2.TObject<{
|
|
5431
|
-
created: Type$2.TNumber;
|
|
5432
|
-
}>;
|
|
5433
|
-
parts: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
5434
|
-
type: Type$2.TLiteral<"text">;
|
|
5435
|
-
text: Type$2.TString;
|
|
5436
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
5437
|
-
}>, Type$2.TObject<{
|
|
5438
|
-
type: Type$2.TLiteral<"image">;
|
|
5439
|
-
data: Type$2.TString;
|
|
5440
|
-
mimeType: Type$2.TString;
|
|
5441
|
-
}>]>>;
|
|
5442
|
-
}>;
|
|
5443
|
-
partIndex: Type$2.TNumber;
|
|
5444
|
-
part: Type$2.TUnion<[Type$2.TObject<{
|
|
5445
|
-
type: Type$2.TLiteral<"text">;
|
|
5446
|
-
text: Type$2.TString;
|
|
5447
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
5448
|
-
}>, Type$2.TObject<{
|
|
5449
|
-
type: Type$2.TLiteral<"image">;
|
|
5450
|
-
data: Type$2.TString;
|
|
5451
|
-
mimeType: Type$2.TString;
|
|
5452
|
-
}>]>;
|
|
5453
|
-
}>]>, Type$2.TUnion<[Type$2.TObject<{
|
|
5454
|
-
type: Type$2.TLiteral<"message.part.start">;
|
|
5455
|
-
message: Type$2.TObject<{
|
|
5456
|
-
role: Type$2.TLiteral<"assistant">;
|
|
5457
|
-
protocol: Type$2.TUnion<[Type$2.TLiteral<"anthropic">, Type$2.TLiteral<"google">, Type$2.TLiteral<"google-vertex">, Type$2.TLiteral<"google-vertex-anthropic">, Type$2.TLiteral<"openai">, Type$2.TLiteral<"openai-compatible">, Type$2.TLiteral<"openai-codex">, Type$2.TLiteral<"openrouter">, Type$2.TLiteral<"xai">]>;
|
|
5458
|
-
provider: Type$2.TObject<{
|
|
5459
|
-
id: Type$2.TString;
|
|
5460
|
-
name: Type$2.TString;
|
|
5461
|
-
source: Type$2.TEnum<["env", "config", "custom", "api", "unknown"]>;
|
|
5462
|
-
env: Type$2.TArray<Type$2.TString>;
|
|
5463
|
-
key: Type$2.TOptional<Type$2.TString>;
|
|
5464
|
-
options: Type$2.TOptional<Type$2.TRecord<"^.*$", Type$2.TAny>>;
|
|
5465
|
-
}>;
|
|
5466
|
-
model: Type$2.TString;
|
|
5467
|
-
usage: Type$2.TObject<{
|
|
5468
|
-
input: Type$2.TNumber;
|
|
5469
|
-
output: Type$2.TNumber;
|
|
5470
|
-
cacheRead: Type$2.TNumber;
|
|
5471
|
-
cacheWrite: Type$2.TNumber;
|
|
5472
|
-
reasoning: Type$2.TOptional<Type$2.TNumber>;
|
|
5473
|
-
totalTokens: Type$2.TNumber;
|
|
5474
|
-
cost: Type$2.TObject<{
|
|
5475
|
-
input: Type$2.TNumber;
|
|
5476
|
-
output: Type$2.TNumber;
|
|
5477
|
-
cacheRead: Type$2.TNumber;
|
|
5478
|
-
cacheWrite: Type$2.TNumber;
|
|
5479
|
-
total: Type$2.TNumber;
|
|
5480
|
-
}>;
|
|
5481
|
-
}>;
|
|
5482
|
-
stopReason: Type$2.TUnion<[Type$2.TLiteral<"stop">, Type$2.TLiteral<"length">, Type$2.TLiteral<"toolUse">, Type$2.TLiteral<"error">, Type$2.TLiteral<"aborted">]>;
|
|
5483
|
-
errorMessage: Type$2.TOptional<Type$2.TString>;
|
|
5484
|
-
failure: Type$2.TOptional<Type$2.TUnion<[Type$2.TObject<{
|
|
5485
|
-
message: Type$2.TString;
|
|
5486
|
-
retryable: Type$2.TBoolean;
|
|
5487
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5488
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5489
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5490
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5491
|
-
_tag: Type$2.TLiteral<"Authentication">;
|
|
5492
|
-
reason: Type$2.TUnion<[Type$2.TLiteral<"missing">, Type$2.TLiteral<"invalid">, Type$2.TLiteral<"expired">]>;
|
|
5493
|
-
}>, Type$2.TObject<{
|
|
5494
|
-
message: Type$2.TString;
|
|
5495
|
-
retryable: Type$2.TBoolean;
|
|
5496
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5497
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5498
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5499
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5500
|
-
_tag: Type$2.TLiteral<"Configuration">;
|
|
5501
|
-
}>, Type$2.TObject<{
|
|
5502
|
-
message: Type$2.TString;
|
|
5503
|
-
retryable: Type$2.TBoolean;
|
|
5504
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5505
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5506
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5507
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5508
|
-
_tag: Type$2.TLiteral<"Authorization">;
|
|
5509
|
-
}>, Type$2.TObject<{
|
|
5510
|
-
message: Type$2.TString;
|
|
5511
|
-
retryable: Type$2.TBoolean;
|
|
5512
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5513
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5514
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5515
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5516
|
-
_tag: Type$2.TLiteral<"ModelUnavailable">;
|
|
5517
|
-
}>, Type$2.TObject<{
|
|
5518
|
-
message: Type$2.TString;
|
|
5519
|
-
retryable: Type$2.TBoolean;
|
|
5520
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5521
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5522
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5523
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5524
|
-
_tag: Type$2.TLiteral<"RateLimit">;
|
|
5525
|
-
}>, Type$2.TObject<{
|
|
5526
|
-
message: Type$2.TString;
|
|
5527
|
-
retryable: Type$2.TBoolean;
|
|
5528
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5529
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5530
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5531
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5532
|
-
_tag: Type$2.TLiteral<"Quota">;
|
|
5533
|
-
}>, Type$2.TObject<{
|
|
5534
|
-
message: Type$2.TString;
|
|
5535
|
-
retryable: Type$2.TBoolean;
|
|
5536
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5537
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5538
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5539
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5540
|
-
_tag: Type$2.TLiteral<"InvalidRequest">;
|
|
5541
|
-
}>, Type$2.TObject<{
|
|
5542
|
-
message: Type$2.TString;
|
|
5543
|
-
retryable: Type$2.TBoolean;
|
|
5544
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5545
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5546
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5547
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5548
|
-
_tag: Type$2.TLiteral<"ContentPolicy">;
|
|
5549
|
-
}>, Type$2.TObject<{
|
|
5550
|
-
message: Type$2.TString;
|
|
5551
|
-
retryable: Type$2.TBoolean;
|
|
5552
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5553
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5554
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5555
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5556
|
-
_tag: Type$2.TLiteral<"Timeout">;
|
|
5557
|
-
}>, Type$2.TObject<{
|
|
5558
|
-
message: Type$2.TString;
|
|
5559
|
-
retryable: Type$2.TBoolean;
|
|
5560
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5561
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5562
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5563
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5564
|
-
_tag: Type$2.TLiteral<"Transport">;
|
|
5565
|
-
}>, Type$2.TObject<{
|
|
5566
|
-
message: Type$2.TString;
|
|
5567
|
-
retryable: Type$2.TBoolean;
|
|
5568
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5569
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5570
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5571
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5572
|
-
_tag: Type$2.TLiteral<"Unavailable">;
|
|
5573
|
-
}>, Type$2.TObject<{
|
|
5574
|
-
message: Type$2.TString;
|
|
5575
|
-
retryable: Type$2.TBoolean;
|
|
5576
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5577
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5578
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5579
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5580
|
-
_tag: Type$2.TLiteral<"InvalidResponse">;
|
|
5581
|
-
}>, Type$2.TObject<{
|
|
5582
|
-
message: Type$2.TString;
|
|
5583
|
-
retryable: Type$2.TBoolean;
|
|
5584
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5585
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5586
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5587
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5588
|
-
_tag: Type$2.TLiteral<"Unknown">;
|
|
5589
|
-
}>]>>;
|
|
5590
|
-
time: Type$2.TObject<{
|
|
5591
|
-
created: Type$2.TNumber;
|
|
5592
|
-
completed: Type$2.TNumber;
|
|
5593
|
-
}>;
|
|
5594
|
-
parts: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
5595
|
-
type: Type$2.TLiteral<"text">;
|
|
5596
|
-
text: Type$2.TString;
|
|
5597
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
5598
|
-
}>, Type$2.TObject<{
|
|
5599
|
-
type: Type$2.TLiteral<"image">;
|
|
5600
|
-
data: Type$2.TString;
|
|
5601
|
-
mimeType: Type$2.TString;
|
|
5602
|
-
}>, Type$2.TObject<{
|
|
5603
|
-
type: Type$2.TLiteral<"thinking">;
|
|
5604
|
-
thinking: Type$2.TString;
|
|
5605
|
-
thinkingSignature: Type$2.TOptional<Type$2.TString>;
|
|
5606
|
-
redacted: Type$2.TOptional<Type$2.TBoolean>;
|
|
5607
|
-
}>, Type$2.TUnion<[Type$2.TIntersect<[Type$2.TObject<{
|
|
5608
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
5609
|
-
callID: Type$2.TString;
|
|
5610
|
-
name: Type$2.TString;
|
|
5611
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
5612
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
5613
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
5614
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
5615
|
-
time: Type$2.TObject<{
|
|
5616
|
-
start: Type$2.TNumber;
|
|
5617
|
-
end: Type$2.TNumber;
|
|
5618
|
-
}>;
|
|
5619
|
-
}>, Type$2.TObject<{
|
|
5620
|
-
status: Type$2.TLiteral<"pending">;
|
|
5621
|
-
}>]>, Type$2.TObject<{
|
|
5622
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
5623
|
-
callID: Type$2.TString;
|
|
5624
|
-
name: Type$2.TString;
|
|
5625
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
5626
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
5627
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
5628
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
5629
|
-
time: Type$2.TObject<{
|
|
5630
|
-
start: Type$2.TNumber;
|
|
5631
|
-
end: Type$2.TNumber;
|
|
5632
|
-
}>;
|
|
5633
|
-
status: Type$2.TLiteral<"running">;
|
|
5634
|
-
partial: Type$2.TOptional<Type$2.TObject<{
|
|
5635
|
-
content: Type$2.TOptional<Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
5636
|
-
type: Type$2.TLiteral<"text">;
|
|
5637
|
-
text: Type$2.TString;
|
|
5638
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
5639
|
-
}>, Type$2.TObject<{
|
|
5640
|
-
type: Type$2.TLiteral<"image">;
|
|
5641
|
-
data: Type$2.TString;
|
|
5642
|
-
mimeType: Type$2.TString;
|
|
5643
|
-
}>]>>>;
|
|
5644
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
5645
|
-
}>>;
|
|
5646
|
-
}>, Type$2.TUnion<[Type$2.TObject<{
|
|
5647
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
5648
|
-
callID: Type$2.TString;
|
|
5649
|
-
name: Type$2.TString;
|
|
5650
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
5651
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
5652
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
5653
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
5654
|
-
time: Type$2.TObject<{
|
|
5655
|
-
start: Type$2.TNumber;
|
|
5656
|
-
end: Type$2.TNumber;
|
|
5657
|
-
}>;
|
|
5658
|
-
status: Type$2.TLiteral<"completed">;
|
|
5659
|
-
result: Type$2.TObject<{
|
|
5660
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
5661
|
-
type: Type$2.TLiteral<"text">;
|
|
5662
|
-
text: Type$2.TString;
|
|
5663
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
5664
|
-
}>, Type$2.TObject<{
|
|
5665
|
-
type: Type$2.TLiteral<"image">;
|
|
5666
|
-
data: Type$2.TString;
|
|
5667
|
-
mimeType: Type$2.TString;
|
|
5668
|
-
}>]>>;
|
|
5669
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
5670
|
-
isError: Type$2.TLiteral<false>;
|
|
5671
|
-
}>;
|
|
5672
|
-
}>, Type$2.TObject<{
|
|
5673
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
5674
|
-
callID: Type$2.TString;
|
|
5675
|
-
name: Type$2.TString;
|
|
5676
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
5677
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
5678
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
5679
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
5680
|
-
time: Type$2.TObject<{
|
|
5681
|
-
start: Type$2.TNumber;
|
|
5682
|
-
end: Type$2.TNumber;
|
|
5683
|
-
}>;
|
|
5684
|
-
status: Type$2.TLiteral<"error">;
|
|
5685
|
-
result: Type$2.TObject<{
|
|
5686
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
5687
|
-
type: Type$2.TLiteral<"text">;
|
|
5688
|
-
text: Type$2.TString;
|
|
5689
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
5690
|
-
}>, Type$2.TObject<{
|
|
5691
|
-
type: Type$2.TLiteral<"image">;
|
|
5692
|
-
data: Type$2.TString;
|
|
5693
|
-
mimeType: Type$2.TString;
|
|
5694
|
-
}>]>>;
|
|
5695
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
5696
|
-
isError: Type$2.TLiteral<true>;
|
|
5697
|
-
}>;
|
|
5698
|
-
}>, Type$2.TObject<{
|
|
5699
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
5700
|
-
callID: Type$2.TString;
|
|
5701
|
-
name: Type$2.TString;
|
|
5702
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
5703
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
5704
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
5705
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
5706
|
-
time: Type$2.TObject<{
|
|
5707
|
-
start: Type$2.TNumber;
|
|
5708
|
-
end: Type$2.TNumber;
|
|
5709
|
-
}>;
|
|
5710
|
-
status: Type$2.TLiteral<"skipped">;
|
|
5711
|
-
result: Type$2.TObject<{
|
|
5712
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
5713
|
-
type: Type$2.TLiteral<"text">;
|
|
5714
|
-
text: Type$2.TString;
|
|
5715
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
5716
|
-
}>, Type$2.TObject<{
|
|
5717
|
-
type: Type$2.TLiteral<"image">;
|
|
5718
|
-
data: Type$2.TString;
|
|
5719
|
-
mimeType: Type$2.TString;
|
|
5720
|
-
}>]>>;
|
|
5721
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
5722
|
-
isError: Type$2.TLiteral<true>;
|
|
5723
|
-
}>;
|
|
5724
|
-
}>, Type$2.TObject<{
|
|
5725
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
5726
|
-
callID: Type$2.TString;
|
|
5727
|
-
name: Type$2.TString;
|
|
5728
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
5729
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
5730
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
5731
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
5732
|
-
time: Type$2.TObject<{
|
|
5733
|
-
start: Type$2.TNumber;
|
|
5734
|
-
end: Type$2.TNumber;
|
|
5735
|
-
}>;
|
|
5736
|
-
status: Type$2.TLiteral<"aborted">;
|
|
5737
|
-
result: Type$2.TObject<{
|
|
5738
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
5739
|
-
type: Type$2.TLiteral<"text">;
|
|
5740
|
-
text: Type$2.TString;
|
|
5741
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
5742
|
-
}>, Type$2.TObject<{
|
|
5743
|
-
type: Type$2.TLiteral<"image">;
|
|
5744
|
-
data: Type$2.TString;
|
|
5745
|
-
mimeType: Type$2.TString;
|
|
5746
|
-
}>]>>;
|
|
5747
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
5748
|
-
isError: Type$2.TLiteral<true>;
|
|
5749
|
-
}>;
|
|
5750
|
-
}>]>]>]>>;
|
|
5751
|
-
responseId: Type$2.TOptional<Type$2.TString>;
|
|
5752
|
-
responseModel: Type$2.TOptional<Type$2.TString>;
|
|
5753
|
-
messageId: Type$2.TString;
|
|
5754
|
-
}>;
|
|
5755
|
-
partIndex: Type$2.TNumber;
|
|
5756
|
-
part: Type$2.TUnion<[Type$2.TObject<{
|
|
5757
|
-
type: Type$2.TLiteral<"text">;
|
|
5758
|
-
text: Type$2.TString;
|
|
5759
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
5760
|
-
}>, Type$2.TObject<{
|
|
5761
|
-
type: Type$2.TLiteral<"image">;
|
|
5762
|
-
data: Type$2.TString;
|
|
5763
|
-
mimeType: Type$2.TString;
|
|
5764
|
-
}>, Type$2.TObject<{
|
|
5765
|
-
type: Type$2.TLiteral<"thinking">;
|
|
5766
|
-
thinking: Type$2.TString;
|
|
5767
|
-
thinkingSignature: Type$2.TOptional<Type$2.TString>;
|
|
5768
|
-
redacted: Type$2.TOptional<Type$2.TBoolean>;
|
|
5769
|
-
}>, Type$2.TUnion<[Type$2.TIntersect<[Type$2.TObject<{
|
|
5770
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
5771
|
-
callID: Type$2.TString;
|
|
5772
|
-
name: Type$2.TString;
|
|
5773
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
5774
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
5775
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
5776
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
5777
|
-
time: Type$2.TObject<{
|
|
5778
|
-
start: Type$2.TNumber;
|
|
5779
|
-
end: Type$2.TNumber;
|
|
5780
|
-
}>;
|
|
5781
|
-
}>, Type$2.TObject<{
|
|
5782
|
-
status: Type$2.TLiteral<"pending">;
|
|
5783
|
-
}>]>, Type$2.TObject<{
|
|
5784
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
5785
|
-
callID: Type$2.TString;
|
|
5786
|
-
name: Type$2.TString;
|
|
5787
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
5788
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
5789
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
5790
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
5791
|
-
time: Type$2.TObject<{
|
|
5792
|
-
start: Type$2.TNumber;
|
|
5793
|
-
end: Type$2.TNumber;
|
|
5794
|
-
}>;
|
|
5795
|
-
status: Type$2.TLiteral<"running">;
|
|
5796
|
-
partial: Type$2.TOptional<Type$2.TObject<{
|
|
5797
|
-
content: Type$2.TOptional<Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
5798
|
-
type: Type$2.TLiteral<"text">;
|
|
5799
|
-
text: Type$2.TString;
|
|
5800
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
5801
|
-
}>, Type$2.TObject<{
|
|
5802
|
-
type: Type$2.TLiteral<"image">;
|
|
5803
|
-
data: Type$2.TString;
|
|
5804
|
-
mimeType: Type$2.TString;
|
|
5805
|
-
}>]>>>;
|
|
5806
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
5807
|
-
}>>;
|
|
5808
|
-
}>, Type$2.TUnion<[Type$2.TObject<{
|
|
5809
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
5810
|
-
callID: Type$2.TString;
|
|
5811
|
-
name: Type$2.TString;
|
|
5812
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
5813
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
5814
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
5815
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
5816
|
-
time: Type$2.TObject<{
|
|
5817
|
-
start: Type$2.TNumber;
|
|
5818
|
-
end: Type$2.TNumber;
|
|
5819
|
-
}>;
|
|
5820
|
-
status: Type$2.TLiteral<"completed">;
|
|
5821
|
-
result: Type$2.TObject<{
|
|
5822
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
5823
|
-
type: Type$2.TLiteral<"text">;
|
|
5824
|
-
text: Type$2.TString;
|
|
5825
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
5826
|
-
}>, Type$2.TObject<{
|
|
5827
|
-
type: Type$2.TLiteral<"image">;
|
|
5828
|
-
data: Type$2.TString;
|
|
5829
|
-
mimeType: Type$2.TString;
|
|
5830
|
-
}>]>>;
|
|
5831
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
5832
|
-
isError: Type$2.TLiteral<false>;
|
|
5833
|
-
}>;
|
|
5834
|
-
}>, Type$2.TObject<{
|
|
5835
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
5836
|
-
callID: Type$2.TString;
|
|
5837
|
-
name: Type$2.TString;
|
|
5838
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
5839
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
5840
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
5841
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
5842
|
-
time: Type$2.TObject<{
|
|
5843
|
-
start: Type$2.TNumber;
|
|
5844
|
-
end: Type$2.TNumber;
|
|
5845
|
-
}>;
|
|
5846
|
-
status: Type$2.TLiteral<"error">;
|
|
5847
|
-
result: Type$2.TObject<{
|
|
5848
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
5849
|
-
type: Type$2.TLiteral<"text">;
|
|
5850
|
-
text: Type$2.TString;
|
|
5851
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
5852
|
-
}>, Type$2.TObject<{
|
|
5853
|
-
type: Type$2.TLiteral<"image">;
|
|
5854
|
-
data: Type$2.TString;
|
|
5855
|
-
mimeType: Type$2.TString;
|
|
5856
|
-
}>]>>;
|
|
5857
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
5858
|
-
isError: Type$2.TLiteral<true>;
|
|
5859
|
-
}>;
|
|
5860
|
-
}>, Type$2.TObject<{
|
|
5861
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
5862
|
-
callID: Type$2.TString;
|
|
5863
|
-
name: Type$2.TString;
|
|
5864
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
5865
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
5866
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
5867
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
5868
|
-
time: Type$2.TObject<{
|
|
5869
|
-
start: Type$2.TNumber;
|
|
5870
|
-
end: Type$2.TNumber;
|
|
5871
|
-
}>;
|
|
5872
|
-
status: Type$2.TLiteral<"skipped">;
|
|
5873
|
-
result: Type$2.TObject<{
|
|
5874
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
5875
|
-
type: Type$2.TLiteral<"text">;
|
|
5876
|
-
text: Type$2.TString;
|
|
5877
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
5878
|
-
}>, Type$2.TObject<{
|
|
5879
|
-
type: Type$2.TLiteral<"image">;
|
|
5880
|
-
data: Type$2.TString;
|
|
5881
|
-
mimeType: Type$2.TString;
|
|
5882
|
-
}>]>>;
|
|
5883
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
5884
|
-
isError: Type$2.TLiteral<true>;
|
|
5885
|
-
}>;
|
|
5886
|
-
}>, Type$2.TObject<{
|
|
5887
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
5888
|
-
callID: Type$2.TString;
|
|
5889
|
-
name: Type$2.TString;
|
|
5890
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
5891
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
5892
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
5893
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
5894
|
-
time: Type$2.TObject<{
|
|
5895
|
-
start: Type$2.TNumber;
|
|
5896
|
-
end: Type$2.TNumber;
|
|
5897
|
-
}>;
|
|
5898
|
-
status: Type$2.TLiteral<"aborted">;
|
|
5899
|
-
result: Type$2.TObject<{
|
|
5900
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
5901
|
-
type: Type$2.TLiteral<"text">;
|
|
5902
|
-
text: Type$2.TString;
|
|
5903
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
5904
|
-
}>, Type$2.TObject<{
|
|
5905
|
-
type: Type$2.TLiteral<"image">;
|
|
5906
|
-
data: Type$2.TString;
|
|
5907
|
-
mimeType: Type$2.TString;
|
|
5908
|
-
}>]>>;
|
|
5909
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
5910
|
-
isError: Type$2.TLiteral<true>;
|
|
5911
|
-
}>;
|
|
5912
|
-
}>]>]>]>;
|
|
5913
|
-
}>, Type$2.TObject<{
|
|
5914
|
-
type: Type$2.TLiteral<"message.part.update">;
|
|
5915
|
-
message: Type$2.TObject<{
|
|
5916
|
-
role: Type$2.TLiteral<"assistant">;
|
|
5917
|
-
protocol: Type$2.TUnion<[Type$2.TLiteral<"anthropic">, Type$2.TLiteral<"google">, Type$2.TLiteral<"google-vertex">, Type$2.TLiteral<"google-vertex-anthropic">, Type$2.TLiteral<"openai">, Type$2.TLiteral<"openai-compatible">, Type$2.TLiteral<"openai-codex">, Type$2.TLiteral<"openrouter">, Type$2.TLiteral<"xai">]>;
|
|
5918
|
-
provider: Type$2.TObject<{
|
|
5919
|
-
id: Type$2.TString;
|
|
5920
|
-
name: Type$2.TString;
|
|
5921
|
-
source: Type$2.TEnum<["env", "config", "custom", "api", "unknown"]>;
|
|
5922
|
-
env: Type$2.TArray<Type$2.TString>;
|
|
5923
|
-
key: Type$2.TOptional<Type$2.TString>;
|
|
5924
|
-
options: Type$2.TOptional<Type$2.TRecord<"^.*$", Type$2.TAny>>;
|
|
5925
|
-
}>;
|
|
5926
|
-
model: Type$2.TString;
|
|
5927
|
-
usage: Type$2.TObject<{
|
|
5928
|
-
input: Type$2.TNumber;
|
|
5929
|
-
output: Type$2.TNumber;
|
|
5930
|
-
cacheRead: Type$2.TNumber;
|
|
5931
|
-
cacheWrite: Type$2.TNumber;
|
|
5932
|
-
reasoning: Type$2.TOptional<Type$2.TNumber>;
|
|
5933
|
-
totalTokens: Type$2.TNumber;
|
|
5934
|
-
cost: Type$2.TObject<{
|
|
5935
|
-
input: Type$2.TNumber;
|
|
5936
|
-
output: Type$2.TNumber;
|
|
5937
|
-
cacheRead: Type$2.TNumber;
|
|
5938
|
-
cacheWrite: Type$2.TNumber;
|
|
5939
|
-
total: Type$2.TNumber;
|
|
5940
|
-
}>;
|
|
5941
|
-
}>;
|
|
5942
|
-
stopReason: Type$2.TUnion<[Type$2.TLiteral<"stop">, Type$2.TLiteral<"length">, Type$2.TLiteral<"toolUse">, Type$2.TLiteral<"error">, Type$2.TLiteral<"aborted">]>;
|
|
5943
|
-
errorMessage: Type$2.TOptional<Type$2.TString>;
|
|
5944
|
-
failure: Type$2.TOptional<Type$2.TUnion<[Type$2.TObject<{
|
|
5945
|
-
message: Type$2.TString;
|
|
5946
|
-
retryable: Type$2.TBoolean;
|
|
5947
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5948
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5949
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5950
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5951
|
-
_tag: Type$2.TLiteral<"Authentication">;
|
|
5952
|
-
reason: Type$2.TUnion<[Type$2.TLiteral<"missing">, Type$2.TLiteral<"invalid">, Type$2.TLiteral<"expired">]>;
|
|
5953
|
-
}>, Type$2.TObject<{
|
|
5954
|
-
message: Type$2.TString;
|
|
5955
|
-
retryable: Type$2.TBoolean;
|
|
5956
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5957
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5958
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5959
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5960
|
-
_tag: Type$2.TLiteral<"Configuration">;
|
|
5961
|
-
}>, Type$2.TObject<{
|
|
5962
|
-
message: Type$2.TString;
|
|
5963
|
-
retryable: Type$2.TBoolean;
|
|
5964
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5965
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5966
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5967
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5968
|
-
_tag: Type$2.TLiteral<"Authorization">;
|
|
5969
|
-
}>, Type$2.TObject<{
|
|
5970
|
-
message: Type$2.TString;
|
|
5971
|
-
retryable: Type$2.TBoolean;
|
|
5972
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5973
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5974
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5975
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5976
|
-
_tag: Type$2.TLiteral<"ModelUnavailable">;
|
|
5977
|
-
}>, Type$2.TObject<{
|
|
5978
|
-
message: Type$2.TString;
|
|
5979
|
-
retryable: Type$2.TBoolean;
|
|
5980
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5981
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5982
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5983
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5984
|
-
_tag: Type$2.TLiteral<"RateLimit">;
|
|
5985
|
-
}>, Type$2.TObject<{
|
|
5986
|
-
message: Type$2.TString;
|
|
5987
|
-
retryable: Type$2.TBoolean;
|
|
5988
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5989
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5990
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5991
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
5992
|
-
_tag: Type$2.TLiteral<"Quota">;
|
|
5993
|
-
}>, Type$2.TObject<{
|
|
5994
|
-
message: Type$2.TString;
|
|
5995
|
-
retryable: Type$2.TBoolean;
|
|
5996
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
5997
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
5998
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
5999
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6000
|
-
_tag: Type$2.TLiteral<"InvalidRequest">;
|
|
6001
|
-
}>, Type$2.TObject<{
|
|
6002
|
-
message: Type$2.TString;
|
|
6003
|
-
retryable: Type$2.TBoolean;
|
|
6004
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6005
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6006
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6007
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6008
|
-
_tag: Type$2.TLiteral<"ContentPolicy">;
|
|
6009
|
-
}>, Type$2.TObject<{
|
|
6010
|
-
message: Type$2.TString;
|
|
6011
|
-
retryable: Type$2.TBoolean;
|
|
6012
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6013
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6014
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6015
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6016
|
-
_tag: Type$2.TLiteral<"Timeout">;
|
|
6017
|
-
}>, Type$2.TObject<{
|
|
6018
|
-
message: Type$2.TString;
|
|
6019
|
-
retryable: Type$2.TBoolean;
|
|
6020
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6021
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6022
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6023
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6024
|
-
_tag: Type$2.TLiteral<"Transport">;
|
|
6025
|
-
}>, Type$2.TObject<{
|
|
6026
|
-
message: Type$2.TString;
|
|
6027
|
-
retryable: Type$2.TBoolean;
|
|
6028
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6029
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6030
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6031
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6032
|
-
_tag: Type$2.TLiteral<"Unavailable">;
|
|
6033
|
-
}>, Type$2.TObject<{
|
|
6034
|
-
message: Type$2.TString;
|
|
6035
|
-
retryable: Type$2.TBoolean;
|
|
6036
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6037
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6038
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6039
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6040
|
-
_tag: Type$2.TLiteral<"InvalidResponse">;
|
|
6041
|
-
}>, Type$2.TObject<{
|
|
6042
|
-
message: Type$2.TString;
|
|
6043
|
-
retryable: Type$2.TBoolean;
|
|
6044
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6045
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6046
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6047
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6048
|
-
_tag: Type$2.TLiteral<"Unknown">;
|
|
6049
|
-
}>]>>;
|
|
6050
|
-
time: Type$2.TObject<{
|
|
6051
|
-
created: Type$2.TNumber;
|
|
6052
|
-
completed: Type$2.TNumber;
|
|
6053
|
-
}>;
|
|
6054
|
-
parts: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
6055
|
-
type: Type$2.TLiteral<"text">;
|
|
6056
|
-
text: Type$2.TString;
|
|
6057
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
6058
|
-
}>, Type$2.TObject<{
|
|
6059
|
-
type: Type$2.TLiteral<"image">;
|
|
6060
|
-
data: Type$2.TString;
|
|
6061
|
-
mimeType: Type$2.TString;
|
|
6062
|
-
}>, Type$2.TObject<{
|
|
6063
|
-
type: Type$2.TLiteral<"thinking">;
|
|
6064
|
-
thinking: Type$2.TString;
|
|
6065
|
-
thinkingSignature: Type$2.TOptional<Type$2.TString>;
|
|
6066
|
-
redacted: Type$2.TOptional<Type$2.TBoolean>;
|
|
6067
|
-
}>, Type$2.TUnion<[Type$2.TIntersect<[Type$2.TObject<{
|
|
6068
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
6069
|
-
callID: Type$2.TString;
|
|
6070
|
-
name: Type$2.TString;
|
|
6071
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
6072
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
6073
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
6074
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
6075
|
-
time: Type$2.TObject<{
|
|
6076
|
-
start: Type$2.TNumber;
|
|
6077
|
-
end: Type$2.TNumber;
|
|
6078
|
-
}>;
|
|
6079
|
-
}>, Type$2.TObject<{
|
|
6080
|
-
status: Type$2.TLiteral<"pending">;
|
|
6081
|
-
}>]>, Type$2.TObject<{
|
|
6082
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
6083
|
-
callID: Type$2.TString;
|
|
6084
|
-
name: Type$2.TString;
|
|
6085
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
6086
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
6087
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
6088
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
6089
|
-
time: Type$2.TObject<{
|
|
6090
|
-
start: Type$2.TNumber;
|
|
6091
|
-
end: Type$2.TNumber;
|
|
6092
|
-
}>;
|
|
6093
|
-
status: Type$2.TLiteral<"running">;
|
|
6094
|
-
partial: Type$2.TOptional<Type$2.TObject<{
|
|
6095
|
-
content: Type$2.TOptional<Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
6096
|
-
type: Type$2.TLiteral<"text">;
|
|
6097
|
-
text: Type$2.TString;
|
|
6098
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
6099
|
-
}>, Type$2.TObject<{
|
|
6100
|
-
type: Type$2.TLiteral<"image">;
|
|
6101
|
-
data: Type$2.TString;
|
|
6102
|
-
mimeType: Type$2.TString;
|
|
6103
|
-
}>]>>>;
|
|
6104
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
6105
|
-
}>>;
|
|
6106
|
-
}>, Type$2.TUnion<[Type$2.TObject<{
|
|
6107
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
6108
|
-
callID: Type$2.TString;
|
|
6109
|
-
name: Type$2.TString;
|
|
6110
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
6111
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
6112
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
6113
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
6114
|
-
time: Type$2.TObject<{
|
|
6115
|
-
start: Type$2.TNumber;
|
|
6116
|
-
end: Type$2.TNumber;
|
|
6117
|
-
}>;
|
|
6118
|
-
status: Type$2.TLiteral<"completed">;
|
|
6119
|
-
result: Type$2.TObject<{
|
|
6120
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
6121
|
-
type: Type$2.TLiteral<"text">;
|
|
6122
|
-
text: Type$2.TString;
|
|
6123
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
6124
|
-
}>, Type$2.TObject<{
|
|
6125
|
-
type: Type$2.TLiteral<"image">;
|
|
6126
|
-
data: Type$2.TString;
|
|
6127
|
-
mimeType: Type$2.TString;
|
|
6128
|
-
}>]>>;
|
|
6129
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
6130
|
-
isError: Type$2.TLiteral<false>;
|
|
6131
|
-
}>;
|
|
6132
|
-
}>, Type$2.TObject<{
|
|
6133
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
6134
|
-
callID: Type$2.TString;
|
|
6135
|
-
name: Type$2.TString;
|
|
6136
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
6137
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
6138
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
6139
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
6140
|
-
time: Type$2.TObject<{
|
|
6141
|
-
start: Type$2.TNumber;
|
|
6142
|
-
end: Type$2.TNumber;
|
|
6143
|
-
}>;
|
|
6144
|
-
status: Type$2.TLiteral<"error">;
|
|
6145
|
-
result: Type$2.TObject<{
|
|
6146
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
6147
|
-
type: Type$2.TLiteral<"text">;
|
|
6148
|
-
text: Type$2.TString;
|
|
6149
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
6150
|
-
}>, Type$2.TObject<{
|
|
6151
|
-
type: Type$2.TLiteral<"image">;
|
|
6152
|
-
data: Type$2.TString;
|
|
6153
|
-
mimeType: Type$2.TString;
|
|
6154
|
-
}>]>>;
|
|
6155
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
6156
|
-
isError: Type$2.TLiteral<true>;
|
|
6157
|
-
}>;
|
|
6158
|
-
}>, Type$2.TObject<{
|
|
6159
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
6160
|
-
callID: Type$2.TString;
|
|
6161
|
-
name: Type$2.TString;
|
|
6162
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
6163
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
6164
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
6165
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
6166
|
-
time: Type$2.TObject<{
|
|
6167
|
-
start: Type$2.TNumber;
|
|
6168
|
-
end: Type$2.TNumber;
|
|
6169
|
-
}>;
|
|
6170
|
-
status: Type$2.TLiteral<"skipped">;
|
|
6171
|
-
result: Type$2.TObject<{
|
|
6172
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
6173
|
-
type: Type$2.TLiteral<"text">;
|
|
6174
|
-
text: Type$2.TString;
|
|
6175
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
6176
|
-
}>, Type$2.TObject<{
|
|
6177
|
-
type: Type$2.TLiteral<"image">;
|
|
6178
|
-
data: Type$2.TString;
|
|
6179
|
-
mimeType: Type$2.TString;
|
|
6180
|
-
}>]>>;
|
|
6181
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
6182
|
-
isError: Type$2.TLiteral<true>;
|
|
6183
|
-
}>;
|
|
6184
|
-
}>, Type$2.TObject<{
|
|
6185
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
6186
|
-
callID: Type$2.TString;
|
|
6187
|
-
name: Type$2.TString;
|
|
6188
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
6189
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
6190
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
6191
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
6192
|
-
time: Type$2.TObject<{
|
|
6193
|
-
start: Type$2.TNumber;
|
|
6194
|
-
end: Type$2.TNumber;
|
|
6195
|
-
}>;
|
|
6196
|
-
status: Type$2.TLiteral<"aborted">;
|
|
6197
|
-
result: Type$2.TObject<{
|
|
6198
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
6199
|
-
type: Type$2.TLiteral<"text">;
|
|
6200
|
-
text: Type$2.TString;
|
|
6201
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
6202
|
-
}>, Type$2.TObject<{
|
|
6203
|
-
type: Type$2.TLiteral<"image">;
|
|
6204
|
-
data: Type$2.TString;
|
|
6205
|
-
mimeType: Type$2.TString;
|
|
6206
|
-
}>]>>;
|
|
6207
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
6208
|
-
isError: Type$2.TLiteral<true>;
|
|
6209
|
-
}>;
|
|
6210
|
-
}>]>]>]>>;
|
|
6211
|
-
responseId: Type$2.TOptional<Type$2.TString>;
|
|
6212
|
-
responseModel: Type$2.TOptional<Type$2.TString>;
|
|
6213
|
-
messageId: Type$2.TString;
|
|
6214
|
-
}>;
|
|
6215
|
-
partIndex: Type$2.TNumber;
|
|
6216
|
-
part: Type$2.TUnion<[Type$2.TObject<{
|
|
6217
|
-
type: Type$2.TLiteral<"text">;
|
|
6218
|
-
text: Type$2.TString;
|
|
6219
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
6220
|
-
}>, Type$2.TObject<{
|
|
6221
|
-
type: Type$2.TLiteral<"image">;
|
|
6222
|
-
data: Type$2.TString;
|
|
6223
|
-
mimeType: Type$2.TString;
|
|
6224
|
-
}>, Type$2.TObject<{
|
|
6225
|
-
type: Type$2.TLiteral<"thinking">;
|
|
6226
|
-
thinking: Type$2.TString;
|
|
6227
|
-
thinkingSignature: Type$2.TOptional<Type$2.TString>;
|
|
6228
|
-
redacted: Type$2.TOptional<Type$2.TBoolean>;
|
|
6229
|
-
}>, Type$2.TUnion<[Type$2.TIntersect<[Type$2.TObject<{
|
|
6230
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
6231
|
-
callID: Type$2.TString;
|
|
6232
|
-
name: Type$2.TString;
|
|
6233
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
6234
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
6235
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
6236
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
6237
|
-
time: Type$2.TObject<{
|
|
6238
|
-
start: Type$2.TNumber;
|
|
6239
|
-
end: Type$2.TNumber;
|
|
6240
|
-
}>;
|
|
6241
|
-
}>, Type$2.TObject<{
|
|
6242
|
-
status: Type$2.TLiteral<"pending">;
|
|
6243
|
-
}>]>, Type$2.TObject<{
|
|
6244
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
6245
|
-
callID: Type$2.TString;
|
|
6246
|
-
name: Type$2.TString;
|
|
6247
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
6248
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
6249
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
6250
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
6251
|
-
time: Type$2.TObject<{
|
|
6252
|
-
start: Type$2.TNumber;
|
|
6253
|
-
end: Type$2.TNumber;
|
|
6254
|
-
}>;
|
|
6255
|
-
status: Type$2.TLiteral<"running">;
|
|
6256
|
-
partial: Type$2.TOptional<Type$2.TObject<{
|
|
6257
|
-
content: Type$2.TOptional<Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
6258
|
-
type: Type$2.TLiteral<"text">;
|
|
6259
|
-
text: Type$2.TString;
|
|
6260
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
6261
|
-
}>, Type$2.TObject<{
|
|
6262
|
-
type: Type$2.TLiteral<"image">;
|
|
6263
|
-
data: Type$2.TString;
|
|
6264
|
-
mimeType: Type$2.TString;
|
|
6265
|
-
}>]>>>;
|
|
6266
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
6267
|
-
}>>;
|
|
6268
|
-
}>, Type$2.TUnion<[Type$2.TObject<{
|
|
6269
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
6270
|
-
callID: Type$2.TString;
|
|
6271
|
-
name: Type$2.TString;
|
|
6272
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
6273
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
6274
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
6275
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
6276
|
-
time: Type$2.TObject<{
|
|
6277
|
-
start: Type$2.TNumber;
|
|
6278
|
-
end: Type$2.TNumber;
|
|
6279
|
-
}>;
|
|
6280
|
-
status: Type$2.TLiteral<"completed">;
|
|
6281
|
-
result: Type$2.TObject<{
|
|
6282
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
6283
|
-
type: Type$2.TLiteral<"text">;
|
|
6284
|
-
text: Type$2.TString;
|
|
6285
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
6286
|
-
}>, Type$2.TObject<{
|
|
6287
|
-
type: Type$2.TLiteral<"image">;
|
|
6288
|
-
data: Type$2.TString;
|
|
6289
|
-
mimeType: Type$2.TString;
|
|
6290
|
-
}>]>>;
|
|
6291
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
6292
|
-
isError: Type$2.TLiteral<false>;
|
|
6293
|
-
}>;
|
|
6294
|
-
}>, Type$2.TObject<{
|
|
6295
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
6296
|
-
callID: Type$2.TString;
|
|
6297
|
-
name: Type$2.TString;
|
|
6298
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
6299
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
6300
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
6301
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
6302
|
-
time: Type$2.TObject<{
|
|
6303
|
-
start: Type$2.TNumber;
|
|
6304
|
-
end: Type$2.TNumber;
|
|
6305
|
-
}>;
|
|
6306
|
-
status: Type$2.TLiteral<"error">;
|
|
6307
|
-
result: Type$2.TObject<{
|
|
6308
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
6309
|
-
type: Type$2.TLiteral<"text">;
|
|
6310
|
-
text: Type$2.TString;
|
|
6311
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
6312
|
-
}>, Type$2.TObject<{
|
|
6313
|
-
type: Type$2.TLiteral<"image">;
|
|
6314
|
-
data: Type$2.TString;
|
|
6315
|
-
mimeType: Type$2.TString;
|
|
6316
|
-
}>]>>;
|
|
6317
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
6318
|
-
isError: Type$2.TLiteral<true>;
|
|
6319
|
-
}>;
|
|
6320
|
-
}>, Type$2.TObject<{
|
|
6321
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
6322
|
-
callID: Type$2.TString;
|
|
6323
|
-
name: Type$2.TString;
|
|
6324
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
6325
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
6326
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
6327
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
6328
|
-
time: Type$2.TObject<{
|
|
6329
|
-
start: Type$2.TNumber;
|
|
6330
|
-
end: Type$2.TNumber;
|
|
6331
|
-
}>;
|
|
6332
|
-
status: Type$2.TLiteral<"skipped">;
|
|
6333
|
-
result: Type$2.TObject<{
|
|
6334
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
6335
|
-
type: Type$2.TLiteral<"text">;
|
|
6336
|
-
text: Type$2.TString;
|
|
6337
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
6338
|
-
}>, Type$2.TObject<{
|
|
6339
|
-
type: Type$2.TLiteral<"image">;
|
|
6340
|
-
data: Type$2.TString;
|
|
6341
|
-
mimeType: Type$2.TString;
|
|
6342
|
-
}>]>>;
|
|
6343
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
6344
|
-
isError: Type$2.TLiteral<true>;
|
|
6345
|
-
}>;
|
|
6346
|
-
}>, Type$2.TObject<{
|
|
6347
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
6348
|
-
callID: Type$2.TString;
|
|
6349
|
-
name: Type$2.TString;
|
|
6350
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
6351
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
6352
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
6353
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
6354
|
-
time: Type$2.TObject<{
|
|
6355
|
-
start: Type$2.TNumber;
|
|
6356
|
-
end: Type$2.TNumber;
|
|
6357
|
-
}>;
|
|
6358
|
-
status: Type$2.TLiteral<"aborted">;
|
|
6359
|
-
result: Type$2.TObject<{
|
|
6360
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
6361
|
-
type: Type$2.TLiteral<"text">;
|
|
6362
|
-
text: Type$2.TString;
|
|
6363
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
6364
|
-
}>, Type$2.TObject<{
|
|
6365
|
-
type: Type$2.TLiteral<"image">;
|
|
6366
|
-
data: Type$2.TString;
|
|
6367
|
-
mimeType: Type$2.TString;
|
|
6368
|
-
}>]>>;
|
|
6369
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
6370
|
-
isError: Type$2.TLiteral<true>;
|
|
6371
|
-
}>;
|
|
6372
|
-
}>]>]>]>;
|
|
6373
|
-
source: Type$2.TLiteral<"llm">;
|
|
6374
|
-
}>, Type$2.TObject<{
|
|
6375
|
-
type: Type$2.TLiteral<"message.part.update">;
|
|
6376
|
-
message: Type$2.TObject<{
|
|
6377
|
-
role: Type$2.TLiteral<"assistant">;
|
|
6378
|
-
protocol: Type$2.TUnion<[Type$2.TLiteral<"anthropic">, Type$2.TLiteral<"google">, Type$2.TLiteral<"google-vertex">, Type$2.TLiteral<"google-vertex-anthropic">, Type$2.TLiteral<"openai">, Type$2.TLiteral<"openai-compatible">, Type$2.TLiteral<"openai-codex">, Type$2.TLiteral<"openrouter">, Type$2.TLiteral<"xai">]>;
|
|
6379
|
-
provider: Type$2.TObject<{
|
|
6380
|
-
id: Type$2.TString;
|
|
6381
|
-
name: Type$2.TString;
|
|
6382
|
-
source: Type$2.TEnum<["env", "config", "custom", "api", "unknown"]>;
|
|
6383
|
-
env: Type$2.TArray<Type$2.TString>;
|
|
6384
|
-
key: Type$2.TOptional<Type$2.TString>;
|
|
6385
|
-
options: Type$2.TOptional<Type$2.TRecord<"^.*$", Type$2.TAny>>;
|
|
6386
|
-
}>;
|
|
6387
|
-
model: Type$2.TString;
|
|
6388
|
-
usage: Type$2.TObject<{
|
|
6389
|
-
input: Type$2.TNumber;
|
|
6390
|
-
output: Type$2.TNumber;
|
|
6391
|
-
cacheRead: Type$2.TNumber;
|
|
6392
|
-
cacheWrite: Type$2.TNumber;
|
|
6393
|
-
reasoning: Type$2.TOptional<Type$2.TNumber>;
|
|
6394
|
-
totalTokens: Type$2.TNumber;
|
|
6395
|
-
cost: Type$2.TObject<{
|
|
6396
|
-
input: Type$2.TNumber;
|
|
6397
|
-
output: Type$2.TNumber;
|
|
6398
|
-
cacheRead: Type$2.TNumber;
|
|
6399
|
-
cacheWrite: Type$2.TNumber;
|
|
6400
|
-
total: Type$2.TNumber;
|
|
6401
|
-
}>;
|
|
6402
|
-
}>;
|
|
6403
|
-
stopReason: Type$2.TUnion<[Type$2.TLiteral<"stop">, Type$2.TLiteral<"length">, Type$2.TLiteral<"toolUse">, Type$2.TLiteral<"error">, Type$2.TLiteral<"aborted">]>;
|
|
6404
|
-
errorMessage: Type$2.TOptional<Type$2.TString>;
|
|
6405
|
-
failure: Type$2.TOptional<Type$2.TUnion<[Type$2.TObject<{
|
|
6406
|
-
message: Type$2.TString;
|
|
6407
|
-
retryable: Type$2.TBoolean;
|
|
6408
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6409
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6410
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6411
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6412
|
-
_tag: Type$2.TLiteral<"Authentication">;
|
|
6413
|
-
reason: Type$2.TUnion<[Type$2.TLiteral<"missing">, Type$2.TLiteral<"invalid">, Type$2.TLiteral<"expired">]>;
|
|
6414
|
-
}>, Type$2.TObject<{
|
|
6415
|
-
message: Type$2.TString;
|
|
6416
|
-
retryable: Type$2.TBoolean;
|
|
6417
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6418
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6419
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6420
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6421
|
-
_tag: Type$2.TLiteral<"Configuration">;
|
|
6422
|
-
}>, Type$2.TObject<{
|
|
6423
|
-
message: Type$2.TString;
|
|
6424
|
-
retryable: Type$2.TBoolean;
|
|
6425
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6426
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6427
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6428
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6429
|
-
_tag: Type$2.TLiteral<"Authorization">;
|
|
6430
|
-
}>, Type$2.TObject<{
|
|
6431
|
-
message: Type$2.TString;
|
|
6432
|
-
retryable: Type$2.TBoolean;
|
|
6433
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6434
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6435
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6436
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6437
|
-
_tag: Type$2.TLiteral<"ModelUnavailable">;
|
|
6438
|
-
}>, Type$2.TObject<{
|
|
6439
|
-
message: Type$2.TString;
|
|
6440
|
-
retryable: Type$2.TBoolean;
|
|
6441
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6442
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6443
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6444
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6445
|
-
_tag: Type$2.TLiteral<"RateLimit">;
|
|
6446
|
-
}>, Type$2.TObject<{
|
|
6447
|
-
message: Type$2.TString;
|
|
6448
|
-
retryable: Type$2.TBoolean;
|
|
6449
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6450
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6451
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6452
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6453
|
-
_tag: Type$2.TLiteral<"Quota">;
|
|
6454
|
-
}>, Type$2.TObject<{
|
|
6455
|
-
message: Type$2.TString;
|
|
6456
|
-
retryable: Type$2.TBoolean;
|
|
6457
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6458
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6459
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6460
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6461
|
-
_tag: Type$2.TLiteral<"InvalidRequest">;
|
|
6462
|
-
}>, Type$2.TObject<{
|
|
6463
|
-
message: Type$2.TString;
|
|
6464
|
-
retryable: Type$2.TBoolean;
|
|
6465
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6466
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6467
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6468
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6469
|
-
_tag: Type$2.TLiteral<"ContentPolicy">;
|
|
6470
|
-
}>, Type$2.TObject<{
|
|
6471
|
-
message: Type$2.TString;
|
|
6472
|
-
retryable: Type$2.TBoolean;
|
|
6473
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6474
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6475
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6476
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6477
|
-
_tag: Type$2.TLiteral<"Timeout">;
|
|
6478
|
-
}>, Type$2.TObject<{
|
|
6479
|
-
message: Type$2.TString;
|
|
6480
|
-
retryable: Type$2.TBoolean;
|
|
6481
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6482
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6483
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6484
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6485
|
-
_tag: Type$2.TLiteral<"Transport">;
|
|
6486
|
-
}>, Type$2.TObject<{
|
|
6487
|
-
message: Type$2.TString;
|
|
6488
|
-
retryable: Type$2.TBoolean;
|
|
6489
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6490
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6491
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6492
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6493
|
-
_tag: Type$2.TLiteral<"Unavailable">;
|
|
6494
|
-
}>, Type$2.TObject<{
|
|
6495
|
-
message: Type$2.TString;
|
|
6496
|
-
retryable: Type$2.TBoolean;
|
|
6497
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6498
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6499
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6500
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6501
|
-
_tag: Type$2.TLiteral<"InvalidResponse">;
|
|
6502
|
-
}>, Type$2.TObject<{
|
|
6503
|
-
message: Type$2.TString;
|
|
6504
|
-
retryable: Type$2.TBoolean;
|
|
6505
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6506
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6507
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6508
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6509
|
-
_tag: Type$2.TLiteral<"Unknown">;
|
|
6510
|
-
}>]>>;
|
|
6511
|
-
time: Type$2.TObject<{
|
|
6512
|
-
created: Type$2.TNumber;
|
|
6513
|
-
completed: Type$2.TNumber;
|
|
6514
|
-
}>;
|
|
6515
|
-
parts: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
6516
|
-
type: Type$2.TLiteral<"text">;
|
|
6517
|
-
text: Type$2.TString;
|
|
6518
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
6519
|
-
}>, Type$2.TObject<{
|
|
6520
|
-
type: Type$2.TLiteral<"image">;
|
|
6521
|
-
data: Type$2.TString;
|
|
6522
|
-
mimeType: Type$2.TString;
|
|
6523
|
-
}>, Type$2.TObject<{
|
|
6524
|
-
type: Type$2.TLiteral<"thinking">;
|
|
6525
|
-
thinking: Type$2.TString;
|
|
6526
|
-
thinkingSignature: Type$2.TOptional<Type$2.TString>;
|
|
6527
|
-
redacted: Type$2.TOptional<Type$2.TBoolean>;
|
|
6528
|
-
}>, Type$2.TUnion<[Type$2.TIntersect<[Type$2.TObject<{
|
|
6529
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
6530
|
-
callID: Type$2.TString;
|
|
6531
|
-
name: Type$2.TString;
|
|
6532
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
6533
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
6534
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
6535
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
6536
|
-
time: Type$2.TObject<{
|
|
6537
|
-
start: Type$2.TNumber;
|
|
6538
|
-
end: Type$2.TNumber;
|
|
6539
|
-
}>;
|
|
6540
|
-
}>, Type$2.TObject<{
|
|
6541
|
-
status: Type$2.TLiteral<"pending">;
|
|
6542
|
-
}>]>, Type$2.TObject<{
|
|
6543
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
6544
|
-
callID: Type$2.TString;
|
|
6545
|
-
name: Type$2.TString;
|
|
6546
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
6547
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
6548
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
6549
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
6550
|
-
time: Type$2.TObject<{
|
|
6551
|
-
start: Type$2.TNumber;
|
|
6552
|
-
end: Type$2.TNumber;
|
|
6553
|
-
}>;
|
|
6554
|
-
status: Type$2.TLiteral<"running">;
|
|
6555
|
-
partial: Type$2.TOptional<Type$2.TObject<{
|
|
6556
|
-
content: Type$2.TOptional<Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
6557
|
-
type: Type$2.TLiteral<"text">;
|
|
6558
|
-
text: Type$2.TString;
|
|
6559
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
6560
|
-
}>, Type$2.TObject<{
|
|
6561
|
-
type: Type$2.TLiteral<"image">;
|
|
6562
|
-
data: Type$2.TString;
|
|
6563
|
-
mimeType: Type$2.TString;
|
|
6564
|
-
}>]>>>;
|
|
6565
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
6566
|
-
}>>;
|
|
6567
|
-
}>, Type$2.TUnion<[Type$2.TObject<{
|
|
6568
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
6569
|
-
callID: Type$2.TString;
|
|
6570
|
-
name: Type$2.TString;
|
|
6571
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
6572
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
6573
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
6574
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
6575
|
-
time: Type$2.TObject<{
|
|
6576
|
-
start: Type$2.TNumber;
|
|
6577
|
-
end: Type$2.TNumber;
|
|
6578
|
-
}>;
|
|
6579
|
-
status: Type$2.TLiteral<"completed">;
|
|
6580
|
-
result: Type$2.TObject<{
|
|
6581
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
6582
|
-
type: Type$2.TLiteral<"text">;
|
|
6583
|
-
text: Type$2.TString;
|
|
6584
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
6585
|
-
}>, Type$2.TObject<{
|
|
6586
|
-
type: Type$2.TLiteral<"image">;
|
|
6587
|
-
data: Type$2.TString;
|
|
6588
|
-
mimeType: Type$2.TString;
|
|
6589
|
-
}>]>>;
|
|
6590
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
6591
|
-
isError: Type$2.TLiteral<false>;
|
|
6592
|
-
}>;
|
|
6593
|
-
}>, Type$2.TObject<{
|
|
6594
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
6595
|
-
callID: Type$2.TString;
|
|
6596
|
-
name: Type$2.TString;
|
|
6597
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
6598
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
6599
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
6600
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
6601
|
-
time: Type$2.TObject<{
|
|
6602
|
-
start: Type$2.TNumber;
|
|
6603
|
-
end: Type$2.TNumber;
|
|
6604
|
-
}>;
|
|
6605
|
-
status: Type$2.TLiteral<"error">;
|
|
6606
|
-
result: Type$2.TObject<{
|
|
6607
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
6608
|
-
type: Type$2.TLiteral<"text">;
|
|
6609
|
-
text: Type$2.TString;
|
|
6610
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
6611
|
-
}>, Type$2.TObject<{
|
|
6612
|
-
type: Type$2.TLiteral<"image">;
|
|
6613
|
-
data: Type$2.TString;
|
|
6614
|
-
mimeType: Type$2.TString;
|
|
6615
|
-
}>]>>;
|
|
6616
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
6617
|
-
isError: Type$2.TLiteral<true>;
|
|
6618
|
-
}>;
|
|
6619
|
-
}>, Type$2.TObject<{
|
|
6620
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
6621
|
-
callID: Type$2.TString;
|
|
6622
|
-
name: Type$2.TString;
|
|
6623
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
6624
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
6625
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
6626
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
6627
|
-
time: Type$2.TObject<{
|
|
6628
|
-
start: Type$2.TNumber;
|
|
6629
|
-
end: Type$2.TNumber;
|
|
6630
|
-
}>;
|
|
6631
|
-
status: Type$2.TLiteral<"skipped">;
|
|
6632
|
-
result: Type$2.TObject<{
|
|
6633
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
6634
|
-
type: Type$2.TLiteral<"text">;
|
|
6635
|
-
text: Type$2.TString;
|
|
6636
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
6637
|
-
}>, Type$2.TObject<{
|
|
6638
|
-
type: Type$2.TLiteral<"image">;
|
|
6639
|
-
data: Type$2.TString;
|
|
6640
|
-
mimeType: Type$2.TString;
|
|
6641
|
-
}>]>>;
|
|
6642
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
6643
|
-
isError: Type$2.TLiteral<true>;
|
|
6644
|
-
}>;
|
|
6645
|
-
}>, Type$2.TObject<{
|
|
6646
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
6647
|
-
callID: Type$2.TString;
|
|
6648
|
-
name: Type$2.TString;
|
|
6649
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
6650
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
6651
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
6652
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
6653
|
-
time: Type$2.TObject<{
|
|
6654
|
-
start: Type$2.TNumber;
|
|
6655
|
-
end: Type$2.TNumber;
|
|
6656
|
-
}>;
|
|
6657
|
-
status: Type$2.TLiteral<"aborted">;
|
|
6658
|
-
result: Type$2.TObject<{
|
|
6659
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
6660
|
-
type: Type$2.TLiteral<"text">;
|
|
6661
|
-
text: Type$2.TString;
|
|
6662
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
6663
|
-
}>, Type$2.TObject<{
|
|
6664
|
-
type: Type$2.TLiteral<"image">;
|
|
6665
|
-
data: Type$2.TString;
|
|
6666
|
-
mimeType: Type$2.TString;
|
|
6667
|
-
}>]>>;
|
|
6668
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
6669
|
-
isError: Type$2.TLiteral<true>;
|
|
6670
|
-
}>;
|
|
6671
|
-
}>]>]>]>>;
|
|
6672
|
-
responseId: Type$2.TOptional<Type$2.TString>;
|
|
6673
|
-
responseModel: Type$2.TOptional<Type$2.TString>;
|
|
6674
|
-
messageId: Type$2.TString;
|
|
6675
|
-
}>;
|
|
6676
|
-
partIndex: Type$2.TNumber;
|
|
6677
|
-
part: Type$2.TUnion<[Type$2.TObject<{
|
|
6678
|
-
type: Type$2.TLiteral<"text">;
|
|
6679
|
-
text: Type$2.TString;
|
|
6680
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
6681
|
-
}>, Type$2.TObject<{
|
|
6682
|
-
type: Type$2.TLiteral<"image">;
|
|
6683
|
-
data: Type$2.TString;
|
|
6684
|
-
mimeType: Type$2.TString;
|
|
6685
|
-
}>, Type$2.TObject<{
|
|
6686
|
-
type: Type$2.TLiteral<"thinking">;
|
|
6687
|
-
thinking: Type$2.TString;
|
|
6688
|
-
thinkingSignature: Type$2.TOptional<Type$2.TString>;
|
|
6689
|
-
redacted: Type$2.TOptional<Type$2.TBoolean>;
|
|
6690
|
-
}>, Type$2.TUnion<[Type$2.TIntersect<[Type$2.TObject<{
|
|
6691
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
6692
|
-
callID: Type$2.TString;
|
|
6693
|
-
name: Type$2.TString;
|
|
6694
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
6695
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
6696
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
6697
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
6698
|
-
time: Type$2.TObject<{
|
|
6699
|
-
start: Type$2.TNumber;
|
|
6700
|
-
end: Type$2.TNumber;
|
|
6701
|
-
}>;
|
|
6702
|
-
}>, Type$2.TObject<{
|
|
6703
|
-
status: Type$2.TLiteral<"pending">;
|
|
6704
|
-
}>]>, Type$2.TObject<{
|
|
6705
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
6706
|
-
callID: Type$2.TString;
|
|
6707
|
-
name: Type$2.TString;
|
|
6708
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
6709
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
6710
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
6711
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
6712
|
-
time: Type$2.TObject<{
|
|
6713
|
-
start: Type$2.TNumber;
|
|
6714
|
-
end: Type$2.TNumber;
|
|
6715
|
-
}>;
|
|
6716
|
-
status: Type$2.TLiteral<"running">;
|
|
6717
|
-
partial: Type$2.TOptional<Type$2.TObject<{
|
|
6718
|
-
content: Type$2.TOptional<Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
6719
|
-
type: Type$2.TLiteral<"text">;
|
|
6720
|
-
text: Type$2.TString;
|
|
6721
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
6722
|
-
}>, Type$2.TObject<{
|
|
6723
|
-
type: Type$2.TLiteral<"image">;
|
|
6724
|
-
data: Type$2.TString;
|
|
6725
|
-
mimeType: Type$2.TString;
|
|
6726
|
-
}>]>>>;
|
|
6727
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
6728
|
-
}>>;
|
|
6729
|
-
}>, Type$2.TUnion<[Type$2.TObject<{
|
|
6730
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
6731
|
-
callID: Type$2.TString;
|
|
6732
|
-
name: Type$2.TString;
|
|
6733
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
6734
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
6735
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
6736
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
6737
|
-
time: Type$2.TObject<{
|
|
6738
|
-
start: Type$2.TNumber;
|
|
6739
|
-
end: Type$2.TNumber;
|
|
6740
|
-
}>;
|
|
6741
|
-
status: Type$2.TLiteral<"completed">;
|
|
6742
|
-
result: Type$2.TObject<{
|
|
6743
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
6744
|
-
type: Type$2.TLiteral<"text">;
|
|
6745
|
-
text: Type$2.TString;
|
|
6746
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
6747
|
-
}>, Type$2.TObject<{
|
|
6748
|
-
type: Type$2.TLiteral<"image">;
|
|
6749
|
-
data: Type$2.TString;
|
|
6750
|
-
mimeType: Type$2.TString;
|
|
6751
|
-
}>]>>;
|
|
6752
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
6753
|
-
isError: Type$2.TLiteral<false>;
|
|
6754
|
-
}>;
|
|
6755
|
-
}>, Type$2.TObject<{
|
|
6756
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
6757
|
-
callID: Type$2.TString;
|
|
6758
|
-
name: Type$2.TString;
|
|
6759
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
6760
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
6761
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
6762
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
6763
|
-
time: Type$2.TObject<{
|
|
6764
|
-
start: Type$2.TNumber;
|
|
6765
|
-
end: Type$2.TNumber;
|
|
6766
|
-
}>;
|
|
6767
|
-
status: Type$2.TLiteral<"error">;
|
|
6768
|
-
result: Type$2.TObject<{
|
|
6769
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
6770
|
-
type: Type$2.TLiteral<"text">;
|
|
6771
|
-
text: Type$2.TString;
|
|
6772
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
6773
|
-
}>, Type$2.TObject<{
|
|
6774
|
-
type: Type$2.TLiteral<"image">;
|
|
6775
|
-
data: Type$2.TString;
|
|
6776
|
-
mimeType: Type$2.TString;
|
|
6777
|
-
}>]>>;
|
|
6778
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
6779
|
-
isError: Type$2.TLiteral<true>;
|
|
6780
|
-
}>;
|
|
6781
|
-
}>, Type$2.TObject<{
|
|
6782
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
6783
|
-
callID: Type$2.TString;
|
|
6784
|
-
name: Type$2.TString;
|
|
6785
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
6786
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
6787
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
6788
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
6789
|
-
time: Type$2.TObject<{
|
|
6790
|
-
start: Type$2.TNumber;
|
|
6791
|
-
end: Type$2.TNumber;
|
|
6792
|
-
}>;
|
|
6793
|
-
status: Type$2.TLiteral<"skipped">;
|
|
6794
|
-
result: Type$2.TObject<{
|
|
6795
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
6796
|
-
type: Type$2.TLiteral<"text">;
|
|
6797
|
-
text: Type$2.TString;
|
|
6798
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
6799
|
-
}>, Type$2.TObject<{
|
|
6800
|
-
type: Type$2.TLiteral<"image">;
|
|
6801
|
-
data: Type$2.TString;
|
|
6802
|
-
mimeType: Type$2.TString;
|
|
6803
|
-
}>]>>;
|
|
6804
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
6805
|
-
isError: Type$2.TLiteral<true>;
|
|
6806
|
-
}>;
|
|
6807
|
-
}>, Type$2.TObject<{
|
|
6808
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
6809
|
-
callID: Type$2.TString;
|
|
6810
|
-
name: Type$2.TString;
|
|
6811
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
6812
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
6813
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
6814
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
6815
|
-
time: Type$2.TObject<{
|
|
6816
|
-
start: Type$2.TNumber;
|
|
6817
|
-
end: Type$2.TNumber;
|
|
6818
|
-
}>;
|
|
6819
|
-
status: Type$2.TLiteral<"aborted">;
|
|
6820
|
-
result: Type$2.TObject<{
|
|
6821
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
6822
|
-
type: Type$2.TLiteral<"text">;
|
|
6823
|
-
text: Type$2.TString;
|
|
6824
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
6825
|
-
}>, Type$2.TObject<{
|
|
6826
|
-
type: Type$2.TLiteral<"image">;
|
|
6827
|
-
data: Type$2.TString;
|
|
6828
|
-
mimeType: Type$2.TString;
|
|
6829
|
-
}>]>>;
|
|
6830
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
6831
|
-
isError: Type$2.TLiteral<true>;
|
|
6832
|
-
}>;
|
|
6833
|
-
}>]>]>]>;
|
|
6834
|
-
source: Type$2.TLiteral<"tool">;
|
|
6835
|
-
}>, Type$2.TObject<{
|
|
6836
|
-
type: Type$2.TLiteral<"message.part.end">;
|
|
6837
|
-
message: Type$2.TObject<{
|
|
6838
|
-
role: Type$2.TLiteral<"assistant">;
|
|
6839
|
-
protocol: Type$2.TUnion<[Type$2.TLiteral<"anthropic">, Type$2.TLiteral<"google">, Type$2.TLiteral<"google-vertex">, Type$2.TLiteral<"google-vertex-anthropic">, Type$2.TLiteral<"openai">, Type$2.TLiteral<"openai-compatible">, Type$2.TLiteral<"openai-codex">, Type$2.TLiteral<"openrouter">, Type$2.TLiteral<"xai">]>;
|
|
6840
|
-
provider: Type$2.TObject<{
|
|
6841
|
-
id: Type$2.TString;
|
|
6842
|
-
name: Type$2.TString;
|
|
6843
|
-
source: Type$2.TEnum<["env", "config", "custom", "api", "unknown"]>;
|
|
6844
|
-
env: Type$2.TArray<Type$2.TString>;
|
|
6845
|
-
key: Type$2.TOptional<Type$2.TString>;
|
|
6846
|
-
options: Type$2.TOptional<Type$2.TRecord<"^.*$", Type$2.TAny>>;
|
|
6847
|
-
}>;
|
|
6848
|
-
model: Type$2.TString;
|
|
6849
|
-
usage: Type$2.TObject<{
|
|
6850
|
-
input: Type$2.TNumber;
|
|
6851
|
-
output: Type$2.TNumber;
|
|
6852
|
-
cacheRead: Type$2.TNumber;
|
|
6853
|
-
cacheWrite: Type$2.TNumber;
|
|
6854
|
-
reasoning: Type$2.TOptional<Type$2.TNumber>;
|
|
6855
|
-
totalTokens: Type$2.TNumber;
|
|
6856
|
-
cost: Type$2.TObject<{
|
|
6857
|
-
input: Type$2.TNumber;
|
|
6858
|
-
output: Type$2.TNumber;
|
|
6859
|
-
cacheRead: Type$2.TNumber;
|
|
6860
|
-
cacheWrite: Type$2.TNumber;
|
|
6861
|
-
total: Type$2.TNumber;
|
|
6862
|
-
}>;
|
|
6863
|
-
}>;
|
|
6864
|
-
stopReason: Type$2.TUnion<[Type$2.TLiteral<"stop">, Type$2.TLiteral<"length">, Type$2.TLiteral<"toolUse">, Type$2.TLiteral<"error">, Type$2.TLiteral<"aborted">]>;
|
|
6865
|
-
errorMessage: Type$2.TOptional<Type$2.TString>;
|
|
6866
|
-
failure: Type$2.TOptional<Type$2.TUnion<[Type$2.TObject<{
|
|
6867
|
-
message: Type$2.TString;
|
|
6868
|
-
retryable: Type$2.TBoolean;
|
|
6869
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6870
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6871
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6872
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6873
|
-
_tag: Type$2.TLiteral<"Authentication">;
|
|
6874
|
-
reason: Type$2.TUnion<[Type$2.TLiteral<"missing">, Type$2.TLiteral<"invalid">, Type$2.TLiteral<"expired">]>;
|
|
6875
|
-
}>, Type$2.TObject<{
|
|
6876
|
-
message: Type$2.TString;
|
|
6877
|
-
retryable: Type$2.TBoolean;
|
|
6878
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6879
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6880
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6881
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6882
|
-
_tag: Type$2.TLiteral<"Configuration">;
|
|
6883
|
-
}>, Type$2.TObject<{
|
|
6884
|
-
message: Type$2.TString;
|
|
6885
|
-
retryable: Type$2.TBoolean;
|
|
6886
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6887
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6888
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6889
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6890
|
-
_tag: Type$2.TLiteral<"Authorization">;
|
|
6891
|
-
}>, Type$2.TObject<{
|
|
6892
|
-
message: Type$2.TString;
|
|
6893
|
-
retryable: Type$2.TBoolean;
|
|
6894
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6895
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6896
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6897
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6898
|
-
_tag: Type$2.TLiteral<"ModelUnavailable">;
|
|
6899
|
-
}>, Type$2.TObject<{
|
|
6900
|
-
message: Type$2.TString;
|
|
6901
|
-
retryable: Type$2.TBoolean;
|
|
6902
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6903
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6904
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6905
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6906
|
-
_tag: Type$2.TLiteral<"RateLimit">;
|
|
6907
|
-
}>, Type$2.TObject<{
|
|
6908
|
-
message: Type$2.TString;
|
|
6909
|
-
retryable: Type$2.TBoolean;
|
|
6910
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6911
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6912
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6913
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6914
|
-
_tag: Type$2.TLiteral<"Quota">;
|
|
6915
|
-
}>, Type$2.TObject<{
|
|
6916
|
-
message: Type$2.TString;
|
|
6917
|
-
retryable: Type$2.TBoolean;
|
|
6918
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6919
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6920
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6921
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6922
|
-
_tag: Type$2.TLiteral<"InvalidRequest">;
|
|
6923
|
-
}>, Type$2.TObject<{
|
|
6924
|
-
message: Type$2.TString;
|
|
6925
|
-
retryable: Type$2.TBoolean;
|
|
6926
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6927
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6928
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6929
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6930
|
-
_tag: Type$2.TLiteral<"ContentPolicy">;
|
|
6931
|
-
}>, Type$2.TObject<{
|
|
6932
|
-
message: Type$2.TString;
|
|
6933
|
-
retryable: Type$2.TBoolean;
|
|
6934
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6935
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6936
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6937
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6938
|
-
_tag: Type$2.TLiteral<"Timeout">;
|
|
6939
|
-
}>, Type$2.TObject<{
|
|
6940
|
-
message: Type$2.TString;
|
|
6941
|
-
retryable: Type$2.TBoolean;
|
|
6942
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6943
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6944
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6945
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6946
|
-
_tag: Type$2.TLiteral<"Transport">;
|
|
6947
|
-
}>, Type$2.TObject<{
|
|
6948
|
-
message: Type$2.TString;
|
|
6949
|
-
retryable: Type$2.TBoolean;
|
|
6950
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6951
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6952
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6953
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6954
|
-
_tag: Type$2.TLiteral<"Unavailable">;
|
|
6955
|
-
}>, Type$2.TObject<{
|
|
6956
|
-
message: Type$2.TString;
|
|
6957
|
-
retryable: Type$2.TBoolean;
|
|
6958
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6959
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6960
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6961
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6962
|
-
_tag: Type$2.TLiteral<"InvalidResponse">;
|
|
6963
|
-
}>, Type$2.TObject<{
|
|
6964
|
-
message: Type$2.TString;
|
|
6965
|
-
retryable: Type$2.TBoolean;
|
|
6966
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
6967
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
6968
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
6969
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
6970
|
-
_tag: Type$2.TLiteral<"Unknown">;
|
|
6971
|
-
}>]>>;
|
|
6972
|
-
time: Type$2.TObject<{
|
|
6973
|
-
created: Type$2.TNumber;
|
|
6974
|
-
completed: Type$2.TNumber;
|
|
6975
|
-
}>;
|
|
6976
|
-
parts: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
6977
|
-
type: Type$2.TLiteral<"text">;
|
|
6978
|
-
text: Type$2.TString;
|
|
6979
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
6980
|
-
}>, Type$2.TObject<{
|
|
6981
|
-
type: Type$2.TLiteral<"image">;
|
|
6982
|
-
data: Type$2.TString;
|
|
6983
|
-
mimeType: Type$2.TString;
|
|
6984
|
-
}>, Type$2.TObject<{
|
|
6985
|
-
type: Type$2.TLiteral<"thinking">;
|
|
6986
|
-
thinking: Type$2.TString;
|
|
6987
|
-
thinkingSignature: Type$2.TOptional<Type$2.TString>;
|
|
6988
|
-
redacted: Type$2.TOptional<Type$2.TBoolean>;
|
|
6989
|
-
}>, Type$2.TUnion<[Type$2.TIntersect<[Type$2.TObject<{
|
|
6990
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
6991
|
-
callID: Type$2.TString;
|
|
6992
|
-
name: Type$2.TString;
|
|
6993
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
6994
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
6995
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
6996
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
6997
|
-
time: Type$2.TObject<{
|
|
6998
|
-
start: Type$2.TNumber;
|
|
6999
|
-
end: Type$2.TNumber;
|
|
7000
|
-
}>;
|
|
7001
|
-
}>, Type$2.TObject<{
|
|
7002
|
-
status: Type$2.TLiteral<"pending">;
|
|
7003
|
-
}>]>, Type$2.TObject<{
|
|
7004
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
7005
|
-
callID: Type$2.TString;
|
|
7006
|
-
name: Type$2.TString;
|
|
7007
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
7008
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
7009
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
7010
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
7011
|
-
time: Type$2.TObject<{
|
|
7012
|
-
start: Type$2.TNumber;
|
|
7013
|
-
end: Type$2.TNumber;
|
|
7014
|
-
}>;
|
|
7015
|
-
status: Type$2.TLiteral<"running">;
|
|
7016
|
-
partial: Type$2.TOptional<Type$2.TObject<{
|
|
7017
|
-
content: Type$2.TOptional<Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
7018
|
-
type: Type$2.TLiteral<"text">;
|
|
7019
|
-
text: Type$2.TString;
|
|
7020
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
7021
|
-
}>, Type$2.TObject<{
|
|
7022
|
-
type: Type$2.TLiteral<"image">;
|
|
7023
|
-
data: Type$2.TString;
|
|
7024
|
-
mimeType: Type$2.TString;
|
|
7025
|
-
}>]>>>;
|
|
7026
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
7027
|
-
}>>;
|
|
7028
|
-
}>, Type$2.TUnion<[Type$2.TObject<{
|
|
7029
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
7030
|
-
callID: Type$2.TString;
|
|
7031
|
-
name: Type$2.TString;
|
|
7032
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
7033
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
7034
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
7035
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
7036
|
-
time: Type$2.TObject<{
|
|
7037
|
-
start: Type$2.TNumber;
|
|
7038
|
-
end: Type$2.TNumber;
|
|
7039
|
-
}>;
|
|
7040
|
-
status: Type$2.TLiteral<"completed">;
|
|
7041
|
-
result: Type$2.TObject<{
|
|
7042
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
7043
|
-
type: Type$2.TLiteral<"text">;
|
|
7044
|
-
text: Type$2.TString;
|
|
7045
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
7046
|
-
}>, Type$2.TObject<{
|
|
7047
|
-
type: Type$2.TLiteral<"image">;
|
|
7048
|
-
data: Type$2.TString;
|
|
7049
|
-
mimeType: Type$2.TString;
|
|
7050
|
-
}>]>>;
|
|
7051
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
7052
|
-
isError: Type$2.TLiteral<false>;
|
|
7053
|
-
}>;
|
|
7054
|
-
}>, Type$2.TObject<{
|
|
7055
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
7056
|
-
callID: Type$2.TString;
|
|
7057
|
-
name: Type$2.TString;
|
|
7058
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
7059
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
7060
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
7061
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
7062
|
-
time: Type$2.TObject<{
|
|
7063
|
-
start: Type$2.TNumber;
|
|
7064
|
-
end: Type$2.TNumber;
|
|
7065
|
-
}>;
|
|
7066
|
-
status: Type$2.TLiteral<"error">;
|
|
7067
|
-
result: Type$2.TObject<{
|
|
7068
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
7069
|
-
type: Type$2.TLiteral<"text">;
|
|
7070
|
-
text: Type$2.TString;
|
|
7071
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
7072
|
-
}>, Type$2.TObject<{
|
|
7073
|
-
type: Type$2.TLiteral<"image">;
|
|
7074
|
-
data: Type$2.TString;
|
|
7075
|
-
mimeType: Type$2.TString;
|
|
7076
|
-
}>]>>;
|
|
7077
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
7078
|
-
isError: Type$2.TLiteral<true>;
|
|
7079
|
-
}>;
|
|
7080
|
-
}>, Type$2.TObject<{
|
|
7081
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
7082
|
-
callID: Type$2.TString;
|
|
7083
|
-
name: Type$2.TString;
|
|
7084
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
7085
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
7086
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
7087
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
7088
|
-
time: Type$2.TObject<{
|
|
7089
|
-
start: Type$2.TNumber;
|
|
7090
|
-
end: Type$2.TNumber;
|
|
7091
|
-
}>;
|
|
7092
|
-
status: Type$2.TLiteral<"skipped">;
|
|
7093
|
-
result: Type$2.TObject<{
|
|
7094
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
7095
|
-
type: Type$2.TLiteral<"text">;
|
|
7096
|
-
text: Type$2.TString;
|
|
7097
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
7098
|
-
}>, Type$2.TObject<{
|
|
7099
|
-
type: Type$2.TLiteral<"image">;
|
|
7100
|
-
data: Type$2.TString;
|
|
7101
|
-
mimeType: Type$2.TString;
|
|
7102
|
-
}>]>>;
|
|
7103
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
7104
|
-
isError: Type$2.TLiteral<true>;
|
|
7105
|
-
}>;
|
|
7106
|
-
}>, Type$2.TObject<{
|
|
7107
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
7108
|
-
callID: Type$2.TString;
|
|
7109
|
-
name: Type$2.TString;
|
|
7110
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
7111
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
7112
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
7113
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
7114
|
-
time: Type$2.TObject<{
|
|
7115
|
-
start: Type$2.TNumber;
|
|
7116
|
-
end: Type$2.TNumber;
|
|
7117
|
-
}>;
|
|
7118
|
-
status: Type$2.TLiteral<"aborted">;
|
|
7119
|
-
result: Type$2.TObject<{
|
|
7120
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
7121
|
-
type: Type$2.TLiteral<"text">;
|
|
7122
|
-
text: Type$2.TString;
|
|
7123
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
7124
|
-
}>, Type$2.TObject<{
|
|
7125
|
-
type: Type$2.TLiteral<"image">;
|
|
7126
|
-
data: Type$2.TString;
|
|
7127
|
-
mimeType: Type$2.TString;
|
|
7128
|
-
}>]>>;
|
|
7129
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
7130
|
-
isError: Type$2.TLiteral<true>;
|
|
7131
|
-
}>;
|
|
7132
|
-
}>]>]>]>>;
|
|
7133
|
-
responseId: Type$2.TOptional<Type$2.TString>;
|
|
7134
|
-
responseModel: Type$2.TOptional<Type$2.TString>;
|
|
7135
|
-
messageId: Type$2.TString;
|
|
7136
|
-
}>;
|
|
7137
|
-
partIndex: Type$2.TNumber;
|
|
7138
|
-
part: Type$2.TUnion<[Type$2.TObject<{
|
|
7139
|
-
type: Type$2.TLiteral<"text">;
|
|
7140
|
-
text: Type$2.TString;
|
|
7141
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
7142
|
-
}>, Type$2.TObject<{
|
|
7143
|
-
type: Type$2.TLiteral<"image">;
|
|
7144
|
-
data: Type$2.TString;
|
|
7145
|
-
mimeType: Type$2.TString;
|
|
7146
|
-
}>, Type$2.TObject<{
|
|
7147
|
-
type: Type$2.TLiteral<"thinking">;
|
|
7148
|
-
thinking: Type$2.TString;
|
|
7149
|
-
thinkingSignature: Type$2.TOptional<Type$2.TString>;
|
|
7150
|
-
redacted: Type$2.TOptional<Type$2.TBoolean>;
|
|
7151
|
-
}>, Type$2.TUnion<[Type$2.TIntersect<[Type$2.TObject<{
|
|
7152
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
7153
|
-
callID: Type$2.TString;
|
|
7154
|
-
name: Type$2.TString;
|
|
7155
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
7156
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
7157
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
7158
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
7159
|
-
time: Type$2.TObject<{
|
|
7160
|
-
start: Type$2.TNumber;
|
|
7161
|
-
end: Type$2.TNumber;
|
|
7162
|
-
}>;
|
|
7163
|
-
}>, Type$2.TObject<{
|
|
7164
|
-
status: Type$2.TLiteral<"pending">;
|
|
7165
|
-
}>]>, Type$2.TObject<{
|
|
7166
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
7167
|
-
callID: Type$2.TString;
|
|
7168
|
-
name: Type$2.TString;
|
|
7169
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
7170
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
7171
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
7172
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
7173
|
-
time: Type$2.TObject<{
|
|
7174
|
-
start: Type$2.TNumber;
|
|
7175
|
-
end: Type$2.TNumber;
|
|
7176
|
-
}>;
|
|
7177
|
-
status: Type$2.TLiteral<"running">;
|
|
7178
|
-
partial: Type$2.TOptional<Type$2.TObject<{
|
|
7179
|
-
content: Type$2.TOptional<Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
7180
|
-
type: Type$2.TLiteral<"text">;
|
|
7181
|
-
text: Type$2.TString;
|
|
7182
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
7183
|
-
}>, Type$2.TObject<{
|
|
7184
|
-
type: Type$2.TLiteral<"image">;
|
|
7185
|
-
data: Type$2.TString;
|
|
7186
|
-
mimeType: Type$2.TString;
|
|
7187
|
-
}>]>>>;
|
|
7188
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
7189
|
-
}>>;
|
|
7190
|
-
}>, Type$2.TUnion<[Type$2.TObject<{
|
|
7191
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
7192
|
-
callID: Type$2.TString;
|
|
7193
|
-
name: Type$2.TString;
|
|
7194
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
7195
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
7196
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
7197
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
7198
|
-
time: Type$2.TObject<{
|
|
7199
|
-
start: Type$2.TNumber;
|
|
7200
|
-
end: Type$2.TNumber;
|
|
7201
|
-
}>;
|
|
7202
|
-
status: Type$2.TLiteral<"completed">;
|
|
7203
|
-
result: Type$2.TObject<{
|
|
7204
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
7205
|
-
type: Type$2.TLiteral<"text">;
|
|
7206
|
-
text: Type$2.TString;
|
|
7207
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
7208
|
-
}>, Type$2.TObject<{
|
|
7209
|
-
type: Type$2.TLiteral<"image">;
|
|
7210
|
-
data: Type$2.TString;
|
|
7211
|
-
mimeType: Type$2.TString;
|
|
7212
|
-
}>]>>;
|
|
7213
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
7214
|
-
isError: Type$2.TLiteral<false>;
|
|
7215
|
-
}>;
|
|
7216
|
-
}>, Type$2.TObject<{
|
|
7217
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
7218
|
-
callID: Type$2.TString;
|
|
7219
|
-
name: Type$2.TString;
|
|
7220
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
7221
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
7222
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
7223
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
7224
|
-
time: Type$2.TObject<{
|
|
7225
|
-
start: Type$2.TNumber;
|
|
7226
|
-
end: Type$2.TNumber;
|
|
7227
|
-
}>;
|
|
7228
|
-
status: Type$2.TLiteral<"error">;
|
|
7229
|
-
result: Type$2.TObject<{
|
|
7230
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
7231
|
-
type: Type$2.TLiteral<"text">;
|
|
7232
|
-
text: Type$2.TString;
|
|
7233
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
7234
|
-
}>, Type$2.TObject<{
|
|
7235
|
-
type: Type$2.TLiteral<"image">;
|
|
7236
|
-
data: Type$2.TString;
|
|
7237
|
-
mimeType: Type$2.TString;
|
|
7238
|
-
}>]>>;
|
|
7239
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
7240
|
-
isError: Type$2.TLiteral<true>;
|
|
7241
|
-
}>;
|
|
7242
|
-
}>, Type$2.TObject<{
|
|
7243
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
7244
|
-
callID: Type$2.TString;
|
|
7245
|
-
name: Type$2.TString;
|
|
7246
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
7247
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
7248
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
7249
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
7250
|
-
time: Type$2.TObject<{
|
|
7251
|
-
start: Type$2.TNumber;
|
|
7252
|
-
end: Type$2.TNumber;
|
|
7253
|
-
}>;
|
|
7254
|
-
status: Type$2.TLiteral<"skipped">;
|
|
7255
|
-
result: Type$2.TObject<{
|
|
7256
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
7257
|
-
type: Type$2.TLiteral<"text">;
|
|
7258
|
-
text: Type$2.TString;
|
|
7259
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
7260
|
-
}>, Type$2.TObject<{
|
|
7261
|
-
type: Type$2.TLiteral<"image">;
|
|
7262
|
-
data: Type$2.TString;
|
|
7263
|
-
mimeType: Type$2.TString;
|
|
7264
|
-
}>]>>;
|
|
7265
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
7266
|
-
isError: Type$2.TLiteral<true>;
|
|
7267
|
-
}>;
|
|
7268
|
-
}>, Type$2.TObject<{
|
|
7269
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
7270
|
-
callID: Type$2.TString;
|
|
7271
|
-
name: Type$2.TString;
|
|
7272
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
7273
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
7274
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
7275
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
7276
|
-
time: Type$2.TObject<{
|
|
7277
|
-
start: Type$2.TNumber;
|
|
7278
|
-
end: Type$2.TNumber;
|
|
7279
|
-
}>;
|
|
7280
|
-
status: Type$2.TLiteral<"aborted">;
|
|
7281
|
-
result: Type$2.TObject<{
|
|
7282
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
7283
|
-
type: Type$2.TLiteral<"text">;
|
|
7284
|
-
text: Type$2.TString;
|
|
7285
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
7286
|
-
}>, Type$2.TObject<{
|
|
7287
|
-
type: Type$2.TLiteral<"image">;
|
|
7288
|
-
data: Type$2.TString;
|
|
7289
|
-
mimeType: Type$2.TString;
|
|
7290
|
-
}>]>>;
|
|
7291
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
7292
|
-
isError: Type$2.TLiteral<true>;
|
|
7293
|
-
}>;
|
|
7294
|
-
}>]>]>]>;
|
|
7295
|
-
}>]>, Type$2.TObject<{
|
|
7296
|
-
type: Type$2.TLiteral<"message.update">;
|
|
7297
|
-
message: Type$2.TUnion<[Type$2.TObject<{
|
|
7298
|
-
messageId: Type$2.TString;
|
|
7299
|
-
role: Type$2.TLiteral<"user">;
|
|
7300
|
-
time: Type$2.TObject<{
|
|
7301
|
-
created: Type$2.TNumber;
|
|
7302
|
-
}>;
|
|
7303
|
-
parts: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
7304
|
-
type: Type$2.TLiteral<"text">;
|
|
7305
|
-
text: Type$2.TString;
|
|
7306
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
7307
|
-
}>, Type$2.TObject<{
|
|
7308
|
-
type: Type$2.TLiteral<"image">;
|
|
7309
|
-
data: Type$2.TString;
|
|
7310
|
-
mimeType: Type$2.TString;
|
|
7311
|
-
}>]>>;
|
|
7312
|
-
}>, Type$2.TObject<{
|
|
7313
|
-
role: Type$2.TLiteral<"assistant">;
|
|
7314
|
-
protocol: Type$2.TUnion<[Type$2.TLiteral<"anthropic">, Type$2.TLiteral<"google">, Type$2.TLiteral<"google-vertex">, Type$2.TLiteral<"google-vertex-anthropic">, Type$2.TLiteral<"openai">, Type$2.TLiteral<"openai-compatible">, Type$2.TLiteral<"openai-codex">, Type$2.TLiteral<"openrouter">, Type$2.TLiteral<"xai">]>;
|
|
7315
|
-
provider: Type$2.TObject<{
|
|
7316
|
-
id: Type$2.TString;
|
|
7317
|
-
name: Type$2.TString;
|
|
7318
|
-
source: Type$2.TEnum<["env", "config", "custom", "api", "unknown"]>;
|
|
7319
|
-
env: Type$2.TArray<Type$2.TString>;
|
|
7320
|
-
key: Type$2.TOptional<Type$2.TString>;
|
|
7321
|
-
options: Type$2.TOptional<Type$2.TRecord<"^.*$", Type$2.TAny>>;
|
|
7322
|
-
}>;
|
|
7323
|
-
model: Type$2.TString;
|
|
7324
|
-
usage: Type$2.TObject<{
|
|
7325
|
-
input: Type$2.TNumber;
|
|
7326
|
-
output: Type$2.TNumber;
|
|
7327
|
-
cacheRead: Type$2.TNumber;
|
|
7328
|
-
cacheWrite: Type$2.TNumber;
|
|
7329
|
-
reasoning: Type$2.TOptional<Type$2.TNumber>;
|
|
7330
|
-
totalTokens: Type$2.TNumber;
|
|
7331
|
-
cost: Type$2.TObject<{
|
|
7332
|
-
input: Type$2.TNumber;
|
|
7333
|
-
output: Type$2.TNumber;
|
|
7334
|
-
cacheRead: Type$2.TNumber;
|
|
7335
|
-
cacheWrite: Type$2.TNumber;
|
|
7336
|
-
total: Type$2.TNumber;
|
|
7337
|
-
}>;
|
|
7338
|
-
}>;
|
|
7339
|
-
stopReason: Type$2.TUnion<[Type$2.TLiteral<"stop">, Type$2.TLiteral<"length">, Type$2.TLiteral<"toolUse">, Type$2.TLiteral<"error">, Type$2.TLiteral<"aborted">]>;
|
|
7340
|
-
errorMessage: Type$2.TOptional<Type$2.TString>;
|
|
7341
|
-
failure: Type$2.TOptional<Type$2.TUnion<[Type$2.TObject<{
|
|
7342
|
-
message: Type$2.TString;
|
|
7343
|
-
retryable: Type$2.TBoolean;
|
|
7344
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
7345
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
7346
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
7347
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
7348
|
-
_tag: Type$2.TLiteral<"Authentication">;
|
|
7349
|
-
reason: Type$2.TUnion<[Type$2.TLiteral<"missing">, Type$2.TLiteral<"invalid">, Type$2.TLiteral<"expired">]>;
|
|
7350
|
-
}>, Type$2.TObject<{
|
|
7351
|
-
message: Type$2.TString;
|
|
7352
|
-
retryable: Type$2.TBoolean;
|
|
7353
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
7354
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
7355
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
7356
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
7357
|
-
_tag: Type$2.TLiteral<"Configuration">;
|
|
7358
|
-
}>, Type$2.TObject<{
|
|
7359
|
-
message: Type$2.TString;
|
|
7360
|
-
retryable: Type$2.TBoolean;
|
|
7361
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
7362
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
7363
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
7364
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
7365
|
-
_tag: Type$2.TLiteral<"Authorization">;
|
|
7366
|
-
}>, Type$2.TObject<{
|
|
7367
|
-
message: Type$2.TString;
|
|
7368
|
-
retryable: Type$2.TBoolean;
|
|
7369
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
7370
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
7371
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
7372
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
7373
|
-
_tag: Type$2.TLiteral<"ModelUnavailable">;
|
|
7374
|
-
}>, Type$2.TObject<{
|
|
7375
|
-
message: Type$2.TString;
|
|
7376
|
-
retryable: Type$2.TBoolean;
|
|
7377
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
7378
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
7379
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
7380
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
7381
|
-
_tag: Type$2.TLiteral<"RateLimit">;
|
|
7382
|
-
}>, Type$2.TObject<{
|
|
7383
|
-
message: Type$2.TString;
|
|
7384
|
-
retryable: Type$2.TBoolean;
|
|
7385
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
7386
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
7387
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
7388
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
7389
|
-
_tag: Type$2.TLiteral<"Quota">;
|
|
7390
|
-
}>, Type$2.TObject<{
|
|
7391
|
-
message: Type$2.TString;
|
|
7392
|
-
retryable: Type$2.TBoolean;
|
|
7393
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
7394
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
7395
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
7396
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
7397
|
-
_tag: Type$2.TLiteral<"InvalidRequest">;
|
|
7398
|
-
}>, Type$2.TObject<{
|
|
7399
|
-
message: Type$2.TString;
|
|
7400
|
-
retryable: Type$2.TBoolean;
|
|
7401
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
7402
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
7403
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
7404
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
7405
|
-
_tag: Type$2.TLiteral<"ContentPolicy">;
|
|
7406
|
-
}>, Type$2.TObject<{
|
|
7407
|
-
message: Type$2.TString;
|
|
7408
|
-
retryable: Type$2.TBoolean;
|
|
7409
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
7410
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
7411
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
7412
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
7413
|
-
_tag: Type$2.TLiteral<"Timeout">;
|
|
7414
|
-
}>, Type$2.TObject<{
|
|
7415
|
-
message: Type$2.TString;
|
|
7416
|
-
retryable: Type$2.TBoolean;
|
|
7417
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
7418
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
7419
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
7420
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
7421
|
-
_tag: Type$2.TLiteral<"Transport">;
|
|
7422
|
-
}>, Type$2.TObject<{
|
|
7423
|
-
message: Type$2.TString;
|
|
7424
|
-
retryable: Type$2.TBoolean;
|
|
7425
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
7426
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
7427
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
7428
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
7429
|
-
_tag: Type$2.TLiteral<"Unavailable">;
|
|
7430
|
-
}>, Type$2.TObject<{
|
|
7431
|
-
message: Type$2.TString;
|
|
7432
|
-
retryable: Type$2.TBoolean;
|
|
7433
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
7434
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
7435
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
7436
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
7437
|
-
_tag: Type$2.TLiteral<"InvalidResponse">;
|
|
7438
|
-
}>, Type$2.TObject<{
|
|
7439
|
-
message: Type$2.TString;
|
|
7440
|
-
retryable: Type$2.TBoolean;
|
|
7441
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
7442
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
7443
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
7444
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
7445
|
-
_tag: Type$2.TLiteral<"Unknown">;
|
|
7446
|
-
}>]>>;
|
|
7447
|
-
time: Type$2.TObject<{
|
|
7448
|
-
created: Type$2.TNumber;
|
|
7449
|
-
completed: Type$2.TNumber;
|
|
7450
|
-
}>;
|
|
7451
|
-
parts: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
7452
|
-
type: Type$2.TLiteral<"text">;
|
|
7453
|
-
text: Type$2.TString;
|
|
7454
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
7455
|
-
}>, Type$2.TObject<{
|
|
7456
|
-
type: Type$2.TLiteral<"image">;
|
|
7457
|
-
data: Type$2.TString;
|
|
7458
|
-
mimeType: Type$2.TString;
|
|
7459
|
-
}>, Type$2.TObject<{
|
|
7460
|
-
type: Type$2.TLiteral<"thinking">;
|
|
7461
|
-
thinking: Type$2.TString;
|
|
7462
|
-
thinkingSignature: Type$2.TOptional<Type$2.TString>;
|
|
7463
|
-
redacted: Type$2.TOptional<Type$2.TBoolean>;
|
|
7464
|
-
}>, Type$2.TUnion<[Type$2.TIntersect<[Type$2.TObject<{
|
|
7465
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
7466
|
-
callID: Type$2.TString;
|
|
7467
|
-
name: Type$2.TString;
|
|
7468
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
7469
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
7470
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
7471
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
7472
|
-
time: Type$2.TObject<{
|
|
7473
|
-
start: Type$2.TNumber;
|
|
7474
|
-
end: Type$2.TNumber;
|
|
7475
|
-
}>;
|
|
7476
|
-
}>, Type$2.TObject<{
|
|
7477
|
-
status: Type$2.TLiteral<"pending">;
|
|
7478
|
-
}>]>, Type$2.TObject<{
|
|
7479
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
7480
|
-
callID: Type$2.TString;
|
|
7481
|
-
name: Type$2.TString;
|
|
7482
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
7483
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
7484
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
7485
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
7486
|
-
time: Type$2.TObject<{
|
|
7487
|
-
start: Type$2.TNumber;
|
|
7488
|
-
end: Type$2.TNumber;
|
|
7489
|
-
}>;
|
|
7490
|
-
status: Type$2.TLiteral<"running">;
|
|
7491
|
-
partial: Type$2.TOptional<Type$2.TObject<{
|
|
7492
|
-
content: Type$2.TOptional<Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
7493
|
-
type: Type$2.TLiteral<"text">;
|
|
7494
|
-
text: Type$2.TString;
|
|
7495
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
7496
|
-
}>, Type$2.TObject<{
|
|
7497
|
-
type: Type$2.TLiteral<"image">;
|
|
7498
|
-
data: Type$2.TString;
|
|
7499
|
-
mimeType: Type$2.TString;
|
|
7500
|
-
}>]>>>;
|
|
7501
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
7502
|
-
}>>;
|
|
7503
|
-
}>, Type$2.TUnion<[Type$2.TObject<{
|
|
7504
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
7505
|
-
callID: Type$2.TString;
|
|
7506
|
-
name: Type$2.TString;
|
|
7507
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
7508
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
7509
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
7510
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
7511
|
-
time: Type$2.TObject<{
|
|
7512
|
-
start: Type$2.TNumber;
|
|
7513
|
-
end: Type$2.TNumber;
|
|
7514
|
-
}>;
|
|
7515
|
-
status: Type$2.TLiteral<"completed">;
|
|
7516
|
-
result: Type$2.TObject<{
|
|
7517
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
7518
|
-
type: Type$2.TLiteral<"text">;
|
|
7519
|
-
text: Type$2.TString;
|
|
7520
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
7521
|
-
}>, Type$2.TObject<{
|
|
7522
|
-
type: Type$2.TLiteral<"image">;
|
|
7523
|
-
data: Type$2.TString;
|
|
7524
|
-
mimeType: Type$2.TString;
|
|
7525
|
-
}>]>>;
|
|
7526
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
7527
|
-
isError: Type$2.TLiteral<false>;
|
|
7528
|
-
}>;
|
|
7529
|
-
}>, Type$2.TObject<{
|
|
7530
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
7531
|
-
callID: Type$2.TString;
|
|
7532
|
-
name: Type$2.TString;
|
|
7533
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
7534
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
7535
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
7536
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
7537
|
-
time: Type$2.TObject<{
|
|
7538
|
-
start: Type$2.TNumber;
|
|
7539
|
-
end: Type$2.TNumber;
|
|
7540
|
-
}>;
|
|
7541
|
-
status: Type$2.TLiteral<"error">;
|
|
7542
|
-
result: Type$2.TObject<{
|
|
7543
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
7544
|
-
type: Type$2.TLiteral<"text">;
|
|
7545
|
-
text: Type$2.TString;
|
|
7546
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
7547
|
-
}>, Type$2.TObject<{
|
|
7548
|
-
type: Type$2.TLiteral<"image">;
|
|
7549
|
-
data: Type$2.TString;
|
|
7550
|
-
mimeType: Type$2.TString;
|
|
7551
|
-
}>]>>;
|
|
7552
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
7553
|
-
isError: Type$2.TLiteral<true>;
|
|
7554
|
-
}>;
|
|
7555
|
-
}>, Type$2.TObject<{
|
|
7556
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
7557
|
-
callID: Type$2.TString;
|
|
7558
|
-
name: Type$2.TString;
|
|
7559
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
7560
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
7561
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
7562
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
7563
|
-
time: Type$2.TObject<{
|
|
7564
|
-
start: Type$2.TNumber;
|
|
7565
|
-
end: Type$2.TNumber;
|
|
7566
|
-
}>;
|
|
7567
|
-
status: Type$2.TLiteral<"skipped">;
|
|
7568
|
-
result: Type$2.TObject<{
|
|
7569
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
7570
|
-
type: Type$2.TLiteral<"text">;
|
|
7571
|
-
text: Type$2.TString;
|
|
7572
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
7573
|
-
}>, Type$2.TObject<{
|
|
7574
|
-
type: Type$2.TLiteral<"image">;
|
|
7575
|
-
data: Type$2.TString;
|
|
7576
|
-
mimeType: Type$2.TString;
|
|
7577
|
-
}>]>>;
|
|
7578
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
7579
|
-
isError: Type$2.TLiteral<true>;
|
|
7580
|
-
}>;
|
|
7581
|
-
}>, Type$2.TObject<{
|
|
7582
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
7583
|
-
callID: Type$2.TString;
|
|
7584
|
-
name: Type$2.TString;
|
|
7585
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
7586
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
7587
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
7588
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
7589
|
-
time: Type$2.TObject<{
|
|
7590
|
-
start: Type$2.TNumber;
|
|
7591
|
-
end: Type$2.TNumber;
|
|
7592
|
-
}>;
|
|
7593
|
-
status: Type$2.TLiteral<"aborted">;
|
|
7594
|
-
result: Type$2.TObject<{
|
|
7595
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
7596
|
-
type: Type$2.TLiteral<"text">;
|
|
7597
|
-
text: Type$2.TString;
|
|
7598
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
7599
|
-
}>, Type$2.TObject<{
|
|
7600
|
-
type: Type$2.TLiteral<"image">;
|
|
7601
|
-
data: Type$2.TString;
|
|
7602
|
-
mimeType: Type$2.TString;
|
|
7603
|
-
}>]>>;
|
|
7604
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
7605
|
-
isError: Type$2.TLiteral<true>;
|
|
7606
|
-
}>;
|
|
7607
|
-
}>]>]>]>>;
|
|
7608
|
-
responseId: Type$2.TOptional<Type$2.TString>;
|
|
7609
|
-
responseModel: Type$2.TOptional<Type$2.TString>;
|
|
7610
|
-
messageId: Type$2.TString;
|
|
7611
|
-
}>]>;
|
|
7612
|
-
}>, Type$2.TObject<{
|
|
7613
|
-
type: Type$2.TLiteral<"message.end">;
|
|
7614
|
-
message: Type$2.TUnion<[Type$2.TObject<{
|
|
7615
|
-
messageId: Type$2.TString;
|
|
7616
|
-
role: Type$2.TLiteral<"user">;
|
|
7617
|
-
time: Type$2.TObject<{
|
|
7618
|
-
created: Type$2.TNumber;
|
|
7619
|
-
}>;
|
|
7620
|
-
parts: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
7621
|
-
type: Type$2.TLiteral<"text">;
|
|
7622
|
-
text: Type$2.TString;
|
|
7623
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
7624
|
-
}>, Type$2.TObject<{
|
|
7625
|
-
type: Type$2.TLiteral<"image">;
|
|
7626
|
-
data: Type$2.TString;
|
|
7627
|
-
mimeType: Type$2.TString;
|
|
7628
|
-
}>]>>;
|
|
7629
|
-
}>, Type$2.TObject<{
|
|
7630
|
-
role: Type$2.TLiteral<"assistant">;
|
|
7631
|
-
protocol: Type$2.TUnion<[Type$2.TLiteral<"anthropic">, Type$2.TLiteral<"google">, Type$2.TLiteral<"google-vertex">, Type$2.TLiteral<"google-vertex-anthropic">, Type$2.TLiteral<"openai">, Type$2.TLiteral<"openai-compatible">, Type$2.TLiteral<"openai-codex">, Type$2.TLiteral<"openrouter">, Type$2.TLiteral<"xai">]>;
|
|
7632
|
-
provider: Type$2.TObject<{
|
|
7633
|
-
id: Type$2.TString;
|
|
7634
|
-
name: Type$2.TString;
|
|
7635
|
-
source: Type$2.TEnum<["env", "config", "custom", "api", "unknown"]>;
|
|
7636
|
-
env: Type$2.TArray<Type$2.TString>;
|
|
7637
|
-
key: Type$2.TOptional<Type$2.TString>;
|
|
7638
|
-
options: Type$2.TOptional<Type$2.TRecord<"^.*$", Type$2.TAny>>;
|
|
7639
|
-
}>;
|
|
7640
|
-
model: Type$2.TString;
|
|
7641
|
-
usage: Type$2.TObject<{
|
|
7642
|
-
input: Type$2.TNumber;
|
|
7643
|
-
output: Type$2.TNumber;
|
|
7644
|
-
cacheRead: Type$2.TNumber;
|
|
7645
|
-
cacheWrite: Type$2.TNumber;
|
|
7646
|
-
reasoning: Type$2.TOptional<Type$2.TNumber>;
|
|
7647
|
-
totalTokens: Type$2.TNumber;
|
|
7648
|
-
cost: Type$2.TObject<{
|
|
7649
|
-
input: Type$2.TNumber;
|
|
7650
|
-
output: Type$2.TNumber;
|
|
7651
|
-
cacheRead: Type$2.TNumber;
|
|
7652
|
-
cacheWrite: Type$2.TNumber;
|
|
7653
|
-
total: Type$2.TNumber;
|
|
7654
|
-
}>;
|
|
7655
|
-
}>;
|
|
7656
|
-
stopReason: Type$2.TUnion<[Type$2.TLiteral<"stop">, Type$2.TLiteral<"length">, Type$2.TLiteral<"toolUse">, Type$2.TLiteral<"error">, Type$2.TLiteral<"aborted">]>;
|
|
7657
|
-
errorMessage: Type$2.TOptional<Type$2.TString>;
|
|
7658
|
-
failure: Type$2.TOptional<Type$2.TUnion<[Type$2.TObject<{
|
|
7659
|
-
message: Type$2.TString;
|
|
7660
|
-
retryable: Type$2.TBoolean;
|
|
7661
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
7662
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
7663
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
7664
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
7665
|
-
_tag: Type$2.TLiteral<"Authentication">;
|
|
7666
|
-
reason: Type$2.TUnion<[Type$2.TLiteral<"missing">, Type$2.TLiteral<"invalid">, Type$2.TLiteral<"expired">]>;
|
|
7667
|
-
}>, Type$2.TObject<{
|
|
7668
|
-
message: Type$2.TString;
|
|
7669
|
-
retryable: Type$2.TBoolean;
|
|
7670
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
7671
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
7672
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
7673
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
7674
|
-
_tag: Type$2.TLiteral<"Configuration">;
|
|
7675
|
-
}>, Type$2.TObject<{
|
|
7676
|
-
message: Type$2.TString;
|
|
7677
|
-
retryable: Type$2.TBoolean;
|
|
7678
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
7679
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
7680
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
7681
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
7682
|
-
_tag: Type$2.TLiteral<"Authorization">;
|
|
7683
|
-
}>, Type$2.TObject<{
|
|
7684
|
-
message: Type$2.TString;
|
|
7685
|
-
retryable: Type$2.TBoolean;
|
|
7686
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
7687
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
7688
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
7689
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
7690
|
-
_tag: Type$2.TLiteral<"ModelUnavailable">;
|
|
7691
|
-
}>, Type$2.TObject<{
|
|
7692
|
-
message: Type$2.TString;
|
|
7693
|
-
retryable: Type$2.TBoolean;
|
|
7694
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
7695
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
7696
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
7697
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
7698
|
-
_tag: Type$2.TLiteral<"RateLimit">;
|
|
7699
|
-
}>, Type$2.TObject<{
|
|
7700
|
-
message: Type$2.TString;
|
|
7701
|
-
retryable: Type$2.TBoolean;
|
|
7702
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
7703
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
7704
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
7705
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
7706
|
-
_tag: Type$2.TLiteral<"Quota">;
|
|
7707
|
-
}>, Type$2.TObject<{
|
|
7708
|
-
message: Type$2.TString;
|
|
7709
|
-
retryable: Type$2.TBoolean;
|
|
7710
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
7711
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
7712
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
7713
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
7714
|
-
_tag: Type$2.TLiteral<"InvalidRequest">;
|
|
7715
|
-
}>, Type$2.TObject<{
|
|
7716
|
-
message: Type$2.TString;
|
|
7717
|
-
retryable: Type$2.TBoolean;
|
|
7718
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
7719
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
7720
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
7721
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
7722
|
-
_tag: Type$2.TLiteral<"ContentPolicy">;
|
|
7723
|
-
}>, Type$2.TObject<{
|
|
7724
|
-
message: Type$2.TString;
|
|
7725
|
-
retryable: Type$2.TBoolean;
|
|
7726
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
7727
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
7728
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
7729
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
7730
|
-
_tag: Type$2.TLiteral<"Timeout">;
|
|
7731
|
-
}>, Type$2.TObject<{
|
|
7732
|
-
message: Type$2.TString;
|
|
7733
|
-
retryable: Type$2.TBoolean;
|
|
7734
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
7735
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
7736
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
7737
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
7738
|
-
_tag: Type$2.TLiteral<"Transport">;
|
|
7739
|
-
}>, Type$2.TObject<{
|
|
7740
|
-
message: Type$2.TString;
|
|
7741
|
-
retryable: Type$2.TBoolean;
|
|
7742
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
7743
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
7744
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
7745
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
7746
|
-
_tag: Type$2.TLiteral<"Unavailable">;
|
|
7747
|
-
}>, Type$2.TObject<{
|
|
7748
|
-
message: Type$2.TString;
|
|
7749
|
-
retryable: Type$2.TBoolean;
|
|
7750
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
7751
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
7752
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
7753
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
7754
|
-
_tag: Type$2.TLiteral<"InvalidResponse">;
|
|
7755
|
-
}>, Type$2.TObject<{
|
|
7756
|
-
message: Type$2.TString;
|
|
7757
|
-
retryable: Type$2.TBoolean;
|
|
7758
|
-
status: Type$2.TOptional<Type$2.TNumber>;
|
|
7759
|
-
code: Type$2.TOptional<Type$2.TString>;
|
|
7760
|
-
requestId: Type$2.TOptional<Type$2.TString>;
|
|
7761
|
-
retryAfterMs: Type$2.TOptional<Type$2.TNumber>;
|
|
7762
|
-
_tag: Type$2.TLiteral<"Unknown">;
|
|
7763
|
-
}>]>>;
|
|
7764
|
-
time: Type$2.TObject<{
|
|
7765
|
-
created: Type$2.TNumber;
|
|
7766
|
-
completed: Type$2.TNumber;
|
|
7767
|
-
}>;
|
|
7768
|
-
parts: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
7769
|
-
type: Type$2.TLiteral<"text">;
|
|
7770
|
-
text: Type$2.TString;
|
|
7771
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
7772
|
-
}>, Type$2.TObject<{
|
|
7773
|
-
type: Type$2.TLiteral<"image">;
|
|
7774
|
-
data: Type$2.TString;
|
|
7775
|
-
mimeType: Type$2.TString;
|
|
7776
|
-
}>, Type$2.TObject<{
|
|
7777
|
-
type: Type$2.TLiteral<"thinking">;
|
|
7778
|
-
thinking: Type$2.TString;
|
|
7779
|
-
thinkingSignature: Type$2.TOptional<Type$2.TString>;
|
|
7780
|
-
redacted: Type$2.TOptional<Type$2.TBoolean>;
|
|
7781
|
-
}>, Type$2.TUnion<[Type$2.TIntersect<[Type$2.TObject<{
|
|
7782
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
7783
|
-
callID: Type$2.TString;
|
|
7784
|
-
name: Type$2.TString;
|
|
7785
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
7786
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
7787
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
7788
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
7789
|
-
time: Type$2.TObject<{
|
|
7790
|
-
start: Type$2.TNumber;
|
|
7791
|
-
end: Type$2.TNumber;
|
|
7792
|
-
}>;
|
|
7793
|
-
}>, Type$2.TObject<{
|
|
7794
|
-
status: Type$2.TLiteral<"pending">;
|
|
7795
|
-
}>]>, Type$2.TObject<{
|
|
7796
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
7797
|
-
callID: Type$2.TString;
|
|
7798
|
-
name: Type$2.TString;
|
|
7799
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
7800
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
7801
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
7802
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
7803
|
-
time: Type$2.TObject<{
|
|
7804
|
-
start: Type$2.TNumber;
|
|
7805
|
-
end: Type$2.TNumber;
|
|
7806
|
-
}>;
|
|
7807
|
-
status: Type$2.TLiteral<"running">;
|
|
7808
|
-
partial: Type$2.TOptional<Type$2.TObject<{
|
|
7809
|
-
content: Type$2.TOptional<Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
7810
|
-
type: Type$2.TLiteral<"text">;
|
|
7811
|
-
text: Type$2.TString;
|
|
7812
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
7813
|
-
}>, Type$2.TObject<{
|
|
7814
|
-
type: Type$2.TLiteral<"image">;
|
|
7815
|
-
data: Type$2.TString;
|
|
7816
|
-
mimeType: Type$2.TString;
|
|
7817
|
-
}>]>>>;
|
|
7818
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
7819
|
-
}>>;
|
|
7820
|
-
}>, Type$2.TUnion<[Type$2.TObject<{
|
|
7821
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
7822
|
-
callID: Type$2.TString;
|
|
7823
|
-
name: Type$2.TString;
|
|
7824
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
7825
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
7826
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
7827
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
7828
|
-
time: Type$2.TObject<{
|
|
7829
|
-
start: Type$2.TNumber;
|
|
7830
|
-
end: Type$2.TNumber;
|
|
7831
|
-
}>;
|
|
7832
|
-
status: Type$2.TLiteral<"completed">;
|
|
7833
|
-
result: Type$2.TObject<{
|
|
7834
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
7835
|
-
type: Type$2.TLiteral<"text">;
|
|
7836
|
-
text: Type$2.TString;
|
|
7837
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
7838
|
-
}>, Type$2.TObject<{
|
|
7839
|
-
type: Type$2.TLiteral<"image">;
|
|
7840
|
-
data: Type$2.TString;
|
|
7841
|
-
mimeType: Type$2.TString;
|
|
7842
|
-
}>]>>;
|
|
7843
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
7844
|
-
isError: Type$2.TLiteral<false>;
|
|
7845
|
-
}>;
|
|
7846
|
-
}>, Type$2.TObject<{
|
|
7847
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
7848
|
-
callID: Type$2.TString;
|
|
7849
|
-
name: Type$2.TString;
|
|
7850
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
7851
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
7852
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
7853
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
7854
|
-
time: Type$2.TObject<{
|
|
7855
|
-
start: Type$2.TNumber;
|
|
7856
|
-
end: Type$2.TNumber;
|
|
7857
|
-
}>;
|
|
7858
|
-
status: Type$2.TLiteral<"error">;
|
|
7859
|
-
result: Type$2.TObject<{
|
|
7860
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
7861
|
-
type: Type$2.TLiteral<"text">;
|
|
7862
|
-
text: Type$2.TString;
|
|
7863
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
7864
|
-
}>, Type$2.TObject<{
|
|
7865
|
-
type: Type$2.TLiteral<"image">;
|
|
7866
|
-
data: Type$2.TString;
|
|
7867
|
-
mimeType: Type$2.TString;
|
|
7868
|
-
}>]>>;
|
|
7869
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
7870
|
-
isError: Type$2.TLiteral<true>;
|
|
7871
|
-
}>;
|
|
7872
|
-
}>, Type$2.TObject<{
|
|
7873
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
7874
|
-
callID: Type$2.TString;
|
|
7875
|
-
name: Type$2.TString;
|
|
7876
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
7877
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
7878
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
7879
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
7880
|
-
time: Type$2.TObject<{
|
|
7881
|
-
start: Type$2.TNumber;
|
|
7882
|
-
end: Type$2.TNumber;
|
|
7883
|
-
}>;
|
|
7884
|
-
status: Type$2.TLiteral<"skipped">;
|
|
7885
|
-
result: Type$2.TObject<{
|
|
7886
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
7887
|
-
type: Type$2.TLiteral<"text">;
|
|
7888
|
-
text: Type$2.TString;
|
|
7889
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
7890
|
-
}>, Type$2.TObject<{
|
|
7891
|
-
type: Type$2.TLiteral<"image">;
|
|
7892
|
-
data: Type$2.TString;
|
|
7893
|
-
mimeType: Type$2.TString;
|
|
7894
|
-
}>]>>;
|
|
7895
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
7896
|
-
isError: Type$2.TLiteral<true>;
|
|
7897
|
-
}>;
|
|
7898
|
-
}>, Type$2.TObject<{
|
|
7899
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
7900
|
-
callID: Type$2.TString;
|
|
7901
|
-
name: Type$2.TString;
|
|
7902
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
7903
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
7904
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
7905
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
7906
|
-
time: Type$2.TObject<{
|
|
7907
|
-
start: Type$2.TNumber;
|
|
7908
|
-
end: Type$2.TNumber;
|
|
7909
|
-
}>;
|
|
7910
|
-
status: Type$2.TLiteral<"aborted">;
|
|
7911
|
-
result: Type$2.TObject<{
|
|
7912
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
7913
|
-
type: Type$2.TLiteral<"text">;
|
|
7914
|
-
text: Type$2.TString;
|
|
7915
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
7916
|
-
}>, Type$2.TObject<{
|
|
7917
|
-
type: Type$2.TLiteral<"image">;
|
|
7918
|
-
data: Type$2.TString;
|
|
7919
|
-
mimeType: Type$2.TString;
|
|
7920
|
-
}>]>>;
|
|
7921
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
7922
|
-
isError: Type$2.TLiteral<true>;
|
|
7923
|
-
}>;
|
|
7924
|
-
}>]>]>]>>;
|
|
7925
|
-
responseId: Type$2.TOptional<Type$2.TString>;
|
|
7926
|
-
responseModel: Type$2.TOptional<Type$2.TString>;
|
|
7927
|
-
messageId: Type$2.TString;
|
|
7928
|
-
}>]>;
|
|
7929
|
-
}>, Type$2.TObject<{
|
|
7930
|
-
type: Type$2.TLiteral<"tool.execution.start">;
|
|
7931
|
-
messageId: Type$2.TString;
|
|
7932
|
-
partIndex: Type$2.TNumber;
|
|
7933
|
-
toolCall: Type$2.TIntersect<[Type$2.TObject<{
|
|
7934
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
7935
|
-
callID: Type$2.TString;
|
|
7936
|
-
name: Type$2.TString;
|
|
7937
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
7938
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
7939
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
7940
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
7941
|
-
time: Type$2.TObject<{
|
|
7942
|
-
start: Type$2.TNumber;
|
|
7943
|
-
end: Type$2.TNumber;
|
|
7944
|
-
}>;
|
|
7945
|
-
}>, Type$2.TObject<{
|
|
7946
|
-
status: Type$2.TLiteral<"pending">;
|
|
7947
|
-
}>]>;
|
|
7948
|
-
}>, Type$2.TObject<{
|
|
7949
|
-
type: Type$2.TLiteral<"tool.execution.update">;
|
|
7950
|
-
messageId: Type$2.TString;
|
|
7951
|
-
partIndex: Type$2.TNumber;
|
|
7952
|
-
toolCall: Type$2.TObject<{
|
|
7953
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
7954
|
-
callID: Type$2.TString;
|
|
7955
|
-
name: Type$2.TString;
|
|
7956
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
7957
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
7958
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
7959
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
7960
|
-
time: Type$2.TObject<{
|
|
7961
|
-
start: Type$2.TNumber;
|
|
7962
|
-
end: Type$2.TNumber;
|
|
7963
|
-
}>;
|
|
7964
|
-
status: Type$2.TLiteral<"running">;
|
|
7965
|
-
partial: Type$2.TOptional<Type$2.TObject<{
|
|
7966
|
-
content: Type$2.TOptional<Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
7967
|
-
type: Type$2.TLiteral<"text">;
|
|
7968
|
-
text: Type$2.TString;
|
|
7969
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
7970
|
-
}>, Type$2.TObject<{
|
|
7971
|
-
type: Type$2.TLiteral<"image">;
|
|
7972
|
-
data: Type$2.TString;
|
|
7973
|
-
mimeType: Type$2.TString;
|
|
7974
|
-
}>]>>>;
|
|
7975
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
7976
|
-
}>>;
|
|
7977
|
-
}>;
|
|
7978
|
-
}>, Type$2.TObject<{
|
|
7979
|
-
type: Type$2.TLiteral<"tool.execution.end">;
|
|
7980
|
-
messageId: Type$2.TString;
|
|
7981
|
-
partIndex: Type$2.TNumber;
|
|
7982
|
-
toolCall: Type$2.TUnion<[Type$2.TObject<{
|
|
7983
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
7984
|
-
callID: Type$2.TString;
|
|
7985
|
-
name: Type$2.TString;
|
|
7986
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
7987
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
7988
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
7989
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
7990
|
-
time: Type$2.TObject<{
|
|
7991
|
-
start: Type$2.TNumber;
|
|
7992
|
-
end: Type$2.TNumber;
|
|
7993
|
-
}>;
|
|
7994
|
-
status: Type$2.TLiteral<"completed">;
|
|
7995
|
-
result: Type$2.TObject<{
|
|
7996
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
7997
|
-
type: Type$2.TLiteral<"text">;
|
|
7998
|
-
text: Type$2.TString;
|
|
7999
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
8000
|
-
}>, Type$2.TObject<{
|
|
8001
|
-
type: Type$2.TLiteral<"image">;
|
|
8002
|
-
data: Type$2.TString;
|
|
8003
|
-
mimeType: Type$2.TString;
|
|
8004
|
-
}>]>>;
|
|
8005
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
8006
|
-
isError: Type$2.TLiteral<false>;
|
|
8007
|
-
}>;
|
|
8008
|
-
}>, Type$2.TObject<{
|
|
8009
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
8010
|
-
callID: Type$2.TString;
|
|
8011
|
-
name: Type$2.TString;
|
|
8012
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
8013
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
8014
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
8015
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
8016
|
-
time: Type$2.TObject<{
|
|
8017
|
-
start: Type$2.TNumber;
|
|
8018
|
-
end: Type$2.TNumber;
|
|
8019
|
-
}>;
|
|
8020
|
-
status: Type$2.TLiteral<"error">;
|
|
8021
|
-
result: Type$2.TObject<{
|
|
8022
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
8023
|
-
type: Type$2.TLiteral<"text">;
|
|
8024
|
-
text: Type$2.TString;
|
|
8025
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
8026
|
-
}>, Type$2.TObject<{
|
|
8027
|
-
type: Type$2.TLiteral<"image">;
|
|
8028
|
-
data: Type$2.TString;
|
|
8029
|
-
mimeType: Type$2.TString;
|
|
8030
|
-
}>]>>;
|
|
8031
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
8032
|
-
isError: Type$2.TLiteral<true>;
|
|
8033
|
-
}>;
|
|
8034
|
-
}>, Type$2.TObject<{
|
|
8035
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
8036
|
-
callID: Type$2.TString;
|
|
8037
|
-
name: Type$2.TString;
|
|
8038
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
8039
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
8040
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
8041
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
8042
|
-
time: Type$2.TObject<{
|
|
8043
|
-
start: Type$2.TNumber;
|
|
8044
|
-
end: Type$2.TNumber;
|
|
8045
|
-
}>;
|
|
8046
|
-
status: Type$2.TLiteral<"skipped">;
|
|
8047
|
-
result: Type$2.TObject<{
|
|
8048
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
8049
|
-
type: Type$2.TLiteral<"text">;
|
|
8050
|
-
text: Type$2.TString;
|
|
8051
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
8052
|
-
}>, Type$2.TObject<{
|
|
8053
|
-
type: Type$2.TLiteral<"image">;
|
|
8054
|
-
data: Type$2.TString;
|
|
8055
|
-
mimeType: Type$2.TString;
|
|
8056
|
-
}>]>>;
|
|
8057
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
8058
|
-
isError: Type$2.TLiteral<true>;
|
|
8059
|
-
}>;
|
|
8060
|
-
}>, Type$2.TObject<{
|
|
8061
|
-
type: Type$2.TLiteral<"toolCall">;
|
|
8062
|
-
callID: Type$2.TString;
|
|
8063
|
-
name: Type$2.TString;
|
|
8064
|
-
arguments: Type$2.TRecord<"^.*$", Type$2.TAny>;
|
|
8065
|
-
thoughtSignature: Type$2.TOptional<Type$2.TString>;
|
|
8066
|
-
namespace: Type$2.TOptional<Type$2.TString>;
|
|
8067
|
-
addedToolNames: Type$2.TOptional<Type$2.TArray<Type$2.TString>>;
|
|
8068
|
-
time: Type$2.TObject<{
|
|
8069
|
-
start: Type$2.TNumber;
|
|
8070
|
-
end: Type$2.TNumber;
|
|
8071
|
-
}>;
|
|
8072
|
-
status: Type$2.TLiteral<"aborted">;
|
|
8073
|
-
result: Type$2.TObject<{
|
|
8074
|
-
content: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
8075
|
-
type: Type$2.TLiteral<"text">;
|
|
8076
|
-
text: Type$2.TString;
|
|
8077
|
-
textSignature: Type$2.TOptional<Type$2.TString>;
|
|
8078
|
-
}>, Type$2.TObject<{
|
|
8079
|
-
type: Type$2.TLiteral<"image">;
|
|
8080
|
-
data: Type$2.TString;
|
|
8081
|
-
mimeType: Type$2.TString;
|
|
8082
|
-
}>]>>;
|
|
8083
|
-
details: Type$2.TOptional<Type$2.TAny>;
|
|
8084
|
-
isError: Type$2.TLiteral<true>;
|
|
8085
|
-
}>;
|
|
8086
|
-
}>]>;
|
|
8087
|
-
}>]>;
|
|
8088
|
-
type AgentEvent = Static$1<typeof AgentEventSchema>;
|
|
4286
|
+
/**
|
|
4287
|
+
* Events emitted by the Agent lifecycle
|
|
4288
|
+
* These events provide fine-grained lifecycle information for messages, turns, and tool execution.
|
|
4289
|
+
*/
|
|
8089
4290
|
//#endregion
|
|
8090
4291
|
//#region src/llm.d.ts
|
|
8091
4292
|
type LLM = {
|
|
@@ -8100,7 +4301,7 @@ type LLM = {
|
|
|
8100
4301
|
};
|
|
8101
4302
|
declare const llm: LLM;
|
|
8102
4303
|
declare namespace message_d_exports {
|
|
8103
|
-
export { AssistantMessage, AssistantMessageSchema, ConstrainedSampling, ConstrainedSamplingSchema, Context, ContextSchema, GrammarVariants, GrammarVariantsSchema, ImageContent, ImageContentSchema, Message, MessageSchema, StopReason, StopReasonSchema, TextContent, TextContentSchema, ThinkingContent, ThinkingContentSchema, Tool, ToolAbortedSchema, ToolArguments, ToolCall, ToolCallAbortedPart, ToolCallAbortedPartSchema, ToolCallBaseSchema, ToolCallCompletedPart, ToolCallCompletedPartSchema, ToolCallErrorPart, ToolCallErrorPartSchema, ToolCallInFlight, ToolCallInFlightSchema, ToolCallPendingPart, ToolCallPendingPartSchema, ToolCallRunningPart, ToolCallRunningPartSchema, ToolCallSchema, ToolCallSkippedPart, ToolCallSkippedPartSchema, ToolCallTerminalPart, ToolCallTerminalPartSchema, ToolCompletedSchema, ToolErrorResult, ToolErrorSchema, ToolRunningPartial, ToolRunningSchema, ToolSchema, ToolSkippedSchema, ToolStatusEnum, ToolSuccessResult, Usage, UsageSchema, UserMessage, UserMessageSchema, createAssistantMessage, createMessageId, createUserMessage, defineTool, transformMessages };
|
|
4304
|
+
export { AssistantMessage, AssistantMessageSchema, ConstrainedSampling, ConstrainedSamplingSchema, Context, ContextSchema, GrammarVariants, GrammarVariantsSchema, ImageContent, ImageContentSchema, Message, MessageSchema, StopReason, StopReasonSchema, TextContent, TextContentSchema, ThinkingContent, ThinkingContentSchema, Tool, ToolAbortedSchema, ToolArguments, ToolCall, ToolCallAbortedPart, ToolCallAbortedPartSchema, ToolCallBaseSchema, ToolCallCompletedPart, ToolCallCompletedPartSchema, ToolCallErrorPart, ToolCallErrorPartSchema, ToolCallInFlight, ToolCallInFlightSchema, ToolCallPendingPart, ToolCallPendingPartSchema, ToolCallRunningPart, ToolCallRunningPartSchema, ToolCallSchema, ToolCallSkippedPart, ToolCallSkippedPartSchema, ToolCallTerminalPart, ToolCallTerminalPartSchema, ToolCompletedSchema, ToolErrorResult, ToolErrorSchema, ToolRunningPartial, ToolRunningSchema, ToolSchema, ToolSkippedSchema, ToolStatusEnum, ToolSuccessResult, Usage, UsageSchema, UserMessage, UserMessageSchema, createAssistantMessage, createMessageId, createUserMessage, defineTool, resolveJsonSchemaConstraint, transformMessages };
|
|
8104
4305
|
}
|
|
8105
4306
|
declare const TextContentSchema: Type$2.TObject<{
|
|
8106
4307
|
type: Type$2.TLiteral<"text">;
|
|
@@ -8683,6 +4884,8 @@ declare const UsageSchema: Type$2.TObject<{
|
|
|
8683
4884
|
output: Type$2.TNumber;
|
|
8684
4885
|
cacheRead: Type$2.TNumber;
|
|
8685
4886
|
cacheWrite: Type$2.TNumber;
|
|
4887
|
+
/** Subset of `cacheWrite` written with 1h retention. Only Anthropic reports this split. */
|
|
4888
|
+
cacheWrite1h: Type$2.TOptional<Type$2.TNumber>;
|
|
8686
4889
|
reasoning: Type$2.TOptional<Type$2.TNumber>;
|
|
8687
4890
|
totalTokens: Type$2.TNumber;
|
|
8688
4891
|
cost: Type$2.TObject<{
|
|
@@ -8730,6 +4933,8 @@ declare const AssistantMessageSchema: Type$2.TObject<{
|
|
|
8730
4933
|
output: Type$2.TNumber;
|
|
8731
4934
|
cacheRead: Type$2.TNumber;
|
|
8732
4935
|
cacheWrite: Type$2.TNumber;
|
|
4936
|
+
/** Subset of `cacheWrite` written with 1h retention. Only Anthropic reports this split. */
|
|
4937
|
+
cacheWrite1h: Type$2.TOptional<Type$2.TNumber>;
|
|
8733
4938
|
reasoning: Type$2.TOptional<Type$2.TNumber>;
|
|
8734
4939
|
totalTokens: Type$2.TNumber;
|
|
8735
4940
|
cost: Type$2.TObject<{
|
|
@@ -8742,7 +4947,11 @@ declare const AssistantMessageSchema: Type$2.TObject<{
|
|
|
8742
4947
|
}>;
|
|
8743
4948
|
stopReason: Type$2.TUnion<[Type$2.TLiteral<"stop">, Type$2.TLiteral<"length">, Type$2.TLiteral<"toolUse">, Type$2.TLiteral<"error">, Type$2.TLiteral<"aborted">]>;
|
|
8744
4949
|
errorMessage: Type$2.TOptional<Type$2.TString>;
|
|
8745
|
-
/**
|
|
4950
|
+
/**
|
|
4951
|
+
* Structured, provider-independent failure details for a failed request.
|
|
4952
|
+
* The schema is based on ai-sdk as the underlying provider wire protocol.
|
|
4953
|
+
* Depends on ai-sdk
|
|
4954
|
+
*/
|
|
8746
4955
|
failure: Type$2.TOptional<Type$2.TUnion<[Type$2.TObject<{
|
|
8747
4956
|
message: Type$2.TString;
|
|
8748
4957
|
retryable: Type$2.TBoolean;
|
|
@@ -9051,6 +5260,8 @@ declare const MessageSchema: Type$2.TUnion<[Type$2.TObject<{
|
|
|
9051
5260
|
output: Type$2.TNumber;
|
|
9052
5261
|
cacheRead: Type$2.TNumber;
|
|
9053
5262
|
cacheWrite: Type$2.TNumber;
|
|
5263
|
+
/** Subset of `cacheWrite` written with 1h retention. Only Anthropic reports this split. */
|
|
5264
|
+
cacheWrite1h: Type$2.TOptional<Type$2.TNumber>;
|
|
9054
5265
|
reasoning: Type$2.TOptional<Type$2.TNumber>;
|
|
9055
5266
|
totalTokens: Type$2.TNumber;
|
|
9056
5267
|
cost: Type$2.TObject<{
|
|
@@ -9063,7 +5274,11 @@ declare const MessageSchema: Type$2.TUnion<[Type$2.TObject<{
|
|
|
9063
5274
|
}>;
|
|
9064
5275
|
stopReason: Type$2.TUnion<[Type$2.TLiteral<"stop">, Type$2.TLiteral<"length">, Type$2.TLiteral<"toolUse">, Type$2.TLiteral<"error">, Type$2.TLiteral<"aborted">]>;
|
|
9065
5276
|
errorMessage: Type$2.TOptional<Type$2.TString>;
|
|
9066
|
-
/**
|
|
5277
|
+
/**
|
|
5278
|
+
* Structured, provider-independent failure details for a failed request.
|
|
5279
|
+
* The schema is based on ai-sdk as the underlying provider wire protocol.
|
|
5280
|
+
* Depends on ai-sdk
|
|
5281
|
+
*/
|
|
9067
5282
|
failure: Type$2.TOptional<Type$2.TUnion<[Type$2.TObject<{
|
|
9068
5283
|
message: Type$2.TString;
|
|
9069
5284
|
retryable: Type$2.TBoolean;
|
|
@@ -9399,10 +5614,17 @@ interface Tool<TParameters extends TSchema$1 = TSchema$1> {
|
|
|
9399
5614
|
name: string;
|
|
9400
5615
|
description: string;
|
|
9401
5616
|
parameters: TParameters;
|
|
5617
|
+
/** How the provider constrains generated tool-call arguments (strict JSON schema or grammar).
|
|
5618
|
+
* used by convert tool.
|
|
5619
|
+
* */
|
|
9402
5620
|
constrainedSampling?: false | ConstrainedSampling;
|
|
9403
5621
|
}
|
|
9404
5622
|
type ToolArguments<T extends Tool> = Static$1<T["parameters"]>;
|
|
9405
5623
|
declare function defineTool<TParameters extends TSchema$1>(tool: Tool<TParameters>): Tool<TParameters>;
|
|
5624
|
+
declare function resolveJsonSchemaConstraint(tool: Tool, compat?: Pick<Compatibility, "supportsStrictMode">): {
|
|
5625
|
+
type: "json_schema";
|
|
5626
|
+
strict: true;
|
|
5627
|
+
} | undefined;
|
|
9406
5628
|
declare const ContextSchema: Type$2.TObject<{
|
|
9407
5629
|
systemPrompt: Type$2.TOptional<Type$2.TString>;
|
|
9408
5630
|
messages: Type$2.TArray<Type$2.TUnion<[Type$2.TObject<{
|
|
@@ -9437,6 +5659,8 @@ declare const ContextSchema: Type$2.TObject<{
|
|
|
9437
5659
|
output: Type$2.TNumber;
|
|
9438
5660
|
cacheRead: Type$2.TNumber;
|
|
9439
5661
|
cacheWrite: Type$2.TNumber;
|
|
5662
|
+
/** Subset of `cacheWrite` written with 1h retention. Only Anthropic reports this split. */
|
|
5663
|
+
cacheWrite1h: Type$2.TOptional<Type$2.TNumber>;
|
|
9440
5664
|
reasoning: Type$2.TOptional<Type$2.TNumber>;
|
|
9441
5665
|
totalTokens: Type$2.TNumber;
|
|
9442
5666
|
cost: Type$2.TObject<{
|
|
@@ -9449,7 +5673,11 @@ declare const ContextSchema: Type$2.TObject<{
|
|
|
9449
5673
|
}>;
|
|
9450
5674
|
stopReason: Type$2.TUnion<[Type$2.TLiteral<"stop">, Type$2.TLiteral<"length">, Type$2.TLiteral<"toolUse">, Type$2.TLiteral<"error">, Type$2.TLiteral<"aborted">]>;
|
|
9451
5675
|
errorMessage: Type$2.TOptional<Type$2.TString>;
|
|
9452
|
-
/**
|
|
5676
|
+
/**
|
|
5677
|
+
* Structured, provider-independent failure details for a failed request.
|
|
5678
|
+
* The schema is based on ai-sdk as the underlying provider wire protocol.
|
|
5679
|
+
* Depends on ai-sdk
|
|
5680
|
+
*/
|
|
9453
5681
|
failure: Type$2.TOptional<Type$2.TUnion<[Type$2.TObject<{
|
|
9454
5682
|
message: Type$2.TString;
|
|
9455
5683
|
retryable: Type$2.TBoolean;
|
|
@@ -9787,12 +6015,6 @@ type OpenAICodexLanguageModelOptions = {
|
|
|
9787
6015
|
/** Output text verbosity; defaults to `low`. */
|
|
9788
6016
|
textVerbosity?: "low" | "medium" | "high";
|
|
9789
6017
|
serviceTier?: OpenAICodexServiceTier;
|
|
9790
|
-
/** Prompt cache key; defaults to the provider `sessionId`. */
|
|
9791
|
-
promptCacheKey?: string;
|
|
9792
|
-
/** `include` fields; defaults to `["reasoning.encrypted_content"]`. */
|
|
9793
|
-
include?: string[];
|
|
9794
|
-
/** @deprecated Codex always requires `store: false`; this value is ignored. */
|
|
9795
|
-
store?: boolean;
|
|
9796
6018
|
};
|
|
9797
6019
|
//#endregion
|
|
9798
6020
|
//#region src/providers/openai-codex/codex-tools.d.ts
|
|
@@ -9843,13 +6065,13 @@ interface OpenAICodexProviderSettings {
|
|
|
9843
6065
|
headers?: Record<string, string>;
|
|
9844
6066
|
/** Custom fetch implementation. */
|
|
9845
6067
|
fetch?: typeof globalThis.fetch;
|
|
9846
|
-
/** Session id used for the `session-id` header and
|
|
6068
|
+
/** Session id used for request identity, the `session-id` header, and prompt cache affinity. */
|
|
9847
6069
|
sessionId?: string;
|
|
9848
6070
|
/** Default service tier for requests. */
|
|
9849
6071
|
serviceTier?: OpenAICodexServiceTier;
|
|
9850
6072
|
/** `originator` header value; defaults to `codework`. */
|
|
9851
6073
|
originator?: string;
|
|
9852
|
-
/**
|
|
6074
|
+
/** Model capabilities supplied by aikit or the direct caller; absent flags are disabled. */
|
|
9853
6075
|
compat?: OpenAICodexCompatibility;
|
|
9854
6076
|
}
|
|
9855
6077
|
declare function createOpenAICodex(options?: OpenAICodexProviderSettings): OpenAICodexProvider;
|
|
@@ -9898,14 +6120,14 @@ type XaiOptions = AISDKOptions<XaiProviderSettings, {
|
|
|
9898
6120
|
//#endregion
|
|
9899
6121
|
//#region src/llm/shared.d.ts
|
|
9900
6122
|
declare const ThinkingBudgets: Type$1.TObject<{
|
|
9901
|
-
|
|
6123
|
+
high: Type$1.TOptional<Type$1.TNumber>;
|
|
9902
6124
|
low: Type$1.TOptional<Type$1.TNumber>;
|
|
6125
|
+
max: Type$1.TOptional<Type$1.TNumber>;
|
|
9903
6126
|
medium: Type$1.TOptional<Type$1.TNumber>;
|
|
9904
|
-
|
|
6127
|
+
minimal: Type$1.TOptional<Type$1.TNumber>;
|
|
9905
6128
|
xhigh: Type$1.TOptional<Type$1.TNumber>;
|
|
9906
|
-
max: Type$1.TOptional<Type$1.TNumber>;
|
|
9907
6129
|
}>;
|
|
9908
|
-
type ThinkingBudgets =
|
|
6130
|
+
type ThinkingBudgets = ThinkingBudgets$1;
|
|
9909
6131
|
declare const SharedOptions: Type$1.TObject<{
|
|
9910
6132
|
maxTokens: Type$1.TOptional<Type$1.TNumber>;
|
|
9911
6133
|
temperature: Type$1.TOptional<Type$1.TNumber>;
|
|
@@ -9953,11 +6175,11 @@ declare const ProviderProtocolNotFoundError: {
|
|
|
9953
6175
|
};
|
|
9954
6176
|
message: string;
|
|
9955
6177
|
stack?: string;
|
|
6178
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
6179
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
9956
6180
|
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
9957
6181
|
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
9958
6182
|
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
9959
|
-
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
9960
|
-
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
9961
6183
|
};
|
|
9962
6184
|
readonly Schema: {
|
|
9963
6185
|
readonly $id: "ProviderProtocolNotFoundError";
|
|
@@ -9999,13 +6221,13 @@ declare const ProviderProtocolNotFoundError: {
|
|
|
9999
6221
|
};
|
|
10000
6222
|
message: string;
|
|
10001
6223
|
stack?: string;
|
|
6224
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
6225
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10002
6226
|
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
10003
6227
|
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
10004
6228
|
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
10005
|
-
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
10006
|
-
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10007
6229
|
};
|
|
10008
|
-
create<Name extends string, Data extends
|
|
6230
|
+
create<Name extends string, Data extends TSchema$1>(name: Name, data: Data): {
|
|
10009
6231
|
new (data: import("typebox").StaticType<[], "Encode", {}, {}, Data>, options?: ErrorOptions): {
|
|
10010
6232
|
cause?: unknown;
|
|
10011
6233
|
readonly name: Name;
|
|
@@ -10027,11 +6249,11 @@ declare const ProviderProtocolNotFoundError: {
|
|
|
10027
6249
|
};
|
|
10028
6250
|
message: string;
|
|
10029
6251
|
stack?: string;
|
|
6252
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
6253
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10030
6254
|
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
10031
6255
|
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
10032
6256
|
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
10033
|
-
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
10034
|
-
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10035
6257
|
};
|
|
10036
6258
|
readonly Schema: {
|
|
10037
6259
|
readonly $id: Name;
|
|
@@ -10045,7 +6267,7 @@ declare const ProviderProtocolNotFoundError: {
|
|
|
10045
6267
|
};
|
|
10046
6268
|
};
|
|
10047
6269
|
isInstance(input: unknown): input is InstanceType< /*elided*/ any>;
|
|
10048
|
-
create<Name extends string, Data extends
|
|
6270
|
+
create<Name extends string, Data extends TSchema$1>(name: Name, data: Data): /*elided*/ any;
|
|
10049
6271
|
readonly Unknown: {
|
|
10050
6272
|
new (data: {
|
|
10051
6273
|
message?: unknown;
|
|
@@ -10082,11 +6304,11 @@ declare const ProviderProtocolNotFoundError: {
|
|
|
10082
6304
|
};
|
|
10083
6305
|
message: string;
|
|
10084
6306
|
stack?: string;
|
|
6307
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
6308
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10085
6309
|
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
10086
6310
|
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
10087
6311
|
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
10088
|
-
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
10089
|
-
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10090
6312
|
};
|
|
10091
6313
|
readonly Schema: {
|
|
10092
6314
|
readonly $id: "UnknownError";
|
|
@@ -10140,13 +6362,13 @@ declare const ProviderProtocolNotFoundError: {
|
|
|
10140
6362
|
};
|
|
10141
6363
|
message: string;
|
|
10142
6364
|
stack?: string;
|
|
6365
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
6366
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10143
6367
|
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
10144
6368
|
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
10145
6369
|
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
10146
|
-
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
10147
|
-
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10148
6370
|
};
|
|
10149
|
-
create<Name extends string, Data extends
|
|
6371
|
+
create<Name extends string, Data extends TSchema$1>(name: Name, data: Data): /*elided*/ any;
|
|
10150
6372
|
readonly Unknown: /*elided*/ any;
|
|
10151
6373
|
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
10152
6374
|
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
@@ -10192,11 +6414,11 @@ declare const ProviderProtocolNotFoundError: {
|
|
|
10192
6414
|
};
|
|
10193
6415
|
message: string;
|
|
10194
6416
|
stack?: string;
|
|
6417
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
6418
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10195
6419
|
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
10196
6420
|
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
10197
6421
|
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
10198
|
-
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
10199
|
-
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10200
6422
|
};
|
|
10201
6423
|
readonly Schema: {
|
|
10202
6424
|
readonly $id: "UnknownError";
|
|
@@ -10250,13 +6472,13 @@ declare const ProviderProtocolNotFoundError: {
|
|
|
10250
6472
|
};
|
|
10251
6473
|
message: string;
|
|
10252
6474
|
stack?: string;
|
|
6475
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
6476
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10253
6477
|
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
10254
6478
|
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
10255
6479
|
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
10256
|
-
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
10257
|
-
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10258
6480
|
};
|
|
10259
|
-
create<Name extends string, Data extends
|
|
6481
|
+
create<Name extends string, Data extends TSchema$1>(name: Name, data: Data): {
|
|
10260
6482
|
new (data: import("typebox").StaticType<[], "Encode", {}, {}, Data>, options?: ErrorOptions): {
|
|
10261
6483
|
cause?: unknown;
|
|
10262
6484
|
readonly name: Name;
|
|
@@ -10278,11 +6500,11 @@ declare const ProviderProtocolNotFoundError: {
|
|
|
10278
6500
|
};
|
|
10279
6501
|
message: string;
|
|
10280
6502
|
stack?: string;
|
|
6503
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
6504
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10281
6505
|
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
10282
6506
|
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
10283
6507
|
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
10284
|
-
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
10285
|
-
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10286
6508
|
};
|
|
10287
6509
|
readonly Schema: {
|
|
10288
6510
|
readonly $id: Name;
|
|
@@ -10296,7 +6518,7 @@ declare const ProviderProtocolNotFoundError: {
|
|
|
10296
6518
|
};
|
|
10297
6519
|
};
|
|
10298
6520
|
isInstance(input: unknown): input is InstanceType< /*elided*/ any>;
|
|
10299
|
-
create<Name extends string, Data extends
|
|
6521
|
+
create<Name extends string, Data extends TSchema$1>(name: Name, data: Data): /*elided*/ any;
|
|
10300
6522
|
readonly Unknown: /*elided*/ any;
|
|
10301
6523
|
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
10302
6524
|
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
@@ -10346,11 +6568,11 @@ declare const ProtocolMismatchError: {
|
|
|
10346
6568
|
};
|
|
10347
6569
|
message: string;
|
|
10348
6570
|
stack?: string;
|
|
6571
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
6572
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10349
6573
|
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
10350
6574
|
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
10351
6575
|
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
10352
|
-
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
10353
|
-
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10354
6576
|
};
|
|
10355
6577
|
readonly Schema: {
|
|
10356
6578
|
readonly $id: "ProtocolMismatchError";
|
|
@@ -10396,13 +6618,13 @@ declare const ProtocolMismatchError: {
|
|
|
10396
6618
|
};
|
|
10397
6619
|
message: string;
|
|
10398
6620
|
stack?: string;
|
|
6621
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
6622
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10399
6623
|
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
10400
6624
|
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
10401
6625
|
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
10402
|
-
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
10403
|
-
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10404
6626
|
};
|
|
10405
|
-
create<Name extends string, Data extends
|
|
6627
|
+
create<Name extends string, Data extends TSchema$1>(name: Name, data: Data): {
|
|
10406
6628
|
new (data: import("typebox").StaticType<[], "Encode", {}, {}, Data>, options?: ErrorOptions): {
|
|
10407
6629
|
cause?: unknown;
|
|
10408
6630
|
readonly name: Name;
|
|
@@ -10424,11 +6646,11 @@ declare const ProtocolMismatchError: {
|
|
|
10424
6646
|
};
|
|
10425
6647
|
message: string;
|
|
10426
6648
|
stack?: string;
|
|
6649
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
6650
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10427
6651
|
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
10428
6652
|
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
10429
6653
|
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
10430
|
-
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
10431
|
-
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10432
6654
|
};
|
|
10433
6655
|
readonly Schema: {
|
|
10434
6656
|
readonly $id: Name;
|
|
@@ -10442,7 +6664,7 @@ declare const ProtocolMismatchError: {
|
|
|
10442
6664
|
};
|
|
10443
6665
|
};
|
|
10444
6666
|
isInstance(input: unknown): input is InstanceType< /*elided*/ any>;
|
|
10445
|
-
create<Name extends string, Data extends
|
|
6667
|
+
create<Name extends string, Data extends TSchema$1>(name: Name, data: Data): /*elided*/ any;
|
|
10446
6668
|
readonly Unknown: {
|
|
10447
6669
|
new (data: {
|
|
10448
6670
|
message?: unknown;
|
|
@@ -10479,11 +6701,11 @@ declare const ProtocolMismatchError: {
|
|
|
10479
6701
|
};
|
|
10480
6702
|
message: string;
|
|
10481
6703
|
stack?: string;
|
|
6704
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
6705
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10482
6706
|
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
10483
6707
|
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
10484
6708
|
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
10485
|
-
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
10486
|
-
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10487
6709
|
};
|
|
10488
6710
|
readonly Schema: {
|
|
10489
6711
|
readonly $id: "UnknownError";
|
|
@@ -10537,13 +6759,13 @@ declare const ProtocolMismatchError: {
|
|
|
10537
6759
|
};
|
|
10538
6760
|
message: string;
|
|
10539
6761
|
stack?: string;
|
|
6762
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
6763
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10540
6764
|
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
10541
6765
|
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
10542
6766
|
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
10543
|
-
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
10544
|
-
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10545
6767
|
};
|
|
10546
|
-
create<Name extends string, Data extends
|
|
6768
|
+
create<Name extends string, Data extends TSchema$1>(name: Name, data: Data): /*elided*/ any;
|
|
10547
6769
|
readonly Unknown: /*elided*/ any;
|
|
10548
6770
|
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
10549
6771
|
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
@@ -10589,11 +6811,11 @@ declare const ProtocolMismatchError: {
|
|
|
10589
6811
|
};
|
|
10590
6812
|
message: string;
|
|
10591
6813
|
stack?: string;
|
|
6814
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
6815
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10592
6816
|
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
10593
6817
|
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
10594
6818
|
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
10595
|
-
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
10596
|
-
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10597
6819
|
};
|
|
10598
6820
|
readonly Schema: {
|
|
10599
6821
|
readonly $id: "UnknownError";
|
|
@@ -10647,13 +6869,13 @@ declare const ProtocolMismatchError: {
|
|
|
10647
6869
|
};
|
|
10648
6870
|
message: string;
|
|
10649
6871
|
stack?: string;
|
|
6872
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
6873
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10650
6874
|
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
10651
6875
|
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
10652
6876
|
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
10653
|
-
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
10654
|
-
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10655
6877
|
};
|
|
10656
|
-
create<Name extends string, Data extends
|
|
6878
|
+
create<Name extends string, Data extends TSchema$1>(name: Name, data: Data): {
|
|
10657
6879
|
new (data: import("typebox").StaticType<[], "Encode", {}, {}, Data>, options?: ErrorOptions): {
|
|
10658
6880
|
cause?: unknown;
|
|
10659
6881
|
readonly name: Name;
|
|
@@ -10675,11 +6897,11 @@ declare const ProtocolMismatchError: {
|
|
|
10675
6897
|
};
|
|
10676
6898
|
message: string;
|
|
10677
6899
|
stack?: string;
|
|
6900
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
6901
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10678
6902
|
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
10679
6903
|
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
10680
6904
|
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
10681
|
-
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
10682
|
-
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10683
6905
|
};
|
|
10684
6906
|
readonly Schema: {
|
|
10685
6907
|
readonly $id: Name;
|
|
@@ -10693,7 +6915,7 @@ declare const ProtocolMismatchError: {
|
|
|
10693
6915
|
};
|
|
10694
6916
|
};
|
|
10695
6917
|
isInstance(input: unknown): input is InstanceType< /*elided*/ any>;
|
|
10696
|
-
create<Name extends string, Data extends
|
|
6918
|
+
create<Name extends string, Data extends TSchema$1>(name: Name, data: Data): /*elided*/ any;
|
|
10697
6919
|
readonly Unknown: /*elided*/ any;
|
|
10698
6920
|
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
10699
6921
|
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
@@ -10743,11 +6965,11 @@ declare const ProtocolAuthError: {
|
|
|
10743
6965
|
};
|
|
10744
6966
|
message: string;
|
|
10745
6967
|
stack?: string;
|
|
6968
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
6969
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10746
6970
|
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
10747
6971
|
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
10748
6972
|
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
10749
|
-
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
10750
|
-
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10751
6973
|
};
|
|
10752
6974
|
readonly Schema: {
|
|
10753
6975
|
readonly $id: "ProtocolAuthError";
|
|
@@ -10793,13 +7015,13 @@ declare const ProtocolAuthError: {
|
|
|
10793
7015
|
};
|
|
10794
7016
|
message: string;
|
|
10795
7017
|
stack?: string;
|
|
7018
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
7019
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10796
7020
|
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
10797
7021
|
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
10798
7022
|
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
10799
|
-
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
10800
|
-
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10801
7023
|
};
|
|
10802
|
-
create<Name extends string, Data extends
|
|
7024
|
+
create<Name extends string, Data extends TSchema$1>(name: Name, data: Data): {
|
|
10803
7025
|
new (data: import("typebox").StaticType<[], "Encode", {}, {}, Data>, options?: ErrorOptions): {
|
|
10804
7026
|
cause?: unknown;
|
|
10805
7027
|
readonly name: Name;
|
|
@@ -10821,11 +7043,11 @@ declare const ProtocolAuthError: {
|
|
|
10821
7043
|
};
|
|
10822
7044
|
message: string;
|
|
10823
7045
|
stack?: string;
|
|
7046
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
7047
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10824
7048
|
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
10825
7049
|
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
10826
7050
|
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
10827
|
-
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
10828
|
-
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10829
7051
|
};
|
|
10830
7052
|
readonly Schema: {
|
|
10831
7053
|
readonly $id: Name;
|
|
@@ -10839,7 +7061,7 @@ declare const ProtocolAuthError: {
|
|
|
10839
7061
|
};
|
|
10840
7062
|
};
|
|
10841
7063
|
isInstance(input: unknown): input is InstanceType< /*elided*/ any>;
|
|
10842
|
-
create<Name extends string, Data extends
|
|
7064
|
+
create<Name extends string, Data extends TSchema$1>(name: Name, data: Data): /*elided*/ any;
|
|
10843
7065
|
readonly Unknown: {
|
|
10844
7066
|
new (data: {
|
|
10845
7067
|
message?: unknown;
|
|
@@ -10876,11 +7098,11 @@ declare const ProtocolAuthError: {
|
|
|
10876
7098
|
};
|
|
10877
7099
|
message: string;
|
|
10878
7100
|
stack?: string;
|
|
7101
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
7102
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10879
7103
|
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
10880
7104
|
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
10881
7105
|
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
10882
|
-
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
10883
|
-
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10884
7106
|
};
|
|
10885
7107
|
readonly Schema: {
|
|
10886
7108
|
readonly $id: "UnknownError";
|
|
@@ -10934,13 +7156,13 @@ declare const ProtocolAuthError: {
|
|
|
10934
7156
|
};
|
|
10935
7157
|
message: string;
|
|
10936
7158
|
stack?: string;
|
|
7159
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
7160
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10937
7161
|
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
10938
7162
|
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
10939
7163
|
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
10940
|
-
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
10941
|
-
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10942
7164
|
};
|
|
10943
|
-
create<Name extends string, Data extends
|
|
7165
|
+
create<Name extends string, Data extends TSchema$1>(name: Name, data: Data): /*elided*/ any;
|
|
10944
7166
|
readonly Unknown: /*elided*/ any;
|
|
10945
7167
|
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
10946
7168
|
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
@@ -10986,11 +7208,11 @@ declare const ProtocolAuthError: {
|
|
|
10986
7208
|
};
|
|
10987
7209
|
message: string;
|
|
10988
7210
|
stack?: string;
|
|
7211
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
7212
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10989
7213
|
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
10990
7214
|
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
10991
7215
|
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
10992
|
-
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
10993
|
-
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
10994
7216
|
};
|
|
10995
7217
|
readonly Schema: {
|
|
10996
7218
|
readonly $id: "UnknownError";
|
|
@@ -11044,13 +7266,13 @@ declare const ProtocolAuthError: {
|
|
|
11044
7266
|
};
|
|
11045
7267
|
message: string;
|
|
11046
7268
|
stack?: string;
|
|
7269
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
7270
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
11047
7271
|
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
11048
7272
|
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
11049
7273
|
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
11050
|
-
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
11051
|
-
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
11052
7274
|
};
|
|
11053
|
-
create<Name extends string, Data extends
|
|
7275
|
+
create<Name extends string, Data extends TSchema$1>(name: Name, data: Data): {
|
|
11054
7276
|
new (data: import("typebox").StaticType<[], "Encode", {}, {}, Data>, options?: ErrorOptions): {
|
|
11055
7277
|
cause?: unknown;
|
|
11056
7278
|
readonly name: Name;
|
|
@@ -11072,11 +7294,11 @@ declare const ProtocolAuthError: {
|
|
|
11072
7294
|
};
|
|
11073
7295
|
message: string;
|
|
11074
7296
|
stack?: string;
|
|
7297
|
+
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
7298
|
+
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
11075
7299
|
readonly "~effect/ErrorReporter/ignore"?: boolean;
|
|
11076
7300
|
readonly "~effect/ErrorReporter/severity"?: import("effect/LogLevel").Severity;
|
|
11077
7301
|
readonly "~effect/ErrorReporter/attributes"?: import("effect/Record").ReadonlyRecord<string, unknown>;
|
|
11078
|
-
readonly "~effect/Runtime/errorExitCode"?: number;
|
|
11079
|
-
readonly "~effect/Runtime/errorReported"?: boolean;
|
|
11080
7302
|
};
|
|
11081
7303
|
readonly Schema: {
|
|
11082
7304
|
readonly $id: Name;
|
|
@@ -11090,7 +7312,7 @@ declare const ProtocolAuthError: {
|
|
|
11090
7312
|
};
|
|
11091
7313
|
};
|
|
11092
7314
|
isInstance(input: unknown): input is InstanceType< /*elided*/ any>;
|
|
11093
|
-
create<Name extends string, Data extends
|
|
7315
|
+
create<Name extends string, Data extends TSchema$1>(name: Name, data: Data): /*elided*/ any;
|
|
11094
7316
|
readonly Unknown: /*elided*/ any;
|
|
11095
7317
|
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
11096
7318
|
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|