Annotation Interface RetrievalAugmentorSupplier


@Retention(RUNTIME) @Target(METHOD) public @interface RetrievalAugmentorSupplier
Marks a method as a supplier of a retrieval augmentor that an agent can utilize during its operation. The annotated method must be static, with no arguments, and return an instance of RetrievalAugmentor.

Example:


    public interface ResearchAgent {
        @Agent("A research agent")
        String research(@V("topic") String topic);

        @RetrievalAugmentorSupplier
        static RetrievalAugmentor retrievalAugmentor() {
            return RetrievalAugmentors.from(yourVectorStore);
        }
    }