Class GoogleGenAiChatModel.Builder

java.lang.Object
org.springframework.ai.google.genai.GoogleGenAiChatModel.Builder
Enclosing class:
GoogleGenAiChatModel

public static final class GoogleGenAiChatModel.Builder extends Object
  • Method Details

    • genAiClient

      public GoogleGenAiChatModel.Builder genAiClient(com.google.genai.Client genAiClient)
    • defaultOptions

      public GoogleGenAiChatModel.Builder defaultOptions(GoogleGenAiChatOptions 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 in GoogleGenAiChatModel is superseded by org.springframework.ai.chat.client.advisor.ToolCallAdvisor used via org.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 in GoogleGenAiChatModel is superseded by org.springframework.ai.chat.client.advisor.ToolCallAdvisor used via org.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

      public GoogleGenAiChatModel build()