Class VersionController

java.lang.Object
com.google.adk.web.controller.VersionController

@RestController public class VersionController extends Object
Reports the ADK and language versions, which the dev UI requests on startup, plus a liveness endpoint.
  • Constructor Details

    • VersionController

      public VersionController()
  • Method Details

    • version

      @GetMapping(value="/version", produces="application/json") public Map<String,String> version()
      Returns the ADK version, the implementation language, and the running JVM's version.
    • health

      @GetMapping(value="/health", produces="application/json") public Map<String,String> health()
      Returns a fixed OK status, so a load balancer can tell the server is up.