Class ApiResponse

java.lang.Object
com.google.genai.ApiResponse
All Implemented Interfaces:
AutoCloseable

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 org.apache.http.HttpEntity getEntity() throws org.apache.http.HttpException
      Gets the HttpEntity.
      Throws:
      org.apache.http.HttpException
    • close

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