Uses of Record Class
com.tnsai.rag.KnowledgeUsage
Packages that use KnowledgeUsage
Package
Description
Agent classes and lifecycle management for the TnsAI framework.
Agent chat orchestration for LLM invocation, history management, and tool call handling.
Agent execution components including LLM orchestration, tool processing, and memory management.
Agent orchestration — chat, streaming, tool execution, and knowledge base management.
Canonical RAG configuration and retrieval contracts.
-
Uses of KnowledgeUsage in com.tnsai.agents
Method parameters in com.tnsai.agents with type arguments of type KnowledgeUsageModifier and TypeMethodDescriptionAgentBuilder.knowledgeUsageListener(BiConsumer<String, List<KnowledgeUsage>> listener) Receives what each knowledge source gave every chat turn (scope"chat") and every action call that runs knowledge (scope = the action name): oneKnowledgeUsagerow per source, in declaration order.voidAgent.reportKnowledgeUsage(String scope, List<KnowledgeUsage> usage) Hands a call's knowledge usage to the listener. -
Uses of KnowledgeUsage in com.tnsai.agents.chat
Method parameters in com.tnsai.agents.chat with type arguments of type KnowledgeUsageModifier and TypeMethodDescriptiondefault voidAgentChatOrchestrator.ChatContext.reportKnowledgeUsage(String scope, List<KnowledgeUsage> usage) Receives what each knowledge source gave onescope: an action name, or"chat"for a chat turn. -
Uses of KnowledgeUsage in com.tnsai.agents.execution
Method parameters in com.tnsai.agents.execution with type arguments of type KnowledgeUsageModifier and TypeMethodDescriptiondefault voidAgentToolExecutor.AgentContext.reportKnowledgeUsage(String scope, List<KnowledgeUsage> usage) Receives what each knowledge source gave onescope: an action name, or"chat"for a chat turn. -
Uses of KnowledgeUsage in com.tnsai.agents.orchestration
Method parameters in com.tnsai.agents.orchestration with type arguments of type KnowledgeUsageModifier and TypeMethodDescriptiondefault voidAgentOrchestrator.OrchestratorContext.reportKnowledgeUsage(String scope, List<KnowledgeUsage> usage) Receives what each knowledge source gave onescope: an action name, or"chat"for a chat turn.voidAgentOrchestrator.reportKnowledgeUsage(String scope, List<KnowledgeUsage> usage) -
Uses of KnowledgeUsage in com.tnsai.rag
Methods in com.tnsai.rag that return types with arguments of type KnowledgeUsageModifier and TypeMethodDescriptionstatic List<KnowledgeUsage> RetrievedContextRenderer.searchUsage(List<String> sources, RetrievalResult result, int contextWindow) Says what each SEARCH source gave whenresultis rendered withincontextWindow: the evidence that fits, as therendermethods cut it, attributed to its source.ChatKnowledgeContext.Turn.usage()Returns the value of theusagerecord component.