State
graphorchestrator.core.state
State
dataclass
Represents the state of a process or workflow, maintaining a list of messages.
Attributes:
Name | Type | Description |
---|---|---|
messages |
List[Any]
|
A list to store messages related to the state. |
Source code in graphorchestrator\core\state.py
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
|
__eq__(other)
Checks if the current State object is equal to another object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
other
|
Any
|
The object to compare with. |
required |
Returns:
Name | Type | Description |
---|---|---|
bool |
bool
|
True if the objects are equal, False otherwise. |
Source code in graphorchestrator\core\state.py
25 26 27 28 29 30 31 32 33 34 35 36 37 |
|
__repr__()
Provides a string representation of the State object.
Returns:
Name | Type | Description |
---|---|---|
str |
str
|
A string representation of the State, including its messages. |
Source code in graphorchestrator\core\state.py
16 17 18 19 20 21 22 23 |
|