Class MockAgent

java.lang.Object
com.google.adk.agents.BaseAgent
dev.enola.ai.adk.test.MockAgent

public class MockAgent extends com.google.adk.agents.BaseAgent
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected io.reactivex.rxjava3.core.Flowable<com.google.adk.events.Event>
    runAsyncImpl(com.google.adk.agents.InvocationContext invocationContext)
     
    protected io.reactivex.rxjava3.core.Flowable<com.google.adk.events.Event>
    runLiveImpl(com.google.adk.agents.InvocationContext invocationContext)
     

    Methods inherited from class com.google.adk.agents.BaseAgent

    afterAgentCallback, beforeAgentCallback, description, findAgent, findSubAgent, fromConfig, name, parentAgent, parentAgent, rootAgent, runAsync, runLive, subAgents

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • replyWith

      public void replyWith(String text)
    • runAsyncImpl

      protected io.reactivex.rxjava3.core.Flowable<com.google.adk.events.Event> runAsyncImpl(com.google.adk.agents.InvocationContext invocationContext)
      Specified by:
      runAsyncImpl in class com.google.adk.agents.BaseAgent
    • runLiveImpl

      protected io.reactivex.rxjava3.core.Flowable<com.google.adk.events.Event> runLiveImpl(com.google.adk.agents.InvocationContext invocationContext)
      Specified by:
      runLiveImpl in class com.google.adk.agents.BaseAgent