@soat/sdk 0.50.0 → 0.52.0
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.cjs +93 -3
- package/dist/index.d.cts +659 -133
- package/dist/index.d.mts +659 -133
- package/dist/index.mjs +93 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2359,7 +2359,7 @@ var Generations = class {
|
|
|
2359
2359
|
/**
|
|
2360
2360
|
* List generations
|
|
2361
2361
|
*
|
|
2362
|
-
* Returns generations the caller can access, optionally filtered by agent, trace, orchestration run, node, and status.
|
|
2362
|
+
* Returns generations the caller can access, optionally filtered by agent, trace, orchestration run, node, and status. The generations of one trace are the `trace_id` filter.
|
|
2363
2363
|
*
|
|
2364
2364
|
* Filtering by `orchestration_run_id` is the supported way to get from an orchestration run to the generations its agent nodes produced: a node execution record carries no generation id, so the pointer lives here, alongside the run's other attribution columns.
|
|
2365
2365
|
*
|
|
@@ -2655,7 +2655,7 @@ var Memories = class {
|
|
|
2655
2655
|
/**
|
|
2656
2656
|
* Create a memory
|
|
2657
2657
|
*
|
|
2658
|
-
*
|
|
2658
|
+
* Writes a fact to the specified memory store through the standard write algorithm: the content is embedded (or matched to text the store already holds), compared against the most similar currently-valid memory, and resolved to exactly one of three outcomes — `skipped` at or above `duplicate_threshold`, `superseded` at or above `supersede_threshold`, `created` below it. `supersedes` overrides that comparison entirely, retiring the memory it names. Every call records one assertion, whatever the outcome.
|
|
2659
2659
|
*/
|
|
2660
2660
|
static createMemory(options) {
|
|
2661
2661
|
return (options.client ?? client).post({
|
|
@@ -2705,6 +2705,17 @@ var Memories = class {
|
|
|
2705
2705
|
});
|
|
2706
2706
|
}
|
|
2707
2707
|
/**
|
|
2708
|
+
* List a memory's assertions
|
|
2709
|
+
*
|
|
2710
|
+
* Returns every write that resolved into this memory, oldest first: the one that created it, the duplicates it absorbed, and the assertion that superseded another memory in its favour. A superseded memory keeps its own assertions, so the chain can be walked in both directions.
|
|
2711
|
+
*/
|
|
2712
|
+
static listMemoryAssertions(options) {
|
|
2713
|
+
return (options.client ?? client).get({
|
|
2714
|
+
url: "/api/v1/memories/{memory_id}/assertions",
|
|
2715
|
+
...options
|
|
2716
|
+
});
|
|
2717
|
+
}
|
|
2718
|
+
/**
|
|
2708
2719
|
* Get memory tags
|
|
2709
2720
|
*
|
|
2710
2721
|
* Returns all tags attached to the memory
|
|
@@ -2746,6 +2757,71 @@ var Memories = class {
|
|
|
2746
2757
|
});
|
|
2747
2758
|
}
|
|
2748
2759
|
};
|
|
2760
|
+
var MemoryRules = class {
|
|
2761
|
+
/**
|
|
2762
|
+
* List memory rules
|
|
2763
|
+
*
|
|
2764
|
+
* Returns memory rules, newest first. Narrow to one store with `memory_store_id` — that form is authorized against the store itself, so it answers "what feeds this store?" in one call.
|
|
2765
|
+
*/
|
|
2766
|
+
static listMemoryRules(options) {
|
|
2767
|
+
return (options?.client ?? client).get({
|
|
2768
|
+
url: "/api/v1/memory-rules",
|
|
2769
|
+
...options
|
|
2770
|
+
});
|
|
2771
|
+
}
|
|
2772
|
+
/**
|
|
2773
|
+
* Create a memory rule
|
|
2774
|
+
*
|
|
2775
|
+
* Creates an ingestion rule on a memory store. With neither `agent_id` nor `tool_id` the built-in extractor runs, configurable through `prompt`, `ai_provider_id` and `model`.
|
|
2776
|
+
*/
|
|
2777
|
+
static createMemoryRule(options) {
|
|
2778
|
+
return (options.client ?? client).post({
|
|
2779
|
+
url: "/api/v1/memory-rules",
|
|
2780
|
+
...options,
|
|
2781
|
+
headers: {
|
|
2782
|
+
"Content-Type": "application/json",
|
|
2783
|
+
...options.headers
|
|
2784
|
+
}
|
|
2785
|
+
});
|
|
2786
|
+
}
|
|
2787
|
+
/**
|
|
2788
|
+
* Delete a memory rule
|
|
2789
|
+
*
|
|
2790
|
+
* Deletes a memory rule. The assertions it wrote are kept; their `rule_id` becomes null.
|
|
2791
|
+
*/
|
|
2792
|
+
static deleteMemoryRule(options) {
|
|
2793
|
+
return (options.client ?? client).delete({
|
|
2794
|
+
url: "/api/v1/memory-rules/{memory_rule_id}",
|
|
2795
|
+
...options
|
|
2796
|
+
});
|
|
2797
|
+
}
|
|
2798
|
+
/**
|
|
2799
|
+
* Get a memory rule
|
|
2800
|
+
*
|
|
2801
|
+
* Returns a specific memory rule
|
|
2802
|
+
*/
|
|
2803
|
+
static getMemoryRule(options) {
|
|
2804
|
+
return (options.client ?? client).get({
|
|
2805
|
+
url: "/api/v1/memory-rules/{memory_rule_id}",
|
|
2806
|
+
...options
|
|
2807
|
+
});
|
|
2808
|
+
}
|
|
2809
|
+
/**
|
|
2810
|
+
* Update a memory rule
|
|
2811
|
+
*
|
|
2812
|
+
* Updates a memory rule. Validation runs against the rule as it would stand after the change, so a one-field update cannot pair a handler with a stored extractor override from the side.
|
|
2813
|
+
*/
|
|
2814
|
+
static updateMemoryRule(options) {
|
|
2815
|
+
return (options.client ?? client).patch({
|
|
2816
|
+
url: "/api/v1/memory-rules/{memory_rule_id}",
|
|
2817
|
+
...options,
|
|
2818
|
+
headers: {
|
|
2819
|
+
"Content-Type": "application/json",
|
|
2820
|
+
...options.headers
|
|
2821
|
+
}
|
|
2822
|
+
});
|
|
2823
|
+
}
|
|
2824
|
+
};
|
|
2749
2825
|
var MemoryStores = class {
|
|
2750
2826
|
/**
|
|
2751
2827
|
* List memory stores
|
|
@@ -2811,6 +2887,17 @@ var MemoryStores = class {
|
|
|
2811
2887
|
});
|
|
2812
2888
|
}
|
|
2813
2889
|
/**
|
|
2890
|
+
* List a memory store's write assertions
|
|
2891
|
+
*
|
|
2892
|
+
* Returns the store's write ledger, newest first: one row per write attempt, skips included. This is how "which write path is filling this store?" is asked — a question no column on a memory row could answer, because a skipped write produced no memory at all.
|
|
2893
|
+
*/
|
|
2894
|
+
static listMemoryStoreAssertions(options) {
|
|
2895
|
+
return (options.client ?? client).get({
|
|
2896
|
+
url: "/api/v1/memory-stores/{memory_store_id}/assertions",
|
|
2897
|
+
...options
|
|
2898
|
+
});
|
|
2899
|
+
}
|
|
2900
|
+
/**
|
|
2814
2901
|
* Get memory store tags
|
|
2815
2902
|
*
|
|
2816
2903
|
* Returns all tags attached to the memory store
|
|
@@ -3156,7 +3243,7 @@ var Policies = class {
|
|
|
3156
3243
|
/**
|
|
3157
3244
|
* List all policies
|
|
3158
3245
|
*
|
|
3159
|
-
* Returns global policies. Requires admin role. Pass user_id to list only the policies attached to that user
|
|
3246
|
+
* Returns global policies. Requires admin role. Pass user_id to list only the policies attached to that user.
|
|
3160
3247
|
*
|
|
3161
3248
|
*/
|
|
3162
3249
|
static listPolicies(options) {
|
|
@@ -4538,6 +4625,7 @@ var SoatClient = class {
|
|
|
4538
4625
|
ingestionRules;
|
|
4539
4626
|
knowledge;
|
|
4540
4627
|
memories;
|
|
4628
|
+
memoryRules;
|
|
4541
4629
|
memoryStores;
|
|
4542
4630
|
modelRoutes;
|
|
4543
4631
|
orchestrations;
|
|
@@ -4585,6 +4673,7 @@ var SoatClient = class {
|
|
|
4585
4673
|
this.ingestionRules = bindResource(IngestionRules, httpClient);
|
|
4586
4674
|
this.knowledge = bindResource(Knowledge, httpClient);
|
|
4587
4675
|
this.memories = bindResource(Memories, httpClient);
|
|
4676
|
+
this.memoryRules = bindResource(MemoryRules, httpClient);
|
|
4588
4677
|
this.memoryStores = bindResource(MemoryStores, httpClient);
|
|
4589
4678
|
this.modelRoutes = bindResource(ModelRoutes, httpClient);
|
|
4590
4679
|
this.orchestrations = bindResource(Orchestrations, httpClient);
|
|
@@ -4626,6 +4715,7 @@ exports.Guardrails = Guardrails;
|
|
|
4626
4715
|
exports.IngestionRules = IngestionRules;
|
|
4627
4716
|
exports.Knowledge = Knowledge;
|
|
4628
4717
|
exports.Memories = Memories;
|
|
4718
|
+
exports.MemoryRules = MemoryRules;
|
|
4629
4719
|
exports.MemoryStores = MemoryStores;
|
|
4630
4720
|
exports.ModelRoutes = ModelRoutes;
|
|
4631
4721
|
exports.Orchestrations = Orchestrations;
|