@soat/sdk 0.101.0 → 0.102.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 +14 -1
- package/dist/index.d.cts +238 -29
- package/dist/index.d.mts +238 -29
- package/dist/index.mjs +14 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1534,7 +1534,7 @@ var Deciders = class {
|
|
|
1534
1534
|
/**
|
|
1535
1535
|
* Create a decider
|
|
1536
1536
|
*
|
|
1537
|
-
* Creates a decider at version 1: a named question set and the backend that answers it, exactly one of `agent_id` and `tool_id`. Every question declares a finite answer space, validated here. The backend must be in the decider's project. An agent must carry no tool surface — no tool binding left active by `active_tool_ids` and no `knowledge_config.write_memory_store_id` — or the create is refused with `400 DECIDER_AGENT_NOT_TOOL_LESS`. A tool must
|
|
1537
|
+
* Creates a decider at version 1: a named question set and the backend that answers it, exactly one of `agent_id` and `tool_id`. Every question declares a finite answer space, validated here. The backend must be in the decider's project. An agent must carry no tool surface — no tool binding left active by `active_tool_ids` and no `knowledge_config.write_memory_store_id` — or the create is refused with `400 DECIDER_AGENT_NOT_TOOL_LESS`. A tool must run server-side with no `action` (not `client` or `mcp`; a `builtin` tool names its `action` in `preset_parameters`) and must not pin `input` or `questions` there, or the create is refused with `400 DECIDER_TOOL_NOT_CALLABLE`. A duplicate `name` in the project is `409 NAME_CONFLICT`.
|
|
1538
1538
|
*/
|
|
1539
1539
|
static createDecider(options) {
|
|
1540
1540
|
return (options.client ?? client).post({
|
|
@@ -4961,6 +4961,19 @@ var Tools = class {
|
|
|
4961
4961
|
}
|
|
4962
4962
|
});
|
|
4963
4963
|
}
|
|
4964
|
+
/**
|
|
4965
|
+
* List a tool's actions
|
|
4966
|
+
*
|
|
4967
|
+
* Lists the actions an `mcp` tool exposes, read from its server's `tools/list` with the tool's `mcp.headers` resolved server-side: each action's `name`, `description` and `input_schema`, as a model bound to the tool sees them. `actions` and `denied_actions` apply, and a `preset_parameters` key an action's schema declares is removed from that schema. Other tool types are `400`. The server answers its whole listing in one call; `limit` and `cursor` page what it returned, in its order.
|
|
4968
|
+
* Authorized as a call (`tools:CallTool`), since listing reaches the tool's server with its credential.
|
|
4969
|
+
*
|
|
4970
|
+
*/
|
|
4971
|
+
static listToolActions(options) {
|
|
4972
|
+
return (options.client ?? client).get({
|
|
4973
|
+
url: "/api/v1/tools/{tool_id}/actions",
|
|
4974
|
+
...options
|
|
4975
|
+
});
|
|
4976
|
+
}
|
|
4964
4977
|
};
|
|
4965
4978
|
var Traces = class {
|
|
4966
4979
|
/**
|