`Class ExecutionController`
java.lang.Object
com.google.adk.web.controller.ExecutionController
控制器负责处理代理程序的执行相关端点(即用于启动或控制代理程序操作的接口)。
-
构造函数概述
Constructors -
方法概述
Modifier and TypeMethodDescriptionagentRun(AgentRunRequest request) 为指定的会话和消息执行一次非流式(非实时传输)的代理任务。org.springframework.web.servlet.mvc.method.annotation.SseEmitteragentRunSse(AgentRunRequest request) 执行代理程序的运行,并通过“服务器发送的事件”(Server-Sent Events, SSE)机制将产生的事件数据流式传输出去。
-
构造函数详细信息
-
ExecutionController
-
-
方法详细信息(Method Details)
-
agentRun
为指定的会话和消息执行一次非流式(非实时传输)的代理任务。- Parameters:
request- The AgentRunRequest containing run details.- Returns:
- A list of events generated during the run.
- Throws:
org.springframework.web.server.ResponseStatusException- if the session is not found or the run fails.
-
agentRunSse
@PostMapping(value="/run_sse", produces="text/event-stream") public org.springframework.web.servlet.mvc.method.annotation.SseEmitter agentRunSse(@RequestBody AgentRunRequest request) 执行代理程序的运行,并通过“服务器发送的事件”(Server-Sent Events, SSE)机制将产生的事件数据流式传输出去。- Parameters:
request- The AgentRunRequest containing run details.- Returns:
- A Flux that will stream events to the client.
-