You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`## Workflow Completed via Sampling\n\n${resultText}\n\n## Final Workflow Progress\n${progressDisplay}\n\n**Summary:**\n- Total steps: ${workflowState.getSteps().length}\n- Completion method: Agentic Sampling`,
108
+
`## Workflow Completed via Sampling\n\n${resultText}\n\n## Final Workflow Progress\n${progressDisplay}\n\n**Summary:**\n- Total steps: ${
109
+
workflowState.getSteps().length
110
+
}\n- Completion method: Agentic Sampling`
104
111
);
105
112
}
106
113
107
114
// Add conversation history updates following agentic pattern
108
-
this.conversationHistory.push(
109
-
{
110
-
role: "assistant",
111
-
content: {
112
-
type: "text",
113
-
text: resultText,
114
-
},
115
+
this.conversationHistory.push({
116
+
role: "assistant",
117
+
content: {
118
+
type: "text",
119
+
text: resultText,
115
120
},
116
-
);
121
+
});
117
122
118
123
returnworkflowResult;
119
124
}catch(error){
@@ -124,7 +129,7 @@ export class WorkflowSamplingExecutor extends BaseSamplingExecutor {
124
129
125
130
privatebuildWorkflowSystemPrompt(
126
131
args: Record<string,unknown>,
127
-
state: WorkflowState,
132
+
state: WorkflowState
128
133
): string{
129
134
// Get the current workflow schema from WorkflowExecutor
0 commit comments