@naturali/sdk 0.193.5 → 0.194.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 CHANGED
@@ -1078,6 +1078,16 @@ type Agent = {
1078
1078
  * Maximum number of recent messages to include in the context window sent to the model. When null, all messages are included.
1079
1079
  */
1080
1080
  max_context_messages?: number | null;
1081
+ /**
1082
+ * Maximum number of tokens the model may generate per step of a turn. A response that reaches it stops with `stop_reason` `length`. Null leaves the model's default.
1083
+ */
1084
+ max_output_tokens?: number | null;
1085
+ /**
1086
+ * How much the model reasons before answering. Translated per provider (Anthropic thinking, Gemini thinking config, OpenAI reasoning effort) against what the model supports; a model that cannot reason ignores it. `none` turns reasoning off where the model allows it. Reasoning tokens are metered as output. Null leaves the model's default.
1087
+ */
1088
+ reasoning?: {
1089
+ effort: 'none' | 'low' | 'medium' | 'high';
1090
+ } | null;
1081
1091
  /**
1082
1092
  * When true, only one open session per actor_id is allowed for this agent. Creating a second open session for the same actor returns 409.
1083
1093
  */
@@ -1139,7 +1149,7 @@ type AgentVersion = {
1139
1149
  */
1140
1150
  version?: number;
1141
1151
  /**
1142
- * The agent's configuration as it stood at this version: every mutable field of the `Agent` schema (`instructions`, `model`, `tool_bindings`, `max_steps`, `tool_choice`, `stop_conditions`, `active_tool_ids`, `step_rules`, `boundary_policy`, `temperature`, `knowledge_config`, `output_schema`, `max_context_messages`, `single_session_per_actor`, `on_approval_expiry`, `guardrail_ids`, `ai_provider_id`, `model_route_id`, `name`), and none of its identity or bookkeeping fields (`id`, `project_id`, `version`, `active_release`, timestamps).
1152
+ * The agent's configuration as it stood at this version: every mutable field of the `Agent` schema (`instructions`, `model`, `tool_bindings`, `max_steps`, `tool_choice`, `stop_conditions`, `active_tool_ids`, `step_rules`, `boundary_policy`, `temperature`, `knowledge_config`, `output_schema`, `max_context_messages`, `max_output_tokens`, `reasoning`, `single_session_per_actor`, `on_approval_expiry`, `guardrail_ids`, `ai_provider_id`, `model_route_id`, `name`), and none of its identity or bookkeeping fields (`id`, `project_id`, `version`, `active_release`, timestamps).
1143
1153
  *
1144
1154
  * Deliberately open rather than a fixed schema: an archive written by an earlier release of the runtime reflects the agent surface **of its own time**, so it may carry fields the current schema no longer defines, or lack ones it has since gained. Knowledge retrieval is not part of the snapshot — a version records which `knowledge_config` applied, while the documents and memory stores it resolves keep their own histories and are pinned at generation time.
1145
1155
  */
@@ -1312,6 +1322,16 @@ type CreateAgentRequest = {
1312
1322
  * Maximum number of recent messages included in the context window. Null means no limit.
1313
1323
  */
1314
1324
  max_context_messages?: number;
1325
+ /**
1326
+ * Maximum number of tokens the model may generate per step of a turn. A response that reaches it stops with `stop_reason` `length`. Null leaves the model's default.
1327
+ */
1328
+ max_output_tokens?: number | null;
1329
+ /**
1330
+ * How much the model reasons before answering. Translated per provider (Anthropic thinking, Gemini thinking config, OpenAI reasoning effort) against what the model supports; a model that cannot reason ignores it. `none` turns reasoning off where the model allows it. Reasoning tokens are metered as output. Null leaves the model's default.
1331
+ */
1332
+ reasoning?: {
1333
+ effort: 'none' | 'low' | 'medium' | 'high';
1334
+ } | null;
1315
1335
  /**
1316
1336
  * When true, only one open session per actor_id is allowed for this agent.
1317
1337
  */
@@ -1447,6 +1467,16 @@ type UpdateAgentRequest = {
1447
1467
  * Maximum number of recent messages included in the context window. Null means no limit.
1448
1468
  */
1449
1469
  max_context_messages?: number | null;
1470
+ /**
1471
+ * Maximum number of tokens the model may generate per step of a turn. A response that reaches it stops with `stop_reason` `length`. Null leaves the model's default.
1472
+ */
1473
+ max_output_tokens?: number | null;
1474
+ /**
1475
+ * How much the model reasons before answering. Translated per provider (Anthropic thinking, Gemini thinking config, OpenAI reasoning effort) against what the model supports; a model that cannot reason ignores it. `none` turns reasoning off where the model allows it. Reasoning tokens are metered as output. Null leaves the model's default.
1476
+ */
1477
+ reasoning?: {
1478
+ effort: 'none' | 'low' | 'medium' | 'high';
1479
+ } | null;
1450
1480
  /**
1451
1481
  * When true, only one open session per actor_id is allowed for this agent.
1452
1482
  */
@@ -2601,6 +2631,11 @@ type Channel = {
2601
2631
  application_id: string | null;
2602
2632
  modes: DiscordModes;
2603
2633
  default: ChannelDefaultAction;
2634
+ /**
2635
+ * The most recent messages each conversation's session sends the model, taking precedence over the agent's own `max_context_messages`. Null defers to the agent.
2636
+ *
2637
+ */
2638
+ max_context_messages?: number | null;
2604
2639
  /**
2605
2640
  * Whether an access token is on file (its value is never returned).
2606
2641
  */
@@ -2648,6 +2683,11 @@ type ChannelCreate = {
2648
2683
  */
2649
2684
  idempotency_key?: string;
2650
2685
  default: ChannelDefaultActionInput;
2686
+ /**
2687
+ * The most recent messages each conversation's session sends the model, taking precedence over the agent's own `max_context_messages`. An open conversation picks a change up on its next message. Null defers to the agent.
2688
+ *
2689
+ */
2690
+ max_context_messages?: number | null;
2651
2691
  channel?: 'whatsapp' | 'discord';
2652
2692
  /**
2653
2693
  * Required for `whatsapp`.
@@ -2707,6 +2747,11 @@ type WhatsAppSignupComplete = {
2707
2747
  */
2708
2748
  type ChannelUpdate = {
2709
2749
  default?: ChannelDefaultActionInput;
2750
+ /**
2751
+ * The most recent messages each conversation's session sends the model, taking precedence over the agent's own `max_context_messages`. An open conversation picks a change up on its next message. Null defers to the agent.
2752
+ *
2753
+ */
2754
+ max_context_messages?: number | null;
2710
2755
  /**
2711
2756
  * WhatsApp. Write-only. Replaces the stored credential.
2712
2757
  */
@@ -4102,6 +4147,16 @@ type AgentResourceProperties = {
4102
4147
  * Maximum number of recent messages to include in the context window sent to the model. When null, all messages are included.
4103
4148
  */
4104
4149
  max_context_messages?: number | null;
4150
+ /**
4151
+ * Maximum number of tokens the model may generate per step of a turn. A response that reaches it stops with `stop_reason` `length`. Null leaves the model's default.
4152
+ */
4153
+ max_output_tokens?: number | null;
4154
+ /**
4155
+ * How much the model reasons before answering. Translated per provider (Anthropic thinking, Gemini thinking config, OpenAI reasoning effort) against what the model supports; a model that cannot reason ignores it. `none` turns reasoning off where the model allows it. Reasoning tokens are metered as output. Null leaves the model's default.
4156
+ */
4157
+ reasoning?: {
4158
+ effort: 'none' | 'low' | 'medium' | 'high';
4159
+ } | null;
4105
4160
  /**
4106
4161
  * When true, only one open session per actor_id is allowed for this agent.
4107
4162
  */
@@ -4702,6 +4757,10 @@ type SessionResourceProperties = {
4702
4757
  * Number of seconds of inactivity after which the session expires. 0 means never expires.
4703
4758
  */
4704
4759
  inactivity_ttl_seconds?: number;
4760
+ /**
4761
+ * Maximum number of recent conversation messages sent to the model on each generation, taking precedence over the agent's. null defers to the agent.
4762
+ */
4763
+ max_context_messages?: number | null;
4705
4764
  /**
4706
4765
  * Optional context object passed to tool calls. Write-only: no read of a session returns it.
4707
4766
  */
@@ -7742,6 +7801,11 @@ type SessionRecord = {
7742
7801
  *
7743
7802
  */
7744
7803
  message_delay_seconds?: number | null;
7804
+ /**
7805
+ * Maximum number of recent conversation messages sent to the model on each generation. Takes precedence over the agent's `max_context_messages`; null defers to it. A fork keeps its parent's value.
7806
+ *
7807
+ */
7808
+ max_context_messages?: number | null;
7745
7809
  /**
7746
7810
  * Timestamp of the last activity on the session (message added or response generated).
7747
7811
  */
@@ -7822,6 +7886,11 @@ type CreateSessionRequest = {
7822
7886
  *
7823
7887
  */
7824
7888
  message_delay_seconds?: number | null;
7889
+ /**
7890
+ * Maximum number of recent conversation messages sent to the model on each generation, taking precedence over the agent's `max_context_messages`. null or absent defers to the agent.
7891
+ *
7892
+ */
7893
+ max_context_messages?: number | null;
7825
7894
  };
7826
7895
  type UpdateSessionRequest = {
7827
7896
  /**
@@ -7852,6 +7921,11 @@ type UpdateSessionRequest = {
7852
7921
  *
7853
7922
  */
7854
7923
  message_delay_seconds?: number | null;
7924
+ /**
7925
+ * Maximum number of recent conversation messages sent to the model on each generation, taking precedence over the agent's `max_context_messages`. Set to null to defer to the agent.
7926
+ *
7927
+ */
7928
+ max_context_messages?: number | null;
7855
7929
  };
7856
7930
  type AddSessionMessageRequest = {
7857
7931
  /**
package/dist/index.d.mts CHANGED
@@ -1078,6 +1078,16 @@ type Agent = {
1078
1078
  * Maximum number of recent messages to include in the context window sent to the model. When null, all messages are included.
1079
1079
  */
1080
1080
  max_context_messages?: number | null;
1081
+ /**
1082
+ * Maximum number of tokens the model may generate per step of a turn. A response that reaches it stops with `stop_reason` `length`. Null leaves the model's default.
1083
+ */
1084
+ max_output_tokens?: number | null;
1085
+ /**
1086
+ * How much the model reasons before answering. Translated per provider (Anthropic thinking, Gemini thinking config, OpenAI reasoning effort) against what the model supports; a model that cannot reason ignores it. `none` turns reasoning off where the model allows it. Reasoning tokens are metered as output. Null leaves the model's default.
1087
+ */
1088
+ reasoning?: {
1089
+ effort: 'none' | 'low' | 'medium' | 'high';
1090
+ } | null;
1081
1091
  /**
1082
1092
  * When true, only one open session per actor_id is allowed for this agent. Creating a second open session for the same actor returns 409.
1083
1093
  */
@@ -1139,7 +1149,7 @@ type AgentVersion = {
1139
1149
  */
1140
1150
  version?: number;
1141
1151
  /**
1142
- * The agent's configuration as it stood at this version: every mutable field of the `Agent` schema (`instructions`, `model`, `tool_bindings`, `max_steps`, `tool_choice`, `stop_conditions`, `active_tool_ids`, `step_rules`, `boundary_policy`, `temperature`, `knowledge_config`, `output_schema`, `max_context_messages`, `single_session_per_actor`, `on_approval_expiry`, `guardrail_ids`, `ai_provider_id`, `model_route_id`, `name`), and none of its identity or bookkeeping fields (`id`, `project_id`, `version`, `active_release`, timestamps).
1152
+ * The agent's configuration as it stood at this version: every mutable field of the `Agent` schema (`instructions`, `model`, `tool_bindings`, `max_steps`, `tool_choice`, `stop_conditions`, `active_tool_ids`, `step_rules`, `boundary_policy`, `temperature`, `knowledge_config`, `output_schema`, `max_context_messages`, `max_output_tokens`, `reasoning`, `single_session_per_actor`, `on_approval_expiry`, `guardrail_ids`, `ai_provider_id`, `model_route_id`, `name`), and none of its identity or bookkeeping fields (`id`, `project_id`, `version`, `active_release`, timestamps).
1143
1153
  *
1144
1154
  * Deliberately open rather than a fixed schema: an archive written by an earlier release of the runtime reflects the agent surface **of its own time**, so it may carry fields the current schema no longer defines, or lack ones it has since gained. Knowledge retrieval is not part of the snapshot — a version records which `knowledge_config` applied, while the documents and memory stores it resolves keep their own histories and are pinned at generation time.
1145
1155
  */
@@ -1312,6 +1322,16 @@ type CreateAgentRequest = {
1312
1322
  * Maximum number of recent messages included in the context window. Null means no limit.
1313
1323
  */
1314
1324
  max_context_messages?: number;
1325
+ /**
1326
+ * Maximum number of tokens the model may generate per step of a turn. A response that reaches it stops with `stop_reason` `length`. Null leaves the model's default.
1327
+ */
1328
+ max_output_tokens?: number | null;
1329
+ /**
1330
+ * How much the model reasons before answering. Translated per provider (Anthropic thinking, Gemini thinking config, OpenAI reasoning effort) against what the model supports; a model that cannot reason ignores it. `none` turns reasoning off where the model allows it. Reasoning tokens are metered as output. Null leaves the model's default.
1331
+ */
1332
+ reasoning?: {
1333
+ effort: 'none' | 'low' | 'medium' | 'high';
1334
+ } | null;
1315
1335
  /**
1316
1336
  * When true, only one open session per actor_id is allowed for this agent.
1317
1337
  */
@@ -1447,6 +1467,16 @@ type UpdateAgentRequest = {
1447
1467
  * Maximum number of recent messages included in the context window. Null means no limit.
1448
1468
  */
1449
1469
  max_context_messages?: number | null;
1470
+ /**
1471
+ * Maximum number of tokens the model may generate per step of a turn. A response that reaches it stops with `stop_reason` `length`. Null leaves the model's default.
1472
+ */
1473
+ max_output_tokens?: number | null;
1474
+ /**
1475
+ * How much the model reasons before answering. Translated per provider (Anthropic thinking, Gemini thinking config, OpenAI reasoning effort) against what the model supports; a model that cannot reason ignores it. `none` turns reasoning off where the model allows it. Reasoning tokens are metered as output. Null leaves the model's default.
1476
+ */
1477
+ reasoning?: {
1478
+ effort: 'none' | 'low' | 'medium' | 'high';
1479
+ } | null;
1450
1480
  /**
1451
1481
  * When true, only one open session per actor_id is allowed for this agent.
1452
1482
  */
@@ -2601,6 +2631,11 @@ type Channel = {
2601
2631
  application_id: string | null;
2602
2632
  modes: DiscordModes;
2603
2633
  default: ChannelDefaultAction;
2634
+ /**
2635
+ * The most recent messages each conversation's session sends the model, taking precedence over the agent's own `max_context_messages`. Null defers to the agent.
2636
+ *
2637
+ */
2638
+ max_context_messages?: number | null;
2604
2639
  /**
2605
2640
  * Whether an access token is on file (its value is never returned).
2606
2641
  */
@@ -2648,6 +2683,11 @@ type ChannelCreate = {
2648
2683
  */
2649
2684
  idempotency_key?: string;
2650
2685
  default: ChannelDefaultActionInput;
2686
+ /**
2687
+ * The most recent messages each conversation's session sends the model, taking precedence over the agent's own `max_context_messages`. An open conversation picks a change up on its next message. Null defers to the agent.
2688
+ *
2689
+ */
2690
+ max_context_messages?: number | null;
2651
2691
  channel?: 'whatsapp' | 'discord';
2652
2692
  /**
2653
2693
  * Required for `whatsapp`.
@@ -2707,6 +2747,11 @@ type WhatsAppSignupComplete = {
2707
2747
  */
2708
2748
  type ChannelUpdate = {
2709
2749
  default?: ChannelDefaultActionInput;
2750
+ /**
2751
+ * The most recent messages each conversation's session sends the model, taking precedence over the agent's own `max_context_messages`. An open conversation picks a change up on its next message. Null defers to the agent.
2752
+ *
2753
+ */
2754
+ max_context_messages?: number | null;
2710
2755
  /**
2711
2756
  * WhatsApp. Write-only. Replaces the stored credential.
2712
2757
  */
@@ -4102,6 +4147,16 @@ type AgentResourceProperties = {
4102
4147
  * Maximum number of recent messages to include in the context window sent to the model. When null, all messages are included.
4103
4148
  */
4104
4149
  max_context_messages?: number | null;
4150
+ /**
4151
+ * Maximum number of tokens the model may generate per step of a turn. A response that reaches it stops with `stop_reason` `length`. Null leaves the model's default.
4152
+ */
4153
+ max_output_tokens?: number | null;
4154
+ /**
4155
+ * How much the model reasons before answering. Translated per provider (Anthropic thinking, Gemini thinking config, OpenAI reasoning effort) against what the model supports; a model that cannot reason ignores it. `none` turns reasoning off where the model allows it. Reasoning tokens are metered as output. Null leaves the model's default.
4156
+ */
4157
+ reasoning?: {
4158
+ effort: 'none' | 'low' | 'medium' | 'high';
4159
+ } | null;
4105
4160
  /**
4106
4161
  * When true, only one open session per actor_id is allowed for this agent.
4107
4162
  */
@@ -4702,6 +4757,10 @@ type SessionResourceProperties = {
4702
4757
  * Number of seconds of inactivity after which the session expires. 0 means never expires.
4703
4758
  */
4704
4759
  inactivity_ttl_seconds?: number;
4760
+ /**
4761
+ * Maximum number of recent conversation messages sent to the model on each generation, taking precedence over the agent's. null defers to the agent.
4762
+ */
4763
+ max_context_messages?: number | null;
4705
4764
  /**
4706
4765
  * Optional context object passed to tool calls. Write-only: no read of a session returns it.
4707
4766
  */
@@ -7742,6 +7801,11 @@ type SessionRecord = {
7742
7801
  *
7743
7802
  */
7744
7803
  message_delay_seconds?: number | null;
7804
+ /**
7805
+ * Maximum number of recent conversation messages sent to the model on each generation. Takes precedence over the agent's `max_context_messages`; null defers to it. A fork keeps its parent's value.
7806
+ *
7807
+ */
7808
+ max_context_messages?: number | null;
7745
7809
  /**
7746
7810
  * Timestamp of the last activity on the session (message added or response generated).
7747
7811
  */
@@ -7822,6 +7886,11 @@ type CreateSessionRequest = {
7822
7886
  *
7823
7887
  */
7824
7888
  message_delay_seconds?: number | null;
7889
+ /**
7890
+ * Maximum number of recent conversation messages sent to the model on each generation, taking precedence over the agent's `max_context_messages`. null or absent defers to the agent.
7891
+ *
7892
+ */
7893
+ max_context_messages?: number | null;
7825
7894
  };
7826
7895
  type UpdateSessionRequest = {
7827
7896
  /**
@@ -7852,6 +7921,11 @@ type UpdateSessionRequest = {
7852
7921
  *
7853
7922
  */
7854
7923
  message_delay_seconds?: number | null;
7924
+ /**
7925
+ * Maximum number of recent conversation messages sent to the model on each generation, taking precedence over the agent's `max_context_messages`. Set to null to defer to the agent.
7926
+ *
7927
+ */
7928
+ max_context_messages?: number | null;
7855
7929
  };
7856
7930
  type AddSessionMessageRequest = {
7857
7931
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.193.5",
3
+ "version": "0.194.0",
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.193.5",
41
+ "@naturali/api": "0.194.0",
42
42
  "@ttoss/openapi-codegen": "^0.5.0",
43
43
  "@types/node": "^26.5.1",
44
44
  "tsdown": "^0.23.0",