Class ApiResponse

java.lang.Object
com.google.adk.network.ApiResponse
All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
HttpApiResponse

public abstract class ApiResponse extends Object implements AutoCloseable
The API response contains a response to a call to the GenAI APIs.
  • Constructor Details

    • ApiResponse

      public ApiResponse()
  • Method Details

    • getEntity

      public abstract okhttp3.ResponseBody getEntity()
      Gets the ResponseBody.
    • close

      public abstract void close()
      Specified by:
      close in interface AutoCloseable