Adapters¶
magetools.adapters
¶
Adapters for Magetools.
This module provides concrete implementations of the embedding and vector store protocols. Dependencies (chromadb, google-genai) are lazily imported to allow the core magetools package to be used with alternative providers.
ChromaVectorStore
¶
Bases: VectorStoreProtocol
Adapter for ChromaDB.
Source code in src/magetools/adapters.py
GoogleGenAIProvider
¶
Bases: EmbeddingProviderProtocol
Provider for Google Generative AI embeddings.
Source code in src/magetools/adapters.py
MockEmbeddingProvider
¶
Bases: EmbeddingProviderProtocol
Mock provider for when google-genai is not available.
This allows users to try the library without credentials. Search functionality will be degraded but the app won't crash.