# Class GraphController

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

@RestController public class GraphController extends Object
Controller handling graph generation endpoints.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GraphController(BaseSessionService sessionService, AgentLoader agentProvider)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `org.springframework.http.ResponseEntity<GraphResponse>`
  `getEventGraph(String appName, String userId, String sessionId, String eventId)`
  Endpoint to get a graph representation of an event (currently returns a placeholder).

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### GraphController

    @Autowired public GraphController(BaseSessionService sessionService, AgentLoader agentProvider)

- ## Method Details

  - ### getEventGraph

    @GetMapping("/apps/{appName}/users/{userId}/sessions/{sessionId}/events/{eventId}/graph") public org.springframework.http.ResponseEntity<GraphResponse> getEventGraph(@PathVariable String appName, @PathVariable String userId, @PathVariable String sessionId, @PathVariable String eventId)
    Endpoint to get a graph representation of an event (currently returns a placeholder). Requires Graphviz or similar tooling for full implementation.
    Parameters:
      `appName` - Application name.
      `userId` - User ID.
      `sessionId` - Session ID.
      `eventId` - Event ID.
    Returns:
      ResponseEntity containing a GraphResponse with placeholder DOT source.
    Throws:
      `org.springframework.web.server.ResponseStatusException` - if the session or event is not found.