Class AgentPresetQuestionController

java.lang.Object
com.alibaba.cloud.ai.controller.AgentPresetQuestionController

@RestController @RequestMapping("/api/agent") @CrossOrigin(origins="*") public class AgentPresetQuestionController extends Object
  • Constructor Details

  • 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)
      删除预设问题