MessageAppendedEvent#

Distinguish UI streams, extension notifications, and external replies. See the guide.

class zett_agent.extensions.events.MessageAppendedEvent(message, timing, usage=None)[source]#

One newly produced raw message; restoration and compaction do not emit it.

Parameters:
usage: ModelUsage | None#

Provider-reported usage for an assistant model response. User, system, tool, and directly imported messages do not consume a model response.