Annotation Interface ContentRetrieverSupplier


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

Example:


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

        @ContentRetrieverSupplier
        static ContentRetriever contentRetriever() {
            return ContentRetrievers.from(yourVectorStore);
        }
    }