orchestrator-client 5.11.7 → 5.12.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 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +14 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -148,6 +148,12 @@ function buildPagination(data) {
|
|
|
148
148
|
hasPrev: p.hasPrev ?? false
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
|
+
function toSnakeCaseOptions(options) {
|
|
152
|
+
if (!options) return options;
|
|
153
|
+
return Object.fromEntries(
|
|
154
|
+
Object.entries(options).map(([key, value]) => [camelToSnake(key), value])
|
|
155
|
+
);
|
|
156
|
+
}
|
|
151
157
|
function buildSkillMapping(m) {
|
|
152
158
|
return {
|
|
153
159
|
id: m.id ?? 0,
|
|
@@ -480,7 +486,7 @@ var OrchestratorAsync = class {
|
|
|
480
486
|
orchestrator_model_id: params.orchestratorModelId,
|
|
481
487
|
available_tools: params.availableTools,
|
|
482
488
|
attachment_ids: params.attachmentIds,
|
|
483
|
-
options: params.options
|
|
489
|
+
options: toSnakeCaseOptions(params.options)
|
|
484
490
|
});
|
|
485
491
|
return {
|
|
486
492
|
taskId: data.taskId ?? data.task_id ?? "",
|
|
@@ -798,7 +804,7 @@ var OrchestratorAsync = class {
|
|
|
798
804
|
orchestrator_model_id: params.orchestratorModelId,
|
|
799
805
|
available_tools: params.availableTools,
|
|
800
806
|
attachment_ids: params.attachmentIds,
|
|
801
|
-
options: params.options
|
|
807
|
+
options: toSnakeCaseOptions(params.options)
|
|
802
808
|
};
|
|
803
809
|
if (params.delegatedToken !== void 0) {
|
|
804
810
|
body.delegated_token = params.delegatedToken;
|
|
@@ -2340,12 +2346,16 @@ var Flow = class {
|
|
|
2340
2346
|
}
|
|
2341
2347
|
/**
|
|
2342
2348
|
* Per-task feature toggles sent in the creation request.
|
|
2343
|
-
* By default summaries and
|
|
2349
|
+
* By default summaries, translation and streaming are disabled since flow
|
|
2344
2350
|
* output is typically machine-consumed, not human-read.
|
|
2345
2351
|
* Override in subclasses that produce human-facing content.
|
|
2346
2352
|
*/
|
|
2347
2353
|
get taskOptions() {
|
|
2348
|
-
return {
|
|
2354
|
+
return {
|
|
2355
|
+
disableSummaries: true,
|
|
2356
|
+
disableTranslation: true,
|
|
2357
|
+
disableStreaming: true
|
|
2358
|
+
};
|
|
2349
2359
|
}
|
|
2350
2360
|
/**
|
|
2351
2361
|
* Override the agent model for this flow.
|