@RestController
@RequestMapping("/spring/ai/api/v1/tools")
@ConditionalOnProperty(name="spring.ai.model.chat",
havingValue="zhipuai",
matchIfMissing=false)
public class SpringAIToolsControllerextends Object
@GetMapping("/time")
publicorg.springframework.http.ResponseEntity<JsonResult<?>>time(@RequestParam(value="message",defaultValue="What day is tomorrow?")
String message)
alarm
@GetMapping("/alarm")
publicorg.springframework.http.ResponseEntity<JsonResult<?>>alarm(@RequestParam(value="message",defaultValue="Can you set an alarm 10 minutes from now?")
String message)
methodToolCallback
@GetMapping("/method-tool-callback")
publicorg.springframework.http.ResponseEntity<JsonResult<?>>methodToolCallback(@RequestParam(value="message",defaultValue="What is the current date and time?")
String message)
weather
@GetMapping("/weather")
publicorg.springframework.http.ResponseEntity<JsonResult<?>>weather(@RequestParam(value="message",defaultValue="What is the weather in Beijing?")
String message)