@@ -483,6 +483,23 @@ func (r FilePartType) IsKnown() bool {
483
483
return false
484
484
}
485
485
486
+ type FilePartParam struct {
487
+ ID param.Field [string ] `json:"id,required"`
488
+ MessageID param.Field [string ] `json:"messageID,required"`
489
+ Mime param.Field [string ] `json:"mime,required"`
490
+ SessionID param.Field [string ] `json:"sessionID,required"`
491
+ Type param.Field [FilePartType ] `json:"type,required"`
492
+ URL param.Field [string ] `json:"url,required"`
493
+ Filename param.Field [string ] `json:"filename"`
494
+ Source param.Field [FilePartSourceUnionParam ] `json:"source"`
495
+ }
496
+
497
+ func (r FilePartParam ) MarshalJSON () (data []byte , err error ) {
498
+ return apijson .MarshalRoot (r )
499
+ }
500
+
501
+ func (r FilePartParam ) implementsPartUnionParam () {}
502
+
486
503
type FilePartInputParam struct {
487
504
Mime param.Field [string ] `json:"mime,required"`
488
505
Type param.Field [FilePartInputType ] `json:"type,required"`
@@ -932,6 +949,38 @@ func (r PartType) IsKnown() bool {
932
949
return false
933
950
}
934
951
952
+ type PartParam struct {
953
+ ID param.Field [string ] `json:"id,required"`
954
+ MessageID param.Field [string ] `json:"messageID,required"`
955
+ SessionID param.Field [string ] `json:"sessionID,required"`
956
+ Type param.Field [PartType ] `json:"type,required"`
957
+ CallID param.Field [string ] `json:"callID"`
958
+ Cost param.Field [float64 ] `json:"cost"`
959
+ Filename param.Field [string ] `json:"filename"`
960
+ Mime param.Field [string ] `json:"mime"`
961
+ Snapshot param.Field [string ] `json:"snapshot"`
962
+ Source param.Field [FilePartSourceUnionParam ] `json:"source"`
963
+ State param.Field [interface {}] `json:"state"`
964
+ Synthetic param.Field [bool ] `json:"synthetic"`
965
+ Text param.Field [string ] `json:"text"`
966
+ Time param.Field [interface {}] `json:"time"`
967
+ Tokens param.Field [interface {}] `json:"tokens"`
968
+ Tool param.Field [string ] `json:"tool"`
969
+ URL param.Field [string ] `json:"url"`
970
+ }
971
+
972
+ func (r PartParam ) MarshalJSON () (data []byte , err error ) {
973
+ return apijson .MarshalRoot (r )
974
+ }
975
+
976
+ func (r PartParam ) implementsPartUnionParam () {}
977
+
978
+ // Satisfied by [TextPartParam], [FilePartParam], [ToolPartParam],
979
+ // [StepStartPartParam], [StepFinishPartParam], [SnapshotPartParam], [PartParam].
980
+ type PartUnionParam interface {
981
+ implementsPartUnionParam ()
982
+ }
983
+
935
984
type Session struct {
936
985
ID string `json:"id,required"`
937
986
Time SessionTime `json:"time,required"`
@@ -1074,6 +1123,20 @@ func (r SnapshotPartType) IsKnown() bool {
1074
1123
return false
1075
1124
}
1076
1125
1126
+ type SnapshotPartParam struct {
1127
+ ID param.Field [string ] `json:"id,required"`
1128
+ MessageID param.Field [string ] `json:"messageID,required"`
1129
+ SessionID param.Field [string ] `json:"sessionID,required"`
1130
+ Snapshot param.Field [string ] `json:"snapshot,required"`
1131
+ Type param.Field [SnapshotPartType ] `json:"type,required"`
1132
+ }
1133
+
1134
+ func (r SnapshotPartParam ) MarshalJSON () (data []byte , err error ) {
1135
+ return apijson .MarshalRoot (r )
1136
+ }
1137
+
1138
+ func (r SnapshotPartParam ) implementsPartUnionParam () {}
1139
+
1077
1140
type StepFinishPart struct {
1078
1141
ID string `json:"id,required"`
1079
1142
Cost float64 `json:"cost,required"`
@@ -1170,6 +1233,41 @@ func (r StepFinishPartType) IsKnown() bool {
1170
1233
return false
1171
1234
}
1172
1235
1236
+ type StepFinishPartParam struct {
1237
+ ID param.Field [string ] `json:"id,required"`
1238
+ Cost param.Field [float64 ] `json:"cost,required"`
1239
+ MessageID param.Field [string ] `json:"messageID,required"`
1240
+ SessionID param.Field [string ] `json:"sessionID,required"`
1241
+ Tokens param.Field [StepFinishPartTokensParam ] `json:"tokens,required"`
1242
+ Type param.Field [StepFinishPartType ] `json:"type,required"`
1243
+ }
1244
+
1245
+ func (r StepFinishPartParam ) MarshalJSON () (data []byte , err error ) {
1246
+ return apijson .MarshalRoot (r )
1247
+ }
1248
+
1249
+ func (r StepFinishPartParam ) implementsPartUnionParam () {}
1250
+
1251
+ type StepFinishPartTokensParam struct {
1252
+ Cache param.Field [StepFinishPartTokensCacheParam ] `json:"cache,required"`
1253
+ Input param.Field [float64 ] `json:"input,required"`
1254
+ Output param.Field [float64 ] `json:"output,required"`
1255
+ Reasoning param.Field [float64 ] `json:"reasoning,required"`
1256
+ }
1257
+
1258
+ func (r StepFinishPartTokensParam ) MarshalJSON () (data []byte , err error ) {
1259
+ return apijson .MarshalRoot (r )
1260
+ }
1261
+
1262
+ type StepFinishPartTokensCacheParam struct {
1263
+ Read param.Field [float64 ] `json:"read,required"`
1264
+ Write param.Field [float64 ] `json:"write,required"`
1265
+ }
1266
+
1267
+ func (r StepFinishPartTokensCacheParam ) MarshalJSON () (data []byte , err error ) {
1268
+ return apijson .MarshalRoot (r )
1269
+ }
1270
+
1173
1271
type StepStartPart struct {
1174
1272
ID string `json:"id,required"`
1175
1273
MessageID string `json:"messageID,required"`
@@ -1212,6 +1310,19 @@ func (r StepStartPartType) IsKnown() bool {
1212
1310
return false
1213
1311
}
1214
1312
1313
+ type StepStartPartParam struct {
1314
+ ID param.Field [string ] `json:"id,required"`
1315
+ MessageID param.Field [string ] `json:"messageID,required"`
1316
+ SessionID param.Field [string ] `json:"sessionID,required"`
1317
+ Type param.Field [StepStartPartType ] `json:"type,required"`
1318
+ }
1319
+
1320
+ func (r StepStartPartParam ) MarshalJSON () (data []byte , err error ) {
1321
+ return apijson .MarshalRoot (r )
1322
+ }
1323
+
1324
+ func (r StepStartPartParam ) implementsPartUnionParam () {}
1325
+
1215
1326
type SymbolSource struct {
1216
1327
Kind int64 `json:"kind,required"`
1217
1328
Name string `json:"name,required"`
@@ -1439,6 +1550,31 @@ func (r textPartTimeJSON) RawJSON() string {
1439
1550
return r .raw
1440
1551
}
1441
1552
1553
+ type TextPartParam struct {
1554
+ ID param.Field [string ] `json:"id,required"`
1555
+ MessageID param.Field [string ] `json:"messageID,required"`
1556
+ SessionID param.Field [string ] `json:"sessionID,required"`
1557
+ Text param.Field [string ] `json:"text,required"`
1558
+ Type param.Field [TextPartType ] `json:"type,required"`
1559
+ Synthetic param.Field [bool ] `json:"synthetic"`
1560
+ Time param.Field [TextPartTimeParam ] `json:"time"`
1561
+ }
1562
+
1563
+ func (r TextPartParam ) MarshalJSON () (data []byte , err error ) {
1564
+ return apijson .MarshalRoot (r )
1565
+ }
1566
+
1567
+ func (r TextPartParam ) implementsPartUnionParam () {}
1568
+
1569
+ type TextPartTimeParam struct {
1570
+ Start param.Field [float64 ] `json:"start,required"`
1571
+ End param.Field [float64 ] `json:"end"`
1572
+ }
1573
+
1574
+ func (r TextPartTimeParam ) MarshalJSON () (data []byte , err error ) {
1575
+ return apijson .MarshalRoot (r )
1576
+ }
1577
+
1442
1578
type TextPartInputParam struct {
1443
1579
Text param.Field [string ] `json:"text,required"`
1444
1580
Type param.Field [TextPartInputType ] `json:"type,required"`
@@ -1625,6 +1761,44 @@ func (r ToolPartType) IsKnown() bool {
1625
1761
return false
1626
1762
}
1627
1763
1764
+ type ToolPartParam struct {
1765
+ ID param.Field [string ] `json:"id,required"`
1766
+ CallID param.Field [string ] `json:"callID,required"`
1767
+ MessageID param.Field [string ] `json:"messageID,required"`
1768
+ SessionID param.Field [string ] `json:"sessionID,required"`
1769
+ State param.Field [ToolPartStateUnionParam ] `json:"state,required"`
1770
+ Tool param.Field [string ] `json:"tool,required"`
1771
+ Type param.Field [ToolPartType ] `json:"type,required"`
1772
+ }
1773
+
1774
+ func (r ToolPartParam ) MarshalJSON () (data []byte , err error ) {
1775
+ return apijson .MarshalRoot (r )
1776
+ }
1777
+
1778
+ func (r ToolPartParam ) implementsPartUnionParam () {}
1779
+
1780
+ type ToolPartStateParam struct {
1781
+ Status param.Field [ToolPartStateStatus ] `json:"status,required"`
1782
+ Error param.Field [string ] `json:"error"`
1783
+ Input param.Field [interface {}] `json:"input"`
1784
+ Metadata param.Field [interface {}] `json:"metadata"`
1785
+ Output param.Field [string ] `json:"output"`
1786
+ Time param.Field [interface {}] `json:"time"`
1787
+ Title param.Field [string ] `json:"title"`
1788
+ }
1789
+
1790
+ func (r ToolPartStateParam ) MarshalJSON () (data []byte , err error ) {
1791
+ return apijson .MarshalRoot (r )
1792
+ }
1793
+
1794
+ func (r ToolPartStateParam ) implementsToolPartStateUnionParam () {}
1795
+
1796
+ // Satisfied by [ToolStatePendingParam], [ToolStateRunningParam],
1797
+ // [ToolStateCompletedParam], [ToolStateErrorParam], [ToolPartStateParam].
1798
+ type ToolPartStateUnionParam interface {
1799
+ implementsToolPartStateUnionParam ()
1800
+ }
1801
+
1628
1802
type ToolStateCompleted struct {
1629
1803
Input map [string ]interface {} `json:"input,required"`
1630
1804
Metadata map [string ]interface {} `json:"metadata,required"`
@@ -1695,6 +1869,30 @@ func (r toolStateCompletedTimeJSON) RawJSON() string {
1695
1869
return r .raw
1696
1870
}
1697
1871
1872
+ type ToolStateCompletedParam struct {
1873
+ Input param.Field [map [string ]interface {}] `json:"input,required"`
1874
+ Metadata param.Field [map [string ]interface {}] `json:"metadata,required"`
1875
+ Output param.Field [string ] `json:"output,required"`
1876
+ Status param.Field [ToolStateCompletedStatus ] `json:"status,required"`
1877
+ Time param.Field [ToolStateCompletedTimeParam ] `json:"time,required"`
1878
+ Title param.Field [string ] `json:"title,required"`
1879
+ }
1880
+
1881
+ func (r ToolStateCompletedParam ) MarshalJSON () (data []byte , err error ) {
1882
+ return apijson .MarshalRoot (r )
1883
+ }
1884
+
1885
+ func (r ToolStateCompletedParam ) implementsToolPartStateUnionParam () {}
1886
+
1887
+ type ToolStateCompletedTimeParam struct {
1888
+ End param.Field [float64 ] `json:"end,required"`
1889
+ Start param.Field [float64 ] `json:"start,required"`
1890
+ }
1891
+
1892
+ func (r ToolStateCompletedTimeParam ) MarshalJSON () (data []byte , err error ) {
1893
+ return apijson .MarshalRoot (r )
1894
+ }
1895
+
1698
1896
type ToolStateError struct {
1699
1897
Error string `json:"error,required"`
1700
1898
Input map [string ]interface {} `json:"input,required"`
@@ -1760,6 +1958,28 @@ func (r toolStateErrorTimeJSON) RawJSON() string {
1760
1958
return r .raw
1761
1959
}
1762
1960
1961
+ type ToolStateErrorParam struct {
1962
+ Error param.Field [string ] `json:"error,required"`
1963
+ Input param.Field [map [string ]interface {}] `json:"input,required"`
1964
+ Status param.Field [ToolStateErrorStatus ] `json:"status,required"`
1965
+ Time param.Field [ToolStateErrorTimeParam ] `json:"time,required"`
1966
+ }
1967
+
1968
+ func (r ToolStateErrorParam ) MarshalJSON () (data []byte , err error ) {
1969
+ return apijson .MarshalRoot (r )
1970
+ }
1971
+
1972
+ func (r ToolStateErrorParam ) implementsToolPartStateUnionParam () {}
1973
+
1974
+ type ToolStateErrorTimeParam struct {
1975
+ End param.Field [float64 ] `json:"end,required"`
1976
+ Start param.Field [float64 ] `json:"start,required"`
1977
+ }
1978
+
1979
+ func (r ToolStateErrorTimeParam ) MarshalJSON () (data []byte , err error ) {
1980
+ return apijson .MarshalRoot (r )
1981
+ }
1982
+
1763
1983
type ToolStatePending struct {
1764
1984
Status ToolStatePendingStatus `json:"status,required"`
1765
1985
JSON toolStatePendingJSON `json:"-"`
@@ -1797,6 +2017,16 @@ func (r ToolStatePendingStatus) IsKnown() bool {
1797
2017
return false
1798
2018
}
1799
2019
2020
+ type ToolStatePendingParam struct {
2021
+ Status param.Field [ToolStatePendingStatus ] `json:"status,required"`
2022
+ }
2023
+
2024
+ func (r ToolStatePendingParam ) MarshalJSON () (data []byte , err error ) {
2025
+ return apijson .MarshalRoot (r )
2026
+ }
2027
+
2028
+ func (r ToolStatePendingParam ) implementsToolPartStateUnionParam () {}
2029
+
1800
2030
type ToolStateRunning struct {
1801
2031
Status ToolStateRunningStatus `json:"status,required"`
1802
2032
Time ToolStateRunningTime `json:"time,required"`
@@ -1863,6 +2093,28 @@ func (r toolStateRunningTimeJSON) RawJSON() string {
1863
2093
return r .raw
1864
2094
}
1865
2095
2096
+ type ToolStateRunningParam struct {
2097
+ Status param.Field [ToolStateRunningStatus ] `json:"status,required"`
2098
+ Time param.Field [ToolStateRunningTimeParam ] `json:"time,required"`
2099
+ Input param.Field [interface {}] `json:"input"`
2100
+ Metadata param.Field [map [string ]interface {}] `json:"metadata"`
2101
+ Title param.Field [string ] `json:"title"`
2102
+ }
2103
+
2104
+ func (r ToolStateRunningParam ) MarshalJSON () (data []byte , err error ) {
2105
+ return apijson .MarshalRoot (r )
2106
+ }
2107
+
2108
+ func (r ToolStateRunningParam ) implementsToolPartStateUnionParam () {}
2109
+
2110
+ type ToolStateRunningTimeParam struct {
2111
+ Start param.Field [float64 ] `json:"start,required"`
2112
+ }
2113
+
2114
+ func (r ToolStateRunningTimeParam ) MarshalJSON () (data []byte , err error ) {
2115
+ return apijson .MarshalRoot (r )
2116
+ }
2117
+
1866
2118
type UserMessage struct {
1867
2119
ID string `json:"id,required"`
1868
2120
Role UserMessageRole `json:"role,required"`
0 commit comments