orchestrator-client 5.7.12 → 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 +24 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +39 -2
- package/dist/index.d.ts +39 -2
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -759,9 +759,11 @@ var OrchestratorAsync = class {
|
|
|
759
759
|
const body = {
|
|
760
760
|
user_id: params.userId,
|
|
761
761
|
goal_prompt: params.goalPrompt,
|
|
762
|
+
variant: params.variant ?? "portal_user",
|
|
762
763
|
title: params.title,
|
|
763
764
|
agent_model_id: params.agentModelId,
|
|
764
765
|
orchestrator_model_id: params.orchestratorModelId,
|
|
766
|
+
available_tools: params.availableTools,
|
|
765
767
|
attachment_ids: params.attachmentIds,
|
|
766
768
|
options: params.options
|
|
767
769
|
};
|
|
@@ -958,6 +960,25 @@ var OrchestratorAsync = class {
|
|
|
958
960
|
servers: data.servers ?? []
|
|
959
961
|
};
|
|
960
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
|
+
}
|
|
961
982
|
async getToolCatalog() {
|
|
962
983
|
return this._get("/tools/catalog");
|
|
963
984
|
}
|
|
@@ -1556,6 +1577,9 @@ var Orchestrator = class {
|
|
|
1556
1577
|
listTools() {
|
|
1557
1578
|
return runSync(this._async.listTools());
|
|
1558
1579
|
}
|
|
1580
|
+
getToolDefaults() {
|
|
1581
|
+
return runSync(this._async.getToolDefaults());
|
|
1582
|
+
}
|
|
1559
1583
|
getToolCatalog() {
|
|
1560
1584
|
return runSync(this._async.getToolCatalog());
|
|
1561
1585
|
}
|