From b0365562ce8bc31acc06644ee703614cb4fb9034 Mon Sep 17 00:00:00 2001 From: KoushikReddy Date: Fri, 15 May 2026 16:52:31 -0700 Subject: [PATCH] fix(core): replace steps: any[] with WorkflowStepHistoryEntry[] in WorkflowExecutionContext WorkflowStepHistoryEntry is already exported from the same types module. The any[] was left as a placeholder (TODO comment). Removing the escape hatch surfaces type errors if callers push wrong shapes into steps[]. --- packages/core/src/workflow/context.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/core/src/workflow/context.ts b/packages/core/src/workflow/context.ts index a9ec81432..053ec646f 100644 --- a/packages/core/src/workflow/context.ts +++ b/packages/core/src/workflow/context.ts @@ -3,7 +3,12 @@ import type { Logger } from "@voltagent/internal"; import type { Agent } from "../agent/agent"; import type { Memory } from "../memory"; import type { WorkflowTraceContext } from "./open-telemetry/trace-context"; -import type { WorkflowStateStore, WorkflowStepData, WorkflowStreamWriter } from "./types"; +import type { + WorkflowStateStore, + WorkflowStepData, + WorkflowStepHistoryEntry, + WorkflowStreamWriter, +} from "./types"; /** * Context information for a workflow execution @@ -45,7 +50,7 @@ export interface WorkflowExecutionContext { /** * Array of completed steps (for tracking) */ - steps: any[]; // TODO: Type this properly + steps: WorkflowStepHistoryEntry[]; /** * AbortSignal for cancelling the workflow */