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

io.quarkiverse.langchain4j.deployment.LangChain4jDotNames Maven / Gradle / Ivy

The newest version!
package io.quarkiverse.langchain4j.deployment;

import org.jboss.jandex.DotName;

import dev.langchain4j.data.image.Image;
import dev.langchain4j.data.message.ChatMessage;
import dev.langchain4j.memory.chat.ChatMemoryProvider;
import dev.langchain4j.model.chat.ChatLanguageModel;
import dev.langchain4j.model.chat.StreamingChatLanguageModel;
import dev.langchain4j.model.chat.TokenCountEstimator;
import dev.langchain4j.model.embedding.EmbeddingModel;
import dev.langchain4j.model.image.ImageModel;
import dev.langchain4j.model.input.structured.StructuredPrompt;
import dev.langchain4j.model.input.structured.StructuredPromptProcessor;
import dev.langchain4j.model.moderation.ModerationModel;
import dev.langchain4j.model.output.structured.Description;
import dev.langchain4j.model.scoring.ScoringModel;
import dev.langchain4j.rag.RetrievalAugmentor;
import dev.langchain4j.retriever.Retriever;
import dev.langchain4j.service.AiServices;
import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.Moderate;
import dev.langchain4j.service.Result;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.TokenStream;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.UserName;
import dev.langchain4j.web.search.WebSearchEngine;
import dev.langchain4j.web.search.WebSearchTool;
import io.quarkiverse.langchain4j.CreatedAware;
import io.quarkiverse.langchain4j.ImageUrl;
import io.quarkiverse.langchain4j.ModelName;
import io.quarkiverse.langchain4j.RegisterAiService;
import io.quarkiverse.langchain4j.SeedMemory;
import io.quarkiverse.langchain4j.audit.AuditService;
import io.quarkiverse.langchain4j.guardrails.InputGuardrails;
import io.quarkiverse.langchain4j.guardrails.OutputGuardrails;
import io.quarkiverse.langchain4j.runtime.aiservice.QuarkusAiServiceContextQualifier;

public class LangChain4jDotNames {
    public static final DotName CHAT_MODEL = DotName.createSimple(ChatLanguageModel.class);
    public static final DotName STREAMING_CHAT_MODEL = DotName.createSimple(StreamingChatLanguageModel.class);
    public static final DotName SCORING_MODEL = DotName.createSimple(ScoringModel.class);
    public static final DotName EMBEDDING_MODEL = DotName.createSimple(EmbeddingModel.class);
    public static final DotName MODERATION_MODEL = DotName.createSimple(ModerationModel.class);
    public static final DotName IMAGE_MODEL = DotName.createSimple(ImageModel.class);
    public static final DotName TOKEN_COUNT_ESTIMATOR = DotName.createSimple(TokenCountEstimator.class);
    public static final DotName CHAT_MESSAGE = DotName.createSimple(ChatMessage.class);
    public static final DotName TOKEN_STREAM = DotName.createSimple(TokenStream.class);
    public static final DotName OUTPUT_GUARDRAILS = DotName.createSimple(OutputGuardrails.class);
    public static final DotName INPUT_GUARDRAILS = DotName.createSimple(InputGuardrails.class);
    static final DotName AI_SERVICES = DotName.createSimple(AiServices.class);
    static final DotName CREATED_AWARE = DotName.createSimple(CreatedAware.class);
    public static final DotName SYSTEM_MESSAGE = DotName.createSimple(SystemMessage.class);
    public static final DotName USER_MESSAGE = DotName.createSimple(UserMessage.class);
    static final DotName USER_NAME = DotName.createSimple(UserName.class);
    static final DotName IMAGE_URL = DotName.createSimple(ImageUrl.class);
    static final DotName MODERATE = DotName.createSimple(Moderate.class);
    static final DotName MEMORY_ID = DotName.createSimple(MemoryId.class);
    static final DotName DESCRIPTION = DotName.createSimple(Description.class);
    static final DotName STRUCTURED_PROMPT = DotName.createSimple(StructuredPrompt.class);
    static final DotName STRUCTURED_PROMPT_PROCESSOR = DotName.createSimple(StructuredPromptProcessor.class);
    static final DotName V = DotName.createSimple(dev.langchain4j.service.V.class);

    static final DotName MODEL_NAME = DotName.createSimple(ModelName.class);
    public static final DotName REGISTER_AI_SERVICES = DotName.createSimple(RegisterAiService.class);

    static final DotName BEAN_CHAT_MODEL_SUPPLIER = DotName.createSimple(
            RegisterAiService.BeanChatLanguageModelSupplier.class);

    static final DotName BEAN_STREAMING_CHAT_MODEL_SUPPLIER = DotName.createSimple(
            RegisterAiService.BeanStreamingChatLanguageModelSupplier.class);

    static final DotName CHAT_MEMORY_PROVIDER = DotName.createSimple(ChatMemoryProvider.class);

    static final DotName BEAN_CHAT_MEMORY_PROVIDER_SUPPLIER = DotName.createSimple(
            RegisterAiService.BeanChatMemoryProviderSupplier.class);

    static final DotName NO_CHAT_MEMORY_PROVIDER_SUPPLIER = DotName.createSimple(
            RegisterAiService.NoChatMemoryProviderSupplier.class);

    static final DotName RETRIEVER = DotName.createSimple(Retriever.class);
    static final DotName NO_RETRIEVER = DotName.createSimple(
            RegisterAiService.NoRetriever.class);

    static final DotName RETRIEVAL_AUGMENTOR = DotName.createSimple(RetrievalAugmentor.class);
    static final DotName BEAN_IF_EXISTS_RETRIEVAL_AUGMENTOR_SUPPLIER = DotName.createSimple(
            RegisterAiService.BeanIfExistsRetrievalAugmentorSupplier.class);

    static final DotName NO_RETRIEVAL_AUGMENTOR_SUPPLIER = DotName.createSimple(
            RegisterAiService.NoRetrievalAugmentorSupplier.class);

    static final DotName AUDIT_SERVICE = DotName.createSimple(AuditService.class);

    static final DotName BEAN_IF_EXISTS_AUDIT_SERVICE_SUPPLIER = DotName.createSimple(
            RegisterAiService.BeanIfExistsAuditServiceSupplier.class);

    static final DotName BEAN_IF_EXISTS_MODERATION_MODEL_SUPPLIER = DotName.createSimple(
            RegisterAiService.BeanIfExistsModerationModelSupplier.class);

    static final DotName BEAN_IF_EXISTS_IMAGE_MODEL_SUPPLIER = DotName.createSimple(
            RegisterAiService.BeanIfExistsImageModelSupplier.class);

    static final DotName BEAN_IF_EXISTS_TOOL_PROVIDER_SUPPLIER = DotName.createSimple(
            RegisterAiService.BeanIfExistsToolProviderSupplier.class);

    static final DotName QUARKUS_AI_SERVICE_CONTEXT_QUALIFIER = DotName.createSimple(
            QuarkusAiServiceContextQualifier.class);

    static final DotName SEED_MEMORY = DotName.createSimple(SeedMemory.class);

    static final DotName WEB_SEARCH_TOOL = DotName.createSimple(WebSearchTool.class);
    static final DotName WEB_SEARCH_ENGINE = DotName.createSimple(WebSearchEngine.class);
    static final DotName IMAGE = DotName.createSimple(Image.class);
    static final DotName RESULT = DotName.createSimple(Result.class);
    static final DotName TOOL_PROVIDER = DotName.createSimple(ToolProcessor.class);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy