Class ApiResponse
java.lang.Object
com.google.adk.sessions.ApiResponse
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
HttpApiResponse
The API response contains a response to a call to the GenAI APIs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidclose()abstract okhttp3.ResponseBodyGets the HttpEntity.
-
Constructor Details
-
ApiResponse
public ApiResponse()
-
-
Method Details
-
getResponseBody
public abstract okhttp3.ResponseBody getResponseBody()Gets the HttpEntity. -
close
public abstract void close()- Specified by:
closein interfaceAutoCloseable
-