@soat/sdk 0.55.0 → 0.56.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.d.cts +40 -2
- package/dist/index.d.mts +40 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -482,7 +482,15 @@ type Agent = {
|
|
|
482
482
|
* Key-value pairs a result's own `tags` must all contain (exact match). Scopes documents and memories alike.
|
|
483
483
|
*/
|
|
484
484
|
tags?: TagBag;
|
|
485
|
+
/**
|
|
486
|
+
* Minimum raw cosine similarity (0–1) a vector candidate must reach to be ranked, the floor the search endpoint spells `min_similarity`. No default: omitted means no floor at all, and every one of the `limit` nearest chunks is injected however weak it is.
|
|
487
|
+
*
|
|
488
|
+
*/
|
|
485
489
|
min_score?: number;
|
|
490
|
+
/**
|
|
491
|
+
* Maximum number of results to inject. Omitted, 10 are injected.
|
|
492
|
+
*
|
|
493
|
+
*/
|
|
486
494
|
limit?: number;
|
|
487
495
|
/**
|
|
488
496
|
* Public ID of the memory store the agent can write to during generation. When set, a write_memory tool is automatically available to the agent.
|
|
@@ -678,7 +686,15 @@ type CreateAgentRequest = {
|
|
|
678
686
|
* Key-value pairs a result's own `tags` must all contain (exact match). Scopes documents and memories alike.
|
|
679
687
|
*/
|
|
680
688
|
tags?: TagBag;
|
|
689
|
+
/**
|
|
690
|
+
* Minimum raw cosine similarity (0–1) a vector candidate must reach to be ranked, the floor the search endpoint spells `min_similarity`. No default: omitted means no floor at all, and every one of the `limit` nearest chunks is injected however weak it is.
|
|
691
|
+
*
|
|
692
|
+
*/
|
|
681
693
|
min_score?: number;
|
|
694
|
+
/**
|
|
695
|
+
* Maximum number of results to inject. Omitted, 10 are injected.
|
|
696
|
+
*
|
|
697
|
+
*/
|
|
682
698
|
limit?: number;
|
|
683
699
|
/**
|
|
684
700
|
* Public ID of the memory store the agent can write to during generation. When set, a write_memory tool is automatically available to the agent.
|
|
@@ -768,7 +784,15 @@ type UpdateAgentRequest = {
|
|
|
768
784
|
* Key-value pairs a result's own `tags` must all contain (exact match). Scopes documents and memories alike.
|
|
769
785
|
*/
|
|
770
786
|
tags?: TagBag;
|
|
787
|
+
/**
|
|
788
|
+
* Minimum raw cosine similarity (0–1) a vector candidate must reach to be ranked, the floor the search endpoint spells `min_similarity`. No default: omitted means no floor at all, and every one of the `limit` nearest chunks is injected however weak it is.
|
|
789
|
+
*
|
|
790
|
+
*/
|
|
771
791
|
min_score?: number;
|
|
792
|
+
/**
|
|
793
|
+
* Maximum number of results to inject. Omitted, 10 are injected.
|
|
794
|
+
*
|
|
795
|
+
*/
|
|
772
796
|
limit?: number;
|
|
773
797
|
/**
|
|
774
798
|
* Public ID of the memory store the agent can write to during generation. When set, a write_memory tool is automatically available to the agent.
|
|
@@ -869,7 +893,15 @@ type CreateAgentGenerationRequest = {
|
|
|
869
893
|
* Key-value pairs a result's own `tags` must all contain (exact match). Scopes documents and memories alike.
|
|
870
894
|
*/
|
|
871
895
|
tags?: TagBag;
|
|
896
|
+
/**
|
|
897
|
+
* Minimum raw cosine similarity (0–1) a vector candidate must reach to be ranked, the floor the search endpoint spells `min_similarity`. No default: omitted means no floor at all, and every one of the `limit` nearest chunks is injected however weak it is.
|
|
898
|
+
*
|
|
899
|
+
*/
|
|
872
900
|
min_score?: number;
|
|
901
|
+
/**
|
|
902
|
+
* Maximum number of results to inject. Omitted, 10 are injected.
|
|
903
|
+
*
|
|
904
|
+
*/
|
|
873
905
|
limit?: number;
|
|
874
906
|
} | null;
|
|
875
907
|
};
|
|
@@ -4705,14 +4737,15 @@ type OrchestrationNode = {
|
|
|
4705
4737
|
[key: string]: unknown;
|
|
4706
4738
|
};
|
|
4707
4739
|
/**
|
|
4708
|
-
* Maps state write paths to values. Each key is a `state.<path>` destination (the `state.` prefix is optional); each value is JSON Logic (https://jsonlogic.com) evaluated against `{ "output": <node artifact>, "state": <run state> }` — e.g. `{ "summary": {"var": "output.content"} }` writes the artifact's `content` field to `state.summary`. The same evaluator as input_mapping/transform/condition; only the context differs.
|
|
4740
|
+
* Maps state write paths to values. Each key is a `state.<path>` destination (the `state.` prefix is optional); each value is JSON Logic (https://jsonlogic.com) evaluated against `{ "output": <node artifact>, "state": <run state> }` — e.g. `{ "summary": {"var": "output.content"} }` writes the artifact's `content` field to `state.summary`. The same evaluator as input_mapping/transform/condition; only the context differs. An `agent` node's artifact always carries both `content` (the text response) and `object` (the parsed value when a schema applied, `null` otherwise), so `output.content` reads the same whether or not the node declares an `output_schema`.
|
|
4709
4741
|
*
|
|
4710
4742
|
*/
|
|
4711
4743
|
state_mapping?: {
|
|
4712
4744
|
[key: string]: unknown;
|
|
4713
4745
|
};
|
|
4714
4746
|
/**
|
|
4715
|
-
* For agent nodes — JSON Schema for
|
|
4747
|
+
* For agent nodes — JSON Schema the model's answer is parsed into, reaching the artifact as `object`. Declaring it here is only needed for an agent that carries no `output_schema` of its own: the agent's schema already produces the artifact's `object` wherever that agent generates.
|
|
4748
|
+
*
|
|
4716
4749
|
*/
|
|
4717
4750
|
output_schema?: {
|
|
4718
4751
|
[key: string]: unknown;
|
|
@@ -5081,6 +5114,11 @@ type NodeExecution = {
|
|
|
5081
5114
|
*
|
|
5082
5115
|
*/
|
|
5083
5116
|
attempt: number;
|
|
5117
|
+
/**
|
|
5118
|
+
* How many times this attempt was dispatched, including the first. A worker that stops mid-node leaves its task to be redelivered, and the redelivery re-runs the node under this same record — so a count above 1 is work the run issued, and was billed for, more than once.
|
|
5119
|
+
*
|
|
5120
|
+
*/
|
|
5121
|
+
dispatches: number;
|
|
5084
5122
|
/**
|
|
5085
5123
|
* Node execution status. `running` marks an execution record whose node is still in flight. Open set — new statuses may be added in minor releases; clients must tolerate unknown values.
|
|
5086
5124
|
*/
|
package/dist/index.d.mts
CHANGED
|
@@ -482,7 +482,15 @@ type Agent = {
|
|
|
482
482
|
* Key-value pairs a result's own `tags` must all contain (exact match). Scopes documents and memories alike.
|
|
483
483
|
*/
|
|
484
484
|
tags?: TagBag;
|
|
485
|
+
/**
|
|
486
|
+
* Minimum raw cosine similarity (0–1) a vector candidate must reach to be ranked, the floor the search endpoint spells `min_similarity`. No default: omitted means no floor at all, and every one of the `limit` nearest chunks is injected however weak it is.
|
|
487
|
+
*
|
|
488
|
+
*/
|
|
485
489
|
min_score?: number;
|
|
490
|
+
/**
|
|
491
|
+
* Maximum number of results to inject. Omitted, 10 are injected.
|
|
492
|
+
*
|
|
493
|
+
*/
|
|
486
494
|
limit?: number;
|
|
487
495
|
/**
|
|
488
496
|
* Public ID of the memory store the agent can write to during generation. When set, a write_memory tool is automatically available to the agent.
|
|
@@ -678,7 +686,15 @@ type CreateAgentRequest = {
|
|
|
678
686
|
* Key-value pairs a result's own `tags` must all contain (exact match). Scopes documents and memories alike.
|
|
679
687
|
*/
|
|
680
688
|
tags?: TagBag;
|
|
689
|
+
/**
|
|
690
|
+
* Minimum raw cosine similarity (0–1) a vector candidate must reach to be ranked, the floor the search endpoint spells `min_similarity`. No default: omitted means no floor at all, and every one of the `limit` nearest chunks is injected however weak it is.
|
|
691
|
+
*
|
|
692
|
+
*/
|
|
681
693
|
min_score?: number;
|
|
694
|
+
/**
|
|
695
|
+
* Maximum number of results to inject. Omitted, 10 are injected.
|
|
696
|
+
*
|
|
697
|
+
*/
|
|
682
698
|
limit?: number;
|
|
683
699
|
/**
|
|
684
700
|
* Public ID of the memory store the agent can write to during generation. When set, a write_memory tool is automatically available to the agent.
|
|
@@ -768,7 +784,15 @@ type UpdateAgentRequest = {
|
|
|
768
784
|
* Key-value pairs a result's own `tags` must all contain (exact match). Scopes documents and memories alike.
|
|
769
785
|
*/
|
|
770
786
|
tags?: TagBag;
|
|
787
|
+
/**
|
|
788
|
+
* Minimum raw cosine similarity (0–1) a vector candidate must reach to be ranked, the floor the search endpoint spells `min_similarity`. No default: omitted means no floor at all, and every one of the `limit` nearest chunks is injected however weak it is.
|
|
789
|
+
*
|
|
790
|
+
*/
|
|
771
791
|
min_score?: number;
|
|
792
|
+
/**
|
|
793
|
+
* Maximum number of results to inject. Omitted, 10 are injected.
|
|
794
|
+
*
|
|
795
|
+
*/
|
|
772
796
|
limit?: number;
|
|
773
797
|
/**
|
|
774
798
|
* Public ID of the memory store the agent can write to during generation. When set, a write_memory tool is automatically available to the agent.
|
|
@@ -869,7 +893,15 @@ type CreateAgentGenerationRequest = {
|
|
|
869
893
|
* Key-value pairs a result's own `tags` must all contain (exact match). Scopes documents and memories alike.
|
|
870
894
|
*/
|
|
871
895
|
tags?: TagBag;
|
|
896
|
+
/**
|
|
897
|
+
* Minimum raw cosine similarity (0–1) a vector candidate must reach to be ranked, the floor the search endpoint spells `min_similarity`. No default: omitted means no floor at all, and every one of the `limit` nearest chunks is injected however weak it is.
|
|
898
|
+
*
|
|
899
|
+
*/
|
|
872
900
|
min_score?: number;
|
|
901
|
+
/**
|
|
902
|
+
* Maximum number of results to inject. Omitted, 10 are injected.
|
|
903
|
+
*
|
|
904
|
+
*/
|
|
873
905
|
limit?: number;
|
|
874
906
|
} | null;
|
|
875
907
|
};
|
|
@@ -4705,14 +4737,15 @@ type OrchestrationNode = {
|
|
|
4705
4737
|
[key: string]: unknown;
|
|
4706
4738
|
};
|
|
4707
4739
|
/**
|
|
4708
|
-
* Maps state write paths to values. Each key is a `state.<path>` destination (the `state.` prefix is optional); each value is JSON Logic (https://jsonlogic.com) evaluated against `{ "output": <node artifact>, "state": <run state> }` — e.g. `{ "summary": {"var": "output.content"} }` writes the artifact's `content` field to `state.summary`. The same evaluator as input_mapping/transform/condition; only the context differs.
|
|
4740
|
+
* Maps state write paths to values. Each key is a `state.<path>` destination (the `state.` prefix is optional); each value is JSON Logic (https://jsonlogic.com) evaluated against `{ "output": <node artifact>, "state": <run state> }` — e.g. `{ "summary": {"var": "output.content"} }` writes the artifact's `content` field to `state.summary`. The same evaluator as input_mapping/transform/condition; only the context differs. An `agent` node's artifact always carries both `content` (the text response) and `object` (the parsed value when a schema applied, `null` otherwise), so `output.content` reads the same whether or not the node declares an `output_schema`.
|
|
4709
4741
|
*
|
|
4710
4742
|
*/
|
|
4711
4743
|
state_mapping?: {
|
|
4712
4744
|
[key: string]: unknown;
|
|
4713
4745
|
};
|
|
4714
4746
|
/**
|
|
4715
|
-
* For agent nodes — JSON Schema for
|
|
4747
|
+
* For agent nodes — JSON Schema the model's answer is parsed into, reaching the artifact as `object`. Declaring it here is only needed for an agent that carries no `output_schema` of its own: the agent's schema already produces the artifact's `object` wherever that agent generates.
|
|
4748
|
+
*
|
|
4716
4749
|
*/
|
|
4717
4750
|
output_schema?: {
|
|
4718
4751
|
[key: string]: unknown;
|
|
@@ -5081,6 +5114,11 @@ type NodeExecution = {
|
|
|
5081
5114
|
*
|
|
5082
5115
|
*/
|
|
5083
5116
|
attempt: number;
|
|
5117
|
+
/**
|
|
5118
|
+
* How many times this attempt was dispatched, including the first. A worker that stops mid-node leaves its task to be redelivered, and the redelivery re-runs the node under this same record — so a count above 1 is work the run issued, and was billed for, more than once.
|
|
5119
|
+
*
|
|
5120
|
+
*/
|
|
5121
|
+
dispatches: number;
|
|
5084
5122
|
/**
|
|
5085
5123
|
* Node execution status. `running` marks an execution record whose node is still in flight. Open set — new statuses may be added in minor releases; clients must tolerate unknown values.
|
|
5086
5124
|
*/
|