meta
__all__ = ['ActionSubtaskMetaEntry', 'BaseMetaEntry', 'DateTimeMetaEntry', 'MetaMemory']
module-attribute
ActionSubtaskMetaEntry
Bases: BaseMetaEntry
Used to store ActionSubtask data to preserve TaskMemory pointers and context in the form of thought and action.
Attributes:
| Name | Type | Description |
|---|---|---|
thought |
str | None
|
CoT thought string from the LLM. |
actions |
str
|
ReAct actions JSON string from the LLM. |
answer |
str
|
tool-generated and memory-processed response from Griptape. |
Source code in griptape/memory/meta/action_subtask_meta_entry.py
actions = field(kw_only=True, metadata={'serializable': True})
class-attribute
instance-attribute
answer = field(kw_only=True, metadata={'serializable': True})
class-attribute
instance-attribute
thought = field(default=None, 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
BaseMetaEntry
DateTimeMetaEntry
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
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
MetaMemory
Used to store meta entries that can be shared between tasks.
Attributes:
| Name | Type | Description |
|---|---|---|
entries |
list[BaseMetaEntry]
|
a list of meta entries for downstream tasks and subtasks to load. |