Skip to content

Base meta entry

BaseMetaEntry

Bases: ABC

Source code in griptape/griptape/memory/meta/base_meta_entry.py
@define
class BaseMetaEntry(ABC):
    def to_json(self) -> str:
        return json.dumps(self.to_dict())

    @abstractmethod
    def to_dict(self) -> dict:
        ...

to_dict() abstractmethod

Source code in griptape/griptape/memory/meta/base_meta_entry.py
@abstractmethod
def to_dict(self) -> dict:
    ...

to_json()

Source code in griptape/griptape/memory/meta/base_meta_entry.py
def to_json(self) -> str:
    return json.dumps(self.to_dict())