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) public class MistralAiAutoConfiguration extends Object
Since:
0.8.1
Author:
Ricken Bazolo, Christian Tzolov
  • Constructor Details

    • MistralAiAutoConfiguration

      public MistralAiAutoConfiguration()
  • Method Details

    • mistralAiEmbeddingClient

      @Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="spring.ai.mistralai.embedding", name="enabled", havingValue="true", matchIfMissing=true) public MistralAiEmbeddingClient mistralAiEmbeddingClient(MistralAiCommonProperties commonProperties, MistralAiEmbeddingProperties embeddingProperties, org.springframework.web.client.RestClient.Builder restClientBuilder, org.springframework.retry.support.RetryTemplate retryTemplate, org.springframework.web.client.ResponseErrorHandler responseErrorHandler)
    • mistralAiChatClient

      @Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="spring.ai.mistralai.chat", name="enabled", havingValue="true", matchIfMissing=true) public MistralAiChatClient mistralAiChatClient(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)
    • springAiFunctionManager

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