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

io.quarkiverse.langchain4j.deployment.items.MethodParameterAllowedAnnotationsBuildItem Maven / Gradle / Ivy

There is a newer version: 0.23.3
Show newest version
package io.quarkiverse.langchain4j.deployment.items;

import java.util.function.Predicate;

import org.jboss.jandex.AnnotationInstance;

import io.quarkus.builder.item.MultiBuildItem;

/**
 * All Ai service method parameters with annotations matching {@code predicate} are forcedly allowed to be part of the prompt
 * template.
 */
public final class MethodParameterAllowedAnnotationsBuildItem extends MultiBuildItem {

    private final Predicate predicate;

    public MethodParameterAllowedAnnotationsBuildItem(Predicate predicate) {
        this.predicate = predicate;
    }

    public Predicate getPredicate() {
        return predicate;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy