evaluates call transcripts locally using openai’s gpt models
the LocalEvaluator
class is an implementation of the BaseEvaluator
that evaluates call transcripts locally using openai’s gpt models. it assesses the interaction against the scenario’s evaluation criteria.
model
(str, optional): the openai model to use for evaluation. defaults to “gpt-4o”.evaluate()
evaluates a call transcript against the scenario’s evaluation criteria.
scenario
(Scenario): the scenario to evaluatetranscript
(List[ChatCompletionMessageParam]): the transcript of the callstereo_recording_url
(str): url of the stereo recording of the call (not used in local evaluation)Optional[EvaluationResponse]
: the evaluation results, containing a list of evaluation results and any extra data