GeminiService Class

  • java.lang.Object
    • com.microsoft.semantickernel.aiservices.google.GeminiService

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

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

GeminiService

protected GeminiService(VertexAI client, String modelId)

Creates a new Gemini service.

Parameters:

client - The VertexAI client
modelId - The Gemini model ID

Method Details

getClient

protected VertexAI getClient()

Gets the VertexAI client.

Returns:

The VertexAI client

getModelId

public String getModelId()

getServiceId

public String getServiceId()

Applies to