LoggingAgenticEventListener

open class LoggingAgenticEventListener(url: String? = null, welcomeMessage: String? = null, val logger: <Error class: unknown class> = LoggerFactory.getLogger("Embabel"), val colorPalette: ColorPalette = DefaultColorPalette()) : 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

Parameters

url

url explaining this particular logger if appropriate

Inheritors

Constructors

Link copied to clipboard
constructor(url: String? = null, welcomeMessage: String? = null, logger: <Error class: unknown class> = LoggerFactory.getLogger("Embabel"), colorPalette: ColorPalette = DefaultColorPalette())

Properties

Link copied to clipboard
open val bannerWidth: Int
Link copied to clipboard
open override val colorPalette: ColorPalette

The color palette to use for this personality

Link copied to clipboard
open override val logger: <Error class: unknown class>

The logger to use for this personality

Functions

Link copied to clipboard
open fun lineSeparator(text: String, bannerChar: String, glyph: String = " ⇩ "): String
Link copied to clipboard
open override fun onPlatformEvent(event: AgentPlatformEvent)

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.

Link copied to clipboard
open override fun onProcessEvent(event: AgentProcessEvent)

Listen to an event during the execution of an AgentProcess

Link copied to clipboard
fun <Error class: unknown class>.toInfoString(): String