Bases: BaseMetaEntry
Used to provide the current date and time as context to agents via MetaMemory.
Attributes:
| Name |
Type |
Description |
todays_date_and_time |
str
|
the current date and time formatted as YYYY-MM-DD HH:MM:SS.
|
Source code in griptape/memory/meta/date_time_meta_entry.py
| @define
class DateTimeMetaEntry(BaseMetaEntry):
"""Used to provide the current date and time as context to agents via MetaMemory.
Attributes:
todays_date_and_time: the current date and time formatted as YYYY-MM-DD HH:MM:SS.
"""
type: str = field(default=BaseMetaEntry.__name__, kw_only=True, metadata={"serializable": False})
todays_date_and_time: str = field(
factory=lambda: datetime.now().strftime("%Y-%m-%d %H:%M:%S"),
kw_only=True,
metadata={"serializable": True},
)
|
todays_date_and_time = field(factory=lambda: datetime.now().strftime('%Y-%m-%d %H:%M:%S'), kw_only=True, metadata={'serializable': True})
class-attribute
instance-attribute
type = field(default=BaseMetaEntry.__name__, kw_only=True, metadata={'serializable': False})
class-attribute
instance-attribute