Skip to content

API Reference parrot.core.events.lifecycle.events.message

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.core.events.lifecycle.events.message

View source

Message lifecycle events.

FEAT-176 — Lifecycle Events System.

Covers: messages entering the agent's conversation history.

Class MessageAddedEvent

Emitted when a message is added to the conversation history.

Emitted from the canonical history-insertion point in AbstractBot (save_conversation_turn / add_turn) so every code path is covered by a single emission site.

Parameter Type Default Description
agent_name str ''
role str ''
content_length int 0
has_tool_calls bool False

Fields:

Field Type Default Description
agent_name str '' Name of the agent whose history is updated.
role str '' Message role ("user", "assistant", "tool", "system").
content_length int 0 Character length of the message content.
has_tool_calls bool False True if the message contains tool call blocks.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally