@soat/sdk 0.77.1 → 0.78.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 +60 -1
- package/dist/index.d.mts +60 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -526,6 +526,16 @@ type Agent = {
|
|
|
526
526
|
* Maximum number of recent messages to include in the context window sent to the model. When null, all messages are included.
|
|
527
527
|
*/
|
|
528
528
|
max_context_messages?: number | null;
|
|
529
|
+
/**
|
|
530
|
+
* 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.
|
|
531
|
+
*/
|
|
532
|
+
max_output_tokens?: number | null;
|
|
533
|
+
/**
|
|
534
|
+
* 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.
|
|
535
|
+
*/
|
|
536
|
+
reasoning?: {
|
|
537
|
+
effort: 'none' | 'low' | 'medium' | 'high';
|
|
538
|
+
} | null;
|
|
529
539
|
/**
|
|
530
540
|
* 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.
|
|
531
541
|
*/
|
|
@@ -587,7 +597,7 @@ type AgentVersion = {
|
|
|
587
597
|
*/
|
|
588
598
|
version?: number;
|
|
589
599
|
/**
|
|
590
|
-
* 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).
|
|
600
|
+
* 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).
|
|
591
601
|
*
|
|
592
602
|
* Deliberately open rather than a fixed schema: an archive written by an earlier release of SOAT 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.
|
|
593
603
|
*/
|
|
@@ -764,6 +774,16 @@ type CreateAgentRequest = {
|
|
|
764
774
|
* Maximum number of recent messages included in the context window. Null means no limit.
|
|
765
775
|
*/
|
|
766
776
|
max_context_messages?: number;
|
|
777
|
+
/**
|
|
778
|
+
* 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.
|
|
779
|
+
*/
|
|
780
|
+
max_output_tokens?: number | null;
|
|
781
|
+
/**
|
|
782
|
+
* 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.
|
|
783
|
+
*/
|
|
784
|
+
reasoning?: {
|
|
785
|
+
effort: 'none' | 'low' | 'medium' | 'high';
|
|
786
|
+
} | null;
|
|
767
787
|
/**
|
|
768
788
|
* When true, only one open session per actor_id is allowed for this agent.
|
|
769
789
|
*/
|
|
@@ -899,6 +919,16 @@ type UpdateAgentRequest = {
|
|
|
899
919
|
* Maximum number of recent messages included in the context window. Null means no limit.
|
|
900
920
|
*/
|
|
901
921
|
max_context_messages?: number | null;
|
|
922
|
+
/**
|
|
923
|
+
* 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.
|
|
924
|
+
*/
|
|
925
|
+
max_output_tokens?: number | null;
|
|
926
|
+
/**
|
|
927
|
+
* 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.
|
|
928
|
+
*/
|
|
929
|
+
reasoning?: {
|
|
930
|
+
effort: 'none' | 'low' | 'medium' | 'high';
|
|
931
|
+
} | null;
|
|
902
932
|
/**
|
|
903
933
|
* When true, only one open session per actor_id is allowed for this agent.
|
|
904
934
|
*/
|
|
@@ -2942,6 +2972,16 @@ type AgentResourceProperties = {
|
|
|
2942
2972
|
* Maximum number of recent messages to include in the context window sent to the model. When null, all messages are included.
|
|
2943
2973
|
*/
|
|
2944
2974
|
max_context_messages?: number | null;
|
|
2975
|
+
/**
|
|
2976
|
+
* 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.
|
|
2977
|
+
*/
|
|
2978
|
+
max_output_tokens?: number | null;
|
|
2979
|
+
/**
|
|
2980
|
+
* 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.
|
|
2981
|
+
*/
|
|
2982
|
+
reasoning?: {
|
|
2983
|
+
effort: 'none' | 'low' | 'medium' | 'high';
|
|
2984
|
+
} | null;
|
|
2945
2985
|
/**
|
|
2946
2986
|
* When true, only one open session per actor_id is allowed for this agent.
|
|
2947
2987
|
*/
|
|
@@ -3671,6 +3711,10 @@ type SessionResourceProperties = {
|
|
|
3671
3711
|
* Number of seconds of inactivity after which the session expires. 0 means never expires.
|
|
3672
3712
|
*/
|
|
3673
3713
|
inactivity_ttl_seconds?: number;
|
|
3714
|
+
/**
|
|
3715
|
+
* Maximum number of recent conversation messages sent to the model on each generation, taking precedence over the agent's. null defers to the agent.
|
|
3716
|
+
*/
|
|
3717
|
+
max_context_messages?: number | null;
|
|
3674
3718
|
/**
|
|
3675
3719
|
* Optional context object passed to tool calls. Write-only: no read of a session returns it.
|
|
3676
3720
|
*/
|
|
@@ -6251,6 +6295,11 @@ type SessionRecord = {
|
|
|
6251
6295
|
*
|
|
6252
6296
|
*/
|
|
6253
6297
|
message_delay_seconds?: number | null;
|
|
6298
|
+
/**
|
|
6299
|
+
* 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.
|
|
6300
|
+
*
|
|
6301
|
+
*/
|
|
6302
|
+
max_context_messages?: number | null;
|
|
6254
6303
|
/**
|
|
6255
6304
|
* Timestamp of the last activity on the session (message added or response generated).
|
|
6256
6305
|
*/
|
|
@@ -6331,6 +6380,11 @@ type CreateSessionRequest = {
|
|
|
6331
6380
|
*
|
|
6332
6381
|
*/
|
|
6333
6382
|
message_delay_seconds?: number | null;
|
|
6383
|
+
/**
|
|
6384
|
+
* 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.
|
|
6385
|
+
*
|
|
6386
|
+
*/
|
|
6387
|
+
max_context_messages?: number | null;
|
|
6334
6388
|
};
|
|
6335
6389
|
type UpdateSessionRequest = {
|
|
6336
6390
|
/**
|
|
@@ -6361,6 +6415,11 @@ type UpdateSessionRequest = {
|
|
|
6361
6415
|
*
|
|
6362
6416
|
*/
|
|
6363
6417
|
message_delay_seconds?: number | null;
|
|
6418
|
+
/**
|
|
6419
|
+
* 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.
|
|
6420
|
+
*
|
|
6421
|
+
*/
|
|
6422
|
+
max_context_messages?: number | null;
|
|
6364
6423
|
};
|
|
6365
6424
|
type AddSessionMessageRequest = {
|
|
6366
6425
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -526,6 +526,16 @@ type Agent = {
|
|
|
526
526
|
* Maximum number of recent messages to include in the context window sent to the model. When null, all messages are included.
|
|
527
527
|
*/
|
|
528
528
|
max_context_messages?: number | null;
|
|
529
|
+
/**
|
|
530
|
+
* 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.
|
|
531
|
+
*/
|
|
532
|
+
max_output_tokens?: number | null;
|
|
533
|
+
/**
|
|
534
|
+
* 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.
|
|
535
|
+
*/
|
|
536
|
+
reasoning?: {
|
|
537
|
+
effort: 'none' | 'low' | 'medium' | 'high';
|
|
538
|
+
} | null;
|
|
529
539
|
/**
|
|
530
540
|
* 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.
|
|
531
541
|
*/
|
|
@@ -587,7 +597,7 @@ type AgentVersion = {
|
|
|
587
597
|
*/
|
|
588
598
|
version?: number;
|
|
589
599
|
/**
|
|
590
|
-
* 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).
|
|
600
|
+
* 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).
|
|
591
601
|
*
|
|
592
602
|
* Deliberately open rather than a fixed schema: an archive written by an earlier release of SOAT 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.
|
|
593
603
|
*/
|
|
@@ -764,6 +774,16 @@ type CreateAgentRequest = {
|
|
|
764
774
|
* Maximum number of recent messages included in the context window. Null means no limit.
|
|
765
775
|
*/
|
|
766
776
|
max_context_messages?: number;
|
|
777
|
+
/**
|
|
778
|
+
* 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.
|
|
779
|
+
*/
|
|
780
|
+
max_output_tokens?: number | null;
|
|
781
|
+
/**
|
|
782
|
+
* 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.
|
|
783
|
+
*/
|
|
784
|
+
reasoning?: {
|
|
785
|
+
effort: 'none' | 'low' | 'medium' | 'high';
|
|
786
|
+
} | null;
|
|
767
787
|
/**
|
|
768
788
|
* When true, only one open session per actor_id is allowed for this agent.
|
|
769
789
|
*/
|
|
@@ -899,6 +919,16 @@ type UpdateAgentRequest = {
|
|
|
899
919
|
* Maximum number of recent messages included in the context window. Null means no limit.
|
|
900
920
|
*/
|
|
901
921
|
max_context_messages?: number | null;
|
|
922
|
+
/**
|
|
923
|
+
* 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.
|
|
924
|
+
*/
|
|
925
|
+
max_output_tokens?: number | null;
|
|
926
|
+
/**
|
|
927
|
+
* 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.
|
|
928
|
+
*/
|
|
929
|
+
reasoning?: {
|
|
930
|
+
effort: 'none' | 'low' | 'medium' | 'high';
|
|
931
|
+
} | null;
|
|
902
932
|
/**
|
|
903
933
|
* When true, only one open session per actor_id is allowed for this agent.
|
|
904
934
|
*/
|
|
@@ -2942,6 +2972,16 @@ type AgentResourceProperties = {
|
|
|
2942
2972
|
* Maximum number of recent messages to include in the context window sent to the model. When null, all messages are included.
|
|
2943
2973
|
*/
|
|
2944
2974
|
max_context_messages?: number | null;
|
|
2975
|
+
/**
|
|
2976
|
+
* 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.
|
|
2977
|
+
*/
|
|
2978
|
+
max_output_tokens?: number | null;
|
|
2979
|
+
/**
|
|
2980
|
+
* 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.
|
|
2981
|
+
*/
|
|
2982
|
+
reasoning?: {
|
|
2983
|
+
effort: 'none' | 'low' | 'medium' | 'high';
|
|
2984
|
+
} | null;
|
|
2945
2985
|
/**
|
|
2946
2986
|
* When true, only one open session per actor_id is allowed for this agent.
|
|
2947
2987
|
*/
|
|
@@ -3671,6 +3711,10 @@ type SessionResourceProperties = {
|
|
|
3671
3711
|
* Number of seconds of inactivity after which the session expires. 0 means never expires.
|
|
3672
3712
|
*/
|
|
3673
3713
|
inactivity_ttl_seconds?: number;
|
|
3714
|
+
/**
|
|
3715
|
+
* Maximum number of recent conversation messages sent to the model on each generation, taking precedence over the agent's. null defers to the agent.
|
|
3716
|
+
*/
|
|
3717
|
+
max_context_messages?: number | null;
|
|
3674
3718
|
/**
|
|
3675
3719
|
* Optional context object passed to tool calls. Write-only: no read of a session returns it.
|
|
3676
3720
|
*/
|
|
@@ -6251,6 +6295,11 @@ type SessionRecord = {
|
|
|
6251
6295
|
*
|
|
6252
6296
|
*/
|
|
6253
6297
|
message_delay_seconds?: number | null;
|
|
6298
|
+
/**
|
|
6299
|
+
* 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.
|
|
6300
|
+
*
|
|
6301
|
+
*/
|
|
6302
|
+
max_context_messages?: number | null;
|
|
6254
6303
|
/**
|
|
6255
6304
|
* Timestamp of the last activity on the session (message added or response generated).
|
|
6256
6305
|
*/
|
|
@@ -6331,6 +6380,11 @@ type CreateSessionRequest = {
|
|
|
6331
6380
|
*
|
|
6332
6381
|
*/
|
|
6333
6382
|
message_delay_seconds?: number | null;
|
|
6383
|
+
/**
|
|
6384
|
+
* 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.
|
|
6385
|
+
*
|
|
6386
|
+
*/
|
|
6387
|
+
max_context_messages?: number | null;
|
|
6334
6388
|
};
|
|
6335
6389
|
type UpdateSessionRequest = {
|
|
6336
6390
|
/**
|
|
@@ -6361,6 +6415,11 @@ type UpdateSessionRequest = {
|
|
|
6361
6415
|
*
|
|
6362
6416
|
*/
|
|
6363
6417
|
message_delay_seconds?: number | null;
|
|
6418
|
+
/**
|
|
6419
|
+
* 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.
|
|
6420
|
+
*
|
|
6421
|
+
*/
|
|
6422
|
+
max_context_messages?: number | null;
|
|
6364
6423
|
};
|
|
6365
6424
|
type AddSessionMessageRequest = {
|
|
6366
6425
|
/**
|