@naturali/sdk 0.220.2 → 0.220.3
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 +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.mts +6 -6
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2214,7 +2214,7 @@ var Deciders = class {
|
|
|
2214
2214
|
/**
|
|
2215
2215
|
* Create a decider
|
|
2216
2216
|
*
|
|
2217
|
-
* Creates a decider at version 1: a named question set and the backend that answers it, exactly one of `agent_id` and `tool_id`. Every question declares a finite answer space, validated here. The backend must be in the decider's project. An agent must carry no tool surface — no tool binding left active by `active_tool_ids` and no `knowledge_config.write_memory_store_id` — or the create is refused with `400 DECIDER_AGENT_NOT_TOOL_LESS`. A tool must
|
|
2217
|
+
* Creates a decider at version 1: a named question set and the backend that answers it, exactly one of `agent_id` and `tool_id`. Every question declares a finite answer space, validated here. The backend must be in the decider's project. An agent must carry no tool surface — no tool binding left active by `active_tool_ids` and no `knowledge_config.write_memory_store_id` — or the create is refused with `400 DECIDER_AGENT_NOT_TOOL_LESS`. A tool must run server-side with no `action` (not `client` or `mcp`) and must not pin `input` or `questions` in its `preset_parameters`, or the create is refused with `400 DECIDER_TOOL_NOT_CALLABLE`. A duplicate `name` in the project is `409 NAME_CONFLICT`.
|
|
2218
2218
|
*/
|
|
2219
2219
|
static createDecider(options) {
|
|
2220
2220
|
return (options.client ?? client).post({
|
package/dist/index.d.cts
CHANGED
|
@@ -3131,7 +3131,7 @@ type Decider = {
|
|
|
3131
3131
|
*/
|
|
3132
3132
|
agent_id?: string | null;
|
|
3133
3133
|
/**
|
|
3134
|
-
* The
|
|
3134
|
+
* The tool that answers, run with no action; null when an agent does
|
|
3135
3135
|
*/
|
|
3136
3136
|
tool_id?: string | null;
|
|
3137
3137
|
/**
|
|
@@ -3156,7 +3156,7 @@ type CreateDeciderRequest = {
|
|
|
3156
3156
|
*/
|
|
3157
3157
|
agent_id?: string;
|
|
3158
3158
|
/**
|
|
3159
|
-
*
|
|
3159
|
+
* A tool that answers, run with no action
|
|
3160
3160
|
*/
|
|
3161
3161
|
tool_id?: string;
|
|
3162
3162
|
questions: DeciderQuestions;
|
|
@@ -3237,7 +3237,7 @@ type CreateInlineDecisionRequest = {
|
|
|
3237
3237
|
*/
|
|
3238
3238
|
agent_id?: string;
|
|
3239
3239
|
/**
|
|
3240
|
-
*
|
|
3240
|
+
* A tool that answers, run with no action
|
|
3241
3241
|
*/
|
|
3242
3242
|
tool_id?: string;
|
|
3243
3243
|
questions: DeciderQuestions;
|
|
@@ -5110,7 +5110,7 @@ type GuardrailResourceProperties = {
|
|
|
5110
5110
|
context_mode?: 'merge' | 'replace' | null;
|
|
5111
5111
|
};
|
|
5112
5112
|
/**
|
|
5113
|
-
* Creates a decider — a versioned question set answered against a caller's input. Names exactly one backend: `agent_id` (a tool-less agent) or `tool_id` (
|
|
5113
|
+
* Creates a decider — a versioned question set answered against a caller's input. Names exactly one backend: `agent_id` (a tool-less agent) or `tool_id` (a tool run with no action), either a `{ "ref": … }` to a resource in the same template. Only a change to `questions` archives a new version. Mirrors the deciders REST contract.
|
|
5114
5114
|
*/
|
|
5115
5115
|
type DeciderResourceProperties = {
|
|
5116
5116
|
/**
|
|
@@ -5126,7 +5126,7 @@ type DeciderResourceProperties = {
|
|
|
5126
5126
|
*/
|
|
5127
5127
|
agent_id?: string;
|
|
5128
5128
|
/**
|
|
5129
|
-
* The
|
|
5129
|
+
* The tool that answers, run with no action
|
|
5130
5130
|
*/
|
|
5131
5131
|
tool_id?: string;
|
|
5132
5132
|
/**
|
|
@@ -33944,7 +33944,7 @@ export declare class Deciders {
|
|
|
33944
33944
|
/**
|
|
33945
33945
|
* Create a decider
|
|
33946
33946
|
*
|
|
33947
|
-
* Creates a decider at version 1: a named question set and the backend that answers it, exactly one of `agent_id` and `tool_id`. Every question declares a finite answer space, validated here. The backend must be in the decider's project. An agent must carry no tool surface — no tool binding left active by `active_tool_ids` and no `knowledge_config.write_memory_store_id` — or the create is refused with `400 DECIDER_AGENT_NOT_TOOL_LESS`. A tool must
|
|
33947
|
+
* Creates a decider at version 1: a named question set and the backend that answers it, exactly one of `agent_id` and `tool_id`. Every question declares a finite answer space, validated here. The backend must be in the decider's project. An agent must carry no tool surface — no tool binding left active by `active_tool_ids` and no `knowledge_config.write_memory_store_id` — or the create is refused with `400 DECIDER_AGENT_NOT_TOOL_LESS`. A tool must run server-side with no `action` (not `client` or `mcp`) and must not pin `input` or `questions` in its `preset_parameters`, or the create is refused with `400 DECIDER_TOOL_NOT_CALLABLE`. A duplicate `name` in the project is `409 NAME_CONFLICT`.
|
|
33948
33948
|
*/
|
|
33949
33949
|
static createDecider<ThrowOnError extends boolean = false>(options: Options<CreateDeciderData, ThrowOnError>): RequestResult<CreateDeciderResponses, CreateDeciderErrors, ThrowOnError>;
|
|
33950
33950
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -3131,7 +3131,7 @@ type Decider = {
|
|
|
3131
3131
|
*/
|
|
3132
3132
|
agent_id?: string | null;
|
|
3133
3133
|
/**
|
|
3134
|
-
* The
|
|
3134
|
+
* The tool that answers, run with no action; null when an agent does
|
|
3135
3135
|
*/
|
|
3136
3136
|
tool_id?: string | null;
|
|
3137
3137
|
/**
|
|
@@ -3156,7 +3156,7 @@ type CreateDeciderRequest = {
|
|
|
3156
3156
|
*/
|
|
3157
3157
|
agent_id?: string;
|
|
3158
3158
|
/**
|
|
3159
|
-
*
|
|
3159
|
+
* A tool that answers, run with no action
|
|
3160
3160
|
*/
|
|
3161
3161
|
tool_id?: string;
|
|
3162
3162
|
questions: DeciderQuestions;
|
|
@@ -3237,7 +3237,7 @@ type CreateInlineDecisionRequest = {
|
|
|
3237
3237
|
*/
|
|
3238
3238
|
agent_id?: string;
|
|
3239
3239
|
/**
|
|
3240
|
-
*
|
|
3240
|
+
* A tool that answers, run with no action
|
|
3241
3241
|
*/
|
|
3242
3242
|
tool_id?: string;
|
|
3243
3243
|
questions: DeciderQuestions;
|
|
@@ -5110,7 +5110,7 @@ type GuardrailResourceProperties = {
|
|
|
5110
5110
|
context_mode?: 'merge' | 'replace' | null;
|
|
5111
5111
|
};
|
|
5112
5112
|
/**
|
|
5113
|
-
* Creates a decider — a versioned question set answered against a caller's input. Names exactly one backend: `agent_id` (a tool-less agent) or `tool_id` (
|
|
5113
|
+
* Creates a decider — a versioned question set answered against a caller's input. Names exactly one backend: `agent_id` (a tool-less agent) or `tool_id` (a tool run with no action), either a `{ "ref": … }` to a resource in the same template. Only a change to `questions` archives a new version. Mirrors the deciders REST contract.
|
|
5114
5114
|
*/
|
|
5115
5115
|
type DeciderResourceProperties = {
|
|
5116
5116
|
/**
|
|
@@ -5126,7 +5126,7 @@ type DeciderResourceProperties = {
|
|
|
5126
5126
|
*/
|
|
5127
5127
|
agent_id?: string;
|
|
5128
5128
|
/**
|
|
5129
|
-
* The
|
|
5129
|
+
* The tool that answers, run with no action
|
|
5130
5130
|
*/
|
|
5131
5131
|
tool_id?: string;
|
|
5132
5132
|
/**
|
|
@@ -33944,7 +33944,7 @@ export declare class Deciders {
|
|
|
33944
33944
|
/**
|
|
33945
33945
|
* Create a decider
|
|
33946
33946
|
*
|
|
33947
|
-
* Creates a decider at version 1: a named question set and the backend that answers it, exactly one of `agent_id` and `tool_id`. Every question declares a finite answer space, validated here. The backend must be in the decider's project. An agent must carry no tool surface — no tool binding left active by `active_tool_ids` and no `knowledge_config.write_memory_store_id` — or the create is refused with `400 DECIDER_AGENT_NOT_TOOL_LESS`. A tool must
|
|
33947
|
+
* Creates a decider at version 1: a named question set and the backend that answers it, exactly one of `agent_id` and `tool_id`. Every question declares a finite answer space, validated here. The backend must be in the decider's project. An agent must carry no tool surface — no tool binding left active by `active_tool_ids` and no `knowledge_config.write_memory_store_id` — or the create is refused with `400 DECIDER_AGENT_NOT_TOOL_LESS`. A tool must run server-side with no `action` (not `client` or `mcp`) and must not pin `input` or `questions` in its `preset_parameters`, or the create is refused with `400 DECIDER_TOOL_NOT_CALLABLE`. A duplicate `name` in the project is `409 NAME_CONFLICT`.
|
|
33948
33948
|
*/
|
|
33949
33949
|
static createDecider<ThrowOnError extends boolean = false>(options: Options<CreateDeciderData, ThrowOnError>): RequestResult<CreateDeciderResponses, CreateDeciderErrors, ThrowOnError>;
|
|
33950
33950
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -2213,7 +2213,7 @@ var Deciders = class {
|
|
|
2213
2213
|
/**
|
|
2214
2214
|
* Create a decider
|
|
2215
2215
|
*
|
|
2216
|
-
* Creates a decider at version 1: a named question set and the backend that answers it, exactly one of `agent_id` and `tool_id`. Every question declares a finite answer space, validated here. The backend must be in the decider's project. An agent must carry no tool surface — no tool binding left active by `active_tool_ids` and no `knowledge_config.write_memory_store_id` — or the create is refused with `400 DECIDER_AGENT_NOT_TOOL_LESS`. A tool must
|
|
2216
|
+
* Creates a decider at version 1: a named question set and the backend that answers it, exactly one of `agent_id` and `tool_id`. Every question declares a finite answer space, validated here. The backend must be in the decider's project. An agent must carry no tool surface — no tool binding left active by `active_tool_ids` and no `knowledge_config.write_memory_store_id` — or the create is refused with `400 DECIDER_AGENT_NOT_TOOL_LESS`. A tool must run server-side with no `action` (not `client` or `mcp`) and must not pin `input` or `questions` in its `preset_parameters`, or the create is refused with `400 DECIDER_TOOL_NOT_CALLABLE`. A duplicate `name` in the project is `409 NAME_CONFLICT`.
|
|
2217
2217
|
*/
|
|
2218
2218
|
static createDecider(options) {
|
|
2219
2219
|
return (options.client ?? client).post({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.220.
|
|
3
|
+
"version": "0.220.3",
|
|
4
4
|
"description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"naturali",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@hey-api/openapi-ts": "^0.99.0",
|
|
41
|
-
"@naturali/api": "0.220.
|
|
41
|
+
"@naturali/api": "0.220.3",
|
|
42
42
|
"@ttoss/openapi-codegen": "^0.10.0",
|
|
43
43
|
"@types/node": "^26.5.1",
|
|
44
44
|
"tsdown": "^0.23.0",
|