Files
pepperplus-cb/src/control_backend/schemas/internal_message.py
Twirre Meulenbelt d7d697b293 docs: update to docstring
ref: N25B-441
2026-01-13 17:09:26 +01:00

20 lines
573 B
Python

from collections.abc import Iterable
from pydantic import BaseModel
class InternalMessage(BaseModel):
"""
Standard message envelope for communication between agents within the Control Backend.
:ivar to: The name(s) of the destination agent(s).
:ivar sender: The name of the sending agent.
:ivar body: The string payload (often a JSON-serialized model).
:ivar thread: An optional thread identifier/topic to categorize the message (e.g., 'beliefs').
"""
to: str | Iterable[str]
sender: str
body: str
thread: str | None = None