Class 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 flow with automatic agent transfer support.
-
Field Summary
Fields inherited from class BaseLlmFlow
maxSteps, requestProcessors, responseProcessorsModifier and TypeFieldDescriptionprotected final intprotected final List<RequestProcessor> protected final List<ResponseProcessor> -
Constructor Summary
Constructors -
Method Summary
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) Post-processes the LLM response after receiving it from the LLM.io.reactivex.rxjava3.core.Flowable<Event> run(InvocationContext invocationContext) Executes the full LLM flow by repeatedly callingBaseLlmFlow.runOneStep(Context, InvocationContext)until a final response is produced.io.reactivex.rxjava3.core.Flowable<Event> runLive(InvocationContext invocationContext) Executes the LLM flow in streaming mode.
-
Constructor Details
-
AutoFlow
public AutoFlow() -
AutoFlow
-