Uses of Record Class
com.tnsai.rag.KnowledgeEntry
Packages that use KnowledgeEntry
Package
Description
Agent classes and lifecycle management for the TnsAI framework.
Agent execution components including LLM orchestration, tool processing, and memory management.
Agent initialization and specification extraction.
Agent orchestration — chat, streaming, tool execution, and knowledge base management.
Canonical RAG configuration and retrieval contracts.
-
Uses of KnowledgeEntry in com.tnsai.agents
Methods in com.tnsai.agents that return types with arguments of type KnowledgeEntryModifier and TypeMethodDescriptionfinal List<KnowledgeEntry> Agent.getAgentKnowledgeEntries()The agent's knowledge with each entry'suse: what its@AgentSpecdeclares, with theAgent.getKnowledge()entries layered over it by name.Methods in com.tnsai.agents with parameters of type KnowledgeEntryModifier and TypeMethodDescriptionAgentBuilder.knowledge(KnowledgeEntry... entries) Gives the agent knowledge entries, layered over its@AgentSpecknowledge by name: an entry whose name the annotation declares replaces that entry (a role entry stays a role entry), and any other entry is added to the agent's chat scope. -
Uses of KnowledgeEntry in com.tnsai.agents.execution
Methods in com.tnsai.agents.execution that return types with arguments of type KnowledgeEntryModifier and TypeMethodDescriptiondefault List<KnowledgeEntry> AgentToolExecutor.AgentContext.getAgentKnowledgeEntries()The agent's action-level knowledge with each entry'suse. -
Uses of KnowledgeEntry in com.tnsai.agents.init
Methods in com.tnsai.agents.init that return types with arguments of type KnowledgeEntryModifier and TypeMethodDescriptionAgentSpecExtractor.getKnowledgeEntries()Knowledge declared on@AgentSpec.knowledge(), each entry with its resolveduse, budget and search settings. -
Uses of KnowledgeEntry in com.tnsai.agents.orchestration
Methods in com.tnsai.agents.orchestration that return types with arguments of type KnowledgeEntryModifier and TypeMethodDescriptionAgentOrchestrator.getAgentKnowledgeEntries()default List<KnowledgeEntry> AgentOrchestrator.OrchestratorContext.getAgentKnowledgeEntries() -
Uses of KnowledgeEntry in com.tnsai.rag
Methods in com.tnsai.rag that return KnowledgeEntryModifier and TypeMethodDescriptionstatic KnowledgeEntryKnowledgeEntry.search(KnowledgeSourceConfig source) A source searched with the scope's settings, as anAgentBuildersource is.Methods in com.tnsai.rag that return types with arguments of type KnowledgeEntryModifier and TypeMethodDescriptionstatic List<KnowledgeEntry> KnowledgeDeclarations.chatScope(List<KnowledgeEntry> entries) static List<KnowledgeEntry> Knowledge a role or agent class declares, in declaration order.static List<KnowledgeEntry> KnowledgeDeclarations.declared(Class<?> host, List<KnowledgeEntry> overrides, String overridesWhere) The knowledge an agent class chats and acts with: what its@AgentSpecdeclares, asKnowledgeDeclarations.declared(Class)reads it, withoverrideslayered over it by name.KnowledgeSelection.entries()Returns the value of theentriesrecord component.KnowledgeSelection.entries(Knowledge.Use use) static List<KnowledgeEntry> KnowledgeDeclarations.withoutMemoryBesideSearch(List<KnowledgeEntry> entries) The entries a class's SEARCH settings merge over: all of them, except that when its chat scope searches a MEMORY entry beside other SEARCH entries, the MEMORY entries stay out, since their binding searches them on its own with its own settings.Methods in com.tnsai.rag with parameters of type KnowledgeEntryModifier and TypeMethodDescriptionstatic SequentialConfigSequentialConfig.from(KnowledgeEntry entry) Converts a declareduse = SEQUENTIALknowledge entry to the canonical runtime model.Method parameters in com.tnsai.rag with type arguments of type KnowledgeEntryModifier and TypeMethodDescriptionstatic List<KnowledgeEntry> KnowledgeDeclarations.chatScope(List<KnowledgeEntry> entries) static List<KnowledgeEntry> KnowledgeDeclarations.declared(Class<?> host, List<KnowledgeEntry> overrides, String overridesWhere) The knowledge an agent class chats and acts with: what its@AgentSpecdeclares, asKnowledgeDeclarations.declared(Class)reads it, withoverrideslayered over it by name.static 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 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.default ChatKnowledgeContextRetrievalSpi.prepareChatKnowledge(Object agent, List<KnowledgeEntry> entries, LLMClient llm) Prepares the DIRECT knowledge an agent's chat turns give.static booleanChatKnowledgeBindingValidator.searchesMemory(ChatKnowledgeBinding binding, List<KnowledgeEntry> knowledge) Whether a binding searches the MEMORY entry of the given knowledge rather than its other SEARCH entries: whether any of its sources names an enabled MEMORY entry of the chat scope.static KnowledgeSelectionKnowledgeDeclarations.select(List<KnowledgeEntry> entries, String where) A scope over the given entries searched together, such as a chat turn over an agent's MEMORY knowledge or over its other 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.static voidChatKnowledgeBindingValidator.validate(ChatKnowledgeBinding binding, Object owner, String ownerId, List<KnowledgeEntry> knowledge, String where) Checks a binding against the owner's declared knowledge.static voidKnowledgeDeclarations.validate(Class<?> host, List<KnowledgeEntry> outer) Checks every action of a class against the knowledge in its reach.static voidKnowledgeDeclarations.validate(Class<?> host, List<KnowledgeEntry> outer, Map<String, List<String>> actionKnowledge) LikeKnowledgeDeclarations.validate(Class, List), with the knowledge of some actions given by name asKnowledgeDeclarations.forAction(Method, List, Map)takes it.default voidRetrievalSpi.validateConfiguration(Class<?> targetClass, List<KnowledgeEntry> outer, LLMClient llm) Validates a target's knowledge once the knowledge around it is known: every action scope resolved against the target's own declarations plusouter, and every DIRECT source measured against its budget.default voidRetrievalSpi.validateConfiguration(Class<?> targetClass, List<KnowledgeEntry> outer, LLMClient llm, boolean pathsPerRun) Validates a target's knowledge asRetrievalSpi.validateConfiguration(Class, java.util.List, com.tnsai.llm.LLMClient)does, for a host that locates FILE sources per run.default voidRetrievalSpi.validateConfiguration(Class<?> targetClass, List<KnowledgeEntry> outer, LLMClient llm, Map<String, List<String>> actionKnowledge) Validates a target's knowledge asRetrievalSpi.validateConfiguration(Class, java.util.List, com.tnsai.llm.LLMClient)does, with the knowledge of some actions given by name: an actionactionKnowledgenames sees the entries given there instead of the ones its@ActionSpecnames.static List<KnowledgeEntry> KnowledgeDeclarations.withoutMemoryBesideSearch(List<KnowledgeEntry> entries) The entries a class's SEARCH settings merge over: all of them, except that when its chat scope searches a MEMORY entry beside other SEARCH entries, the MEMORY entries stay out, since their binding searches them on its own with its own settings.Constructor parameters in com.tnsai.rag with type arguments of type KnowledgeEntryModifierConstructorDescriptionKnowledgeSelection(List<KnowledgeEntry> entries, Optional<RetrievalConfig> search) Creates an instance of aKnowledgeSelectionrecord class.