@sorbetai/context 0.1.0-alpha.16 → 0.1.0-alpha.17
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.ts +64 -64
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as s from "@earendil-works/pi-schema";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _sorbetai_schema35 from "@sorbetai/schema";
|
|
3
3
|
import { JsonValue, JsonValueSchema } from "@sorbetai/schema";
|
|
4
4
|
|
|
5
5
|
//#region src/xml.d.ts
|
|
@@ -64,7 +64,7 @@ declare const NamedStateDeliverySchema: s.Schema<{
|
|
|
64
64
|
}>;
|
|
65
65
|
declare const NamedStateSnapshotSchema: s.Schema<{
|
|
66
66
|
present: true;
|
|
67
|
-
value: string | number | boolean |
|
|
67
|
+
value: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null;
|
|
68
68
|
stateName: string;
|
|
69
69
|
revision: number;
|
|
70
70
|
delivery: {
|
|
@@ -223,7 +223,7 @@ declare const TurnMaterialSnapshotSchema: s.Schema<{
|
|
|
223
223
|
label: string;
|
|
224
224
|
location?: string | undefined;
|
|
225
225
|
};
|
|
226
|
-
metadata?: string | number | boolean |
|
|
226
|
+
metadata?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
227
227
|
})[];
|
|
228
228
|
delivery: {
|
|
229
229
|
kind: "append";
|
|
@@ -244,7 +244,7 @@ declare const RequestMaterialSnapshotSchema: s.Schema<{
|
|
|
244
244
|
location?: string | undefined;
|
|
245
245
|
};
|
|
246
246
|
placement?: "before-conversation" | undefined;
|
|
247
|
-
metadata?: string | number | boolean |
|
|
247
|
+
metadata?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
248
248
|
}[];
|
|
249
249
|
afterMessageCount: number;
|
|
250
250
|
modelView?: {
|
|
@@ -302,7 +302,7 @@ declare const RequestMaterialSnapshotSchema: s.Schema<{
|
|
|
302
302
|
type: "toolCall";
|
|
303
303
|
id: string;
|
|
304
304
|
name: string;
|
|
305
|
-
arguments: Record<string,
|
|
305
|
+
arguments: Record<string, _sorbetai_schema35.JsonValue>;
|
|
306
306
|
thoughtSignature?: string | undefined;
|
|
307
307
|
argumentsError?: string | undefined;
|
|
308
308
|
})[];
|
|
@@ -339,7 +339,7 @@ declare const RequestMaterialSnapshotSchema: s.Schema<{
|
|
|
339
339
|
stack?: string | undefined;
|
|
340
340
|
code?: string | number | undefined;
|
|
341
341
|
} | undefined;
|
|
342
|
-
details?: Record<string,
|
|
342
|
+
details?: Record<string, _sorbetai_schema35.JsonValue> | undefined;
|
|
343
343
|
}[] | undefined;
|
|
344
344
|
deferred?: {
|
|
345
345
|
provider: string;
|
|
@@ -348,7 +348,7 @@ declare const RequestMaterialSnapshotSchema: s.Schema<{
|
|
|
348
348
|
id: string;
|
|
349
349
|
expiresAt?: number | undefined;
|
|
350
350
|
pollAfterMs?: number | undefined;
|
|
351
|
-
data?: string | number | boolean |
|
|
351
|
+
data?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
352
352
|
} | undefined;
|
|
353
353
|
errorMessage?: string | undefined;
|
|
354
354
|
rawStopReason?: string | undefined;
|
|
@@ -371,7 +371,7 @@ declare const RequestMaterialSnapshotSchema: s.Schema<{
|
|
|
371
371
|
})[];
|
|
372
372
|
isError: boolean;
|
|
373
373
|
timestamp: number;
|
|
374
|
-
details?: string | number | boolean |
|
|
374
|
+
details?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
375
375
|
usage?: {
|
|
376
376
|
input: number;
|
|
377
377
|
output: number;
|
|
@@ -466,7 +466,7 @@ declare const CompileContextInputSchema: s.Schema<{
|
|
|
466
466
|
})[];
|
|
467
467
|
namedStates: ({
|
|
468
468
|
present: true;
|
|
469
|
-
value: string | number | boolean |
|
|
469
|
+
value: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null;
|
|
470
470
|
stateName: string;
|
|
471
471
|
revision: number;
|
|
472
472
|
delivery: {
|
|
@@ -553,7 +553,7 @@ declare const CompileContextInputSchema: s.Schema<{
|
|
|
553
553
|
label: string;
|
|
554
554
|
location?: string | undefined;
|
|
555
555
|
};
|
|
556
|
-
metadata?: string | number | boolean |
|
|
556
|
+
metadata?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
557
557
|
})[];
|
|
558
558
|
delivery: {
|
|
559
559
|
kind: "append";
|
|
@@ -589,7 +589,7 @@ declare const CompileContextInputSchema: s.Schema<{
|
|
|
589
589
|
location?: string | undefined;
|
|
590
590
|
};
|
|
591
591
|
placement?: "before-conversation" | undefined;
|
|
592
|
-
metadata?: string | number | boolean |
|
|
592
|
+
metadata?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
593
593
|
}[];
|
|
594
594
|
afterMessageCount: number;
|
|
595
595
|
modelView?: {
|
|
@@ -647,7 +647,7 @@ declare const CompileContextInputSchema: s.Schema<{
|
|
|
647
647
|
type: "toolCall";
|
|
648
648
|
id: string;
|
|
649
649
|
name: string;
|
|
650
|
-
arguments: Record<string,
|
|
650
|
+
arguments: Record<string, _sorbetai_schema35.JsonValue>;
|
|
651
651
|
thoughtSignature?: string | undefined;
|
|
652
652
|
argumentsError?: string | undefined;
|
|
653
653
|
})[];
|
|
@@ -684,7 +684,7 @@ declare const CompileContextInputSchema: s.Schema<{
|
|
|
684
684
|
stack?: string | undefined;
|
|
685
685
|
code?: string | number | undefined;
|
|
686
686
|
} | undefined;
|
|
687
|
-
details?: Record<string,
|
|
687
|
+
details?: Record<string, _sorbetai_schema35.JsonValue> | undefined;
|
|
688
688
|
}[] | undefined;
|
|
689
689
|
deferred?: {
|
|
690
690
|
provider: string;
|
|
@@ -693,7 +693,7 @@ declare const CompileContextInputSchema: s.Schema<{
|
|
|
693
693
|
id: string;
|
|
694
694
|
expiresAt?: number | undefined;
|
|
695
695
|
pollAfterMs?: number | undefined;
|
|
696
|
-
data?: string | number | boolean |
|
|
696
|
+
data?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
697
697
|
} | undefined;
|
|
698
698
|
errorMessage?: string | undefined;
|
|
699
699
|
rawStopReason?: string | undefined;
|
|
@@ -716,7 +716,7 @@ declare const CompileContextInputSchema: s.Schema<{
|
|
|
716
716
|
})[];
|
|
717
717
|
isError: boolean;
|
|
718
718
|
timestamp: number;
|
|
719
|
-
details?: string | number | boolean |
|
|
719
|
+
details?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
720
720
|
usage?: {
|
|
721
721
|
input: number;
|
|
722
722
|
output: number;
|
|
@@ -817,7 +817,7 @@ declare const ContextSnapshotSchema: s.Schema<{
|
|
|
817
817
|
};
|
|
818
818
|
namedStates: ({
|
|
819
819
|
present: true;
|
|
820
|
-
value: string | number | boolean |
|
|
820
|
+
value: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null;
|
|
821
821
|
stateName: string;
|
|
822
822
|
revision: number;
|
|
823
823
|
delivery: {
|
|
@@ -904,7 +904,7 @@ declare const ContextSnapshotSchema: s.Schema<{
|
|
|
904
904
|
label: string;
|
|
905
905
|
location?: string | undefined;
|
|
906
906
|
};
|
|
907
|
-
metadata?: string | number | boolean |
|
|
907
|
+
metadata?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
908
908
|
})[];
|
|
909
909
|
delivery: {
|
|
910
910
|
kind: "append";
|
|
@@ -959,7 +959,7 @@ declare const ContextSnapshotSchema: s.Schema<{
|
|
|
959
959
|
location?: string | undefined;
|
|
960
960
|
};
|
|
961
961
|
placement?: "before-conversation" | undefined;
|
|
962
|
-
metadata?: string | number | boolean |
|
|
962
|
+
metadata?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
963
963
|
}[];
|
|
964
964
|
afterMessageCount: number;
|
|
965
965
|
modelView?: {
|
|
@@ -1017,7 +1017,7 @@ declare const ContextSnapshotSchema: s.Schema<{
|
|
|
1017
1017
|
type: "toolCall";
|
|
1018
1018
|
id: string;
|
|
1019
1019
|
name: string;
|
|
1020
|
-
arguments: Record<string,
|
|
1020
|
+
arguments: Record<string, _sorbetai_schema35.JsonValue>;
|
|
1021
1021
|
thoughtSignature?: string | undefined;
|
|
1022
1022
|
argumentsError?: string | undefined;
|
|
1023
1023
|
})[];
|
|
@@ -1054,7 +1054,7 @@ declare const ContextSnapshotSchema: s.Schema<{
|
|
|
1054
1054
|
stack?: string | undefined;
|
|
1055
1055
|
code?: string | number | undefined;
|
|
1056
1056
|
} | undefined;
|
|
1057
|
-
details?: Record<string,
|
|
1057
|
+
details?: Record<string, _sorbetai_schema35.JsonValue> | undefined;
|
|
1058
1058
|
}[] | undefined;
|
|
1059
1059
|
deferred?: {
|
|
1060
1060
|
provider: string;
|
|
@@ -1063,7 +1063,7 @@ declare const ContextSnapshotSchema: s.Schema<{
|
|
|
1063
1063
|
id: string;
|
|
1064
1064
|
expiresAt?: number | undefined;
|
|
1065
1065
|
pollAfterMs?: number | undefined;
|
|
1066
|
-
data?: string | number | boolean |
|
|
1066
|
+
data?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
1067
1067
|
} | undefined;
|
|
1068
1068
|
errorMessage?: string | undefined;
|
|
1069
1069
|
rawStopReason?: string | undefined;
|
|
@@ -1086,7 +1086,7 @@ declare const ContextSnapshotSchema: s.Schema<{
|
|
|
1086
1086
|
})[];
|
|
1087
1087
|
isError: boolean;
|
|
1088
1088
|
timestamp: number;
|
|
1089
|
-
details?: string | number | boolean |
|
|
1089
|
+
details?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
1090
1090
|
usage?: {
|
|
1091
1091
|
input: number;
|
|
1092
1092
|
output: number;
|
|
@@ -1135,7 +1135,7 @@ declare class ContextCompiler {
|
|
|
1135
1135
|
//#region src/state/contracts.d.ts
|
|
1136
1136
|
declare const NamedStateReadResultSchema: s.Schema<{
|
|
1137
1137
|
present: true;
|
|
1138
|
-
value: string | number | boolean |
|
|
1138
|
+
value: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null;
|
|
1139
1139
|
element: {
|
|
1140
1140
|
kind: "text";
|
|
1141
1141
|
name: string;
|
|
@@ -1334,7 +1334,7 @@ declare const DraftSchema: s.Schema<{
|
|
|
1334
1334
|
label: string;
|
|
1335
1335
|
location?: string | undefined;
|
|
1336
1336
|
};
|
|
1337
|
-
metadata?: string | number | boolean |
|
|
1337
|
+
metadata?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
1338
1338
|
})[];
|
|
1339
1339
|
requestSources: {
|
|
1340
1340
|
content: string;
|
|
@@ -1346,13 +1346,13 @@ declare const DraftSchema: s.Schema<{
|
|
|
1346
1346
|
location?: string | undefined;
|
|
1347
1347
|
};
|
|
1348
1348
|
placement?: "before-conversation" | undefined;
|
|
1349
|
-
metadata?: string | number | boolean |
|
|
1349
|
+
metadata?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
1350
1350
|
}[];
|
|
1351
1351
|
states: {
|
|
1352
1352
|
stateName: string;
|
|
1353
1353
|
state: {
|
|
1354
1354
|
present: true;
|
|
1355
|
-
value: string | number | boolean |
|
|
1355
|
+
value: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null;
|
|
1356
1356
|
element: {
|
|
1357
1357
|
kind: "text";
|
|
1358
1358
|
name: string;
|
|
@@ -1424,7 +1424,7 @@ declare const DraftSchema: s.Schema<{
|
|
|
1424
1424
|
type: "toolCall";
|
|
1425
1425
|
id: string;
|
|
1426
1426
|
name: string;
|
|
1427
|
-
arguments: Record<string,
|
|
1427
|
+
arguments: Record<string, _sorbetai_schema35.JsonValue>;
|
|
1428
1428
|
thoughtSignature?: string | undefined;
|
|
1429
1429
|
argumentsError?: string | undefined;
|
|
1430
1430
|
})[];
|
|
@@ -1461,7 +1461,7 @@ declare const DraftSchema: s.Schema<{
|
|
|
1461
1461
|
stack?: string | undefined;
|
|
1462
1462
|
code?: string | number | undefined;
|
|
1463
1463
|
} | undefined;
|
|
1464
|
-
details?: Record<string,
|
|
1464
|
+
details?: Record<string, _sorbetai_schema35.JsonValue> | undefined;
|
|
1465
1465
|
}[] | undefined;
|
|
1466
1466
|
deferred?: {
|
|
1467
1467
|
provider: string;
|
|
@@ -1470,7 +1470,7 @@ declare const DraftSchema: s.Schema<{
|
|
|
1470
1470
|
id: string;
|
|
1471
1471
|
expiresAt?: number | undefined;
|
|
1472
1472
|
pollAfterMs?: number | undefined;
|
|
1473
|
-
data?: string | number | boolean |
|
|
1473
|
+
data?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
1474
1474
|
} | undefined;
|
|
1475
1475
|
errorMessage?: string | undefined;
|
|
1476
1476
|
rawStopReason?: string | undefined;
|
|
@@ -1493,7 +1493,7 @@ declare const DraftSchema: s.Schema<{
|
|
|
1493
1493
|
})[];
|
|
1494
1494
|
isError: boolean;
|
|
1495
1495
|
timestamp: number;
|
|
1496
|
-
details?: string | number | boolean |
|
|
1496
|
+
details?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
1497
1497
|
usage?: {
|
|
1498
1498
|
input: number;
|
|
1499
1499
|
output: number;
|
|
@@ -1553,7 +1553,7 @@ declare const DraftSchema: s.Schema<{
|
|
|
1553
1553
|
type: "toolCall";
|
|
1554
1554
|
id: string;
|
|
1555
1555
|
name: string;
|
|
1556
|
-
arguments: Record<string,
|
|
1556
|
+
arguments: Record<string, _sorbetai_schema35.JsonValue>;
|
|
1557
1557
|
thoughtSignature?: string | undefined;
|
|
1558
1558
|
argumentsError?: string | undefined;
|
|
1559
1559
|
})[];
|
|
@@ -1590,7 +1590,7 @@ declare const DraftSchema: s.Schema<{
|
|
|
1590
1590
|
stack?: string | undefined;
|
|
1591
1591
|
code?: string | number | undefined;
|
|
1592
1592
|
} | undefined;
|
|
1593
|
-
details?: Record<string,
|
|
1593
|
+
details?: Record<string, _sorbetai_schema35.JsonValue> | undefined;
|
|
1594
1594
|
}[] | undefined;
|
|
1595
1595
|
deferred?: {
|
|
1596
1596
|
provider: string;
|
|
@@ -1599,7 +1599,7 @@ declare const DraftSchema: s.Schema<{
|
|
|
1599
1599
|
id: string;
|
|
1600
1600
|
expiresAt?: number | undefined;
|
|
1601
1601
|
pollAfterMs?: number | undefined;
|
|
1602
|
-
data?: string | number | boolean |
|
|
1602
|
+
data?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
1603
1603
|
} | undefined;
|
|
1604
1604
|
errorMessage?: string | undefined;
|
|
1605
1605
|
rawStopReason?: string | undefined;
|
|
@@ -1622,7 +1622,7 @@ declare const DraftSchema: s.Schema<{
|
|
|
1622
1622
|
})[];
|
|
1623
1623
|
isError: boolean;
|
|
1624
1624
|
timestamp: number;
|
|
1625
|
-
details?: string | number | boolean |
|
|
1625
|
+
details?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
1626
1626
|
usage?: {
|
|
1627
1627
|
input: number;
|
|
1628
1628
|
output: number;
|
|
@@ -1734,7 +1734,7 @@ declare const ContextPreparationResultSchema: s.Schema<{
|
|
|
1734
1734
|
label: string;
|
|
1735
1735
|
location?: string | undefined;
|
|
1736
1736
|
};
|
|
1737
|
-
metadata?: string | number | boolean |
|
|
1737
|
+
metadata?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
1738
1738
|
})[];
|
|
1739
1739
|
requestSources: {
|
|
1740
1740
|
content: string;
|
|
@@ -1746,13 +1746,13 @@ declare const ContextPreparationResultSchema: s.Schema<{
|
|
|
1746
1746
|
location?: string | undefined;
|
|
1747
1747
|
};
|
|
1748
1748
|
placement?: "before-conversation" | undefined;
|
|
1749
|
-
metadata?: string | number | boolean |
|
|
1749
|
+
metadata?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
1750
1750
|
}[];
|
|
1751
1751
|
states: {
|
|
1752
1752
|
stateName: string;
|
|
1753
1753
|
state: {
|
|
1754
1754
|
present: true;
|
|
1755
|
-
value: string | number | boolean |
|
|
1755
|
+
value: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null;
|
|
1756
1756
|
element: {
|
|
1757
1757
|
kind: "text";
|
|
1758
1758
|
name: string;
|
|
@@ -1824,7 +1824,7 @@ declare const ContextPreparationResultSchema: s.Schema<{
|
|
|
1824
1824
|
type: "toolCall";
|
|
1825
1825
|
id: string;
|
|
1826
1826
|
name: string;
|
|
1827
|
-
arguments: Record<string,
|
|
1827
|
+
arguments: Record<string, _sorbetai_schema35.JsonValue>;
|
|
1828
1828
|
thoughtSignature?: string | undefined;
|
|
1829
1829
|
argumentsError?: string | undefined;
|
|
1830
1830
|
})[];
|
|
@@ -1861,7 +1861,7 @@ declare const ContextPreparationResultSchema: s.Schema<{
|
|
|
1861
1861
|
stack?: string | undefined;
|
|
1862
1862
|
code?: string | number | undefined;
|
|
1863
1863
|
} | undefined;
|
|
1864
|
-
details?: Record<string,
|
|
1864
|
+
details?: Record<string, _sorbetai_schema35.JsonValue> | undefined;
|
|
1865
1865
|
}[] | undefined;
|
|
1866
1866
|
deferred?: {
|
|
1867
1867
|
provider: string;
|
|
@@ -1870,7 +1870,7 @@ declare const ContextPreparationResultSchema: s.Schema<{
|
|
|
1870
1870
|
id: string;
|
|
1871
1871
|
expiresAt?: number | undefined;
|
|
1872
1872
|
pollAfterMs?: number | undefined;
|
|
1873
|
-
data?: string | number | boolean |
|
|
1873
|
+
data?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
1874
1874
|
} | undefined;
|
|
1875
1875
|
errorMessage?: string | undefined;
|
|
1876
1876
|
rawStopReason?: string | undefined;
|
|
@@ -1893,7 +1893,7 @@ declare const ContextPreparationResultSchema: s.Schema<{
|
|
|
1893
1893
|
})[];
|
|
1894
1894
|
isError: boolean;
|
|
1895
1895
|
timestamp: number;
|
|
1896
|
-
details?: string | number | boolean |
|
|
1896
|
+
details?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
1897
1897
|
usage?: {
|
|
1898
1898
|
input: number;
|
|
1899
1899
|
output: number;
|
|
@@ -1953,7 +1953,7 @@ declare const ContextPreparationResultSchema: s.Schema<{
|
|
|
1953
1953
|
type: "toolCall";
|
|
1954
1954
|
id: string;
|
|
1955
1955
|
name: string;
|
|
1956
|
-
arguments: Record<string,
|
|
1956
|
+
arguments: Record<string, _sorbetai_schema35.JsonValue>;
|
|
1957
1957
|
thoughtSignature?: string | undefined;
|
|
1958
1958
|
argumentsError?: string | undefined;
|
|
1959
1959
|
})[];
|
|
@@ -1990,7 +1990,7 @@ declare const ContextPreparationResultSchema: s.Schema<{
|
|
|
1990
1990
|
stack?: string | undefined;
|
|
1991
1991
|
code?: string | number | undefined;
|
|
1992
1992
|
} | undefined;
|
|
1993
|
-
details?: Record<string,
|
|
1993
|
+
details?: Record<string, _sorbetai_schema35.JsonValue> | undefined;
|
|
1994
1994
|
}[] | undefined;
|
|
1995
1995
|
deferred?: {
|
|
1996
1996
|
provider: string;
|
|
@@ -1999,7 +1999,7 @@ declare const ContextPreparationResultSchema: s.Schema<{
|
|
|
1999
1999
|
id: string;
|
|
2000
2000
|
expiresAt?: number | undefined;
|
|
2001
2001
|
pollAfterMs?: number | undefined;
|
|
2002
|
-
data?: string | number | boolean |
|
|
2002
|
+
data?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
2003
2003
|
} | undefined;
|
|
2004
2004
|
errorMessage?: string | undefined;
|
|
2005
2005
|
rawStopReason?: string | undefined;
|
|
@@ -2022,7 +2022,7 @@ declare const ContextPreparationResultSchema: s.Schema<{
|
|
|
2022
2022
|
})[];
|
|
2023
2023
|
isError: boolean;
|
|
2024
2024
|
timestamp: number;
|
|
2025
|
-
details?: string | number | boolean |
|
|
2025
|
+
details?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
2026
2026
|
usage?: {
|
|
2027
2027
|
input: number;
|
|
2028
2028
|
output: number;
|
|
@@ -2119,7 +2119,7 @@ declare const ToolCallProperties: {
|
|
|
2119
2119
|
type: s.Schema<"toolCall">;
|
|
2120
2120
|
id: s.Schema<string>;
|
|
2121
2121
|
name: s.Schema<string>;
|
|
2122
|
-
arguments: s.Schema<Record<string,
|
|
2122
|
+
arguments: s.Schema<Record<string, _sorbetai_schema35.JsonValue>>;
|
|
2123
2123
|
thoughtSignature: s.Optional<s.Schema<string>>;
|
|
2124
2124
|
/**
|
|
2125
2125
|
* Pi sets this when the model's complete arguments text was not a JSON object; `arguments`
|
|
@@ -2131,7 +2131,7 @@ declare const ToolCallSchema: s.Schema<{
|
|
|
2131
2131
|
type: "toolCall";
|
|
2132
2132
|
id: string;
|
|
2133
2133
|
name: string;
|
|
2134
|
-
arguments: Record<string,
|
|
2134
|
+
arguments: Record<string, _sorbetai_schema35.JsonValue>;
|
|
2135
2135
|
thoughtSignature?: string | undefined;
|
|
2136
2136
|
argumentsError?: string | undefined;
|
|
2137
2137
|
}>;
|
|
@@ -2193,7 +2193,7 @@ declare const AssistantMessageSchema: s.Schema<{
|
|
|
2193
2193
|
type: "toolCall";
|
|
2194
2194
|
id: string;
|
|
2195
2195
|
name: string;
|
|
2196
|
-
arguments: Record<string,
|
|
2196
|
+
arguments: Record<string, _sorbetai_schema35.JsonValue>;
|
|
2197
2197
|
thoughtSignature?: string | undefined;
|
|
2198
2198
|
argumentsError?: string | undefined;
|
|
2199
2199
|
})[];
|
|
@@ -2230,7 +2230,7 @@ declare const AssistantMessageSchema: s.Schema<{
|
|
|
2230
2230
|
stack?: string | undefined;
|
|
2231
2231
|
code?: string | number | undefined;
|
|
2232
2232
|
} | undefined;
|
|
2233
|
-
details?: Record<string,
|
|
2233
|
+
details?: Record<string, _sorbetai_schema35.JsonValue> | undefined;
|
|
2234
2234
|
}[] | undefined;
|
|
2235
2235
|
deferred?: {
|
|
2236
2236
|
provider: string;
|
|
@@ -2239,7 +2239,7 @@ declare const AssistantMessageSchema: s.Schema<{
|
|
|
2239
2239
|
id: string;
|
|
2240
2240
|
expiresAt?: number | undefined;
|
|
2241
2241
|
pollAfterMs?: number | undefined;
|
|
2242
|
-
data?: string | number | boolean |
|
|
2242
|
+
data?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
2243
2243
|
} | undefined;
|
|
2244
2244
|
errorMessage?: string | undefined;
|
|
2245
2245
|
rawStopReason?: string | undefined;
|
|
@@ -2263,7 +2263,7 @@ declare const ToolResultMessageSchema: s.Schema<{
|
|
|
2263
2263
|
})[];
|
|
2264
2264
|
isError: boolean;
|
|
2265
2265
|
timestamp: number;
|
|
2266
|
-
details?: string | number | boolean |
|
|
2266
|
+
details?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
2267
2267
|
usage?: {
|
|
2268
2268
|
input: number;
|
|
2269
2269
|
output: number;
|
|
@@ -2337,7 +2337,7 @@ declare const MessageSchema: s.Schema<{
|
|
|
2337
2337
|
type: "toolCall";
|
|
2338
2338
|
id: string;
|
|
2339
2339
|
name: string;
|
|
2340
|
-
arguments: Record<string,
|
|
2340
|
+
arguments: Record<string, _sorbetai_schema35.JsonValue>;
|
|
2341
2341
|
thoughtSignature?: string | undefined;
|
|
2342
2342
|
argumentsError?: string | undefined;
|
|
2343
2343
|
})[];
|
|
@@ -2374,7 +2374,7 @@ declare const MessageSchema: s.Schema<{
|
|
|
2374
2374
|
stack?: string | undefined;
|
|
2375
2375
|
code?: string | number | undefined;
|
|
2376
2376
|
} | undefined;
|
|
2377
|
-
details?: Record<string,
|
|
2377
|
+
details?: Record<string, _sorbetai_schema35.JsonValue> | undefined;
|
|
2378
2378
|
}[] | undefined;
|
|
2379
2379
|
deferred?: {
|
|
2380
2380
|
provider: string;
|
|
@@ -2383,7 +2383,7 @@ declare const MessageSchema: s.Schema<{
|
|
|
2383
2383
|
id: string;
|
|
2384
2384
|
expiresAt?: number | undefined;
|
|
2385
2385
|
pollAfterMs?: number | undefined;
|
|
2386
|
-
data?: string | number | boolean |
|
|
2386
|
+
data?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
2387
2387
|
} | undefined;
|
|
2388
2388
|
errorMessage?: string | undefined;
|
|
2389
2389
|
rawStopReason?: string | undefined;
|
|
@@ -2406,7 +2406,7 @@ declare const MessageSchema: s.Schema<{
|
|
|
2406
2406
|
})[];
|
|
2407
2407
|
isError: boolean;
|
|
2408
2408
|
timestamp: number;
|
|
2409
|
-
details?: string | number | boolean |
|
|
2409
|
+
details?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
2410
2410
|
usage?: {
|
|
2411
2411
|
input: number;
|
|
2412
2412
|
output: number;
|
|
@@ -2477,7 +2477,7 @@ declare const ModelContextSchema: s.Schema<{
|
|
|
2477
2477
|
type: "toolCall";
|
|
2478
2478
|
id: string;
|
|
2479
2479
|
name: string;
|
|
2480
|
-
arguments: Record<string,
|
|
2480
|
+
arguments: Record<string, _sorbetai_schema35.JsonValue>;
|
|
2481
2481
|
thoughtSignature?: string | undefined;
|
|
2482
2482
|
argumentsError?: string | undefined;
|
|
2483
2483
|
})[];
|
|
@@ -2514,7 +2514,7 @@ declare const ModelContextSchema: s.Schema<{
|
|
|
2514
2514
|
stack?: string | undefined;
|
|
2515
2515
|
code?: string | number | undefined;
|
|
2516
2516
|
} | undefined;
|
|
2517
|
-
details?: Record<string,
|
|
2517
|
+
details?: Record<string, _sorbetai_schema35.JsonValue> | undefined;
|
|
2518
2518
|
}[] | undefined;
|
|
2519
2519
|
deferred?: {
|
|
2520
2520
|
provider: string;
|
|
@@ -2523,7 +2523,7 @@ declare const ModelContextSchema: s.Schema<{
|
|
|
2523
2523
|
id: string;
|
|
2524
2524
|
expiresAt?: number | undefined;
|
|
2525
2525
|
pollAfterMs?: number | undefined;
|
|
2526
|
-
data?: string | number | boolean |
|
|
2526
|
+
data?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
2527
2527
|
} | undefined;
|
|
2528
2528
|
errorMessage?: string | undefined;
|
|
2529
2529
|
rawStopReason?: string | undefined;
|
|
@@ -2546,7 +2546,7 @@ declare const ModelContextSchema: s.Schema<{
|
|
|
2546
2546
|
})[];
|
|
2547
2547
|
isError: boolean;
|
|
2548
2548
|
timestamp: number;
|
|
2549
|
-
details?: string | number | boolean |
|
|
2549
|
+
details?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
2550
2550
|
usage?: {
|
|
2551
2551
|
input: number;
|
|
2552
2552
|
output: number;
|
|
@@ -2588,7 +2588,7 @@ declare const RequestContextSourceSchema: s.Schema<{
|
|
|
2588
2588
|
location?: string | undefined;
|
|
2589
2589
|
};
|
|
2590
2590
|
placement?: "before-conversation" | undefined;
|
|
2591
|
-
metadata?: string | number | boolean |
|
|
2591
|
+
metadata?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
2592
2592
|
}>;
|
|
2593
2593
|
type RequestContextSource = s.Static<typeof RequestContextSourceSchema>;
|
|
2594
2594
|
declare const SessionInstructionsContextSourceSchema: s.Schema<{
|
|
@@ -2736,7 +2736,7 @@ declare const EventContextSourceSchema: s.Schema<{
|
|
|
2736
2736
|
label: string;
|
|
2737
2737
|
location?: string | undefined;
|
|
2738
2738
|
};
|
|
2739
|
-
metadata?: string | number | boolean |
|
|
2739
|
+
metadata?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
2740
2740
|
}>;
|
|
2741
2741
|
declare const PrefixContextSourceSchema: s.Schema<{
|
|
2742
2742
|
lifecycle: "session";
|
|
@@ -2827,7 +2827,7 @@ declare const TurnContextSourceSchema: s.Schema<{
|
|
|
2827
2827
|
label: string;
|
|
2828
2828
|
location?: string | undefined;
|
|
2829
2829
|
};
|
|
2830
|
-
metadata?: string | number | boolean |
|
|
2830
|
+
metadata?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
2831
2831
|
}>;
|
|
2832
2832
|
declare const ContextSourceSchema: s.Schema<{
|
|
2833
2833
|
lifecycle: "session";
|
|
@@ -2917,7 +2917,7 @@ declare const ContextSourceSchema: s.Schema<{
|
|
|
2917
2917
|
label: string;
|
|
2918
2918
|
location?: string | undefined;
|
|
2919
2919
|
};
|
|
2920
|
-
metadata?: string | number | boolean |
|
|
2920
|
+
metadata?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
2921
2921
|
}>;
|
|
2922
2922
|
declare const ContextSourcesSchema: s.Schema<({
|
|
2923
2923
|
lifecycle: "session";
|
|
@@ -3007,7 +3007,7 @@ declare const ContextSourcesSchema: s.Schema<({
|
|
|
3007
3007
|
label: string;
|
|
3008
3008
|
location?: string | undefined;
|
|
3009
3009
|
};
|
|
3010
|
-
metadata?: string | number | boolean |
|
|
3010
|
+
metadata?: string | number | boolean | _sorbetai_schema35.JsonArray | _sorbetai_schema35.JsonObject | null | undefined;
|
|
3011
3011
|
})[]>;
|
|
3012
3012
|
type ContextProvenance = s.Static<typeof ContextProvenanceSchema>;
|
|
3013
3013
|
type InstructionsContextSource = s.Static<typeof InstructionsContextSourceSchema>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sorbetai/context",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.17",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Provider-neutral Context assembly for Sorbet",
|
|
6
6
|
"type": "module",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@earendil-works/pi-schema": "1.5.0",
|
|
23
23
|
"es-toolkit": "^1.53.1",
|
|
24
|
-
"@sorbetai/schema": "0.1.0-alpha.
|
|
24
|
+
"@sorbetai/schema": "0.1.0-alpha.17"
|
|
25
25
|
},
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|