Class MistralAiAutoConfiguration

java.lang.Object
org.springframework.ai.autoconfigure.mistralai.MistralAiAutoConfiguration

@AutoConfiguration(after={org.springframework.boot.autoconfigure.web.client.RestClientAutoConfiguration.class,SpringAiRetryAutoConfiguration.class}) @EnableConfigurationProperties({MistralAiEmbeddingProperties.class,MistralAiCommonProperties.class,MistralAiChatProperties.class}) @ConditionalOnClass(MistralAiApi.class) @ImportAutoConfiguration(classes={SpringAiRetryAutoConfiguration.class,org.springframework.boot.autoconfigure.web.client.RestClientAutoConfiguration.class,org.springframework.boot.autoconfigure.web.reactive.function.client.WebClientAutoConfiguration.class}) public class MistralAiAutoConfiguration extends Object
Since:
0.8.1
Author:
Ricken Bazolo, Christian Tzolov, Thomas Vitale
  • Constructor Details

    • MistralAiAutoConfiguration

      public MistralAiAutoConfiguration()
  • Method Details

    • mistralAiEmbeddingModel

      @Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="spring.ai.mistralai.embedding", name="enabled", havingValue="true", matchIfMissing=true) public MistralAiEmbeddingModel mistralAiEmbeddingModel(MistralAiCommonProperties commonProperties, MistralAiEmbeddingProperties embeddingProperties, org.springframework.web.client.RestClient.Builder restClientBuilder, org.springframework.retry.support.RetryTemplate retryTemplate, org.springframework.web.client.ResponseErrorHandler responseErrorHandler, org.springframework.beans.factory.ObjectProvider<io.micrometer.observation.ObservationRegistry> observationRegistry, org.springframework.beans.factory.ObjectProvider<EmbeddingModelObservationConvention> observationConvention)
    • mistralAiChatModel

      @Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="spring.ai.mistralai.chat", name="enabled", havingValue="true", matchIfMissing=true) public MistralAiChatModel mistralAiChatModel(MistralAiCommonProperties commonProperties, MistralAiChatProperties chatProperties, org.springframework.web.client.RestClient.Builder restClientBuilder, List<FunctionCallback> toolFunctionCallbacks, FunctionCallbackContext functionCallbackContext, org.springframework.retry.support.RetryTemplate retryTemplate, org.springframework.web.client.ResponseErrorHandler responseErrorHandler, org.springframework.beans.factory.ObjectProvider<io.micrometer.observation.ObservationRegistry> observationRegistry, org.springframework.beans.factory.ObjectProvider<ChatModelObservationConvention> observationConvention)
    • springAiFunctionManager

      @Bean @ConditionalOnMissingBean public FunctionCallbackContext springAiFunctionManager(org.springframework.context.ApplicationContext context)