Uses of Interface
com.tnsai.llm.LLMClient
Packages that use LLMClient
Package
Description
Agent classes and lifecycle management for the TnsAI framework.
Agent chat orchestration for LLM invocation, history management, and tool call handling.
Multi-LLM ensemble execution with parallel fan-out, race patterns, and consensus voting.
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.
Streaming and event-based chat operations with token-level granularity and event publishing.
LLM (Large Language Model) client interfaces and abstractions.
Memory management strategies for conversation history within token budgets.
Canonical RAG configuration and retrieval contracts.
Role definitions and capabilities for agents in the TnsAI framework.
-
Uses of LLMClient in com.tnsai.agents
Methods in com.tnsai.agents that return LLMClientModifier and TypeMethodDescriptionfinal LLMClientAgent.getAgentLLM()final LLMClientAgent.getInjectedLLM()final LLMClientAgent.getLLMTemplate()final LLMClientAgent.llm()Returns the LLM client used by this agent.Methods in com.tnsai.agents with parameters of type LLMClientModifier and TypeMethodDescriptionSets the LLM client for this agent.final voidReplaces the LLM client; conversation history is preserved. -
Uses of LLMClient in com.tnsai.agents.chat
Methods in com.tnsai.agents.chat that return LLMClientModifier and TypeMethodDescriptionAgentChatOrchestrator.ChatContext.getAgentLLM()Returns the LLM client for chat operations -
Uses of LLMClient in com.tnsai.agents.ensemble
Methods in com.tnsai.agents.ensemble with parameters of type LLMClientModifier and TypeMethodDescriptionAgentEnsembleExecutor.ensembleChat(String message, List<LLMClient> llms, LLMClient aggregator) Sends message to multiple LLMs and combines responses using an aggregator LLM.Method parameters in com.tnsai.agents.ensemble with type arguments of type LLMClientModifier and TypeMethodDescriptionAgentEnsembleExecutor.consensusChat(String message, List<LLMClient> llms, Function<String, Double> scorer) Sends message to multiple LLMs and selects the best response using a scoring function.AgentEnsembleExecutor.ensembleChat(String message, List<LLMClient> llms, LLMClient aggregator) Sends message to multiple LLMs and combines responses using an aggregator LLM.AgentEnsembleExecutor.majorityVoteChat(String message, List<LLMClient> llms) Sends message to multiple LLMs and selects by majority voting.AgentEnsembleExecutor.parallelChat(String message, List<LLMClient> llms) Sends message to multiple LLMs in parallel and collects all responses.Sends message to multiple LLMs and returns the first successful response. -
Uses of LLMClient in com.tnsai.agents.execution
Methods in com.tnsai.agents.execution that return LLMClientModifier and TypeMethodDescriptionAgentToolExecutor.AgentContext.getAgentLLM()LLMOrchestrator.getLLM()Returns the configured LLM client.Constructors in com.tnsai.agents.execution with parameters of type LLMClientModifierConstructorDescriptionLLMOrchestrator(String agentName, LLMClient llm, MemoryStore memoryStore) Creates a new LLMOrchestrator. -
Uses of LLMClient in com.tnsai.agents.init
Fields in com.tnsai.agents.init declared as LLMClientMethods in com.tnsai.agents.init that return LLMClientModifier and TypeMethodDescriptionAgentInitializer.InitializerContext.getInjectedLLM()AgentInitializer.InitializerContext.getLLMTemplate() -
Uses of LLMClient in com.tnsai.agents.orchestration
Methods in com.tnsai.agents.orchestration that return LLMClientModifier and TypeMethodDescriptionAgentOrchestrator.getAgentLLM()AgentOrchestrator.OrchestratorContext.getAgentLLM() -
Uses of LLMClient in com.tnsai.agents.streaming
Methods in com.tnsai.agents.streaming that return LLMClient -
Uses of LLMClient in com.tnsai.agents.validation
Methods in com.tnsai.agents.validation that return types with arguments of type LLMClientModifier and TypeMethodDescriptionValidationContext.llmClient()Returns the value of thellmClientrecord component.Constructor parameters in com.tnsai.agents.validation with type arguments of type LLMClientModifierConstructorDescriptionValidationContext(Optional<LLMClient> llmClient, List<Role> roles) Backwards-compatible 2-arg constructor — defaults every later-added field to its safe / empty value so existing validator test fixtures keep compiling.ValidationContext(Optional<LLMClient> llmClient, List<Role> roles, boolean hasExternalTools) 3-arg constructor — defaultsmemoryStore,reachabilityTimeout, the V006 tool/filter flags,tenantId, andmcpServerUrls.ValidationContext(Optional<LLMClient> llmClient, List<Role> roles, boolean hasExternalTools, Duration reachabilityTimeout) 4-arg constructor — defaultsmemoryStore, the V006 tool/filter flags,tenantId, andmcpServerUrls.ValidationContext(Optional<LLMClient> llmClient, List<Role> roles, boolean hasExternalTools, Optional<MemoryStore> memoryStore, Duration reachabilityTimeout) 5-arg constructor (the pre-0.8.5 primary shape) — defaults the V006 tool/filter flags,tenantId, andmcpServerUrlsso existing call sites keep compiling.ValidationContext(Optional<LLMClient> llmClient, List<Role> roles, boolean hasExternalTools, Optional<MemoryStore> memoryStore, Duration reachabilityTimeout, boolean hasConfirmationRequiredTool, boolean toolCallFilterSet) 7-arg constructor (the V006 shape) — defaultstenantIdandmcpServerUrlsso call sites added by issue #234 keep compiling.ValidationContext(Optional<LLMClient> llmClient, List<Role> roles, boolean hasExternalTools, Optional<MemoryStore> memoryStore, Duration reachabilityTimeout, boolean hasConfirmationRequiredTool, boolean toolCallFilterSet, Optional<String> tenantId) 8-arg constructor (the V012 shape) — defaultsmcpServerUrlsso call sites added by issue #235 phase 2 keep compiling.ValidationContext(Optional<LLMClient> llmClient, List<Role> roles, boolean hasExternalTools, Optional<MemoryStore> memoryStore, Duration reachabilityTimeout, boolean hasConfirmationRequiredTool, boolean toolCallFilterSet, Optional<String> tenantId, Set<String> mcpServerUrls) Creates an instance of aValidationContextrecord class. -
Uses of LLMClient in com.tnsai.llm
Classes in com.tnsai.llm that implement LLMClientModifier and TypeClassDescriptionclassLLM client with automatic fallback support.Methods in com.tnsai.llm that return LLMClientModifier and TypeMethodDescriptionLLMClientProvider.create(String provider, String model, float temperature, Integer maxTokens, Float topP) Creates an LLM client from the given configuration.FallbackLLMClient.getPrimary()Gets the primary client.LLMResolver.ResolutionResult.llm()Returns the value of thellmrecord component.Gets the LLM or throws if none found.LLMResolver.Builder.resolve()Resolves the LLM using the fallback chain.static LLMClientLLMResolver.resolveOrThrow(Agent agent, Role role) Gets the LLM client or throws if none configured.Methods in com.tnsai.llm that return types with arguments of type LLMClientModifier and TypeMethodDescriptionFallbackLLMClient.getFallbacks()Gets the fallback clients.Resolves the LLM client for an agent without role context.Resolves the LLM client for the given agent and role.LLMResolver.Builder.resolveOptional()Resolves the LLM, returning empty if none found.Methods in com.tnsai.llm with parameters of type LLMClientModifier and TypeMethodDescriptionGets responses from multiple LLMs and combines them using an aggregator LLM.Adds a fallback LLM client.Sets the primary LLM client.Method parameters in com.tnsai.llm with type arguments of type LLMClientModifier and TypeMethodDescriptionSets the agent's LLM supplier.LLMResolver.Builder.configFactory(Function<LLMSpecSource, LLMClient> factory) Sets the factory for creating LLMClient from LLM configuration.static Optional<ParallelLLM.LLMResult> Gets responses from multiple LLMs and selects the best one using a scoring function.Gets responses from multiple LLMs and combines them using an aggregator LLM.static ParallelLLM.ParallelResultsSends the same prompt to multiple LLMs in parallel and collects all responses.static ParallelLLM.ParallelResultsSends the same prompt to multiple LLMs in parallel with timeout.static Optional<ParallelLLM.LLMResult> ParallelLLM.majorityVote(String prompt, List<LLMClient> llms) Gets responses from multiple LLMs and selects by majority voting.static Optional<ParallelLLM.LLMResult> Sends prompt to multiple LLMs, returns the first successful response.Constructors in com.tnsai.llm with parameters of type LLMClientModifierConstructorDescriptionResolutionResult(LLMClient llm, LLMResolver.ResolutionSource source) Creates an instance of aResolutionResultrecord class. -
Uses of LLMClient in com.tnsai.memory.strategy
Methods in com.tnsai.memory.strategy with parameters of type LLMClientModifier and TypeMethodDescriptionSummaryStrategy.llmSummarizer(LLMClient llm) Creates an LLM-based summarizer.SummaryStrategy.Builder.summarizer(LLMClient llm) Uses an LLM for summarization. -
Uses of LLMClient in com.tnsai.rag
Methods in com.tnsai.rag with parameters of type LLMClientModifier and TypeMethodDescriptiondefault ChatKnowledgeContextRetrievalSpi.prepareChatKnowledge(Object agent, List<KnowledgeEntry> entries, LLMClient llm) Prepares the DIRECT knowledge an agent's chat turns give.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. -
Uses of LLMClient in com.tnsai.reasoning
Methods in com.tnsai.reasoning that return LLMClientModifier and TypeMethodDescriptionReasoningStrategyHandle.ReasoningContext.llm()Returns the value of thellmrecord component.Constructors in com.tnsai.reasoning with parameters of type LLMClient -
Uses of LLMClient in com.tnsai.roles
Methods in com.tnsai.roles that return LLMClientModifier and TypeMethodDescriptionfinal LLMClientRole.getLLM()Gets the LLM client for this role.Methods in com.tnsai.roles with parameters of type LLMClient -
Uses of LLMClient in com.tnsai.skills
Constructors in com.tnsai.skills with parameters of type LLMClient