chore: Update scenario execution in TestController and ScenarioExecutionService

This commit is contained in:
andrea.terzani
2024-07-30 17:02:21 +02:00
parent e4954be1df
commit 57ad21a14c
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ public class TestController {
@GetMapping("/test/scenario_execution") @GetMapping("/test/scenario_execution")
public String testScenarioExecution(){ public String testScenarioExecution(){
String result = scenarioExecutionService.executeScenario("66a7bbb7c5c2e1863e5d6db0","What the method SetField does in ATF ?"); String result = scenarioExecutionService.executeScenario("66a7bbb7c5c2e1863e5d6db0","How a testcase is made on ATF ? What is the meaning of a Task?");
return result; return result;
} }
} }

View File

@@ -79,7 +79,7 @@ public class ScenarioExecutionService {
StepSolver solver=new StepSolver(); StepSolver solver=new StepSolver();
switch (step.getType()) { switch (step.getType()) {
case "RAG_QUERY": case "RAG_QUERY":
solver = new BasicQueryRagSolver(); solver = new BasicQueryRagSolver();
break; break;
case "SIMPLE_QUERY_AI": case "SIMPLE_QUERY_AI":
solver = new BasicAIPromptSolver(); solver = new BasicAIPromptSolver();