ClassApiResponse
java.lang.Object
com.google.adk.sessions.ApiResponse
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
HttpApiResponse
API响应包含了对该GenAI API调用所返回的结果。
-
构造函数概述
Constructors -
方法概述
Modifier and TypeMethodDescriptionabstract voidclose()abstract okhttp3.ResponseBody获取 HttpEntity 对象。int获取响应的 HTTP 状态码。
-
构造函数详细信息
-
ApiResponse
public ApiResponse()
-
-
方法详细信息(Method Details)
-
getResponseBody
public abstract okhttp3.ResponseBody getResponseBody()获取 HttpEntity 对象。 -
getStatusCode
public int getStatusCode()获取响应的 HTTP 状态码。 -
close
public abstract void close()- Specified by:
closein interfaceAutoCloseable
-