Class LoggingAgenticEventListener

  • All Implemented Interfaces:
    com.embabel.agent.event.AgenticEventListener , com.embabel.agent.event.logging.LoggingPersonality

    
    public class LoggingAgenticEventListener
     implements AgenticEventListener, LoggingPersonality
                        

    Default implementation of the AgenticEventListener with vanilla messages. Subclasses can pass in format Strings for messages they wish to override Messages must respect format variables

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Logger getLogger() The logger to use for this personality
      ColorPalette getColorPalette() The color palette to use for this personality
      Unit onPlatformEvent(AgentPlatformEvent event) An event relating to the platform or leading to the creation of an AgentProcess, such as the choice of a goal.
      Unit onProcessEvent(AgentProcessEvent event) Listen to an event during the execution of an AgentProcess
      final String toInfoString(Prompt $self)
      • Methods inherited from class com.embabel.agent.event.logging.LoggingPersonality

        getBannerWidth, lineSeparator
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LoggingAgenticEventListener

        LoggingAgenticEventListener(String url, String welcomeMessage, Logger logger, ColorPalette colorPalette)
        Parameters:
        url - url explaining this particular logger if appropriate