Package com.alibaba.cloud.ai.controller
Class AgentController
java.lang.Object
com.alibaba.cloud.ai.controller.AgentController
@Controller
@RequestMapping("/api/agent")
@CrossOrigin(origins="*")
public class AgentController
extends Object
智能体管理控制器
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Agent>创建智能体org.springframework.http.ResponseEntity<Void>删除智能体org.springframework.http.ResponseEntity<Agent>根据ID获取智能体详情获取智能体列表org.springframework.http.ResponseEntity<Agent>下线智能体org.springframework.http.ResponseEntity<Agent>发布智能体org.springframework.http.ResponseEntity<Agent>更新智能体
-
Constructor Details
-
AgentController
-
-
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) 下线智能体
-