p99
This commit is contained in:
@@ -11,6 +11,8 @@ final readonly class AgentEvalRunner
|
||||
{
|
||||
public function __construct(
|
||||
private RetrievalDebugRunner $retrievalDebugRunner,
|
||||
private ShopQueryEvalRunner $shopQueryEvalRunner,
|
||||
private AnswerGuardEvalRunner $answerGuardEvalRunner,
|
||||
) {
|
||||
}
|
||||
|
||||
@@ -20,6 +22,14 @@ final readonly class AgentEvalRunner
|
||||
return $this->retrievalDebugRunner->run($case);
|
||||
}
|
||||
|
||||
if ($case->isShopQueryCase() || $case->isFollowUpCase()) {
|
||||
return $this->shopQueryEvalRunner->run($case);
|
||||
}
|
||||
|
||||
if ($case->isAnswerGuardCase()) {
|
||||
return $this->answerGuardEvalRunner->run($case);
|
||||
}
|
||||
|
||||
throw new \InvalidArgumentException(sprintf(
|
||||
'Unsupported eval case type: %s',
|
||||
$case->type
|
||||
@@ -40,4 +50,4 @@ final readonly class AgentEvalRunner
|
||||
|
||||
return $results;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user