@naturali/cli 0.38.1 → 0.39.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.
Files changed (2) hide show
  1. package/dist/index.mjs +17 -3
  2. 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.38.1";
17
+ var version = "0.39.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), 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), 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) {
@@ -2433,6 +2433,13 @@ const routes = {
2433
2433
  "required": false,
2434
2434
  "type": "string",
2435
2435
  "in": "body"
2436
+ },
2437
+ {
2438
+ "name": "output_schema",
2439
+ "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",
2440
+ "required": false,
2441
+ "type": "object",
2442
+ "in": "body"
2436
2443
  }
2437
2444
  ]
2438
2445
  },
@@ -2461,7 +2468,7 @@ const routes = {
2461
2468
  "update-agent": {
2462
2469
  serviceClass: "Agents",
2463
2470
  operationId: "updateAgent",
2464
- description: "Change the bound provider, name, model, instructions, sampling/step config, attached tools (tool_ids/tool_choice), or the naturali-side status. At least one field is required.",
2471
+ 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.",
2465
2472
  moduleDocsUrl: "https://docs.naturali.ai/docs/modules/agents",
2466
2473
  httpMethod: "patch",
2467
2474
  pathParams: ["project_id", "agent_id"],
@@ -2544,6 +2551,13 @@ const routes = {
2544
2551
  "type": "string",
2545
2552
  "in": "body"
2546
2553
  },
2554
+ {
2555
+ "name": "output_schema",
2556
+ "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",
2557
+ "required": false,
2558
+ "type": "object",
2559
+ "in": "body"
2560
+ },
2547
2561
  {
2548
2562
  "name": "status",
2549
2563
  "description": "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.38.1",
3
+ "version": "0.39.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.38.1"
33
+ "@naturali/sdk": "0.39.0"
34
34
  },
35
35
  "scripts": {
36
36
  "generate": "tsx scripts/generate.ts",