Enforce runtime report contracts and recoverable session exports
This commit is contained in:
@@ -185,7 +185,7 @@ export class PipelinesRepository {
|
||||
* Starts a fresh run of one pipeline version. `notifyMode` is auto, on or off;
|
||||
* auto omits the field so the pipeline definition applies.
|
||||
*/
|
||||
async runPipeline({ pipelineId, version, prompt, workspace, notifyMode = "auto", title = "", requestKey = newChatOperationId() } = {}) {
|
||||
async runPipeline({ pipelineId, version, prompt, workspace, notifyMode = "auto", title = "", outputFormat = "", requestKey = newChatOperationId() } = {}) {
|
||||
const request = {
|
||||
type: Protocol.RUN_PIPELINE,
|
||||
pipeline_id: Number(pipelineId),
|
||||
@@ -195,6 +195,7 @@ export class PipelinesRepository {
|
||||
input: { prompt: String(prompt ?? "") },
|
||||
};
|
||||
if (String(title ?? "").trim() !== "") request.title = String(title).trim();
|
||||
if (outputFormat) request.output_format = outputFormat;
|
||||
const mode = String(notifyMode ?? "auto").trim().toLowerCase();
|
||||
if (mode === "on" || mode === "off") request.notify_mode = mode;
|
||||
const response = await this.#client.call(request);
|
||||
|
||||
Reference in New Issue
Block a user