
io.quarkiverse.langchain4j.deployment.items.MethodParameterAllowedAnnotationsBuildItem Maven / Gradle / Ivy
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