import type { Agent } from '../../agent/index.js'; import type { MastraScorer } from '../../evals/base.js'; import type { ScorerRunInputForAgent, ScorerRunOutputForAgent } from '../../evals/types.js'; import type { TargetType } from '../../storage/types.js'; import type { Workflow } from '../../workflows/index.js'; /** * Target types supported for dataset execution. * Agent and Workflow are Phase 2; scorer and processor are Phase 4. */ export type Target = Agent | Workflow | MastraScorer; /** * Result from executing a target against a dataset item. */ export interface ExecutionResult { /** Output from the target (null if failed) */ output: unknown; /** Structured error if execution failed */ error: { message: string; stack?: string; code?: string; } | null; /** Trace ID from agent/workflow execution (null for scorers or errors) */ traceId: string | null; /** Structured input for scorers (extracted from agent scoring data) */ scorerInput?: ScorerRunInputForAgent; /** Structured output for scorers (extracted from agent scoring data) */ scorerOutput?: ScorerRunOutputForAgent; } /** * Execute a dataset item against a target (agent, workflow, scorer, processor). * Phase 2: agent/workflow. Phase 4: scorer. Processor deferred. */ export declare function executeTarget(target: Target, targetType: TargetType, item: { input: unknown; groundTruth?: unknown; }, options?: { signal?: AbortSignal; requestContext?: Record; experimentId?: string; }): Promise; //# sourceMappingURL=executor.d.ts.map