Class AgentController

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

@Controller @RequestMapping("/api/agent") @CrossOrigin(origins="*") public class AgentController extends Object
智能体管理控制器
  • Constructor Details

    • AgentController

      public AgentController(AgentService agentService)
  • Method Details

    • list

      @GetMapping @ResponseBody public org.springframework.http.ResponseEntity<List<Agent>> list(@RequestParam(required=false) String status, @RequestParam(required=false) String keyword)
      获取智能体列表
    • get

      @GetMapping("/{id}") @ResponseBody public org.springframework.http.ResponseEntity<Agent> get(@PathVariable Long id)
      根据ID获取智能体详情
    • create

      @PostMapping @ResponseBody public org.springframework.http.ResponseEntity<Agent> create(@RequestBody Agent agent)
      创建智能体
    • update

      @PutMapping("/{id}") @ResponseBody public org.springframework.http.ResponseEntity<Agent> update(@PathVariable Long id, @RequestBody Agent agent)
      更新智能体
    • delete

      @DeleteMapping("/{id}") @ResponseBody public org.springframework.http.ResponseEntity<Void> delete(@PathVariable Long id)
      删除智能体
    • publish

      @PostMapping("/{id}/publish") @ResponseBody public org.springframework.http.ResponseEntity<Agent> publish(@PathVariable Long id)
      发布智能体
    • offline

      @PostMapping("/{id}/offline") @ResponseBody public org.springframework.http.ResponseEntity<Agent> offline(@PathVariable Long id)
      下线智能体