drivers
__all__ = ['AmazonBedrockDriversConfig', 'AnthropicDriversConfig', 'AzureOpenAiDriversConfig', 'BaseDriversConfig', 'CohereDriversConfig', 'DriversConfig', 'GoogleDriversConfig', 'OpenAiDriversConfig']
module-attribute
AmazonBedrockDriversConfig
Bases: DriversConfig
Source code in griptape/configs/drivers/amazon_bedrock_drivers_config.py
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
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
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. |
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 = field(kw_only=True, default=None, metadata={'serializable': False})
class-attribute
instance-attribute
azure_ad_token = field(kw_only=True, default=None, metadata={'serializable': False})
class-attribute
instance-attribute
azure_ad_token_provider = field(kw_only=True, default=None, metadata={'serializable': False})
class-attribute
instance-attribute
azure_endpoint = 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
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
_audio_transcription_driver = field(default=None, kw_only=True, metadata={'serializable': True}, alias='audio_transcription_driver')
class-attribute
instance-attribute
_conversation_memory_driver = field(default=None, kw_only=True, metadata={'serializable': True}, alias='conversation_memory_driver')
class-attribute
instance-attribute
_embedding_driver = field(kw_only=True, default=None, metadata={'serializable': True}, alias='embedding_driver')
class-attribute
instance-attribute
_image_generation_driver = field(kw_only=True, default=None, metadata={'serializable': True}, alias='image_generation_driver')
class-attribute
instance-attribute
_last_drivers_config = field(default=None)
class-attribute
instance-attribute
_prompt_driver = field(kw_only=True, default=None, metadata={'serializable': True}, alias='prompt_driver')
class-attribute
instance-attribute
_ruleset_driver = field(default=None, kw_only=True, metadata={'serializable': True}, alias='ruleset_driver')
class-attribute
instance-attribute
_text_to_speech_driver = field(default=None, kw_only=True, metadata={'serializable': True}, alias='text_to_speech_driver')
class-attribute
instance-attribute
_vector_store_driver = field(default=None, kw_only=True, metadata={'serializable': True}, alias='vector_store_driver')
class-attribute
instance-attribute
__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
prompt_driver()
abstractmethod
ruleset_driver()
abstractmethod
text_to_speech_driver()
abstractmethod
CohereDriversConfig
Bases: DriversConfig
Source code in griptape/configs/drivers/cohere_drivers_config.py
api_key = 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()
prompt_driver()
ruleset_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