Function: createCodeScorerVersion()
Parameters
scorerId
string
The ID of the scorer to create a version for.
codeContent
string
The Python code content for the scorer. Must include a function named scorer_fn with a return type annotation.
validationResult?
string
(Optional) Validation result JSON string from validateCodeScorer.
Returns
Promise<BaseScorerVersionResponse>
A promise that resolves to the created scorer version.