GeminiServiceBuilder<T,U> Class

  • java.lang.Object
    • com.microsoft.semantickernel.aiservices.google.GeminiServiceBuilder<T,U>

Type Parameters

T

The type of the service

U

The type of the builder

Implements

public abstract class GeminiServiceBuilder<T,U>
implements SemanticKernelBuilder<T>

Builder for a Gemini service.

Field Summary

Modifier and Type Field and Description
protected com.google.cloud.vertexai.VertexAI client
protected java.lang.String modelId

Constructor Summary

Constructor Description
GeminiServiceBuilder()

Method Summary

Modifier and Type Method and Description
abstract T build()
U withModelId(String modelId)

Sets the model ID for the service

U withVertexAIClient(VertexAI client)

Sets the VertexAI client for the service

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

Field Details

client

protected VertexAI client

modelId

protected String modelId

Constructor Details

GeminiServiceBuilder

public GeminiServiceBuilder()

Method Details

build

public abstract T build()

withModelId

public U withModelId(String modelId)

Sets the model ID for the service

Parameters:

modelId - The model ID

Returns:

The builder

withVertexAIClient

public U withVertexAIClient(VertexAI client)

Sets the VertexAI client for the service

Parameters:

client - The VertexAI client

Returns:

The builder

Applies to