You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
swarms/swarms/memory/action_subtask.py

16 lines
433 B

from pydantic import BaseModel
class ActionSubtaskEntry(BaseModel):
"""Used to store ActionSubtask data to preserve TaskMemory pointers and context in the form of thought and action.
Attributes:
thought: CoT thought string from the LLM.
action: ReAct action JSON string from the LLM.
answer: tool-generated and memory-processed response from Griptape.
"""
thought: str
action: str
answer: str