GeminiService Class
- java.
lang. Object - com.
microsoft. semantickernel. aiservices. google. GeminiService
- com.
Implements
public class GeminiService
implements AIService
Makes a Gemini service available to the Semantic Kernel.
Constructor Summary
| Modifier | Constructor | Description |
|---|---|---|
| protected | GeminiService(VertexAI client, String modelId) |
Creates a new Gemini service. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| protected com.google.cloud.vertexai.VertexAI |
getClient()
Gets the VertexAI client. |
| java.lang.String | getModelId() |
| java.lang.String | getServiceId() |
Methods inherited from java.lang.Object
Constructor Details
GeminiService
protected GeminiService(VertexAI client, String modelId)
Creates a new Gemini service.
Parameters:
Method Details
getClient
protected VertexAI getClient()
Gets the VertexAI client.
Returns:
getModelId
public String getModelId()
getServiceId
public String getServiceId()