messages
#
QueueMessage #
Bases: BaseModel
A message for the message queue.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id_
|
str
|
|
'b97bad9b-6444-492f-b89f-8c9acb63dc01'
|
publisher_id
|
str
|
Id of publisher. |
'default'
|
action
|
ActionTypes | None
|
|
None
|
stats
|
QueueMessageStats
|
Stats for a queue message. Attributes: publish_time (Optional[str]): The time the message was published. process_start_time (Optional[str]): The time the message processing started. process_end_time (Optional[str]): The time the message processing ended. |
<dynamic>
|
type
|
str
|
Type of the message, used for routing. |
'default'
|
Attributes:
Name | Type | Description |
---|---|---|
id_ |
str
|
The id of the message. |
publisher_id |
str
|
The id of the publisher. |
data |
Dict[str, Any]
|
The data of the message. |
action |
Optional[ActionTypes]
|
The action of the message, used for deciding how to process the message. |
stats |
QueueMessageStats
|
The stats of the message. |
type |
str
|
The type of the message. Typically this is a service name. |
Source code in llama_deploy/messages/base.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
|