Package com.alibaba.cloud.ai.controller
Class AgentPresetQuestionController
java.lang.Object
com.alibaba.cloud.ai.controller.AgentPresetQuestionController
@RestController
@RequestMapping("/api/agent")
@CrossOrigin(origins="*")
public class AgentPresetQuestionController
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionAgentPresetQuestionController(AgentPresetQuestionService presetQuestionService) -
Method Summary
Modifier and TypeMethodDescriptiondeletePresetQuestion(Long agentId, Long questionId) 删除预设问题org.springframework.http.ResponseEntity<List<AgentPresetQuestion>>getPresetQuestions(Long agentId) 获取智能体的预设问题列表批量保存智能体的预设问题
-
Constructor Details
-
AgentPresetQuestionController
-
-
Method Details
-
getPresetQuestions
@GetMapping("/{agentId}/preset-questions") public org.springframework.http.ResponseEntity<List<AgentPresetQuestion>> getPresetQuestions(@PathVariable Long agentId) 获取智能体的预设问题列表 -
savePresetQuestions
@PostMapping("/{agentId}/preset-questions") public org.springframework.http.ResponseEntity<Map<String,String>> savePresetQuestions(@PathVariable Long agentId, @RequestBody List<Map<String, String>> questionsData) 批量保存智能体的预设问题 -
deletePresetQuestion
@DeleteMapping("/{agentId}/preset-questions/{questionId}") public org.springframework.http.ResponseEntity<Map<String,String>> deletePresetQuestion(@PathVariable Long agentId, @PathVariable Long questionId) 删除预设问题
-