All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.langchain4j.service.spring.AiServiceWiringMode Maven / Gradle / Ivy

There is a newer version: 1.0.0-alpha1
Show newest version
package dev.langchain4j.service.spring;

/**
 * Specifies how LangChain4j components are wired (injected) into a given AI Service.
 */
public enum AiServiceWiringMode {

    /**
     * All LangChain4j components available in the application context are wired automatically into a given AI Service.
     * If there are multiple components of the same type, an exception is thrown.
     */
    AUTOMATIC,

    /**
     * Only explicitly specified LangChain4j components are wired into a given AI Service.
     * Component (bean) names are specified using attributes of {@link AiService} annotation like this:
     * {@code AiService(wiringMode = EXPLICIT, chatMemory = "")}
     */
    EXPLICIT
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy