ExplanationEvent

data class ExplanationEvent(val tick: Int, val agent: String, val message: String) : SimulationEvent(source)

Human-readable explanation event generated by the explanation layer.

Constructors

Link copied to clipboard
constructor(tick: Int, agent: String, message: String)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val tick: Int
Link copied to clipboard
open override val type: String

Functions

Link copied to clipboard

Serializes a simulation event as a single JSONL line.

Link copied to clipboard
fun SimulationEvent.toJsonObject(): JsonObject

Converts a simulation event to the JSON object used by the JSONL event stream.