EvalPythonPreprocessor
Example Usage
typescript
import { EvalPythonPreprocessor } from "@meetkai/mka1/models/components";
let value: EvalPythonPreprocessor = {
type: "python",
};Fields
| Field | Type | Required | Description |
|---|---|---|---|
type | "python" | ✔️ | N/A |
contract | components.Contract | ➖ | Run transform(row) per row or transform_batch(rows) once. |
source | string | ➖ | Inline Python source that transforms dataset rows before prompt rendering. |
fileId | string | ➖ | File ID for a Python preprocessor uploaded with purpose 'evals'. |
timeoutSeconds | number | ➖ | N/A |