orchestrator-client 5.8.3 → 5.9.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 +23 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +38 -2
- package/dist/index.d.ts +38 -2
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -763,6 +763,7 @@ var OrchestratorAsync = class {
|
|
|
763
763
|
title: params.title,
|
|
764
764
|
agent_model_id: params.agentModelId,
|
|
765
765
|
orchestrator_model_id: params.orchestratorModelId,
|
|
766
|
+
available_tools: params.availableTools,
|
|
766
767
|
attachment_ids: params.attachmentIds,
|
|
767
768
|
options: params.options
|
|
768
769
|
};
|
|
@@ -959,6 +960,25 @@ var OrchestratorAsync = class {
|
|
|
959
960
|
servers: data.servers ?? []
|
|
960
961
|
};
|
|
961
962
|
}
|
|
963
|
+
/**
|
|
964
|
+
* Default toolset every workflow uses when `availableTools` is omitted.
|
|
965
|
+
*
|
|
966
|
+
* Resolved against the live catalog, so it only names tools that are
|
|
967
|
+
* reachable right now -- the same list a task created at this moment
|
|
968
|
+
* would receive.
|
|
969
|
+
*/
|
|
970
|
+
async getToolDefaults() {
|
|
971
|
+
const data = await this._get("/tools/defaults");
|
|
972
|
+
return {
|
|
973
|
+
workflows: (data.workflows ?? []).map(
|
|
974
|
+
(w) => ({
|
|
975
|
+
workflowId: w.workflowId ?? w.workflow_id ?? "",
|
|
976
|
+
variant: w.variant ?? null,
|
|
977
|
+
tools: w.tools ?? []
|
|
978
|
+
})
|
|
979
|
+
)
|
|
980
|
+
};
|
|
981
|
+
}
|
|
962
982
|
async getToolCatalog() {
|
|
963
983
|
return this._get("/tools/catalog");
|
|
964
984
|
}
|
|
@@ -1557,6 +1577,9 @@ var Orchestrator = class {
|
|
|
1557
1577
|
listTools() {
|
|
1558
1578
|
return runSync(this._async.listTools());
|
|
1559
1579
|
}
|
|
1580
|
+
getToolDefaults() {
|
|
1581
|
+
return runSync(this._async.getToolDefaults());
|
|
1582
|
+
}
|
|
1560
1583
|
getToolCatalog() {
|
|
1561
1584
|
return runSync(this._async.getToolCatalog());
|
|
1562
1585
|
}
|