Skip to content

EvalPythonPreprocessor

Example Usage

typescript
import { EvalPythonPreprocessor } from "@meetkai/mka1/models/components";

let value: EvalPythonPreprocessor = {
  type: "python",
};

Fields

FieldTypeRequiredDescription
type"python"✔️N/A
contractcomponents.ContractRun transform(row) per row or transform_batch(rows) once.
sourcestringInline Python source that transforms dataset rows before prompt rendering.
fileIdstringFile ID for a Python preprocessor uploaded with purpose 'evals'.
timeoutSecondsnumberN/A