Package com.tnsai.agents.messaging
Interface AgentMessagingHandler.MessagingContext
- All Known Implementing Classes:
Agent,ConfigurableAgent
- Enclosing class:
AgentMessagingHandler
public static interface AgentMessagingHandler.MessagingContext
Context interface for accessing Agent internals needed for messaging.
-
Method Summary
Modifier and TypeMethodDescriptionchatInternal(String message, boolean useHistory) Internal chat method for query handling.executeAction(String actionName, Map<String, Object> parameters) Executes an action by name with parameters.Returns the agent's unique identifier.Returns the agent's name for logging.Returns the callback dispatcher for @OnMessageReceived callbacks.Returns the communication manager for sending replies.voidhandleCNPMessageHook(AgentMessage message, CNPMessageType type) Hook for CNP message handling (delegated back to Agent for override support).
-
Method Details
-
getAgentId
String getAgentId()Returns the agent's unique identifier. -
getAgentName
String getAgentName()Returns the agent's name for logging. -
getCallbackDispatcher
MessageCallbackDispatcher getCallbackDispatcher()Returns the callback dispatcher for @OnMessageReceived callbacks. -
getCommunicationManager
AgentCommunicationManager getCommunicationManager()Returns the communication manager for sending replies. -
executeAction
Executes an action by name with parameters. -
chatInternal
Internal chat method for query handling. -
handleCNPMessageHook
Hook for CNP message handling (delegated back to Agent for override support).
-