# Class AgentController

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

@RestController public class AgentController extends Object
Spring Boot REST Controller handling agent-related API endpoints.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AgentController(AgentLoader agentProvider)`
  Constructs the AgentController.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `List<String>`
  `listApps()`
  Lists available applications.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### AgentController

    @Autowired public AgentController(AgentLoader agentProvider)
    Constructs the AgentController.
    Parameters:
      `agentProvider` - The provider for loading agents.

- ## Method Details

  - ### listApps

    @GetMapping("/list-apps") public List<String> listApps()
    Lists available applications. Currently returns only the configured root agent's name.
    Returns:
      A list containing the root agent's name.