Class HttpApiClient
java.lang.Object
com.google.adk.sessions.HttpApiClient
Base client for the HTTP APIs.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription@Nullable String
apiKey()
Returns the API key for Google AI APIs.@Nullable String
location()
Returns the location for Vertex AI APIs.@Nullable String
project()
Returns the project ID for Vertex AI APIs.Sends a Http request given the http method, path, and request json string.boolean
vertexAI()
Returns whether the client is using Vertex AI APIs.
-
Field Details
-
MEDIA_TYPE_APPLICATION_JSON
public static final okhttp3.MediaType MEDIA_TYPE_APPLICATION_JSON
-
-
Method Details
-
request
Sends a Http request given the http method, path, and request json string. -
vertexAI
public boolean vertexAI()Returns whether the client is using Vertex AI APIs. -
project
Returns the project ID for Vertex AI APIs. -
location
Returns the location for Vertex AI APIs. -
apiKey
Returns the API key for Google AI APIs.
-