`ClassGraphController`
java.lang.Object
com.google.adk.web.controller.GraphController
控制器负责处理生成图表相关的接口请求(endpoints)。
-
构造函数概述
ConstructorsConstructorDescriptionGraphController(BaseSessionService sessionService, AgentLoader agentProvider) 已弃用(Deprecated)。GraphController(BaseSessionService sessionService, RunnerService runnerService) -
方法概述
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<GraphResponse> getEventGraph(String appName, String userId, String sessionId, String eventId) 用于获取事件图形表示的端点(目前返回的是一个占位符)。
-
构造函数详细信息
-
GraphController
-
GraphController
Deprecated.UseGraphController(BaseSessionService, RunnerService)instead.构建一个 `GraphController`,该控制器仅绘制代理(agents)的相关信息。agentProvider.- Parameters:
sessionService- The service holding the sessions whose events are drawn.agentProvider- The provider for loading agents.
-
-
方法详细信息(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) 用于获取事件图形表示的端点(目前仅返回一个占位符)。要实现完整的功能,需要使用 Graphviz 或类似的工具。- 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.
-
GraphController(BaseSessionService, RunnerService)相反。