Logger
Types
Types functionality for Components integration.
Entity
This class represents an entity.
DateTimeEncoder
DateTime encoder.
This class represents a date time encoder.
CommitLog
Commit log.
This class represents a commit log.
__init__
Initialize a commit log.
Arguments:
Name | Description |
---|---|
entity | The entity of the commit log. |
entity_id | The id of the entity. |
action | The action of the commit log. |
data | The data of the commit log. |
serialize
Serialize the commit log.
Arguments:
Name | Description |
---|---|
custom_data | The custom data to serialize. |
Returns:
Name | Description |
---|---|
str | The serialized commit log. |
object_to_dict
Convert a complex object structure to a dictionary, handling nested custom objects.
Arguments:
Name | Description |
---|---|
obj | Any Python object to convert |
Returns:
A dictionary representation of the object
GenerationErrorTypedDict
Generation error typed dict.
This class represents a generation error typed dict.
GenerationError
@deprecated: This class is deprecated and will be removed in a future version. Use GenerationErrorTypedDict instead.