@ag-ui/core 0.0.57 → 0.0.58
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/dist/index.d.mts +388 -19
- package/dist/index.d.mts.map +1 -1
- package/dist/index.d.ts +388 -19
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +137 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +134 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -1
package/dist/index.d.mts
CHANGED
|
@@ -3326,16 +3326,16 @@ declare const IdentityCapabilitiesSchema: z.ZodObject<{
|
|
|
3326
3326
|
name?: string | undefined;
|
|
3327
3327
|
metadata?: Record<string, unknown> | undefined;
|
|
3328
3328
|
description?: string | undefined;
|
|
3329
|
-
version?: string | undefined;
|
|
3330
3329
|
provider?: string | undefined;
|
|
3330
|
+
version?: string | undefined;
|
|
3331
3331
|
documentationUrl?: string | undefined;
|
|
3332
3332
|
}, {
|
|
3333
3333
|
type?: string | undefined;
|
|
3334
3334
|
name?: string | undefined;
|
|
3335
3335
|
metadata?: Record<string, unknown> | undefined;
|
|
3336
3336
|
description?: string | undefined;
|
|
3337
|
-
version?: string | undefined;
|
|
3338
3337
|
provider?: string | undefined;
|
|
3338
|
+
version?: string | undefined;
|
|
3339
3339
|
documentationUrl?: string | undefined;
|
|
3340
3340
|
}>;
|
|
3341
3341
|
/**
|
|
@@ -3687,16 +3687,16 @@ declare const AgentCapabilitiesSchema: z.ZodObject<{
|
|
|
3687
3687
|
name?: string | undefined;
|
|
3688
3688
|
metadata?: Record<string, unknown> | undefined;
|
|
3689
3689
|
description?: string | undefined;
|
|
3690
|
-
version?: string | undefined;
|
|
3691
3690
|
provider?: string | undefined;
|
|
3691
|
+
version?: string | undefined;
|
|
3692
3692
|
documentationUrl?: string | undefined;
|
|
3693
3693
|
}, {
|
|
3694
3694
|
type?: string | undefined;
|
|
3695
3695
|
name?: string | undefined;
|
|
3696
3696
|
metadata?: Record<string, unknown> | undefined;
|
|
3697
3697
|
description?: string | undefined;
|
|
3698
|
-
version?: string | undefined;
|
|
3699
3698
|
provider?: string | undefined;
|
|
3699
|
+
version?: string | undefined;
|
|
3700
3700
|
documentationUrl?: string | undefined;
|
|
3701
3701
|
}>>; /** Supported transport mechanisms (SSE, WebSocket, binary, etc.). */
|
|
3702
3702
|
transport: z.ZodOptional<z.ZodObject<{
|
|
@@ -3981,8 +3981,8 @@ declare const AgentCapabilitiesSchema: z.ZodObject<{
|
|
|
3981
3981
|
name?: string | undefined;
|
|
3982
3982
|
metadata?: Record<string, unknown> | undefined;
|
|
3983
3983
|
description?: string | undefined;
|
|
3984
|
-
version?: string | undefined;
|
|
3985
3984
|
provider?: string | undefined;
|
|
3985
|
+
version?: string | undefined;
|
|
3986
3986
|
documentationUrl?: string | undefined;
|
|
3987
3987
|
} | undefined;
|
|
3988
3988
|
transport?: {
|
|
@@ -4061,8 +4061,8 @@ declare const AgentCapabilitiesSchema: z.ZodObject<{
|
|
|
4061
4061
|
name?: string | undefined;
|
|
4062
4062
|
metadata?: Record<string, unknown> | undefined;
|
|
4063
4063
|
description?: string | undefined;
|
|
4064
|
-
version?: string | undefined;
|
|
4065
4064
|
provider?: string | undefined;
|
|
4065
|
+
version?: string | undefined;
|
|
4066
4066
|
documentationUrl?: string | undefined;
|
|
4067
4067
|
} | undefined;
|
|
4068
4068
|
transport?: {
|
|
@@ -4372,7 +4372,7 @@ declare const ToolCallStartEventSchema: z.ZodObject<{
|
|
|
4372
4372
|
type: z.ZodLiteral<EventType.TOOL_CALL_START>;
|
|
4373
4373
|
toolCallId: z.ZodString;
|
|
4374
4374
|
toolCallName: z.ZodString;
|
|
4375
|
-
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
4375
|
+
parentMessageId: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
4376
4376
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4377
4377
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
4378
4378
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
@@ -4380,7 +4380,7 @@ declare const ToolCallStartEventSchema: z.ZodObject<{
|
|
|
4380
4380
|
type: z.ZodLiteral<EventType.TOOL_CALL_START>;
|
|
4381
4381
|
toolCallId: z.ZodString;
|
|
4382
4382
|
toolCallName: z.ZodString;
|
|
4383
|
-
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
4383
|
+
parentMessageId: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
4384
4384
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4385
4385
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
4386
4386
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
@@ -4388,7 +4388,7 @@ declare const ToolCallStartEventSchema: z.ZodObject<{
|
|
|
4388
4388
|
type: z.ZodLiteral<EventType.TOOL_CALL_START>;
|
|
4389
4389
|
toolCallId: z.ZodString;
|
|
4390
4390
|
toolCallName: z.ZodString;
|
|
4391
|
-
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
4391
|
+
parentMessageId: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
4392
4392
|
}, z.ZodTypeAny, "passthrough">>;
|
|
4393
4393
|
declare const ToolCallArgsEventSchema: z.ZodObject<{
|
|
4394
4394
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
@@ -4466,7 +4466,7 @@ declare const ToolCallChunkEventSchema: z.ZodObject<{
|
|
|
4466
4466
|
type: z.ZodLiteral<EventType.TOOL_CALL_CHUNK>;
|
|
4467
4467
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
4468
4468
|
toolCallName: z.ZodOptional<z.ZodString>;
|
|
4469
|
-
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
4469
|
+
parentMessageId: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
4470
4470
|
delta: z.ZodOptional<z.ZodString>;
|
|
4471
4471
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4472
4472
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
@@ -4475,7 +4475,7 @@ declare const ToolCallChunkEventSchema: z.ZodObject<{
|
|
|
4475
4475
|
type: z.ZodLiteral<EventType.TOOL_CALL_CHUNK>;
|
|
4476
4476
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
4477
4477
|
toolCallName: z.ZodOptional<z.ZodString>;
|
|
4478
|
-
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
4478
|
+
parentMessageId: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
4479
4479
|
delta: z.ZodOptional<z.ZodString>;
|
|
4480
4480
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4481
4481
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
@@ -4484,7 +4484,7 @@ declare const ToolCallChunkEventSchema: z.ZodObject<{
|
|
|
4484
4484
|
type: z.ZodLiteral<EventType.TOOL_CALL_CHUNK>;
|
|
4485
4485
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
4486
4486
|
toolCallName: z.ZodOptional<z.ZodString>;
|
|
4487
|
-
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
4487
|
+
parentMessageId: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
4488
4488
|
delta: z.ZodOptional<z.ZodString>;
|
|
4489
4489
|
}, z.ZodTypeAny, "passthrough">>;
|
|
4490
4490
|
/**
|
|
@@ -9617,6 +9617,31 @@ declare const RunFinishedOutcomeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
9617
9617
|
expiresAt?: string | undefined;
|
|
9618
9618
|
}[];
|
|
9619
9619
|
}>]>;
|
|
9620
|
+
declare const TokenUsageSchema: z.ZodObject<{
|
|
9621
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
9622
|
+
model: z.ZodOptional<z.ZodString>;
|
|
9623
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
9624
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
9625
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
9626
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
9627
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
9628
|
+
}, "strip", z.ZodTypeAny, {
|
|
9629
|
+
provider?: string | undefined;
|
|
9630
|
+
model?: string | undefined;
|
|
9631
|
+
inputTokens?: number | undefined;
|
|
9632
|
+
outputTokens?: number | undefined;
|
|
9633
|
+
totalTokens?: number | undefined;
|
|
9634
|
+
reasoningTokens?: number | undefined;
|
|
9635
|
+
cachedInputTokens?: number | undefined;
|
|
9636
|
+
}, {
|
|
9637
|
+
provider?: string | undefined;
|
|
9638
|
+
model?: string | undefined;
|
|
9639
|
+
inputTokens?: number | undefined;
|
|
9640
|
+
outputTokens?: number | undefined;
|
|
9641
|
+
totalTokens?: number | undefined;
|
|
9642
|
+
reasoningTokens?: number | undefined;
|
|
9643
|
+
cachedInputTokens?: number | undefined;
|
|
9644
|
+
}>;
|
|
9620
9645
|
declare const RunFinishedEventSchema: z.ZodObject<{
|
|
9621
9646
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
9622
9647
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
@@ -9707,6 +9732,31 @@ declare const RunFinishedEventSchema: z.ZodObject<{
|
|
|
9707
9732
|
expiresAt?: string | undefined;
|
|
9708
9733
|
}[];
|
|
9709
9734
|
} | null | undefined>;
|
|
9735
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9736
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
9737
|
+
model: z.ZodOptional<z.ZodString>;
|
|
9738
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
9739
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
9740
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
9741
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
9742
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
9743
|
+
}, "strip", z.ZodTypeAny, {
|
|
9744
|
+
provider?: string | undefined;
|
|
9745
|
+
model?: string | undefined;
|
|
9746
|
+
inputTokens?: number | undefined;
|
|
9747
|
+
outputTokens?: number | undefined;
|
|
9748
|
+
totalTokens?: number | undefined;
|
|
9749
|
+
reasoningTokens?: number | undefined;
|
|
9750
|
+
cachedInputTokens?: number | undefined;
|
|
9751
|
+
}, {
|
|
9752
|
+
provider?: string | undefined;
|
|
9753
|
+
model?: string | undefined;
|
|
9754
|
+
inputTokens?: number | undefined;
|
|
9755
|
+
outputTokens?: number | undefined;
|
|
9756
|
+
totalTokens?: number | undefined;
|
|
9757
|
+
reasoningTokens?: number | undefined;
|
|
9758
|
+
cachedInputTokens?: number | undefined;
|
|
9759
|
+
}>, "many">>;
|
|
9710
9760
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
9711
9761
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
9712
9762
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
@@ -9797,6 +9847,31 @@ declare const RunFinishedEventSchema: z.ZodObject<{
|
|
|
9797
9847
|
expiresAt?: string | undefined;
|
|
9798
9848
|
}[];
|
|
9799
9849
|
} | null | undefined>;
|
|
9850
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9851
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
9852
|
+
model: z.ZodOptional<z.ZodString>;
|
|
9853
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
9854
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
9855
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
9856
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
9857
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
9858
|
+
}, "strip", z.ZodTypeAny, {
|
|
9859
|
+
provider?: string | undefined;
|
|
9860
|
+
model?: string | undefined;
|
|
9861
|
+
inputTokens?: number | undefined;
|
|
9862
|
+
outputTokens?: number | undefined;
|
|
9863
|
+
totalTokens?: number | undefined;
|
|
9864
|
+
reasoningTokens?: number | undefined;
|
|
9865
|
+
cachedInputTokens?: number | undefined;
|
|
9866
|
+
}, {
|
|
9867
|
+
provider?: string | undefined;
|
|
9868
|
+
model?: string | undefined;
|
|
9869
|
+
inputTokens?: number | undefined;
|
|
9870
|
+
outputTokens?: number | undefined;
|
|
9871
|
+
totalTokens?: number | undefined;
|
|
9872
|
+
reasoningTokens?: number | undefined;
|
|
9873
|
+
cachedInputTokens?: number | undefined;
|
|
9874
|
+
}>, "many">>;
|
|
9800
9875
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
9801
9876
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
9802
9877
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
@@ -9887,6 +9962,31 @@ declare const RunFinishedEventSchema: z.ZodObject<{
|
|
|
9887
9962
|
expiresAt?: string | undefined;
|
|
9888
9963
|
}[];
|
|
9889
9964
|
} | null | undefined>;
|
|
9965
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9966
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
9967
|
+
model: z.ZodOptional<z.ZodString>;
|
|
9968
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
9969
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
9970
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
9971
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
9972
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
9973
|
+
}, "strip", z.ZodTypeAny, {
|
|
9974
|
+
provider?: string | undefined;
|
|
9975
|
+
model?: string | undefined;
|
|
9976
|
+
inputTokens?: number | undefined;
|
|
9977
|
+
outputTokens?: number | undefined;
|
|
9978
|
+
totalTokens?: number | undefined;
|
|
9979
|
+
reasoningTokens?: number | undefined;
|
|
9980
|
+
cachedInputTokens?: number | undefined;
|
|
9981
|
+
}, {
|
|
9982
|
+
provider?: string | undefined;
|
|
9983
|
+
model?: string | undefined;
|
|
9984
|
+
inputTokens?: number | undefined;
|
|
9985
|
+
outputTokens?: number | undefined;
|
|
9986
|
+
totalTokens?: number | undefined;
|
|
9987
|
+
reasoningTokens?: number | undefined;
|
|
9988
|
+
cachedInputTokens?: number | undefined;
|
|
9989
|
+
}>, "many">>;
|
|
9890
9990
|
}, z.ZodTypeAny, "passthrough">>;
|
|
9891
9991
|
declare const RunErrorEventSchema: z.ZodObject<{
|
|
9892
9992
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
@@ -9895,6 +9995,31 @@ declare const RunErrorEventSchema: z.ZodObject<{
|
|
|
9895
9995
|
type: z.ZodLiteral<EventType.RUN_ERROR>;
|
|
9896
9996
|
message: z.ZodString;
|
|
9897
9997
|
code: z.ZodOptional<z.ZodString>;
|
|
9998
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9999
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
10000
|
+
model: z.ZodOptional<z.ZodString>;
|
|
10001
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
10002
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
10003
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
10004
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
10005
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
10006
|
+
}, "strip", z.ZodTypeAny, {
|
|
10007
|
+
provider?: string | undefined;
|
|
10008
|
+
model?: string | undefined;
|
|
10009
|
+
inputTokens?: number | undefined;
|
|
10010
|
+
outputTokens?: number | undefined;
|
|
10011
|
+
totalTokens?: number | undefined;
|
|
10012
|
+
reasoningTokens?: number | undefined;
|
|
10013
|
+
cachedInputTokens?: number | undefined;
|
|
10014
|
+
}, {
|
|
10015
|
+
provider?: string | undefined;
|
|
10016
|
+
model?: string | undefined;
|
|
10017
|
+
inputTokens?: number | undefined;
|
|
10018
|
+
outputTokens?: number | undefined;
|
|
10019
|
+
totalTokens?: number | undefined;
|
|
10020
|
+
reasoningTokens?: number | undefined;
|
|
10021
|
+
cachedInputTokens?: number | undefined;
|
|
10022
|
+
}>, "many">>;
|
|
9898
10023
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
9899
10024
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
9900
10025
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
@@ -9902,6 +10027,31 @@ declare const RunErrorEventSchema: z.ZodObject<{
|
|
|
9902
10027
|
type: z.ZodLiteral<EventType.RUN_ERROR>;
|
|
9903
10028
|
message: z.ZodString;
|
|
9904
10029
|
code: z.ZodOptional<z.ZodString>;
|
|
10030
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10031
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
10032
|
+
model: z.ZodOptional<z.ZodString>;
|
|
10033
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
10034
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
10035
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
10036
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
10037
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
10038
|
+
}, "strip", z.ZodTypeAny, {
|
|
10039
|
+
provider?: string | undefined;
|
|
10040
|
+
model?: string | undefined;
|
|
10041
|
+
inputTokens?: number | undefined;
|
|
10042
|
+
outputTokens?: number | undefined;
|
|
10043
|
+
totalTokens?: number | undefined;
|
|
10044
|
+
reasoningTokens?: number | undefined;
|
|
10045
|
+
cachedInputTokens?: number | undefined;
|
|
10046
|
+
}, {
|
|
10047
|
+
provider?: string | undefined;
|
|
10048
|
+
model?: string | undefined;
|
|
10049
|
+
inputTokens?: number | undefined;
|
|
10050
|
+
outputTokens?: number | undefined;
|
|
10051
|
+
totalTokens?: number | undefined;
|
|
10052
|
+
reasoningTokens?: number | undefined;
|
|
10053
|
+
cachedInputTokens?: number | undefined;
|
|
10054
|
+
}>, "many">>;
|
|
9905
10055
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
9906
10056
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
9907
10057
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
@@ -9909,6 +10059,31 @@ declare const RunErrorEventSchema: z.ZodObject<{
|
|
|
9909
10059
|
type: z.ZodLiteral<EventType.RUN_ERROR>;
|
|
9910
10060
|
message: z.ZodString;
|
|
9911
10061
|
code: z.ZodOptional<z.ZodString>;
|
|
10062
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10063
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
10064
|
+
model: z.ZodOptional<z.ZodString>;
|
|
10065
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
10066
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
10067
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
10068
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
10069
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
10070
|
+
}, "strip", z.ZodTypeAny, {
|
|
10071
|
+
provider?: string | undefined;
|
|
10072
|
+
model?: string | undefined;
|
|
10073
|
+
inputTokens?: number | undefined;
|
|
10074
|
+
outputTokens?: number | undefined;
|
|
10075
|
+
totalTokens?: number | undefined;
|
|
10076
|
+
reasoningTokens?: number | undefined;
|
|
10077
|
+
cachedInputTokens?: number | undefined;
|
|
10078
|
+
}, {
|
|
10079
|
+
provider?: string | undefined;
|
|
10080
|
+
model?: string | undefined;
|
|
10081
|
+
inputTokens?: number | undefined;
|
|
10082
|
+
outputTokens?: number | undefined;
|
|
10083
|
+
totalTokens?: number | undefined;
|
|
10084
|
+
reasoningTokens?: number | undefined;
|
|
10085
|
+
cachedInputTokens?: number | undefined;
|
|
10086
|
+
}>, "many">>;
|
|
9912
10087
|
}, z.ZodTypeAny, "passthrough">>;
|
|
9913
10088
|
declare const StepStartedEventSchema: z.ZodObject<{
|
|
9914
10089
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
@@ -10284,7 +10459,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
10284
10459
|
type: z.ZodLiteral<EventType.TOOL_CALL_START>;
|
|
10285
10460
|
toolCallId: z.ZodString;
|
|
10286
10461
|
toolCallName: z.ZodString;
|
|
10287
|
-
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
10462
|
+
parentMessageId: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
10288
10463
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
10289
10464
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
10290
10465
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
@@ -10292,7 +10467,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
10292
10467
|
type: z.ZodLiteral<EventType.TOOL_CALL_START>;
|
|
10293
10468
|
toolCallId: z.ZodString;
|
|
10294
10469
|
toolCallName: z.ZodString;
|
|
10295
|
-
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
10470
|
+
parentMessageId: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
10296
10471
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
10297
10472
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
10298
10473
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
@@ -10300,7 +10475,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
10300
10475
|
type: z.ZodLiteral<EventType.TOOL_CALL_START>;
|
|
10301
10476
|
toolCallId: z.ZodString;
|
|
10302
10477
|
toolCallName: z.ZodString;
|
|
10303
|
-
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
10478
|
+
parentMessageId: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
10304
10479
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
10305
10480
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
10306
10481
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
@@ -10347,7 +10522,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
10347
10522
|
type: z.ZodLiteral<EventType.TOOL_CALL_CHUNK>;
|
|
10348
10523
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
10349
10524
|
toolCallName: z.ZodOptional<z.ZodString>;
|
|
10350
|
-
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
10525
|
+
parentMessageId: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
10351
10526
|
delta: z.ZodOptional<z.ZodString>;
|
|
10352
10527
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
10353
10528
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
@@ -10356,7 +10531,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
10356
10531
|
type: z.ZodLiteral<EventType.TOOL_CALL_CHUNK>;
|
|
10357
10532
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
10358
10533
|
toolCallName: z.ZodOptional<z.ZodString>;
|
|
10359
|
-
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
10534
|
+
parentMessageId: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
10360
10535
|
delta: z.ZodOptional<z.ZodString>;
|
|
10361
10536
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
10362
10537
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
@@ -10365,7 +10540,7 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
10365
10540
|
type: z.ZodLiteral<EventType.TOOL_CALL_CHUNK>;
|
|
10366
10541
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
10367
10542
|
toolCallName: z.ZodOptional<z.ZodString>;
|
|
10368
|
-
parentMessageId: z.ZodOptional<z.ZodString>;
|
|
10543
|
+
parentMessageId: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
10369
10544
|
delta: z.ZodOptional<z.ZodString>;
|
|
10370
10545
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
10371
10546
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
@@ -15452,6 +15627,31 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
15452
15627
|
expiresAt?: string | undefined;
|
|
15453
15628
|
}[];
|
|
15454
15629
|
} | null | undefined>;
|
|
15630
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15631
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
15632
|
+
model: z.ZodOptional<z.ZodString>;
|
|
15633
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
15634
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
15635
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
15636
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
15637
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
15638
|
+
}, "strip", z.ZodTypeAny, {
|
|
15639
|
+
provider?: string | undefined;
|
|
15640
|
+
model?: string | undefined;
|
|
15641
|
+
inputTokens?: number | undefined;
|
|
15642
|
+
outputTokens?: number | undefined;
|
|
15643
|
+
totalTokens?: number | undefined;
|
|
15644
|
+
reasoningTokens?: number | undefined;
|
|
15645
|
+
cachedInputTokens?: number | undefined;
|
|
15646
|
+
}, {
|
|
15647
|
+
provider?: string | undefined;
|
|
15648
|
+
model?: string | undefined;
|
|
15649
|
+
inputTokens?: number | undefined;
|
|
15650
|
+
outputTokens?: number | undefined;
|
|
15651
|
+
totalTokens?: number | undefined;
|
|
15652
|
+
reasoningTokens?: number | undefined;
|
|
15653
|
+
cachedInputTokens?: number | undefined;
|
|
15654
|
+
}>, "many">>;
|
|
15455
15655
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
15456
15656
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
15457
15657
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
@@ -15542,6 +15742,31 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
15542
15742
|
expiresAt?: string | undefined;
|
|
15543
15743
|
}[];
|
|
15544
15744
|
} | null | undefined>;
|
|
15745
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15746
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
15747
|
+
model: z.ZodOptional<z.ZodString>;
|
|
15748
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
15749
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
15750
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
15751
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
15752
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
15753
|
+
}, "strip", z.ZodTypeAny, {
|
|
15754
|
+
provider?: string | undefined;
|
|
15755
|
+
model?: string | undefined;
|
|
15756
|
+
inputTokens?: number | undefined;
|
|
15757
|
+
outputTokens?: number | undefined;
|
|
15758
|
+
totalTokens?: number | undefined;
|
|
15759
|
+
reasoningTokens?: number | undefined;
|
|
15760
|
+
cachedInputTokens?: number | undefined;
|
|
15761
|
+
}, {
|
|
15762
|
+
provider?: string | undefined;
|
|
15763
|
+
model?: string | undefined;
|
|
15764
|
+
inputTokens?: number | undefined;
|
|
15765
|
+
outputTokens?: number | undefined;
|
|
15766
|
+
totalTokens?: number | undefined;
|
|
15767
|
+
reasoningTokens?: number | undefined;
|
|
15768
|
+
cachedInputTokens?: number | undefined;
|
|
15769
|
+
}>, "many">>;
|
|
15545
15770
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
15546
15771
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
15547
15772
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
@@ -15632,6 +15857,31 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
15632
15857
|
expiresAt?: string | undefined;
|
|
15633
15858
|
}[];
|
|
15634
15859
|
} | null | undefined>;
|
|
15860
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15861
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
15862
|
+
model: z.ZodOptional<z.ZodString>;
|
|
15863
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
15864
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
15865
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
15866
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
15867
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
15868
|
+
}, "strip", z.ZodTypeAny, {
|
|
15869
|
+
provider?: string | undefined;
|
|
15870
|
+
model?: string | undefined;
|
|
15871
|
+
inputTokens?: number | undefined;
|
|
15872
|
+
outputTokens?: number | undefined;
|
|
15873
|
+
totalTokens?: number | undefined;
|
|
15874
|
+
reasoningTokens?: number | undefined;
|
|
15875
|
+
cachedInputTokens?: number | undefined;
|
|
15876
|
+
}, {
|
|
15877
|
+
provider?: string | undefined;
|
|
15878
|
+
model?: string | undefined;
|
|
15879
|
+
inputTokens?: number | undefined;
|
|
15880
|
+
outputTokens?: number | undefined;
|
|
15881
|
+
totalTokens?: number | undefined;
|
|
15882
|
+
reasoningTokens?: number | undefined;
|
|
15883
|
+
cachedInputTokens?: number | undefined;
|
|
15884
|
+
}>, "many">>;
|
|
15635
15885
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
15636
15886
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
15637
15887
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
@@ -15639,6 +15889,31 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
15639
15889
|
type: z.ZodLiteral<EventType.RUN_ERROR>;
|
|
15640
15890
|
message: z.ZodString;
|
|
15641
15891
|
code: z.ZodOptional<z.ZodString>;
|
|
15892
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15893
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
15894
|
+
model: z.ZodOptional<z.ZodString>;
|
|
15895
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
15896
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
15897
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
15898
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
15899
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
15900
|
+
}, "strip", z.ZodTypeAny, {
|
|
15901
|
+
provider?: string | undefined;
|
|
15902
|
+
model?: string | undefined;
|
|
15903
|
+
inputTokens?: number | undefined;
|
|
15904
|
+
outputTokens?: number | undefined;
|
|
15905
|
+
totalTokens?: number | undefined;
|
|
15906
|
+
reasoningTokens?: number | undefined;
|
|
15907
|
+
cachedInputTokens?: number | undefined;
|
|
15908
|
+
}, {
|
|
15909
|
+
provider?: string | undefined;
|
|
15910
|
+
model?: string | undefined;
|
|
15911
|
+
inputTokens?: number | undefined;
|
|
15912
|
+
outputTokens?: number | undefined;
|
|
15913
|
+
totalTokens?: number | undefined;
|
|
15914
|
+
reasoningTokens?: number | undefined;
|
|
15915
|
+
cachedInputTokens?: number | undefined;
|
|
15916
|
+
}>, "many">>;
|
|
15642
15917
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
15643
15918
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
15644
15919
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
@@ -15646,6 +15921,31 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
15646
15921
|
type: z.ZodLiteral<EventType.RUN_ERROR>;
|
|
15647
15922
|
message: z.ZodString;
|
|
15648
15923
|
code: z.ZodOptional<z.ZodString>;
|
|
15924
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15925
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
15926
|
+
model: z.ZodOptional<z.ZodString>;
|
|
15927
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
15928
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
15929
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
15930
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
15931
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
15932
|
+
}, "strip", z.ZodTypeAny, {
|
|
15933
|
+
provider?: string | undefined;
|
|
15934
|
+
model?: string | undefined;
|
|
15935
|
+
inputTokens?: number | undefined;
|
|
15936
|
+
outputTokens?: number | undefined;
|
|
15937
|
+
totalTokens?: number | undefined;
|
|
15938
|
+
reasoningTokens?: number | undefined;
|
|
15939
|
+
cachedInputTokens?: number | undefined;
|
|
15940
|
+
}, {
|
|
15941
|
+
provider?: string | undefined;
|
|
15942
|
+
model?: string | undefined;
|
|
15943
|
+
inputTokens?: number | undefined;
|
|
15944
|
+
outputTokens?: number | undefined;
|
|
15945
|
+
totalTokens?: number | undefined;
|
|
15946
|
+
reasoningTokens?: number | undefined;
|
|
15947
|
+
cachedInputTokens?: number | undefined;
|
|
15948
|
+
}>, "many">>;
|
|
15649
15949
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
15650
15950
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
15651
15951
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
@@ -15653,6 +15953,31 @@ declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
15653
15953
|
type: z.ZodLiteral<EventType.RUN_ERROR>;
|
|
15654
15954
|
message: z.ZodString;
|
|
15655
15955
|
code: z.ZodOptional<z.ZodString>;
|
|
15956
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
15957
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
15958
|
+
model: z.ZodOptional<z.ZodString>;
|
|
15959
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
15960
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
15961
|
+
totalTokens: z.ZodOptional<z.ZodNumber>;
|
|
15962
|
+
reasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
15963
|
+
cachedInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
15964
|
+
}, "strip", z.ZodTypeAny, {
|
|
15965
|
+
provider?: string | undefined;
|
|
15966
|
+
model?: string | undefined;
|
|
15967
|
+
inputTokens?: number | undefined;
|
|
15968
|
+
outputTokens?: number | undefined;
|
|
15969
|
+
totalTokens?: number | undefined;
|
|
15970
|
+
reasoningTokens?: number | undefined;
|
|
15971
|
+
cachedInputTokens?: number | undefined;
|
|
15972
|
+
}, {
|
|
15973
|
+
provider?: string | undefined;
|
|
15974
|
+
model?: string | undefined;
|
|
15975
|
+
inputTokens?: number | undefined;
|
|
15976
|
+
outputTokens?: number | undefined;
|
|
15977
|
+
totalTokens?: number | undefined;
|
|
15978
|
+
reasoningTokens?: number | undefined;
|
|
15979
|
+
cachedInputTokens?: number | undefined;
|
|
15980
|
+
}>, "many">>;
|
|
15656
15981
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
15657
15982
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
15658
15983
|
rawEvent: z.ZodOptional<z.ZodAny>;
|
|
@@ -15929,6 +16254,7 @@ type RawEvent = z.infer<typeof RawEventSchema>;
|
|
|
15929
16254
|
type CustomEvent = z.infer<typeof CustomEventSchema>;
|
|
15930
16255
|
type RunStartedEvent = z.infer<typeof RunStartedEventSchema>;
|
|
15931
16256
|
type RunFinishedEvent = z.infer<typeof RunFinishedEventSchema>;
|
|
16257
|
+
type TokenUsage = z.infer<typeof TokenUsageSchema>;
|
|
15932
16258
|
type RunFinishedOutcome = z.infer<typeof RunFinishedOutcomeSchema>;
|
|
15933
16259
|
type RunFinishedSuccessOutcome = z.infer<typeof RunFinishedSuccessOutcomeSchema>;
|
|
15934
16260
|
type RunFinishedInterruptOutcome = z.infer<typeof RunFinishedInterruptOutcomeSchema>;
|
|
@@ -15944,5 +16270,48 @@ type ReasoningEndEvent = z.infer<typeof ReasoningEndEventSchema>;
|
|
|
15944
16270
|
type ReasoningEncryptedValueEvent = z.infer<typeof ReasoningEncryptedValueEventSchema>;
|
|
15945
16271
|
type ReasoningEncryptedValueSubtype = z.infer<typeof ReasoningEncryptedValueSubtypeSchema>;
|
|
15946
16272
|
//#endregion
|
|
15947
|
-
|
|
16273
|
+
//#region src/token-usage.d.ts
|
|
16274
|
+
/**
|
|
16275
|
+
* Map a LangChain-family `usage_metadata` object into an AG-UI {@link TokenUsage}.
|
|
16276
|
+
*
|
|
16277
|
+
* LangChain and LangGraph both attach usage as `{ input_tokens, output_tokens,
|
|
16278
|
+
* total_tokens, input_token_details: { cache_read }, output_token_details:
|
|
16279
|
+
* { reasoning } }`. This maps only those numeric counts plus optional
|
|
16280
|
+
* provider/model labels — never prompt/completion content. Returns `undefined`
|
|
16281
|
+
* when no usable count is present, so callers can omit usage rather than
|
|
16282
|
+
* report zeros.
|
|
16283
|
+
*/
|
|
16284
|
+
declare function tokenUsageFromLangChainMetadata(usageMetadata: unknown, {
|
|
16285
|
+
provider,
|
|
16286
|
+
model
|
|
16287
|
+
}: {
|
|
16288
|
+
provider?: string;
|
|
16289
|
+
model?: string;
|
|
16290
|
+
}): TokenUsage | undefined;
|
|
16291
|
+
/**
|
|
16292
|
+
* Map an AI-SDK (v5) `LanguageModelUsage` object into an AG-UI {@link TokenUsage}.
|
|
16293
|
+
*
|
|
16294
|
+
* AI-SDK's keys already match: `inputTokens`, `outputTokens`, `totalTokens`,
|
|
16295
|
+
* `reasoningTokens`, `cachedInputTokens`. AI-SDK reports `NaN`/`undefined` for
|
|
16296
|
+
* counts a provider didn't return, so only finite numbers are copied. Returns
|
|
16297
|
+
* `undefined` when no finite count is present (so callers omit empty usage).
|
|
16298
|
+
*/
|
|
16299
|
+
declare function tokenUsageFromAiSdkUsage(usage: unknown, {
|
|
16300
|
+
provider,
|
|
16301
|
+
model
|
|
16302
|
+
}: {
|
|
16303
|
+
provider?: string;
|
|
16304
|
+
model?: string;
|
|
16305
|
+
}): TokenUsage | undefined;
|
|
16306
|
+
/**
|
|
16307
|
+
* Sum per-call {@link TokenUsage} entries into one entry per `(provider, model)`
|
|
16308
|
+
* pair. Order follows first appearance. A count field stays `undefined` when no
|
|
16309
|
+
* member of the group reported it, so "not reported" stays distinct from zero.
|
|
16310
|
+
*
|
|
16311
|
+
* Protocol-agnostic: works on any producer's `TokenUsage[]`, so integrations
|
|
16312
|
+
* share it rather than reimplementing aggregation.
|
|
16313
|
+
*/
|
|
16314
|
+
declare function aggregateTokenUsage(entries: TokenUsage[]): TokenUsage[];
|
|
16315
|
+
//#endregion
|
|
16316
|
+
export { AGUIConnectNotImplementedError, AGUIError, AGUIEvent, AGUIEventByType, AGUIEventOf, ActivityDeltaEvent, ActivityDeltaEventProps, ActivityDeltaEventSchema, ActivityMessage, ActivityMessageSchema, ActivitySnapshotEvent, ActivitySnapshotEventProps, ActivitySnapshotEventSchema, type AgentCapabilities, AgentCapabilitiesSchema, AssistantMessage, AssistantMessageSchema, AudioInputContent, AudioInputContentSchema, AudioInputPart, AudioInputPartSchema, BaseEvent, BaseEventFields, BaseEventProps, BaseEventSchema, BaseMessageSchema, BinaryInputContent, BinaryInputContentSchema, Context, ContextSchema, CustomEvent, CustomEventProps, CustomEventSchema, DeveloperMessage, DeveloperMessageSchema, DocumentInputContent, DocumentInputContentSchema, DocumentInputPart, DocumentInputPartSchema, EventPayloadOf, EventSchemas, EventType, type ExecutionCapabilities, ExecutionCapabilitiesSchema, FunctionCall, FunctionCallSchema, type HumanInTheLoopCapabilities, HumanInTheLoopCapabilitiesSchema, type IdentityCapabilities, IdentityCapabilitiesSchema, ImageInputContent, ImageInputContentSchema, ImageInputPart, ImageInputPartSchema, InputContent, InputContentDataSource, InputContentDataSourceSchema, InputContentPart, InputContentSchema, InputContentSource, InputContentSourceSchema, InputContentUrlSource, InputContentUrlSourceSchema, Interrupt, InterruptSchema, Message, MessageSchema, MessagesSnapshotEvent, MessagesSnapshotEventProps, MessagesSnapshotEventSchema, type MultiAgentCapabilities, MultiAgentCapabilitiesSchema, type MultimodalCapabilities, MultimodalCapabilitiesSchema, type MultimodalInputCapabilities, MultimodalInputCapabilitiesSchema, type MultimodalOutputCapabilities, MultimodalOutputCapabilitiesSchema, type OutputCapabilities, OutputCapabilitiesSchema, RawEvent, RawEventProps, RawEventSchema, type ReasoningCapabilities, ReasoningCapabilitiesSchema, ReasoningEncryptedValueEvent, ReasoningEncryptedValueEventProps, ReasoningEncryptedValueEventSchema, ReasoningEncryptedValueSubtype, ReasoningEncryptedValueSubtypeSchema, ReasoningEndEvent, ReasoningEndEventProps, ReasoningEndEventSchema, ReasoningMessage, ReasoningMessageChunkEvent, ReasoningMessageChunkEventProps, ReasoningMessageChunkEventSchema, ReasoningMessageContentEvent, ReasoningMessageContentEventProps, ReasoningMessageContentEventSchema, ReasoningMessageEndEvent, ReasoningMessageEndEventProps, ReasoningMessageEndEventSchema, ReasoningMessageSchema, ReasoningMessageStartEvent, ReasoningMessageStartEventProps, ReasoningMessageStartEventSchema, ReasoningStartEvent, ReasoningStartEventProps, ReasoningStartEventSchema, ResumeEntry, ResumeEntrySchema, ResumeStatus, Role, RoleSchema, RunAgentInput, RunAgentInputSchema, RunErrorEvent, RunErrorEventProps, RunErrorEventSchema, RunFinishedEvent, RunFinishedEventProps, RunFinishedEventSchema, RunFinishedInterruptOutcome, RunFinishedInterruptOutcomeSchema, RunFinishedOutcome, RunFinishedOutcomeSchema, RunFinishedSuccessOutcome, RunFinishedSuccessOutcomeSchema, RunStartedEvent, RunStartedEventProps, RunStartedEventSchema, State, type StateCapabilities, StateCapabilitiesSchema, StateDeltaEvent, StateDeltaEventProps, StateDeltaEventSchema, StateSchema, StateSnapshotEvent, StateSnapshotEventProps, StateSnapshotEventSchema, StepFinishedEvent, StepFinishedEventProps, StepFinishedEventSchema, StepStartedEvent, StepStartedEventProps, StepStartedEventSchema, type SubAgentInfo, SubAgentInfoSchema, SystemMessage, SystemMessageSchema, TextInputContent, TextInputContentSchema, TextMessageChunkEvent, TextMessageChunkEventProps, TextMessageChunkEventSchema, TextMessageContentEvent, TextMessageContentEventProps, TextMessageContentEventSchema, TextMessageEndEvent, TextMessageEndEventProps, TextMessageEndEventSchema, TextMessageStartEvent, TextMessageStartEventProps, TextMessageStartEventSchema, ThinkingEndEvent, ThinkingEndEventProps, ThinkingEndEventSchema, ThinkingStartEvent, ThinkingStartEventProps, ThinkingStartEventSchema, ThinkingTextMessageContentEvent, ThinkingTextMessageContentEventProps, ThinkingTextMessageContentEventSchema, ThinkingTextMessageEndEvent, ThinkingTextMessageEndEventProps, ThinkingTextMessageEndEventSchema, ThinkingTextMessageStartEvent, ThinkingTextMessageStartEventProps, ThinkingTextMessageStartEventSchema, TokenUsage, TokenUsageSchema, Tool, ToolCall, ToolCallArgsEvent, ToolCallArgsEventProps, ToolCallArgsEventSchema, ToolCallChunkEvent, ToolCallChunkEventProps, ToolCallChunkEventSchema, ToolCallEndEvent, ToolCallEndEventProps, ToolCallEndEventSchema, ToolCallResultEvent, ToolCallResultEventProps, ToolCallResultEventSchema, ToolCallSchema, ToolCallStartEvent, ToolCallStartEventProps, ToolCallStartEventSchema, ToolMessage, ToolMessageSchema, ToolSchema, type ToolsCapabilities, ToolsCapabilitiesSchema, type TransportCapabilities, TransportCapabilitiesSchema, UserMessage, UserMessageSchema, VideoInputContent, VideoInputContentSchema, VideoInputPart, VideoInputPartSchema, aggregateTokenUsage, tokenUsageFromAiSdkUsage, tokenUsageFromLangChainMetadata };
|
|
15948
16317
|
//# sourceMappingURL=index.d.mts.map
|