Uses of Record Class
com.tnsai.rag.KnowledgeSelection
Packages that use KnowledgeSelection
-
Uses of KnowledgeSelection in com.tnsai.rag
Fields in com.tnsai.rag declared as KnowledgeSelectionModifier and TypeFieldDescriptionstatic final KnowledgeSelectionKnowledgeSelection.EMPTYA scope that sees no knowledge.Methods in com.tnsai.rag that return KnowledgeSelectionModifier and TypeMethodDescriptionstatic KnowledgeSelectionKnowledgeDeclarations.forAction(Method method, List<KnowledgeEntry> available) The knowledge an action sees: the sources itsActionSpec.knowledge()names, with the action's values applied.static KnowledgeSelectionKnowledgeDeclarations.forAction(Method method, List<KnowledgeEntry> available, Map<String, List<String>> actionKnowledge) LikeKnowledgeDeclarations.forAction(Method, List), but an action the agent gives its knowledge by name, keyed by action name inactionKnowledge, sees those entries as declared instead of itsActionSpec.knowledge().static KnowledgeSelectionKnowledgeDeclarations.select(List<KnowledgeEntry> entries, String where) A scope over the given entries, such as a chat turn over all of an agent's knowledge.static KnowledgeSelectionKnowledgeDeclarations.select(List<KnowledgeEntry> entries, String where, Supplier<RetrievalConfig.Builder> defaults) A scope over the given entries whose SEARCH settings overlay the given defaults instead of the framework's, such as a chat turn's.Methods in com.tnsai.rag that return types with arguments of type KnowledgeSelectionModifier and TypeMethodDescriptionstatic Optional<KnowledgeSelection> KnowledgeDeclarations.forActionIfResolvable(Method method, List<KnowledgeEntry> available) LikeKnowledgeDeclarations.forAction(Method, List), but leaves an action that names knowledge outsideavailableunresolved instead of failing.static Optional<KnowledgeSelection> KnowledgeDeclarations.forActionIfResolvable(Method method, List<KnowledgeEntry> available, Map<String, List<String>> actionKnowledge) LikeKnowledgeDeclarations.forActionIfResolvable(Method, List), with the action's knowledge given by name asKnowledgeDeclarations.forAction(Method, List, Map)takes it.