community[minor]: Add async methods to CassandraVectorStore (#20602)

Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com>
This commit is contained in:
Christophe Bornet
2024-04-20 04:09:58 +02:00
committed by GitHub
parent 06d18c106d
commit c909ae0152
5 changed files with 624 additions and 74 deletions

View File

@@ -1,6 +1,7 @@
from __future__ import annotations
import asyncio
from enum import Enum
from typing import TYPE_CHECKING, Any, Callable
if TYPE_CHECKING:
@@ -22,3 +23,9 @@ async def wrapped_response_future(
response_future.add_callbacks(success_handler, error_handler)
return await asyncio_future
class SetupMode(Enum):
SYNC = 1
ASYNC = 2
OFF = 3