From a6d24d03cbfd2bb9fee00816ab175b7bcd56ebd2 Mon Sep 17 00:00:00 2001 From: Mike Date: Tue, 10 Dec 2024 13:39:02 +0400 Subject: [PATCH] fix: change from assistant to user (#70) When request to supervisor was smaller, it would take that message as answer. Changing to user makes it explicit that this is not the answer from the model and execution should move forward. --- packages/framework/src/workflow.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/framework/src/workflow.ts b/packages/framework/src/workflow.ts index d07fb13..e1dc0f0 100644 --- a/packages/framework/src/workflow.ts +++ b/packages/framework/src/workflow.ts @@ -76,9 +76,9 @@ export const workflowState = (workflow: Workflow): IdleWorkflowState => { status: 'idle', messages: [ { - role: 'assistant' as const, + role: 'user' as const, content: s` - Here is description of the workflow and expected output by the user: + Here is description of my workflow and expected output: ${workflow.description} ${workflow.output} `,