serializable_mixin
T = TypeVar('T', bound='SerializableMixin')
module-attribute
SerializableMixin
Bases: Generic[T]
Source code in griptape/mixins/serializable_mixin.py
type: str = field(default=Factory(lambda self: self.__class__.__name__, takes_self=True), kw_only=True, metadata={'serializable': True})
class-attribute
instance-attribute
__str__()
from_dict(data)
classmethod
from_json(data)
classmethod
get_schema(subclass_name=None)
classmethod
Generates a Marshmallow schema for the class.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
subclass_name |
Optional[str]
|
An optional subclass name. Required if the class is abstract. |
None
|