I’m trying to run an evaluation on my dataset to validate some generated database queries but keep hitting this error. The system complains about an unexpected keyword argument called evaluator_run_id when calling the evaluate_run method.
sounds like maybe a version mismatch? the langsmith library might’ve updated, but ur evaluator isn’t set for that new evaluator_run_id arg yet. maybe try upgrading ur evaluator or downgrading langsmith. hope it helps!
Just hit this same issue during our langsmith migration. That signature change totally caught us off guard too. Here’s what worked for us - check your langsmith version first. If you’re on 0.1.77 or later, it expects that evaluator_run_id parameter. Quick fix without changing your evaluator code: pin langsmith to 0.1.76 in your requirements. But if you want to stay current, just modify your quality_checker’s evaluate_run method to accept the new parameter. We used evaluator_run_id=None as the default - keeps it compatible across versions. The parameter’s just for internal tracking anyway, so you don’t actually need to use it in your evaluation logic.
This happens when your custom evaluator uses an old version of the DynamicRunEvaluator interface. Langsmith recently added an evaluator_run_id parameter to the evaluate_run method, but your quality_checker is still using the old signature. You’ve got two fixes: If it’s a custom class, update the evaluate_run method to include evaluator_run_id as an optional parameter. If you’re using a function-based evaluator, make sure it’s wrapped with the current langsmith decorators - they’ll handle the new parameter automatically.