drivers
__all__ = ['BaseDriversConfig', 'DriversConfig', 'OpenAiDriversConfig', 'AzureOpenAiDriversConfig', 'AmazonBedrockDriversConfig', 'AnthropicDriversConfig', 'GoogleDriversConfig', 'CohereDriversConfig']
module-attribute
AmazonBedrockDriversConfig
Bases: DriversConfig
Source code in griptape/configs/drivers/amazon_bedrock_drivers_config.py
session: boto3.Session = field(default=Factory(lambda: import_optional_dependency('boto3').Session()), kw_only=True, metadata={'serializable': False})
class-attribute
instance-attribute
embedding_driver()
image_generation_driver()
Source code in griptape/configs/drivers/amazon_bedrock_drivers_config.py
image_query_driver()
Source code in griptape/configs/drivers/amazon_bedrock_drivers_config.py
prompt_driver()
vector_store_driver()
Source code in griptape/configs/drivers/amazon_bedrock_drivers_config.py
AnthropicDriversConfig
Bases: DriversConfig
Source code in griptape/configs/drivers/anthropic_drivers_config.py
embedding_driver()
image_query_driver()
prompt_driver()
AzureOpenAiDriversConfig
Bases: DriversConfig
Azure OpenAI Drivers Configuration.
Attributes:
Name | Type | Description |
---|---|---|
azure_endpoint |
str
|
The endpoint for the Azure OpenAI instance. |
azure_ad_token |
Optional[str]
|
An optional Azure Active Directory token. |
azure_ad_token_provider |
Optional[Callable[[], str]]
|
An optional Azure Active Directory token provider. |
api_key |
Optional[str]
|
An optional Azure API key. |
prompt_driver |
AzureOpenAiChatPromptDriver
|
An Azure OpenAI Chat Prompt Driver. |
image_generation_driver |
AzureOpenAiImageGenerationDriver
|
An Azure OpenAI Image Generation Driver. |
image_query_driver |
AzureOpenAiImageQueryDriver
|
An Azure OpenAI Vision Image Query Driver. |
embedding_driver |
AzureOpenAiEmbeddingDriver
|
An Azure OpenAI Embedding Driver. |
vector_store_driver |
LocalVectorStoreDriver
|
A Local Vector Store Driver. |
Source code in griptape/configs/drivers/azure_openai_drivers_config.py
api_key: Optional[str] = field(kw_only=True, default=None, metadata={'serializable': False})
class-attribute
instance-attribute
azure_ad_token: Optional[str] = field(kw_only=True, default=None, metadata={'serializable': False})
class-attribute
instance-attribute
azure_ad_token_provider: Optional[Callable[[], str]] = field(kw_only=True, default=None, metadata={'serializable': False})
class-attribute
instance-attribute
azure_endpoint: str = field(kw_only=True, metadata={'serializable': True})
class-attribute
instance-attribute
embedding_driver()
Source code in griptape/configs/drivers/azure_openai_drivers_config.py
image_generation_driver()
Source code in griptape/configs/drivers/azure_openai_drivers_config.py
image_query_driver()
Source code in griptape/configs/drivers/azure_openai_drivers_config.py
prompt_driver()
Source code in griptape/configs/drivers/azure_openai_drivers_config.py
text_to_speech_driver()
Source code in griptape/configs/drivers/azure_openai_drivers_config.py
vector_store_driver()
Source code in griptape/configs/drivers/azure_openai_drivers_config.py
BaseDriversConfig
Bases: ABC
, SerializableMixin
Source code in griptape/configs/drivers/base_drivers_config.py
__enter__()
__exit__(type, value, traceback)
Source code in griptape/configs/drivers/base_drivers_config.py
audio_transcription_driver()
abstractmethod
conversation_memory_driver()
abstractmethod
embedding_driver()
abstractmethod
image_generation_driver()
abstractmethod
image_query_driver()
abstractmethod
prompt_driver()
abstractmethod
text_to_speech_driver()
abstractmethod
CohereDriversConfig
Bases: DriversConfig
Source code in griptape/configs/drivers/cohere_drivers_config.py
api_key: str = field(metadata={'serializable': False}, kw_only=True)
class-attribute
instance-attribute
embedding_driver()
prompt_driver()
vector_store_driver()
Source code in griptape/configs/drivers/cohere_drivers_config.py
DriversConfig
Bases: BaseDriversConfig
Source code in griptape/configs/drivers/drivers_config.py
audio_transcription_driver()
conversation_memory_driver()
embedding_driver()
image_generation_driver()
image_query_driver()
prompt_driver()
text_to_speech_driver()
GoogleDriversConfig
Bases: DriversConfig
Source code in griptape/configs/drivers/google_drivers_config.py
embedding_driver()
prompt_driver()
OpenAiDriversConfig
Bases: DriversConfig