Package com.embabel.agent.event.logging
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
-
-
Field Summary
Fields Modifier and Type Field Description private final Loggerloggerprivate final ColorPalettecolorPaletteprivate final IntegerbannerWidth
-
Constructor Summary
Constructors Constructor Description LoggingAgenticEventListener(String url, String welcomeMessage, Logger logger, ColorPalette colorPalette)
-
Method Summary
Modifier and Type Method Description LoggergetLogger()The logger to use for this personality ColorPalettegetColorPalette()The color palette to use for this personality UnitonPlatformEvent(AgentPlatformEvent event)An event relating to the platform or leading to the creation of an AgentProcess, such as the choice of a goal. UnitonProcessEvent(AgentProcessEvent event)Listen to an event during the execution of an AgentProcess final StringtoInfoString(Prompt $self)-
-
Constructor Detail
-
LoggingAgenticEventListener
LoggingAgenticEventListener(String url, String welcomeMessage, Logger logger, ColorPalette colorPalette)
- Parameters:
url- url explaining this particular logger if appropriate
-
-
Method Detail
-
getLogger
Logger getLogger()
The logger to use for this personality
-
getColorPalette
ColorPalette getColorPalette()
The color palette to use for this personality
-
onPlatformEvent
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. No process is available at this point.
-
onProcessEvent
Unit onProcessEvent(AgentProcessEvent event)
Listen to an event during the execution of an AgentProcess
-
toInfoString
final String toInfoString(Prompt $self)
-
-
-
-