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 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

      Object executeAction(String actionName, Map<String,Object> parameters)
      Executes an action by name with parameters.
    • chatInternal

      String chatInternal(String message, boolean useHistory)
      Internal chat method for query handling.
    • handleCNPMessageHook

      void handleCNPMessageHook(AgentMessage message, CNPMessageType type)
      Hook for CNP message handling (delegated back to Agent for override support).