Class GoogleGenAiChatModel.Builder
java.lang.Object
org.springframework.ai.google.genai.GoogleGenAiChatModel.Builder
- Enclosing class:
- GoogleGenAiChatModel
-
Method Summary
Modifier and TypeMethodDescriptionbuild()defaultOptions(GoogleGenAiChatOptions defaultOptions) genAiClient(com.google.genai.Client genAiClient) observationRegistry(io.micrometer.observation.ObservationRegistry observationRegistry) retryTemplate(org.springframework.core.retry.RetryTemplate retryTemplate) toolCallingManager(org.springframework.ai.model.tool.ToolCallingManager toolCallingManager) Deprecated, for removal: This API element is subject to removal in a future version.toolExecutionEligibilityPredicate(org.springframework.ai.model.tool.ToolExecutionEligibilityPredicate toolExecutionEligibilityPredicate) Deprecated, for removal: This API element is subject to removal in a future version.since 2.0.0 for removal in 3.0.0 — internal tool execution inGoogleGenAiChatModelis superseded byorg.springframework.ai.chat.client.advisor.ToolCallAdvisorused viaorg.springframework.ai.chat.client.ChatClient.
-
Method Details
-
genAiClient
-
defaultOptions
-
toolCallingManager
@Deprecated(since="2.0.0", forRemoval=true) public GoogleGenAiChatModel.Builder toolCallingManager(org.springframework.ai.model.tool.ToolCallingManager toolCallingManager) Deprecated, for removal: This API element is subject to removal in a future version.since 2.0.0 for removal in 3.0.0 — internal tool execution inGoogleGenAiChatModelis superseded byorg.springframework.ai.chat.client.advisor.ToolCallAdvisorused viaorg.springframework.ai.chat.client.ChatClient.Sets the tool calling manager used for internal tool execution.- Parameters:
toolCallingManager- the tool calling manager- Returns:
- this builder
-
toolExecutionEligibilityPredicate
@Deprecated(since="2.0.0", forRemoval=true) public GoogleGenAiChatModel.Builder toolExecutionEligibilityPredicate(org.springframework.ai.model.tool.ToolExecutionEligibilityPredicate toolExecutionEligibilityPredicate) Deprecated, for removal: This API element is subject to removal in a future version.since 2.0.0 for removal in 3.0.0 — internal tool execution inGoogleGenAiChatModelis superseded byorg.springframework.ai.chat.client.advisor.ToolCallAdvisorused viaorg.springframework.ai.chat.client.ChatClient.Sets the predicate to determine tool execution eligibility.- Parameters:
toolExecutionEligibilityPredicate- the predicate- Returns:
- this builder
-
retryTemplate
public GoogleGenAiChatModel.Builder retryTemplate(org.springframework.core.retry.RetryTemplate retryTemplate) -
observationRegistry
public GoogleGenAiChatModel.Builder observationRegistry(io.micrometer.observation.ObservationRegistry observationRegistry) -
build
-
GoogleGenAiChatModelis superseded byorg.springframework.ai.chat.client.advisor.ToolCallAdvisorused viaorg.springframework.ai.chat.client.ChatClient.