Annotation 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 on the agent type, with no arguments other than the ones resolved through a
SupplierParameterResolver, 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);
}
}
Like every helper method, it can be an instance method of a helper object of the agent instead of a static method
of the agent type: see the "Helper objects" section of the agentic tutorial and
AgenticServices.AgentConfigurator.