Class VertexAiGeminiAutoConfiguration

java.lang.Object
org.springframework.ai.autoconfigure.vertexai.gemini.VertexAiGeminiAutoConfiguration

@AutoConfiguration(after=SpringAiRetryAutoConfiguration.class) @ConditionalOnClass({com.google.cloud.vertexai.VertexAI.class,VertexAiGeminiChatModel.class}) @EnableConfigurationProperties({VertexAiGeminiChatProperties.class,VertexAiGeminiConnectionProperties.class}) @ImportAutoConfiguration(classes=SpringAiRetryAutoConfiguration.class) public class VertexAiGeminiAutoConfiguration extends Object
Auto-configuration for Vertex AI Gemini Chat.
Since:
1.0.0
Author:
Christian Tzolov, Soby Chacko, Mark Pollack
  • Constructor Details

    • VertexAiGeminiAutoConfiguration

      public VertexAiGeminiAutoConfiguration()
  • Method Details

    • vertexAi

      @Bean @ConditionalOnMissingBean public com.google.cloud.vertexai.VertexAI vertexAi(VertexAiGeminiConnectionProperties connectionProperties) throws IOException
      Throws:
      IOException
    • vertexAiGeminiChat

      @Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="spring.ai.vertex.ai.gemini.chat", name="enabled", havingValue="true", matchIfMissing=true) public VertexAiGeminiChatModel vertexAiGeminiChat(com.google.cloud.vertexai.VertexAI vertexAi, VertexAiGeminiChatProperties chatProperties, List<FunctionCallback> toolFunctionCallbacks, org.springframework.context.ApplicationContext context, org.springframework.retry.support.RetryTemplate retryTemplate, org.springframework.beans.factory.ObjectProvider<io.micrometer.observation.ObservationRegistry> observationRegistry, org.springframework.beans.factory.ObjectProvider<ChatModelObservationConvention> observationConvention)