# 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`

public class AutoFlow extends SingleFlow
LLM flow with automatic agent transfer support.

- ## Field Summary

  ### Fields inherited from class BaseLlmFlow

  `maxSteps, requestProcessors, responseProcessors`
  Modifier and Type
  Field
  Description
  `protected final int`
  `maxSteps`
  `protected final List<RequestProcessor>`
  `requestProcessors`
  `protected final List<ResponseProcessor>`
  `responseProcessors`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AutoFlow()`
  `AutoFlow(Optional<Integer> maxSteps)`

- ## Method Summary

  ### Methods inherited from class BaseLlmFlow

  `postprocess, run, runLive`
  Modifier and Type
  Method
  Description
  `protected 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 calling `BaseLlmFlow.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.

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### AutoFlow

    public AutoFlow()

  - ### AutoFlow

    public AutoFlow(Optional<Integer> maxSteps)