GeminiServiceBuilder<T,U> Class
- java.
lang. Object - com.
microsoft. semantickernel. aiservices. google. GeminiServiceBuilder<T,U>
- com.
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
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:
Returns:
withVertexAIClient
public U withVertexAIClient(VertexAI client)
Sets the VertexAI client for the service
Parameters:
Returns: