dragon.ai.agent.communication.message.Message
- class Message[source]
Bases:
objectA message sent between dispatchers and agents.
- Routing fields (consumed by the transport layer):
recipient_serialized_queue— serialized Dragon queue handle for the target agent. Used byDragonQueueProtocol.send()to deserialize the destination queue. Not read by the agent itself.- Content fields (received and processed by the agent):
header— aDispatchHeadercontaining the task description, upstream references, serialized DDict handle, and completion event. This is the only field the agent inspects inside itslisten()loop.
- __init__(task_id: str , sender_id: str , recipient_id: str , header: DispatchHeader | None = None, recipient_serialized_queue: str = '', id: str = <factory>) None
Methods
__init__(task_id, sender_id, recipient_id, ...)Attributes
- header: DispatchHeader | None = None