Skip to content

base_assistant_driver

BaseAssistantDriver

Bases: ABC

Base class for AssistantDrivers.

Source code in griptape/drivers/assistant/base_assistant_driver.py
@define
class BaseAssistantDriver(ABC):
    """Base class for AssistantDrivers."""

    def run(self, *args: BaseArtifact) -> BaseArtifact:
        return self.try_run(*args)

    @abstractmethod
    def try_run(self, *args: BaseArtifact) -> BaseArtifact: ...

run(*args)

Source code in griptape/drivers/assistant/base_assistant_driver.py
def run(self, *args: BaseArtifact) -> BaseArtifact:
    return self.try_run(*args)

try_run(*args) abstractmethod

Source code in griptape/drivers/assistant/base_assistant_driver.py
@abstractmethod
def try_run(self, *args: BaseArtifact) -> BaseArtifact: ...