类名:AutoFlow
java.lang.Object
com.google.adk.flows.llmflows.BaseLlmFlow
com.google.adk.flows.llmflows.SingleFlow
com.google.adk.flows.llmflows.AutoFlow
- All Implemented Interfaces:
BaseFlow
支持自动代理切换的 LLM(大型语言模型)流程。
-
字段摘要
Fields inherited from class BaseLlmFlow
maxSteps, requestProcessors, responseProcessorsModifier and TypeFieldDescriptionprotected final intprotected final List<RequestProcessor> protected final List<ResponseProcessor> -
构造函数概述
Constructors -
方法概述
Methods inherited from class BaseLlmFlow
postprocess, run, runLiveModifier and TypeMethodDescriptionprotected io.reactivex.rxjava3.core.Flowable<Event> postprocess(InvocationContext context, Event baseEventForLlmResponse, LlmRequest llmRequest, LlmResponse llmResponse, io.opentelemetry.context.Context parentContext) 在从大型语言模型(LLM)接收到响应后,会对该响应进行后处理。io.reactivex.rxjava3.core.Flowable<Event> run(InvocationContext invocationContext) 通过反复调用相关函数,执行整个大型语言模型(LLM)的运行流程。BaseLlmFlow.runOneStep(Context, InvocationContext)直到收到最终的回复为止。io.reactivex.rxjava3.core.Flowable<Event> runLive(InvocationContext invocationContext) 以流式模式执行大型语言模型(LLM)的相关流程。
-
构造函数详细信息
-
AutoFlow
public AutoFlow() -
AutoFlow
-