ApiResponse

@InternalApi()
public abstract class ApiResponse implements AutoCloseable

The API response contains a response to a call to the GenAI APIs.

Inheritors

Constructors

Link copied to clipboard
public void ApiResponse()

Functions

Link copied to clipboard
public abstract void close()
Link copied to clipboard
public abstract ResponseBody getBody()
Gets the ResponseBody.
Link copied to clipboard
public abstract Headers getHeaders()
Returns all of the headers from the response.