@naturali/sdk 0.133.1 → 0.133.2
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 +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -763,7 +763,15 @@ type Agent = {
|
|
|
763
763
|
* Key-value pairs a result's own `tags` must all contain (exact match). Scopes documents and memories alike.
|
|
764
764
|
*/
|
|
765
765
|
tags?: TagBag;
|
|
766
|
+
/**
|
|
767
|
+
* 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.
|
|
768
|
+
*
|
|
769
|
+
*/
|
|
766
770
|
min_score?: number;
|
|
771
|
+
/**
|
|
772
|
+
* Maximum number of results to inject. Omitted, 10 are injected.
|
|
773
|
+
*
|
|
774
|
+
*/
|
|
767
775
|
limit?: number;
|
|
768
776
|
/**
|
|
769
777
|
* 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.
|
|
@@ -955,7 +963,15 @@ type CreateAgentRequest = {
|
|
|
955
963
|
* Key-value pairs a result's own `tags` must all contain (exact match). Scopes documents and memories alike.
|
|
956
964
|
*/
|
|
957
965
|
tags?: TagBag;
|
|
966
|
+
/**
|
|
967
|
+
* 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.
|
|
968
|
+
*
|
|
969
|
+
*/
|
|
958
970
|
min_score?: number;
|
|
971
|
+
/**
|
|
972
|
+
* Maximum number of results to inject. Omitted, 10 are injected.
|
|
973
|
+
*
|
|
974
|
+
*/
|
|
959
975
|
limit?: number;
|
|
960
976
|
/**
|
|
961
977
|
* 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.
|
|
@@ -1045,7 +1061,15 @@ type UpdateAgentRequest = {
|
|
|
1045
1061
|
* Key-value pairs a result's own `tags` must all contain (exact match). Scopes documents and memories alike.
|
|
1046
1062
|
*/
|
|
1047
1063
|
tags?: TagBag;
|
|
1064
|
+
/**
|
|
1065
|
+
* 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.
|
|
1066
|
+
*
|
|
1067
|
+
*/
|
|
1048
1068
|
min_score?: number;
|
|
1069
|
+
/**
|
|
1070
|
+
* Maximum number of results to inject. Omitted, 10 are injected.
|
|
1071
|
+
*
|
|
1072
|
+
*/
|
|
1049
1073
|
limit?: number;
|
|
1050
1074
|
/**
|
|
1051
1075
|
* 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.
|
|
@@ -1146,7 +1170,15 @@ type CreateAgentGenerationRequest = {
|
|
|
1146
1170
|
* Key-value pairs a result's own `tags` must all contain (exact match). Scopes documents and memories alike.
|
|
1147
1171
|
*/
|
|
1148
1172
|
tags?: TagBag;
|
|
1173
|
+
/**
|
|
1174
|
+
* 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.
|
|
1175
|
+
*
|
|
1176
|
+
*/
|
|
1149
1177
|
min_score?: number;
|
|
1178
|
+
/**
|
|
1179
|
+
* Maximum number of results to inject. Omitted, 10 are injected.
|
|
1180
|
+
*
|
|
1181
|
+
*/
|
|
1150
1182
|
limit?: number;
|
|
1151
1183
|
} | null;
|
|
1152
1184
|
};
|
|
@@ -5232,14 +5264,15 @@ type OrchestrationNode = {
|
|
|
5232
5264
|
[key: string]: unknown;
|
|
5233
5265
|
};
|
|
5234
5266
|
/**
|
|
5235
|
-
* 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.
|
|
5267
|
+
* 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`.
|
|
5236
5268
|
*
|
|
5237
5269
|
*/
|
|
5238
5270
|
state_mapping?: {
|
|
5239
5271
|
[key: string]: unknown;
|
|
5240
5272
|
};
|
|
5241
5273
|
/**
|
|
5242
|
-
* For agent nodes — JSON Schema for
|
|
5274
|
+
* 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.
|
|
5275
|
+
*
|
|
5243
5276
|
*/
|
|
5244
5277
|
output_schema?: {
|
|
5245
5278
|
[key: string]: unknown;
|
|
@@ -5604,6 +5637,11 @@ type NodeExecution = {
|
|
|
5604
5637
|
*
|
|
5605
5638
|
*/
|
|
5606
5639
|
attempt: number;
|
|
5640
|
+
/**
|
|
5641
|
+
* 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.
|
|
5642
|
+
*
|
|
5643
|
+
*/
|
|
5644
|
+
dispatches: number;
|
|
5607
5645
|
/**
|
|
5608
5646
|
* 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.
|
|
5609
5647
|
*/
|
package/dist/index.d.mts
CHANGED
|
@@ -763,7 +763,15 @@ type Agent = {
|
|
|
763
763
|
* Key-value pairs a result's own `tags` must all contain (exact match). Scopes documents and memories alike.
|
|
764
764
|
*/
|
|
765
765
|
tags?: TagBag;
|
|
766
|
+
/**
|
|
767
|
+
* 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.
|
|
768
|
+
*
|
|
769
|
+
*/
|
|
766
770
|
min_score?: number;
|
|
771
|
+
/**
|
|
772
|
+
* Maximum number of results to inject. Omitted, 10 are injected.
|
|
773
|
+
*
|
|
774
|
+
*/
|
|
767
775
|
limit?: number;
|
|
768
776
|
/**
|
|
769
777
|
* 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.
|
|
@@ -955,7 +963,15 @@ type CreateAgentRequest = {
|
|
|
955
963
|
* Key-value pairs a result's own `tags` must all contain (exact match). Scopes documents and memories alike.
|
|
956
964
|
*/
|
|
957
965
|
tags?: TagBag;
|
|
966
|
+
/**
|
|
967
|
+
* 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.
|
|
968
|
+
*
|
|
969
|
+
*/
|
|
958
970
|
min_score?: number;
|
|
971
|
+
/**
|
|
972
|
+
* Maximum number of results to inject. Omitted, 10 are injected.
|
|
973
|
+
*
|
|
974
|
+
*/
|
|
959
975
|
limit?: number;
|
|
960
976
|
/**
|
|
961
977
|
* 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.
|
|
@@ -1045,7 +1061,15 @@ type UpdateAgentRequest = {
|
|
|
1045
1061
|
* Key-value pairs a result's own `tags` must all contain (exact match). Scopes documents and memories alike.
|
|
1046
1062
|
*/
|
|
1047
1063
|
tags?: TagBag;
|
|
1064
|
+
/**
|
|
1065
|
+
* 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.
|
|
1066
|
+
*
|
|
1067
|
+
*/
|
|
1048
1068
|
min_score?: number;
|
|
1069
|
+
/**
|
|
1070
|
+
* Maximum number of results to inject. Omitted, 10 are injected.
|
|
1071
|
+
*
|
|
1072
|
+
*/
|
|
1049
1073
|
limit?: number;
|
|
1050
1074
|
/**
|
|
1051
1075
|
* 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.
|
|
@@ -1146,7 +1170,15 @@ type CreateAgentGenerationRequest = {
|
|
|
1146
1170
|
* Key-value pairs a result's own `tags` must all contain (exact match). Scopes documents and memories alike.
|
|
1147
1171
|
*/
|
|
1148
1172
|
tags?: TagBag;
|
|
1173
|
+
/**
|
|
1174
|
+
* 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.
|
|
1175
|
+
*
|
|
1176
|
+
*/
|
|
1149
1177
|
min_score?: number;
|
|
1178
|
+
/**
|
|
1179
|
+
* Maximum number of results to inject. Omitted, 10 are injected.
|
|
1180
|
+
*
|
|
1181
|
+
*/
|
|
1150
1182
|
limit?: number;
|
|
1151
1183
|
} | null;
|
|
1152
1184
|
};
|
|
@@ -5232,14 +5264,15 @@ type OrchestrationNode = {
|
|
|
5232
5264
|
[key: string]: unknown;
|
|
5233
5265
|
};
|
|
5234
5266
|
/**
|
|
5235
|
-
* 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.
|
|
5267
|
+
* 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`.
|
|
5236
5268
|
*
|
|
5237
5269
|
*/
|
|
5238
5270
|
state_mapping?: {
|
|
5239
5271
|
[key: string]: unknown;
|
|
5240
5272
|
};
|
|
5241
5273
|
/**
|
|
5242
|
-
* For agent nodes — JSON Schema for
|
|
5274
|
+
* 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.
|
|
5275
|
+
*
|
|
5243
5276
|
*/
|
|
5244
5277
|
output_schema?: {
|
|
5245
5278
|
[key: string]: unknown;
|
|
@@ -5604,6 +5637,11 @@ type NodeExecution = {
|
|
|
5604
5637
|
*
|
|
5605
5638
|
*/
|
|
5606
5639
|
attempt: number;
|
|
5640
|
+
/**
|
|
5641
|
+
* 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.
|
|
5642
|
+
*
|
|
5643
|
+
*/
|
|
5644
|
+
dispatches: number;
|
|
5607
5645
|
/**
|
|
5608
5646
|
* 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.
|
|
5609
5647
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.133.
|
|
3
|
+
"version": "0.133.2",
|
|
4
4
|
"description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@hey-api/openapi-ts": "^0.99.0",
|
|
34
|
-
"@naturali/api": "0.133.
|
|
34
|
+
"@naturali/api": "0.133.2",
|
|
35
35
|
"@ttoss/openapi-codegen": "^0.3.1",
|
|
36
36
|
"@types/node": "^26.5.1",
|
|
37
37
|
"tsdown": "^0.23.0",
|