@naturali/cli 0.44.1 → 0.45.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.mjs +17 -3
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
14
14
|
};
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region package.json
|
|
17
|
-
var version = "0.
|
|
17
|
+
var version = "0.45.0";
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
20
20
|
const jsonBodySerializer = { bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value) };
|
|
@@ -672,7 +672,7 @@ var Agents = class {
|
|
|
672
672
|
/**
|
|
673
673
|
* Update an agent
|
|
674
674
|
*
|
|
675
|
-
* Change the bound provider, name, model, instructions, sampling/step config, attached tools (tool_ids/tool_choice), the structured-output schema (output_schema), or the naturali-side status. At least one field is required.
|
|
675
|
+
* Change the bound provider, name, model, instructions, sampling/step config, attached tools (tool_ids/tool_choice/step_rules), the structured-output schema (output_schema), or the naturali-side status. At least one field is required.
|
|
676
676
|
*
|
|
677
677
|
*/
|
|
678
678
|
static updateAgent(options) {
|
|
@@ -2700,6 +2700,13 @@ const routes = {
|
|
|
2700
2700
|
"type": "string",
|
|
2701
2701
|
"in": "body"
|
|
2702
2702
|
},
|
|
2703
|
+
{
|
|
2704
|
+
"name": "step_rules",
|
|
2705
|
+
"description": "Per-step overrides of `tool_choice` (and, implicitly, which tools are active), applied on top of the agent's own `tool_choice` for the step number they name. The overall `tool_choice` otherwise governs every step of the run, with no relaxation once a tool has been called — the way to force a tool call on the first step without forcing one on every later step too (which runs the full `max_steps` before it can stop) is a rule for `step: 1` only. Null (the default) leaves it unset.\n",
|
|
2706
|
+
"required": false,
|
|
2707
|
+
"type": "array",
|
|
2708
|
+
"in": "body"
|
|
2709
|
+
},
|
|
2703
2710
|
{
|
|
2704
2711
|
"name": "output_schema",
|
|
2705
2712
|
"description": "JSON Schema describing the structured object the model must return. When set, a non-streaming generation is constrained to it and the parsed value comes back as `object` on the generation result. Omit (the default) to leave the output unconstrained. Streaming generations are unaffected.\n",
|
|
@@ -2734,7 +2741,7 @@ const routes = {
|
|
|
2734
2741
|
"update-agent": {
|
|
2735
2742
|
serviceClass: "Agents",
|
|
2736
2743
|
operationId: "updateAgent",
|
|
2737
|
-
description: "Change the bound provider, name, model, instructions, sampling/step config, attached tools (tool_ids/tool_choice), the structured-output schema (output_schema), or the naturali-side status. At least one field is required.",
|
|
2744
|
+
description: "Change the bound provider, name, model, instructions, sampling/step config, attached tools (tool_ids/tool_choice/step_rules), the structured-output schema (output_schema), or the naturali-side status. At least one field is required.",
|
|
2738
2745
|
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/agents",
|
|
2739
2746
|
httpMethod: "patch",
|
|
2740
2747
|
pathParams: ["project_id", "agent_id"],
|
|
@@ -2817,6 +2824,13 @@ const routes = {
|
|
|
2817
2824
|
"type": "string",
|
|
2818
2825
|
"in": "body"
|
|
2819
2826
|
},
|
|
2827
|
+
{
|
|
2828
|
+
"name": "step_rules",
|
|
2829
|
+
"description": "Per-step overrides of `tool_choice` (and, implicitly, which tools are active), applied on top of the agent's own `tool_choice` for the step number they name. The overall `tool_choice` otherwise governs every step of the run, with no relaxation once a tool has been called — the way to force a tool call on the first step without forcing one on every later step too (which runs the full `max_steps` before it can stop) is a rule for `step: 1` only. Null (the default) leaves it unset.\n",
|
|
2830
|
+
"required": false,
|
|
2831
|
+
"type": "array",
|
|
2832
|
+
"in": "body"
|
|
2833
|
+
},
|
|
2820
2834
|
{
|
|
2821
2835
|
"name": "output_schema",
|
|
2822
2836
|
"description": "Replace the agent's structured-output schema. An object constrains non-streaming generations to it; `null` clears it and leaves the output unconstrained.\n",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.45.0",
|
|
4
4
|
"description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"tsx": "^4.23.1",
|
|
31
31
|
"typescript": "~6.0.3",
|
|
32
32
|
"vitest": "^4.1.10",
|
|
33
|
-
"@naturali/sdk": "0.
|
|
33
|
+
"@naturali/sdk": "0.45.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"generate": "tsx scripts/generate.ts",
|