Skip to content

dummy_image_query_driver

DummyImageQueryDriver

Bases: BaseImageQueryDriver

Source code in griptape/drivers/image_query/dummy_image_query_driver.py
@define
class DummyImageQueryDriver(BaseImageQueryDriver):
    model: None = field(init=False, default=None, kw_only=True)
    max_tokens: None = field(init=False, default=None, kw_only=True)

    def try_query(self, query: str, images: list[ImageArtifact]) -> TextArtifact:
        raise DummyError(__class__.__name__, "try_query")

max_tokens: None = field(init=False, default=None, kw_only=True) class-attribute instance-attribute

model: None = field(init=False, default=None, kw_only=True) class-attribute instance-attribute

try_query(query, images)

Source code in griptape/drivers/image_query/dummy_image_query_driver.py
def try_query(self, query: str, images: list[ImageArtifact]) -> TextArtifact:
    raise DummyError(__class__.__name__, "try_query")