@vectorize-io/hindsight-client 0.4.21 → 0.4.22
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 +116 -12
- package/dist/index.d.ts +116 -12
- package/generated/types.gen.ts +132 -12
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -699,7 +699,7 @@ type CreateMentalModelRequest = {
|
|
|
699
699
|
/**
|
|
700
700
|
* Trigger settings
|
|
701
701
|
*/
|
|
702
|
-
trigger?:
|
|
702
|
+
trigger?: MentalModelTriggerInput;
|
|
703
703
|
};
|
|
704
704
|
/**
|
|
705
705
|
* CreateMentalModelResponse
|
|
@@ -916,6 +916,22 @@ type DocumentResponse = {
|
|
|
916
916
|
* Tags associated with this document
|
|
917
917
|
*/
|
|
918
918
|
tags?: Array<string>;
|
|
919
|
+
/**
|
|
920
|
+
* Document Metadata
|
|
921
|
+
*
|
|
922
|
+
* Document metadata
|
|
923
|
+
*/
|
|
924
|
+
document_metadata?: {
|
|
925
|
+
[key: string]: unknown;
|
|
926
|
+
} | null;
|
|
927
|
+
/**
|
|
928
|
+
* Retain Params
|
|
929
|
+
*
|
|
930
|
+
* Parameters used during retain
|
|
931
|
+
*/
|
|
932
|
+
retain_params?: {
|
|
933
|
+
[key: string]: unknown;
|
|
934
|
+
} | null;
|
|
919
935
|
};
|
|
920
936
|
/**
|
|
921
937
|
* EntityDetailResponse
|
|
@@ -1372,7 +1388,7 @@ type MentalModelResponse = {
|
|
|
1372
1388
|
* Max Tokens
|
|
1373
1389
|
*/
|
|
1374
1390
|
max_tokens?: number;
|
|
1375
|
-
trigger?:
|
|
1391
|
+
trigger?: MentalModelTriggerOutput;
|
|
1376
1392
|
/**
|
|
1377
1393
|
* Last Refreshed At
|
|
1378
1394
|
*/
|
|
@@ -1395,7 +1411,7 @@ type MentalModelResponse = {
|
|
|
1395
1411
|
*
|
|
1396
1412
|
* Trigger settings for a mental model.
|
|
1397
1413
|
*/
|
|
1398
|
-
type
|
|
1414
|
+
type MentalModelTriggerInput = {
|
|
1399
1415
|
/**
|
|
1400
1416
|
* Refresh After Consolidation
|
|
1401
1417
|
*
|
|
@@ -1420,6 +1436,61 @@ type MentalModelTrigger = {
|
|
|
1420
1436
|
* Exclude specific mental models by ID from the reflect loop.
|
|
1421
1437
|
*/
|
|
1422
1438
|
exclude_mental_model_ids?: Array<string> | null;
|
|
1439
|
+
/**
|
|
1440
|
+
* Tags Match
|
|
1441
|
+
*
|
|
1442
|
+
* Override how the model's tags filter memories during refresh. If not set, defaults to 'all_strict' when the model has tags (security isolation) or 'any' when the model has no tags. Set to 'any' to include untagged memories alongside tagged ones during refresh.
|
|
1443
|
+
*/
|
|
1444
|
+
tags_match?: "any" | "all" | "any_strict" | "all_strict" | null;
|
|
1445
|
+
/**
|
|
1446
|
+
* Tag Groups
|
|
1447
|
+
*
|
|
1448
|
+
* Compound boolean tag expressions to use during refresh instead of the model's own tags. When set, these tag groups are passed to reflect and the model's flat tags are NOT used for filtering. Supports nested and/or/not expressions for complex tag-based scoping.
|
|
1449
|
+
*/
|
|
1450
|
+
tag_groups?: Array<TagGroupLeaf | TagGroupAndInput | TagGroupOrInput | TagGroupNotInput> | null;
|
|
1451
|
+
};
|
|
1452
|
+
/**
|
|
1453
|
+
* MentalModelTrigger
|
|
1454
|
+
*
|
|
1455
|
+
* Trigger settings for a mental model.
|
|
1456
|
+
*/
|
|
1457
|
+
type MentalModelTriggerOutput = {
|
|
1458
|
+
/**
|
|
1459
|
+
* Refresh After Consolidation
|
|
1460
|
+
*
|
|
1461
|
+
* If true, refresh this mental model after observations consolidation (real-time mode)
|
|
1462
|
+
*/
|
|
1463
|
+
refresh_after_consolidation?: boolean;
|
|
1464
|
+
/**
|
|
1465
|
+
* Fact Types
|
|
1466
|
+
*
|
|
1467
|
+
* Filter which fact types are retrieved during reflect. None means all types (world, experience, observation).
|
|
1468
|
+
*/
|
|
1469
|
+
fact_types?: Array<"world" | "experience" | "observation"> | null;
|
|
1470
|
+
/**
|
|
1471
|
+
* Exclude Mental Models
|
|
1472
|
+
*
|
|
1473
|
+
* If true, exclude all mental models from the reflect loop (skip search_mental_models tool).
|
|
1474
|
+
*/
|
|
1475
|
+
exclude_mental_models?: boolean;
|
|
1476
|
+
/**
|
|
1477
|
+
* Exclude Mental Model Ids
|
|
1478
|
+
*
|
|
1479
|
+
* Exclude specific mental models by ID from the reflect loop.
|
|
1480
|
+
*/
|
|
1481
|
+
exclude_mental_model_ids?: Array<string> | null;
|
|
1482
|
+
/**
|
|
1483
|
+
* Tags Match
|
|
1484
|
+
*
|
|
1485
|
+
* Override how the model's tags filter memories during refresh. If not set, defaults to 'all_strict' when the model has tags (security isolation) or 'any' when the model has no tags. Set to 'any' to include untagged memories alongside tagged ones during refresh.
|
|
1486
|
+
*/
|
|
1487
|
+
tags_match?: "any" | "all" | "any_strict" | "all_strict" | null;
|
|
1488
|
+
/**
|
|
1489
|
+
* Tag Groups
|
|
1490
|
+
*
|
|
1491
|
+
* Compound boolean tag expressions to use during refresh instead of the model's own tags. When set, these tag groups are passed to reflect and the model's flat tags are NOT used for filtering. Supports nested and/or/not expressions for complex tag-based scoping.
|
|
1492
|
+
*/
|
|
1493
|
+
tag_groups?: Array<TagGroupLeaf | TagGroupAndOutput | TagGroupOrOutput | TagGroupNotOutput> | null;
|
|
1423
1494
|
};
|
|
1424
1495
|
/**
|
|
1425
1496
|
* OperationResponse
|
|
@@ -1584,7 +1655,7 @@ type RecallRequest = {
|
|
|
1584
1655
|
*
|
|
1585
1656
|
* Compound tag filter using boolean groups. Groups in the list are AND-ed. Each group is a leaf {tags, match} or compound {and: [...]}, {or: [...]}, {not: ...}.
|
|
1586
1657
|
*/
|
|
1587
|
-
tag_groups?: Array<TagGroupLeaf |
|
|
1658
|
+
tag_groups?: Array<TagGroupLeaf | TagGroupAndInput | TagGroupOrInput | TagGroupNotInput> | null;
|
|
1588
1659
|
};
|
|
1589
1660
|
/**
|
|
1590
1661
|
* RecallResponse
|
|
@@ -1895,7 +1966,7 @@ type ReflectRequest = {
|
|
|
1895
1966
|
*
|
|
1896
1967
|
* Compound tag filter using boolean groups. Groups in the list are AND-ed. Each group is a leaf {tags, match} or compound {and: [...]}, {or: [...]}, {not: ...}.
|
|
1897
1968
|
*/
|
|
1898
|
-
tag_groups?: Array<TagGroupLeaf |
|
|
1969
|
+
tag_groups?: Array<TagGroupLeaf | TagGroupAndInput | TagGroupOrInput | TagGroupNotInput> | null;
|
|
1899
1970
|
/**
|
|
1900
1971
|
* Fact Types
|
|
1901
1972
|
*
|
|
@@ -2117,11 +2188,22 @@ type SourceFactsIncludeOptions = {
|
|
|
2117
2188
|
*
|
|
2118
2189
|
* Compound AND group: all child filters must match.
|
|
2119
2190
|
*/
|
|
2120
|
-
type
|
|
2191
|
+
type TagGroupAndInput = {
|
|
2121
2192
|
/**
|
|
2122
2193
|
* And
|
|
2123
2194
|
*/
|
|
2124
|
-
and: Array<TagGroupLeaf |
|
|
2195
|
+
and: Array<TagGroupLeaf | TagGroupAndInput | TagGroupOrInput | TagGroupNotInput>;
|
|
2196
|
+
};
|
|
2197
|
+
/**
|
|
2198
|
+
* TagGroupAnd
|
|
2199
|
+
*
|
|
2200
|
+
* Compound AND group: all child filters must match.
|
|
2201
|
+
*/
|
|
2202
|
+
type TagGroupAndOutput = {
|
|
2203
|
+
/**
|
|
2204
|
+
* And
|
|
2205
|
+
*/
|
|
2206
|
+
and: Array<TagGroupLeaf | TagGroupAndOutput | TagGroupOrOutput | TagGroupNotOutput>;
|
|
2125
2207
|
};
|
|
2126
2208
|
/**
|
|
2127
2209
|
* TagGroupLeaf
|
|
@@ -2143,22 +2225,44 @@ type TagGroupLeaf = {
|
|
|
2143
2225
|
*
|
|
2144
2226
|
* Compound NOT group: child filter must NOT match.
|
|
2145
2227
|
*/
|
|
2146
|
-
type
|
|
2228
|
+
type TagGroupNotInput = {
|
|
2229
|
+
/**
|
|
2230
|
+
* Not
|
|
2231
|
+
*/
|
|
2232
|
+
not: TagGroupLeaf | TagGroupAndInput | TagGroupOrInput | TagGroupNotInput;
|
|
2233
|
+
};
|
|
2234
|
+
/**
|
|
2235
|
+
* TagGroupNot
|
|
2236
|
+
*
|
|
2237
|
+
* Compound NOT group: child filter must NOT match.
|
|
2238
|
+
*/
|
|
2239
|
+
type TagGroupNotOutput = {
|
|
2147
2240
|
/**
|
|
2148
2241
|
* Not
|
|
2149
2242
|
*/
|
|
2150
|
-
not: TagGroupLeaf |
|
|
2243
|
+
not: TagGroupLeaf | TagGroupAndOutput | TagGroupOrOutput | TagGroupNotOutput;
|
|
2244
|
+
};
|
|
2245
|
+
/**
|
|
2246
|
+
* TagGroupOr
|
|
2247
|
+
*
|
|
2248
|
+
* Compound OR group: at least one child filter must match.
|
|
2249
|
+
*/
|
|
2250
|
+
type TagGroupOrInput = {
|
|
2251
|
+
/**
|
|
2252
|
+
* Or
|
|
2253
|
+
*/
|
|
2254
|
+
or: Array<TagGroupLeaf | TagGroupAndInput | TagGroupOrInput | TagGroupNotInput>;
|
|
2151
2255
|
};
|
|
2152
2256
|
/**
|
|
2153
2257
|
* TagGroupOr
|
|
2154
2258
|
*
|
|
2155
2259
|
* Compound OR group: at least one child filter must match.
|
|
2156
2260
|
*/
|
|
2157
|
-
type
|
|
2261
|
+
type TagGroupOrOutput = {
|
|
2158
2262
|
/**
|
|
2159
2263
|
* Or
|
|
2160
2264
|
*/
|
|
2161
|
-
or: Array<TagGroupLeaf |
|
|
2265
|
+
or: Array<TagGroupLeaf | TagGroupAndOutput | TagGroupOrOutput | TagGroupNotOutput>;
|
|
2162
2266
|
};
|
|
2163
2267
|
/**
|
|
2164
2268
|
* TagItem
|
|
@@ -2322,7 +2426,7 @@ type UpdateMentalModelRequest = {
|
|
|
2322
2426
|
/**
|
|
2323
2427
|
* Trigger settings
|
|
2324
2428
|
*/
|
|
2325
|
-
trigger?:
|
|
2429
|
+
trigger?: MentalModelTriggerInput | null;
|
|
2326
2430
|
};
|
|
2327
2431
|
/**
|
|
2328
2432
|
* UpdateWebhookRequest
|
package/dist/index.d.ts
CHANGED
|
@@ -699,7 +699,7 @@ type CreateMentalModelRequest = {
|
|
|
699
699
|
/**
|
|
700
700
|
* Trigger settings
|
|
701
701
|
*/
|
|
702
|
-
trigger?:
|
|
702
|
+
trigger?: MentalModelTriggerInput;
|
|
703
703
|
};
|
|
704
704
|
/**
|
|
705
705
|
* CreateMentalModelResponse
|
|
@@ -916,6 +916,22 @@ type DocumentResponse = {
|
|
|
916
916
|
* Tags associated with this document
|
|
917
917
|
*/
|
|
918
918
|
tags?: Array<string>;
|
|
919
|
+
/**
|
|
920
|
+
* Document Metadata
|
|
921
|
+
*
|
|
922
|
+
* Document metadata
|
|
923
|
+
*/
|
|
924
|
+
document_metadata?: {
|
|
925
|
+
[key: string]: unknown;
|
|
926
|
+
} | null;
|
|
927
|
+
/**
|
|
928
|
+
* Retain Params
|
|
929
|
+
*
|
|
930
|
+
* Parameters used during retain
|
|
931
|
+
*/
|
|
932
|
+
retain_params?: {
|
|
933
|
+
[key: string]: unknown;
|
|
934
|
+
} | null;
|
|
919
935
|
};
|
|
920
936
|
/**
|
|
921
937
|
* EntityDetailResponse
|
|
@@ -1372,7 +1388,7 @@ type MentalModelResponse = {
|
|
|
1372
1388
|
* Max Tokens
|
|
1373
1389
|
*/
|
|
1374
1390
|
max_tokens?: number;
|
|
1375
|
-
trigger?:
|
|
1391
|
+
trigger?: MentalModelTriggerOutput;
|
|
1376
1392
|
/**
|
|
1377
1393
|
* Last Refreshed At
|
|
1378
1394
|
*/
|
|
@@ -1395,7 +1411,7 @@ type MentalModelResponse = {
|
|
|
1395
1411
|
*
|
|
1396
1412
|
* Trigger settings for a mental model.
|
|
1397
1413
|
*/
|
|
1398
|
-
type
|
|
1414
|
+
type MentalModelTriggerInput = {
|
|
1399
1415
|
/**
|
|
1400
1416
|
* Refresh After Consolidation
|
|
1401
1417
|
*
|
|
@@ -1420,6 +1436,61 @@ type MentalModelTrigger = {
|
|
|
1420
1436
|
* Exclude specific mental models by ID from the reflect loop.
|
|
1421
1437
|
*/
|
|
1422
1438
|
exclude_mental_model_ids?: Array<string> | null;
|
|
1439
|
+
/**
|
|
1440
|
+
* Tags Match
|
|
1441
|
+
*
|
|
1442
|
+
* Override how the model's tags filter memories during refresh. If not set, defaults to 'all_strict' when the model has tags (security isolation) or 'any' when the model has no tags. Set to 'any' to include untagged memories alongside tagged ones during refresh.
|
|
1443
|
+
*/
|
|
1444
|
+
tags_match?: "any" | "all" | "any_strict" | "all_strict" | null;
|
|
1445
|
+
/**
|
|
1446
|
+
* Tag Groups
|
|
1447
|
+
*
|
|
1448
|
+
* Compound boolean tag expressions to use during refresh instead of the model's own tags. When set, these tag groups are passed to reflect and the model's flat tags are NOT used for filtering. Supports nested and/or/not expressions for complex tag-based scoping.
|
|
1449
|
+
*/
|
|
1450
|
+
tag_groups?: Array<TagGroupLeaf | TagGroupAndInput | TagGroupOrInput | TagGroupNotInput> | null;
|
|
1451
|
+
};
|
|
1452
|
+
/**
|
|
1453
|
+
* MentalModelTrigger
|
|
1454
|
+
*
|
|
1455
|
+
* Trigger settings for a mental model.
|
|
1456
|
+
*/
|
|
1457
|
+
type MentalModelTriggerOutput = {
|
|
1458
|
+
/**
|
|
1459
|
+
* Refresh After Consolidation
|
|
1460
|
+
*
|
|
1461
|
+
* If true, refresh this mental model after observations consolidation (real-time mode)
|
|
1462
|
+
*/
|
|
1463
|
+
refresh_after_consolidation?: boolean;
|
|
1464
|
+
/**
|
|
1465
|
+
* Fact Types
|
|
1466
|
+
*
|
|
1467
|
+
* Filter which fact types are retrieved during reflect. None means all types (world, experience, observation).
|
|
1468
|
+
*/
|
|
1469
|
+
fact_types?: Array<"world" | "experience" | "observation"> | null;
|
|
1470
|
+
/**
|
|
1471
|
+
* Exclude Mental Models
|
|
1472
|
+
*
|
|
1473
|
+
* If true, exclude all mental models from the reflect loop (skip search_mental_models tool).
|
|
1474
|
+
*/
|
|
1475
|
+
exclude_mental_models?: boolean;
|
|
1476
|
+
/**
|
|
1477
|
+
* Exclude Mental Model Ids
|
|
1478
|
+
*
|
|
1479
|
+
* Exclude specific mental models by ID from the reflect loop.
|
|
1480
|
+
*/
|
|
1481
|
+
exclude_mental_model_ids?: Array<string> | null;
|
|
1482
|
+
/**
|
|
1483
|
+
* Tags Match
|
|
1484
|
+
*
|
|
1485
|
+
* Override how the model's tags filter memories during refresh. If not set, defaults to 'all_strict' when the model has tags (security isolation) or 'any' when the model has no tags. Set to 'any' to include untagged memories alongside tagged ones during refresh.
|
|
1486
|
+
*/
|
|
1487
|
+
tags_match?: "any" | "all" | "any_strict" | "all_strict" | null;
|
|
1488
|
+
/**
|
|
1489
|
+
* Tag Groups
|
|
1490
|
+
*
|
|
1491
|
+
* Compound boolean tag expressions to use during refresh instead of the model's own tags. When set, these tag groups are passed to reflect and the model's flat tags are NOT used for filtering. Supports nested and/or/not expressions for complex tag-based scoping.
|
|
1492
|
+
*/
|
|
1493
|
+
tag_groups?: Array<TagGroupLeaf | TagGroupAndOutput | TagGroupOrOutput | TagGroupNotOutput> | null;
|
|
1423
1494
|
};
|
|
1424
1495
|
/**
|
|
1425
1496
|
* OperationResponse
|
|
@@ -1584,7 +1655,7 @@ type RecallRequest = {
|
|
|
1584
1655
|
*
|
|
1585
1656
|
* Compound tag filter using boolean groups. Groups in the list are AND-ed. Each group is a leaf {tags, match} or compound {and: [...]}, {or: [...]}, {not: ...}.
|
|
1586
1657
|
*/
|
|
1587
|
-
tag_groups?: Array<TagGroupLeaf |
|
|
1658
|
+
tag_groups?: Array<TagGroupLeaf | TagGroupAndInput | TagGroupOrInput | TagGroupNotInput> | null;
|
|
1588
1659
|
};
|
|
1589
1660
|
/**
|
|
1590
1661
|
* RecallResponse
|
|
@@ -1895,7 +1966,7 @@ type ReflectRequest = {
|
|
|
1895
1966
|
*
|
|
1896
1967
|
* Compound tag filter using boolean groups. Groups in the list are AND-ed. Each group is a leaf {tags, match} or compound {and: [...]}, {or: [...]}, {not: ...}.
|
|
1897
1968
|
*/
|
|
1898
|
-
tag_groups?: Array<TagGroupLeaf |
|
|
1969
|
+
tag_groups?: Array<TagGroupLeaf | TagGroupAndInput | TagGroupOrInput | TagGroupNotInput> | null;
|
|
1899
1970
|
/**
|
|
1900
1971
|
* Fact Types
|
|
1901
1972
|
*
|
|
@@ -2117,11 +2188,22 @@ type SourceFactsIncludeOptions = {
|
|
|
2117
2188
|
*
|
|
2118
2189
|
* Compound AND group: all child filters must match.
|
|
2119
2190
|
*/
|
|
2120
|
-
type
|
|
2191
|
+
type TagGroupAndInput = {
|
|
2121
2192
|
/**
|
|
2122
2193
|
* And
|
|
2123
2194
|
*/
|
|
2124
|
-
and: Array<TagGroupLeaf |
|
|
2195
|
+
and: Array<TagGroupLeaf | TagGroupAndInput | TagGroupOrInput | TagGroupNotInput>;
|
|
2196
|
+
};
|
|
2197
|
+
/**
|
|
2198
|
+
* TagGroupAnd
|
|
2199
|
+
*
|
|
2200
|
+
* Compound AND group: all child filters must match.
|
|
2201
|
+
*/
|
|
2202
|
+
type TagGroupAndOutput = {
|
|
2203
|
+
/**
|
|
2204
|
+
* And
|
|
2205
|
+
*/
|
|
2206
|
+
and: Array<TagGroupLeaf | TagGroupAndOutput | TagGroupOrOutput | TagGroupNotOutput>;
|
|
2125
2207
|
};
|
|
2126
2208
|
/**
|
|
2127
2209
|
* TagGroupLeaf
|
|
@@ -2143,22 +2225,44 @@ type TagGroupLeaf = {
|
|
|
2143
2225
|
*
|
|
2144
2226
|
* Compound NOT group: child filter must NOT match.
|
|
2145
2227
|
*/
|
|
2146
|
-
type
|
|
2228
|
+
type TagGroupNotInput = {
|
|
2229
|
+
/**
|
|
2230
|
+
* Not
|
|
2231
|
+
*/
|
|
2232
|
+
not: TagGroupLeaf | TagGroupAndInput | TagGroupOrInput | TagGroupNotInput;
|
|
2233
|
+
};
|
|
2234
|
+
/**
|
|
2235
|
+
* TagGroupNot
|
|
2236
|
+
*
|
|
2237
|
+
* Compound NOT group: child filter must NOT match.
|
|
2238
|
+
*/
|
|
2239
|
+
type TagGroupNotOutput = {
|
|
2147
2240
|
/**
|
|
2148
2241
|
* Not
|
|
2149
2242
|
*/
|
|
2150
|
-
not: TagGroupLeaf |
|
|
2243
|
+
not: TagGroupLeaf | TagGroupAndOutput | TagGroupOrOutput | TagGroupNotOutput;
|
|
2244
|
+
};
|
|
2245
|
+
/**
|
|
2246
|
+
* TagGroupOr
|
|
2247
|
+
*
|
|
2248
|
+
* Compound OR group: at least one child filter must match.
|
|
2249
|
+
*/
|
|
2250
|
+
type TagGroupOrInput = {
|
|
2251
|
+
/**
|
|
2252
|
+
* Or
|
|
2253
|
+
*/
|
|
2254
|
+
or: Array<TagGroupLeaf | TagGroupAndInput | TagGroupOrInput | TagGroupNotInput>;
|
|
2151
2255
|
};
|
|
2152
2256
|
/**
|
|
2153
2257
|
* TagGroupOr
|
|
2154
2258
|
*
|
|
2155
2259
|
* Compound OR group: at least one child filter must match.
|
|
2156
2260
|
*/
|
|
2157
|
-
type
|
|
2261
|
+
type TagGroupOrOutput = {
|
|
2158
2262
|
/**
|
|
2159
2263
|
* Or
|
|
2160
2264
|
*/
|
|
2161
|
-
or: Array<TagGroupLeaf |
|
|
2265
|
+
or: Array<TagGroupLeaf | TagGroupAndOutput | TagGroupOrOutput | TagGroupNotOutput>;
|
|
2162
2266
|
};
|
|
2163
2267
|
/**
|
|
2164
2268
|
* TagItem
|
|
@@ -2322,7 +2426,7 @@ type UpdateMentalModelRequest = {
|
|
|
2322
2426
|
/**
|
|
2323
2427
|
* Trigger settings
|
|
2324
2428
|
*/
|
|
2325
|
-
trigger?:
|
|
2429
|
+
trigger?: MentalModelTriggerInput | null;
|
|
2326
2430
|
};
|
|
2327
2431
|
/**
|
|
2328
2432
|
* UpdateWebhookRequest
|
package/generated/types.gen.ts
CHANGED
|
@@ -729,7 +729,7 @@ export type CreateMentalModelRequest = {
|
|
|
729
729
|
/**
|
|
730
730
|
* Trigger settings
|
|
731
731
|
*/
|
|
732
|
-
trigger?:
|
|
732
|
+
trigger?: MentalModelTriggerInput;
|
|
733
733
|
};
|
|
734
734
|
|
|
735
735
|
/**
|
|
@@ -954,6 +954,22 @@ export type DocumentResponse = {
|
|
|
954
954
|
* Tags associated with this document
|
|
955
955
|
*/
|
|
956
956
|
tags?: Array<string>;
|
|
957
|
+
/**
|
|
958
|
+
* Document Metadata
|
|
959
|
+
*
|
|
960
|
+
* Document metadata
|
|
961
|
+
*/
|
|
962
|
+
document_metadata?: {
|
|
963
|
+
[key: string]: unknown;
|
|
964
|
+
} | null;
|
|
965
|
+
/**
|
|
966
|
+
* Retain Params
|
|
967
|
+
*
|
|
968
|
+
* Parameters used during retain
|
|
969
|
+
*/
|
|
970
|
+
retain_params?: {
|
|
971
|
+
[key: string]: unknown;
|
|
972
|
+
} | null;
|
|
957
973
|
};
|
|
958
974
|
|
|
959
975
|
/**
|
|
@@ -1434,7 +1450,7 @@ export type MentalModelResponse = {
|
|
|
1434
1450
|
* Max Tokens
|
|
1435
1451
|
*/
|
|
1436
1452
|
max_tokens?: number;
|
|
1437
|
-
trigger?:
|
|
1453
|
+
trigger?: MentalModelTriggerOutput;
|
|
1438
1454
|
/**
|
|
1439
1455
|
* Last Refreshed At
|
|
1440
1456
|
*/
|
|
@@ -1458,7 +1474,7 @@ export type MentalModelResponse = {
|
|
|
1458
1474
|
*
|
|
1459
1475
|
* Trigger settings for a mental model.
|
|
1460
1476
|
*/
|
|
1461
|
-
export type
|
|
1477
|
+
export type MentalModelTriggerInput = {
|
|
1462
1478
|
/**
|
|
1463
1479
|
* Refresh After Consolidation
|
|
1464
1480
|
*
|
|
@@ -1483,6 +1499,66 @@ export type MentalModelTrigger = {
|
|
|
1483
1499
|
* Exclude specific mental models by ID from the reflect loop.
|
|
1484
1500
|
*/
|
|
1485
1501
|
exclude_mental_model_ids?: Array<string> | null;
|
|
1502
|
+
/**
|
|
1503
|
+
* Tags Match
|
|
1504
|
+
*
|
|
1505
|
+
* Override how the model's tags filter memories during refresh. If not set, defaults to 'all_strict' when the model has tags (security isolation) or 'any' when the model has no tags. Set to 'any' to include untagged memories alongside tagged ones during refresh.
|
|
1506
|
+
*/
|
|
1507
|
+
tags_match?: "any" | "all" | "any_strict" | "all_strict" | null;
|
|
1508
|
+
/**
|
|
1509
|
+
* Tag Groups
|
|
1510
|
+
*
|
|
1511
|
+
* Compound boolean tag expressions to use during refresh instead of the model's own tags. When set, these tag groups are passed to reflect and the model's flat tags are NOT used for filtering. Supports nested and/or/not expressions for complex tag-based scoping.
|
|
1512
|
+
*/
|
|
1513
|
+
tag_groups?: Array<
|
|
1514
|
+
TagGroupLeaf | TagGroupAndInput | TagGroupOrInput | TagGroupNotInput
|
|
1515
|
+
> | null;
|
|
1516
|
+
};
|
|
1517
|
+
|
|
1518
|
+
/**
|
|
1519
|
+
* MentalModelTrigger
|
|
1520
|
+
*
|
|
1521
|
+
* Trigger settings for a mental model.
|
|
1522
|
+
*/
|
|
1523
|
+
export type MentalModelTriggerOutput = {
|
|
1524
|
+
/**
|
|
1525
|
+
* Refresh After Consolidation
|
|
1526
|
+
*
|
|
1527
|
+
* If true, refresh this mental model after observations consolidation (real-time mode)
|
|
1528
|
+
*/
|
|
1529
|
+
refresh_after_consolidation?: boolean;
|
|
1530
|
+
/**
|
|
1531
|
+
* Fact Types
|
|
1532
|
+
*
|
|
1533
|
+
* Filter which fact types are retrieved during reflect. None means all types (world, experience, observation).
|
|
1534
|
+
*/
|
|
1535
|
+
fact_types?: Array<"world" | "experience" | "observation"> | null;
|
|
1536
|
+
/**
|
|
1537
|
+
* Exclude Mental Models
|
|
1538
|
+
*
|
|
1539
|
+
* If true, exclude all mental models from the reflect loop (skip search_mental_models tool).
|
|
1540
|
+
*/
|
|
1541
|
+
exclude_mental_models?: boolean;
|
|
1542
|
+
/**
|
|
1543
|
+
* Exclude Mental Model Ids
|
|
1544
|
+
*
|
|
1545
|
+
* Exclude specific mental models by ID from the reflect loop.
|
|
1546
|
+
*/
|
|
1547
|
+
exclude_mental_model_ids?: Array<string> | null;
|
|
1548
|
+
/**
|
|
1549
|
+
* Tags Match
|
|
1550
|
+
*
|
|
1551
|
+
* Override how the model's tags filter memories during refresh. If not set, defaults to 'all_strict' when the model has tags (security isolation) or 'any' when the model has no tags. Set to 'any' to include untagged memories alongside tagged ones during refresh.
|
|
1552
|
+
*/
|
|
1553
|
+
tags_match?: "any" | "all" | "any_strict" | "all_strict" | null;
|
|
1554
|
+
/**
|
|
1555
|
+
* Tag Groups
|
|
1556
|
+
*
|
|
1557
|
+
* Compound boolean tag expressions to use during refresh instead of the model's own tags. When set, these tag groups are passed to reflect and the model's flat tags are NOT used for filtering. Supports nested and/or/not expressions for complex tag-based scoping.
|
|
1558
|
+
*/
|
|
1559
|
+
tag_groups?: Array<
|
|
1560
|
+
TagGroupLeaf | TagGroupAndOutput | TagGroupOrOutput | TagGroupNotOutput
|
|
1561
|
+
> | null;
|
|
1486
1562
|
};
|
|
1487
1563
|
|
|
1488
1564
|
/**
|
|
@@ -1652,7 +1728,7 @@ export type RecallRequest = {
|
|
|
1652
1728
|
* Compound tag filter using boolean groups. Groups in the list are AND-ed. Each group is a leaf {tags, match} or compound {and: [...]}, {or: [...]}, {not: ...}.
|
|
1653
1729
|
*/
|
|
1654
1730
|
tag_groups?: Array<
|
|
1655
|
-
TagGroupLeaf |
|
|
1731
|
+
TagGroupLeaf | TagGroupAndInput | TagGroupOrInput | TagGroupNotInput
|
|
1656
1732
|
> | null;
|
|
1657
1733
|
};
|
|
1658
1734
|
|
|
@@ -1975,7 +2051,7 @@ export type ReflectRequest = {
|
|
|
1975
2051
|
* Compound tag filter using boolean groups. Groups in the list are AND-ed. Each group is a leaf {tags, match} or compound {and: [...]}, {or: [...]}, {not: ...}.
|
|
1976
2052
|
*/
|
|
1977
2053
|
tag_groups?: Array<
|
|
1978
|
-
TagGroupLeaf |
|
|
2054
|
+
TagGroupLeaf | TagGroupAndInput | TagGroupOrInput | TagGroupNotInput
|
|
1979
2055
|
> | null;
|
|
1980
2056
|
/**
|
|
1981
2057
|
* Fact Types
|
|
@@ -2206,11 +2282,27 @@ export type SourceFactsIncludeOptions = {
|
|
|
2206
2282
|
*
|
|
2207
2283
|
* Compound AND group: all child filters must match.
|
|
2208
2284
|
*/
|
|
2209
|
-
export type
|
|
2285
|
+
export type TagGroupAndInput = {
|
|
2210
2286
|
/**
|
|
2211
2287
|
* And
|
|
2212
2288
|
*/
|
|
2213
|
-
and: Array<
|
|
2289
|
+
and: Array<
|
|
2290
|
+
TagGroupLeaf | TagGroupAndInput | TagGroupOrInput | TagGroupNotInput
|
|
2291
|
+
>;
|
|
2292
|
+
};
|
|
2293
|
+
|
|
2294
|
+
/**
|
|
2295
|
+
* TagGroupAnd
|
|
2296
|
+
*
|
|
2297
|
+
* Compound AND group: all child filters must match.
|
|
2298
|
+
*/
|
|
2299
|
+
export type TagGroupAndOutput = {
|
|
2300
|
+
/**
|
|
2301
|
+
* And
|
|
2302
|
+
*/
|
|
2303
|
+
and: Array<
|
|
2304
|
+
TagGroupLeaf | TagGroupAndOutput | TagGroupOrOutput | TagGroupNotOutput
|
|
2305
|
+
>;
|
|
2214
2306
|
};
|
|
2215
2307
|
|
|
2216
2308
|
/**
|
|
@@ -2234,11 +2326,37 @@ export type TagGroupLeaf = {
|
|
|
2234
2326
|
*
|
|
2235
2327
|
* Compound NOT group: child filter must NOT match.
|
|
2236
2328
|
*/
|
|
2237
|
-
export type
|
|
2329
|
+
export type TagGroupNotInput = {
|
|
2330
|
+
/**
|
|
2331
|
+
* Not
|
|
2332
|
+
*/
|
|
2333
|
+
not: TagGroupLeaf | TagGroupAndInput | TagGroupOrInput | TagGroupNotInput;
|
|
2334
|
+
};
|
|
2335
|
+
|
|
2336
|
+
/**
|
|
2337
|
+
* TagGroupNot
|
|
2338
|
+
*
|
|
2339
|
+
* Compound NOT group: child filter must NOT match.
|
|
2340
|
+
*/
|
|
2341
|
+
export type TagGroupNotOutput = {
|
|
2238
2342
|
/**
|
|
2239
2343
|
* Not
|
|
2240
2344
|
*/
|
|
2241
|
-
not: TagGroupLeaf |
|
|
2345
|
+
not: TagGroupLeaf | TagGroupAndOutput | TagGroupOrOutput | TagGroupNotOutput;
|
|
2346
|
+
};
|
|
2347
|
+
|
|
2348
|
+
/**
|
|
2349
|
+
* TagGroupOr
|
|
2350
|
+
*
|
|
2351
|
+
* Compound OR group: at least one child filter must match.
|
|
2352
|
+
*/
|
|
2353
|
+
export type TagGroupOrInput = {
|
|
2354
|
+
/**
|
|
2355
|
+
* Or
|
|
2356
|
+
*/
|
|
2357
|
+
or: Array<
|
|
2358
|
+
TagGroupLeaf | TagGroupAndInput | TagGroupOrInput | TagGroupNotInput
|
|
2359
|
+
>;
|
|
2242
2360
|
};
|
|
2243
2361
|
|
|
2244
2362
|
/**
|
|
@@ -2246,11 +2364,13 @@ export type TagGroupNot = {
|
|
|
2246
2364
|
*
|
|
2247
2365
|
* Compound OR group: at least one child filter must match.
|
|
2248
2366
|
*/
|
|
2249
|
-
export type
|
|
2367
|
+
export type TagGroupOrOutput = {
|
|
2250
2368
|
/**
|
|
2251
2369
|
* Or
|
|
2252
2370
|
*/
|
|
2253
|
-
or: Array<
|
|
2371
|
+
or: Array<
|
|
2372
|
+
TagGroupLeaf | TagGroupAndOutput | TagGroupOrOutput | TagGroupNotOutput
|
|
2373
|
+
>;
|
|
2254
2374
|
};
|
|
2255
2375
|
|
|
2256
2376
|
/**
|
|
@@ -2422,7 +2542,7 @@ export type UpdateMentalModelRequest = {
|
|
|
2422
2542
|
/**
|
|
2423
2543
|
* Trigger settings
|
|
2424
2544
|
*/
|
|
2425
|
-
trigger?:
|
|
2545
|
+
trigger?: MentalModelTriggerInput | null;
|
|
2426
2546
|
};
|
|
2427
2547
|
|
|
2428
2548
|
/**
|
package/package.json
CHANGED