Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

community: Add async methods to CassandraChatMessageHistory #21975

Merged

Conversation

cbornet
Copy link
Collaborator

@cbornet cbornet commented May 21, 2024

No description provided.

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label May 21, 2024
Copy link

vercel bot commented May 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview May 22, 2024 9:02am

@dosubot dosubot bot added the 🤖:improvement Medium size change to existing code to handle new use-cases label May 21, 2024
def __init__(
self,
session_id: str,
session: Optional[Session] = None,
keyspace: Optional[str] = None,
table_name: str = DEFAULT_TABLE_NAME,
ttl_seconds: Optional[int] = DEFAULT_TTL_SECONDS,
*,
setup_mode: Optional[SetupMode] = SetupMode.SYNC,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's your perspective on setup_mode vs. having a dedicated async_session ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The cassandra Session is used for both sync and async so there's no "async session"

@eyurtsev eyurtsev self-assigned this May 21, 2024
@cbornet cbornet force-pushed the async-CassandraChatMessageHistory branch from 9fd6551 to ed41313 Compare May 22, 2024 09:02
@eyurtsev eyurtsev merged commit fea6b99 into langchain-ai:master May 23, 2024
42 checks passed
@cbornet cbornet deleted the async-CassandraChatMessageHistory branch May 23, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:improvement Medium size change to existing code to handle new use-cases size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants