@soat/sdk 0.31.0 → 0.32.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.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 +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3655,7 +3655,7 @@ var Tools = class {
|
|
|
3655
3655
|
*
|
|
3656
3656
|
* Directly invokes a tool and returns its output. Supported for `http`, `builtin`, `mcp`, and `pipeline` tools. `client` tools cannot be invoked server-side and will return 422. A `pipeline` tool runs its declared steps in order and returns the mapped `output` (or the last step's output); `action` is ignored and `input` is the pipeline input.
|
|
3657
3657
|
* For `builtin` and `mcp` tools the `action` field is required and identifies which action (SOAT) or tool name (MCP) to invoke. For `http` tools `action` is ignored. When a `builtin` or `mcp` tool declares an `actions` allowlist, an action outside it is rejected with `400 VALIDATION_FAILED` ("not available on this tool") before any outbound request is made.
|
|
3658
|
-
* `preset_parameters` stored on the tool are
|
|
3658
|
+
* `preset_parameters` stored on the tool are pinned over the caller-supplied `input` before execution: a key the tool presets keeps its preset value even when `input` sets it. Keys the presets do not name are taken from `input` as sent.
|
|
3659
3659
|
*
|
|
3660
3660
|
*/
|
|
3661
3661
|
static callTool(options) {
|
package/dist/index.d.cts
CHANGED
|
@@ -5366,7 +5366,7 @@ type Tool = {
|
|
|
5366
5366
|
*/
|
|
5367
5367
|
context_keys?: Array<string> | null;
|
|
5368
5368
|
/**
|
|
5369
|
-
* Fixed parameters
|
|
5369
|
+
* Fixed parameters pinned on every call this tool makes, whatever its type. Keys matching fields in the input schema are removed from the schema shown to the model, and a pinned value wins over one the model or a direct caller supplies for the same key.
|
|
5370
5370
|
*/
|
|
5371
5371
|
preset_parameters?: {
|
|
5372
5372
|
[key: string]: unknown;
|
|
@@ -5448,7 +5448,7 @@ type CreateToolRequest = {
|
|
|
5448
5448
|
*/
|
|
5449
5449
|
context_keys?: Array<string> | null;
|
|
5450
5450
|
/**
|
|
5451
|
-
* Fixed parameters
|
|
5451
|
+
* Fixed parameters pinned on every call this tool makes, whatever its type. Keys matching fields in the input schema are removed from the schema shown to the model, and a pinned value wins over one the model or a direct caller supplies for the same key.
|
|
5452
5452
|
*/
|
|
5453
5453
|
preset_parameters?: {
|
|
5454
5454
|
[key: string]: unknown;
|
|
@@ -5512,7 +5512,7 @@ type UpdateToolRequest = {
|
|
|
5512
5512
|
*/
|
|
5513
5513
|
context_keys?: Array<string> | null;
|
|
5514
5514
|
/**
|
|
5515
|
-
* Fixed parameters
|
|
5515
|
+
* Fixed parameters pinned on every call this tool makes, whatever its type. Keys matching fields in the input schema are removed from the schema shown to the model, and a pinned value wins over one the model or a direct caller supplies for the same key.
|
|
5516
5516
|
*/
|
|
5517
5517
|
preset_parameters?: {
|
|
5518
5518
|
[key: string]: unknown;
|
|
@@ -5541,7 +5541,7 @@ type CallToolRequest = {
|
|
|
5541
5541
|
*/
|
|
5542
5542
|
action?: string;
|
|
5543
5543
|
/**
|
|
5544
|
-
* Input parameters for the tool call. These are merged with the tool's `preset_parameters` before execution
|
|
5544
|
+
* Input parameters for the tool call. These are merged with the tool's `preset_parameters` before execution; a preset value wins over the same key sent here.
|
|
5545
5545
|
*
|
|
5546
5546
|
*/
|
|
5547
5547
|
input?: {
|
|
@@ -6046,7 +6046,7 @@ type UsageReceipt = {
|
|
|
6046
6046
|
provider?: string;
|
|
6047
6047
|
model?: string;
|
|
6048
6048
|
/**
|
|
6049
|
-
* Orchestration node that produced the event. On a run receipt every line carries it — an `agent` node's `llm_tokens` line and the `compute_execution` line of each node execution alike — so grouping the lines by `node_id` gives the per-node cost the receipt total alone hides.
|
|
6049
|
+
* Orchestration node that produced the event. On a run receipt every line carries it — an `agent` node's `llm_tokens` line and the `compute_execution` line of each node execution alike — so grouping the lines by `node_id` gives the per-node cost the receipt total alone hides. A retried node contributes one line per attempt, all under the same `node_id` — the event records no attempt number — which is the intended reading for spend: a retry is real money. Null when no node produced the event (a standalone generation, a run-level meter).
|
|
6050
6050
|
*
|
|
6051
6051
|
*/
|
|
6052
6052
|
node_id?: string | null;
|
|
@@ -18526,7 +18526,7 @@ declare class Tools {
|
|
|
18526
18526
|
*
|
|
18527
18527
|
* Directly invokes a tool and returns its output. Supported for `http`, `builtin`, `mcp`, and `pipeline` tools. `client` tools cannot be invoked server-side and will return 422. A `pipeline` tool runs its declared steps in order and returns the mapped `output` (or the last step's output); `action` is ignored and `input` is the pipeline input.
|
|
18528
18528
|
* For `builtin` and `mcp` tools the `action` field is required and identifies which action (SOAT) or tool name (MCP) to invoke. For `http` tools `action` is ignored. When a `builtin` or `mcp` tool declares an `actions` allowlist, an action outside it is rejected with `400 VALIDATION_FAILED` ("not available on this tool") before any outbound request is made.
|
|
18529
|
-
* `preset_parameters` stored on the tool are
|
|
18529
|
+
* `preset_parameters` stored on the tool are pinned over the caller-supplied `input` before execution: a key the tool presets keeps its preset value even when `input` sets it. Keys the presets do not name are taken from `input` as sent.
|
|
18530
18530
|
*
|
|
18531
18531
|
*/
|
|
18532
18532
|
static callTool<ThrowOnError extends boolean = false>(options: Options<CallToolData, ThrowOnError>): RequestResult<CallToolResponses, CallToolErrors, ThrowOnError>;
|
package/dist/index.d.mts
CHANGED
|
@@ -5366,7 +5366,7 @@ type Tool = {
|
|
|
5366
5366
|
*/
|
|
5367
5367
|
context_keys?: Array<string> | null;
|
|
5368
5368
|
/**
|
|
5369
|
-
* Fixed parameters
|
|
5369
|
+
* Fixed parameters pinned on every call this tool makes, whatever its type. Keys matching fields in the input schema are removed from the schema shown to the model, and a pinned value wins over one the model or a direct caller supplies for the same key.
|
|
5370
5370
|
*/
|
|
5371
5371
|
preset_parameters?: {
|
|
5372
5372
|
[key: string]: unknown;
|
|
@@ -5448,7 +5448,7 @@ type CreateToolRequest = {
|
|
|
5448
5448
|
*/
|
|
5449
5449
|
context_keys?: Array<string> | null;
|
|
5450
5450
|
/**
|
|
5451
|
-
* Fixed parameters
|
|
5451
|
+
* Fixed parameters pinned on every call this tool makes, whatever its type. Keys matching fields in the input schema are removed from the schema shown to the model, and a pinned value wins over one the model or a direct caller supplies for the same key.
|
|
5452
5452
|
*/
|
|
5453
5453
|
preset_parameters?: {
|
|
5454
5454
|
[key: string]: unknown;
|
|
@@ -5512,7 +5512,7 @@ type UpdateToolRequest = {
|
|
|
5512
5512
|
*/
|
|
5513
5513
|
context_keys?: Array<string> | null;
|
|
5514
5514
|
/**
|
|
5515
|
-
* Fixed parameters
|
|
5515
|
+
* Fixed parameters pinned on every call this tool makes, whatever its type. Keys matching fields in the input schema are removed from the schema shown to the model, and a pinned value wins over one the model or a direct caller supplies for the same key.
|
|
5516
5516
|
*/
|
|
5517
5517
|
preset_parameters?: {
|
|
5518
5518
|
[key: string]: unknown;
|
|
@@ -5541,7 +5541,7 @@ type CallToolRequest = {
|
|
|
5541
5541
|
*/
|
|
5542
5542
|
action?: string;
|
|
5543
5543
|
/**
|
|
5544
|
-
* Input parameters for the tool call. These are merged with the tool's `preset_parameters` before execution
|
|
5544
|
+
* Input parameters for the tool call. These are merged with the tool's `preset_parameters` before execution; a preset value wins over the same key sent here.
|
|
5545
5545
|
*
|
|
5546
5546
|
*/
|
|
5547
5547
|
input?: {
|
|
@@ -6046,7 +6046,7 @@ type UsageReceipt = {
|
|
|
6046
6046
|
provider?: string;
|
|
6047
6047
|
model?: string;
|
|
6048
6048
|
/**
|
|
6049
|
-
* Orchestration node that produced the event. On a run receipt every line carries it — an `agent` node's `llm_tokens` line and the `compute_execution` line of each node execution alike — so grouping the lines by `node_id` gives the per-node cost the receipt total alone hides.
|
|
6049
|
+
* Orchestration node that produced the event. On a run receipt every line carries it — an `agent` node's `llm_tokens` line and the `compute_execution` line of each node execution alike — so grouping the lines by `node_id` gives the per-node cost the receipt total alone hides. A retried node contributes one line per attempt, all under the same `node_id` — the event records no attempt number — which is the intended reading for spend: a retry is real money. Null when no node produced the event (a standalone generation, a run-level meter).
|
|
6050
6050
|
*
|
|
6051
6051
|
*/
|
|
6052
6052
|
node_id?: string | null;
|
|
@@ -18526,7 +18526,7 @@ declare class Tools {
|
|
|
18526
18526
|
*
|
|
18527
18527
|
* Directly invokes a tool and returns its output. Supported for `http`, `builtin`, `mcp`, and `pipeline` tools. `client` tools cannot be invoked server-side and will return 422. A `pipeline` tool runs its declared steps in order and returns the mapped `output` (or the last step's output); `action` is ignored and `input` is the pipeline input.
|
|
18528
18528
|
* For `builtin` and `mcp` tools the `action` field is required and identifies which action (SOAT) or tool name (MCP) to invoke. For `http` tools `action` is ignored. When a `builtin` or `mcp` tool declares an `actions` allowlist, an action outside it is rejected with `400 VALIDATION_FAILED` ("not available on this tool") before any outbound request is made.
|
|
18529
|
-
* `preset_parameters` stored on the tool are
|
|
18529
|
+
* `preset_parameters` stored on the tool are pinned over the caller-supplied `input` before execution: a key the tool presets keeps its preset value even when `input` sets it. Keys the presets do not name are taken from `input` as sent.
|
|
18530
18530
|
*
|
|
18531
18531
|
*/
|
|
18532
18532
|
static callTool<ThrowOnError extends boolean = false>(options: Options<CallToolData, ThrowOnError>): RequestResult<CallToolResponses, CallToolErrors, ThrowOnError>;
|
package/dist/index.mjs
CHANGED
|
@@ -3654,7 +3654,7 @@ var Tools = class {
|
|
|
3654
3654
|
*
|
|
3655
3655
|
* Directly invokes a tool and returns its output. Supported for `http`, `builtin`, `mcp`, and `pipeline` tools. `client` tools cannot be invoked server-side and will return 422. A `pipeline` tool runs its declared steps in order and returns the mapped `output` (or the last step's output); `action` is ignored and `input` is the pipeline input.
|
|
3656
3656
|
* For `builtin` and `mcp` tools the `action` field is required and identifies which action (SOAT) or tool name (MCP) to invoke. For `http` tools `action` is ignored. When a `builtin` or `mcp` tool declares an `actions` allowlist, an action outside it is rejected with `400 VALIDATION_FAILED` ("not available on this tool") before any outbound request is made.
|
|
3657
|
-
* `preset_parameters` stored on the tool are
|
|
3657
|
+
* `preset_parameters` stored on the tool are pinned over the caller-supplied `input` before execution: a key the tool presets keeps its preset value even when `input` sets it. Keys the presets do not name are taken from `input` as sent.
|
|
3658
3658
|
*
|
|
3659
3659
|
*/
|
|
3660
3660
|
static callTool(options) {
|