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

io.quarkiverse.langchain4j.websockets.next.deployment.WebSocketsNextProcessor Maven / Gradle / Ivy

Go to download

This extensions is added by Quarkus automatically when quarkus-langchain4j and quarkus-websockets-next are on the classpath

There is a newer version: 0.21.0
Show newest version
package io.quarkiverse.langchain4j.websockets.next.deployment;

import io.quarkiverse.langchain4j.spi.DefaultMemoryIdProvider;
import io.quarkiverse.langchain4j.websockets.next.runtime.WebSocketConnectionDefaultMemoryIdProvider;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.FeatureBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ServiceProviderBuildItem;

public class WebSocketsNextProcessor {

    private static final String FEATURE = "langchain4j-websockets-next";

    @BuildStep
    FeatureBuildItem feature() {
        return new FeatureBuildItem(FEATURE);
    }

    @BuildStep
    ServiceProviderBuildItem serviceProvider() {
        return new ServiceProviderBuildItem(DefaultMemoryIdProvider.class.getName(),
                WebSocketConnectionDefaultMemoryIdProvider.class.getName());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy