Class SequentialAgent

java.lang.Object
com.google.adk.agents.BaseAgent
com.google.adk.agents.SequentialAgent

public class SequentialAgent extends BaseAgent
An agent that runs its sub-agents sequentially.
  • Method Details

    • builder

      public static SequentialAgent.Builder builder()
    • runAsyncImpl

      protected io.reactivex.rxjava3.core.Flowable<Event> runAsyncImpl(InvocationContext invocationContext)
      Runs sub-agents sequentially.
      Specified by:
      runAsyncImpl in class BaseAgent
      Parameters:
      invocationContext - Invocation context.
      Returns:
      Flowable emitting events from sub-agents.
    • runLiveImpl

      protected io.reactivex.rxjava3.core.Flowable<Event> runLiveImpl(InvocationContext invocationContext)
      Runs sub-agents sequentially in live mode.
      Specified by:
      runLiveImpl in class BaseAgent
      Parameters:
      invocationContext - Invocation context.
      Returns:
      Flowable emitting events from sub-agents in live mode.