/** * Execution context for graph execution */ import type { ExecutionContext as ExprContext } from "../expressions/context.js"; import type { NodeExecutionRecord } from "../types/execution.js"; export declare class ExecutionContext { private history; constructor(toolInput: Record); /** * Build context from history up to a specific index (for debugging) or entire history (for current execution) * @param upToIndex - If provided, build context from history up to this index (exclusive). If not provided, use entire history. * @returns Context object with node outputs (latest execution wins for each node) */ private buildContextFromHistory; /** * Get the current execution context (built from entire history) * Called once per node execution when the node starts */ getData(): ExprContext; /** * Get the context that was available to a specific execution (for debugging) * @param executionIndex - The execution index to build context for * @returns Context object that was available to that execution */ getContextForExecution(executionIndex: number): ExprContext; /** * Get a specific execution record by index */ getExecutionByIndex(executionIndex: number): NodeExecutionRecord | undefined; /** * Get the previous node execution record * @param currentIndex - Current execution index * @returns Previous execution record or null if this is the first execution */ getPreviousNode(currentIndex: number): NodeExecutionRecord | null; addHistory(nodeId: string, nodeType: string, output: unknown, startTime: number, endTime: number, error?: Error): void; getHistory(): NodeExecutionRecord[]; } //# sourceMappingURL=context.d.ts.map