import { DatasetItemInput } from "@inkeep/agents-core";

//#region src/domains/evals/workflow/functions/runDatasetItem.d.ts

type RunDatasetItemPayload = {
  tenantId: string;
  projectId: string;
  agentId: string;
  datasetItemId: string;
  datasetItemInput: DatasetItemInput;
  datasetItemExpectedOutput?: unknown;
  datasetRunId: string;
  scheduledTriggerInvocationId: string;
  evaluatorIds?: string[];
  evaluationRunId?: string;
  ref?: string;
};
/**
 * Main workflow function - processes a single dataset item.
 * Calls executeAgentAsync directly for agent execution.
 * Optionally runs evaluators on the resulting conversation.
 */
declare function _runDatasetItemWorkflow(payload: RunDatasetItemPayload): Promise<{
  success: boolean;
  datasetItemId: string;
  datasetRunId: string;
  conversationId: string | null;
  error: string | null;
}>;
declare const runDatasetItemWorkflow: typeof _runDatasetItemWorkflow & {
  workflowId: string;
};
//#endregion
export { runDatasetItemWorkflow };