Skip to content

anthropic_drivers_config

AnthropicDriversConfig

Bases: DriversConfig

Source code in griptape/configs/drivers/anthropic_drivers_config.py
@define
class AnthropicDriversConfig(DriversConfig):
    @lazy_property()
    def prompt_driver(self) -> AnthropicPromptDriver:
        return AnthropicPromptDriver(model="claude-3-5-sonnet-20240620")

    @lazy_property()
    def embedding_driver(self) -> VoyageAiEmbeddingDriver:
        return VoyageAiEmbeddingDriver(model="voyage-large-2")

    @lazy_property()
    def vector_store_driver(self) -> LocalVectorStoreDriver:
        return LocalVectorStoreDriver(embedding_driver=VoyageAiEmbeddingDriver(model="voyage-large-2"))

    @lazy_property()
    def image_query_driver(self) -> AnthropicImageQueryDriver:
        return AnthropicImageQueryDriver(model="claude-3-5-sonnet-20240620")

embedding_driver()

Source code in griptape/configs/drivers/anthropic_drivers_config.py
@lazy_property()
def embedding_driver(self) -> VoyageAiEmbeddingDriver:
    return VoyageAiEmbeddingDriver(model="voyage-large-2")

image_query_driver()

Source code in griptape/configs/drivers/anthropic_drivers_config.py
@lazy_property()
def image_query_driver(self) -> AnthropicImageQueryDriver:
    return AnthropicImageQueryDriver(model="claude-3-5-sonnet-20240620")

prompt_driver()

Source code in griptape/configs/drivers/anthropic_drivers_config.py
@lazy_property()
def prompt_driver(self) -> AnthropicPromptDriver:
    return AnthropicPromptDriver(model="claude-3-5-sonnet-20240620")

vector_store_driver()

Source code in griptape/configs/drivers/anthropic_drivers_config.py
@lazy_property()
def vector_store_driver(self) -> LocalVectorStoreDriver:
    return LocalVectorStoreDriver(embedding_driver=VoyageAiEmbeddingDriver(model="voyage-large-2"))