Package com.tnsai.agents
Class ConfigurableAgent
java.lang.Object
com.tnsai.agents.Agent
com.tnsai.agents.ConfigurableAgent
- All Implemented Interfaces:
AgentGroupManager.GroupContext,AgentHierarchyManager.HierarchyContext,AgentInitializer.InitializerContext,AgentMessagingHandler.MessagingContext,AgentOrchestrator.OrchestratorContext,AgentCommunicationManager.MessageReceiver
A fully configurable Agent implementation created via AgentBuilder.
This class is not intended to be subclassed. Instead, use AgentBuilder
to create instances with custom configurations.
For creating agents via subclassing with template methods, extend Agent directly.
Example:
Agent agent = AgentBuilder.create()
.id("my-agent")
.llm(new GeminiClient("gemini-2.0-flash"))
.role(new MyRole())
.build();
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class com.tnsai.agents.Agent
actOnEnvironment, addChild, addChildDirect, addChildren, addEvalHook, autoStart, chat, chat, chat, chat, chatInternal, chatWithEvents, chatWithEvents, chatWithEvents, chatWithFormat, chatWithFormat, chatWithFormat, chatWithFormat, chatWithStructure, chatWithStructure, clearConversationHistory, clearEvalContext, delegateToChild, description, detachFromParent, did, enableContextGraph, ensureEvalContext, escalateToParent, executeAction, executeAction, executeAction, executeAction, executeAction, executeActionOnRole, executeActionOnRole, executeActionOnRole, executeActionOnRole, executeActionOnRole, executePlan, extractCurrentState, findChildById, fireOnAfterChat, fireOnAfterToolCall, fireOnBeforeChat, fireOnBeforeToolCall, fireOnError, getAgentActionExecutor, getAgentActionKnowledge, getAgentClass, getAgentId, getAgentKnowledgeEntries, getAgentKnowledgeScope, getAgentKnowledgeSources, getAgentLLM, getAgentMemoryStore, getAgentName, getAgentRef, getAgentRestartPolicyTemplate, getAgentRoles, getAgentSchemaGenerator, getCallbackDispatcher, getChatKnowledgeBinding, getChildren, getChildrenSnapshot, getCommunicationManager, getCommunicationTemplate, getConsolidationPipeline, getContextManager, getContextManagerDirect, getConversationHistory, getConversationSize, getDefaultRetryPolicyTemplate, getEnsembleExecutor, getEnvironment, getErrorRecoveryScenariosDirect, getErrorRecoveryScenariosTemplate, getEvalContext, getEventHandlerRegistry, getEventPublisher, getFeedbackCollector, getGroups, getHealthState, getId, getIdentitiesTemplate, getIdleTime, getInjectedActionExecutor, getInjectedLLM, getInjectedMemoryStore, getLastReasoningResult, getLLMTemplate, getMaxContextTokensDirect, getMaxContextTokensTemplate, getMemoryStoreTemplate, getName, getOutputFormatter, getParent, getParentRef, getPaymentBroker, getPlannerHandle, getPlansTemplate, getProtocolManager, getReasoningStrategy, getReasoningStrategyRaw, getResilienceManager, getRetrievalConfig, getRole, getRolesTemplate, getSkillManager, getState, getSystemPrompt, getSystemPromptForMessage, getToolsDescription, getToolsForLLM, getVariant, getVariantSelector, handleCNPMessageHook, handleMessage, hasChild, id, idleTimeoutMs, invalidateChatKnowledge, invokeSkill, isContextGraphEnabled, isEnvironmentEnabled, isEvalEnabled, isIdleMonitoringEnabled, isPlanningEnabled, isReasoningEnabled, joinGroup, joinGroup, leaveGroup, leaveGroup, llm, name, notifyActivity, perceive, plan, planForGoal, receiveMessage, recordGoalCompletion, recordToolOutcome, removeChild, removeChildDirect, removeEvalHook, reportKnowledgeUsage, resolveVariant, restartAgent, roles, setChatKnowledgeBinding, setCommunicationManager, setEnvironment, setEvalEnabled, setEventPublisher, setFeedbackCollector, setLastReasoningResult, setLLM, setParent, setParentRef, setPaymentBroker, setPlannerHandle, setReasoningStrategy, setToolCallFilter, setToolCallListener, setVariant, setVariantSelector, start, stop, streamChat, streamChatWithRetrievedContext, streamChatWithRetrievedContext, streamChatWithTools, streamChatWithTools, version
-
Method Details
-
getDescriptionOverride
-
getVersionOverride
-
getAutoStartOverride
-
getIdleTimeoutMsOverride
-
getDidConfigOverride
-
getGroupSpecOverride
-