@runloop/api-client - v1.4.0
    Preparing search index...

    Interface PythonScriptScoringFunction

    PythonScriptScoringFunction will run a python script in the context of your environment as a ScoringFunction.

    interface PythonScriptScoringFunction {
        python_script: string;
        type: "python_script_scorer";
        python_version_constraint?: string | null;
        requirements_contents?: string | null;
    }
    Index

    Properties

    python_script: string

    Python script to be run. The script should output the score to standard out as a float between 0.0 and 1.0.

    type: "python_script_scorer"
    python_version_constraint?: string | null

    Python version to run scoring. Default is "==3.12.10"

    requirements_contents?: string | null

    Package dependencies to be installed. The requirements should be a valid requirements.txt file.