@soat/sdk 0.51.0 → 0.53.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 +71 -3
- package/dist/index.d.cts +755 -212
- package/dist/index.d.mts +755 -212
- package/dist/index.mjs +71 -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
|
-
* 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. Every call records one assertion, whatever the outcome.
|
|
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({
|
|
@@ -2757,6 +2757,71 @@ var Memories = class {
|
|
|
2757
2757
|
});
|
|
2758
2758
|
}
|
|
2759
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
|
+
};
|
|
2760
2825
|
var MemoryStores = class {
|
|
2761
2826
|
/**
|
|
2762
2827
|
* List memory stores
|
|
@@ -3178,7 +3243,7 @@ var Policies = class {
|
|
|
3178
3243
|
/**
|
|
3179
3244
|
* List all policies
|
|
3180
3245
|
*
|
|
3181
|
-
* 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.
|
|
3182
3247
|
*
|
|
3183
3248
|
*/
|
|
3184
3249
|
static listPolicies(options) {
|
|
@@ -4560,6 +4625,7 @@ var SoatClient = class {
|
|
|
4560
4625
|
ingestionRules;
|
|
4561
4626
|
knowledge;
|
|
4562
4627
|
memories;
|
|
4628
|
+
memoryRules;
|
|
4563
4629
|
memoryStores;
|
|
4564
4630
|
modelRoutes;
|
|
4565
4631
|
orchestrations;
|
|
@@ -4607,6 +4673,7 @@ var SoatClient = class {
|
|
|
4607
4673
|
this.ingestionRules = bindResource(IngestionRules, httpClient);
|
|
4608
4674
|
this.knowledge = bindResource(Knowledge, httpClient);
|
|
4609
4675
|
this.memories = bindResource(Memories, httpClient);
|
|
4676
|
+
this.memoryRules = bindResource(MemoryRules, httpClient);
|
|
4610
4677
|
this.memoryStores = bindResource(MemoryStores, httpClient);
|
|
4611
4678
|
this.modelRoutes = bindResource(ModelRoutes, httpClient);
|
|
4612
4679
|
this.orchestrations = bindResource(Orchestrations, httpClient);
|
|
@@ -4648,6 +4715,7 @@ exports.Guardrails = Guardrails;
|
|
|
4648
4715
|
exports.IngestionRules = IngestionRules;
|
|
4649
4716
|
exports.Knowledge = Knowledge;
|
|
4650
4717
|
exports.Memories = Memories;
|
|
4718
|
+
exports.MemoryRules = MemoryRules;
|
|
4651
4719
|
exports.MemoryStores = MemoryStores;
|
|
4652
4720
|
exports.ModelRoutes = ModelRoutes;
|
|
4653
4721
|
exports.Orchestrations = Orchestrations;
|