Create Chroma Memory Adapter • AI Agent SDK

create_chroma_memory_adapter: Factory function to create ChromaDB memory adapter.

create_chroma_memory_adapter

Function

</div>

This function is defined in the factories module.

Factory function to create ChromaDB memory adapter.

Lazy imports chromadb and creates an adapter that implements MemoryProtocol using ChromaDB as the vector store backend.

Signature

python
def create_chroma_memory_adapter() -> MemoryProtocol

Returns

ResponseField MemoryProtocol

MemoryProtocol adapter instance

Exceptions

ImportError

If chromadb is not installed

Uses

  • ImportError
  • ChromaMemoryAdapter

Source

View on GitHub

praisonaiagents/memory/adapters/factories.py at line 94


Related Documentation