Skip to content

Action subtask origin mixin

ActionSubtaskOriginMixin

Source code in griptape/griptape/mixins/action_subtask_origin_mixin.py
@define(slots=False)
class ActionSubtaskOriginMixin:
    @abstractmethod
    def find_tool(self, tool_name: str) -> BaseTool | None:
        ...

    @abstractmethod
    def find_memory(self, memory_name: str) -> TaskMemory | None:
        ...

    @abstractmethod
    def find_subtask(self, subtask_id: str) -> ActionSubtask | None:
        ...

    @abstractmethod
    def add_subtask(self, subtask: ActionSubtask) -> ActionSubtask:
        ...

add_subtask(subtask) abstractmethod

Source code in griptape/griptape/mixins/action_subtask_origin_mixin.py
@abstractmethod
def add_subtask(self, subtask: ActionSubtask) -> ActionSubtask:
    ...

find_memory(memory_name) abstractmethod

Source code in griptape/griptape/mixins/action_subtask_origin_mixin.py
@abstractmethod
def find_memory(self, memory_name: str) -> TaskMemory | None:
    ...

find_subtask(subtask_id) abstractmethod

Source code in griptape/griptape/mixins/action_subtask_origin_mixin.py
@abstractmethod
def find_subtask(self, subtask_id: str) -> ActionSubtask | None:
    ...

find_tool(tool_name) abstractmethod

Source code in griptape/griptape/mixins/action_subtask_origin_mixin.py
@abstractmethod
def find_tool(self, tool_name: str) -> BaseTool | None:
    ...