You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/community/langchain_community
mackong 360a70c8a8
core[patch]: fix no current event loop for sql history in async mode (#22933)
- **Description:** When use
RunnableWithMessageHistory/SQLChatMessageHistory in async mode, we'll
get the following error:
```
Error in RootListenersTracer.on_chain_end callback: RuntimeError("There is no current event loop in thread 'asyncio_3'.")
```
which throwed by
ddfbca38df/libs/community/langchain_community/chat_message_histories/sql.py (L259).
and no message history will be add to database.

In this patch, a new _aexit_history function which will'be called in
async mode is added, and in turn aadd_messages will be called.

In this patch, we use `afunc` attribute of a Runnable to check if the
end listener should be run in async mode or not.

  - **Issue:** #22021, #22022 
  - **Dependencies:** N/A
3 months ago
..
adapters community[patch]: upgrade to recent version of mypy (#21616) 5 months ago
agent_toolkits docs: Fix URL formatting in deprecation warnings (#23075) 4 months ago
agents community: update how OpenAIAssistantV2Runnable creates threads with tool_resources (#22549) 4 months ago
callbacks community[patch]: Add missing type annotations (#22758) 4 months ago
chains community[patch]: Add missing type annotations (#22758) 4 months ago
chat_loaders community: docstrings (#23202) 4 months ago
chat_message_histories core[patch]: fix no current event loop for sql history in async mode (#22933) 3 months ago
chat_models community[patch]: Update root_validators ChatModels: ChatBaichuan, QianfanChatEndpoint, MiniMaxChat, ChatSparkLLM, ChatZhipuAI (#22853) 4 months ago
cross_encoders [Community]: HuggingFaceCrossEncoder `score` accounting for <not-relevant score,relevant score> pairs. (#22578) 4 months ago
docstore community[patch]: Fix remaining __inits__ in community (#22037) 4 months ago
document_compressors community[minor]: add Volcengine Rerank (#22700) 4 months ago
document_loaders docs[minor],community[patch]: Minor tutorial docs improvement, minor import error quick fix. (#22725) 4 months ago
document_transformers community[minor]: Implement Doctran async execution (#22372) 4 months ago
embeddings community: docstrings (#23202) 4 months ago
example_selectors docs: added `community` modules descriptions (#17827) 8 months ago
graphs community: docstrings (#23202) 4 months ago
indexes community[patch]: restore compatibility with SQLAlchemy 1.x (#22546) 4 months ago
llms community[patch]: sambanova llm integration improvement (#23137) 4 months ago
memory community[minor]: Add Zep Cloud components + docs + examples (#21671) 4 months ago
output_parsers infra: rm unused # noqa violations (#22049) 4 months ago
query_constructors multiple: langchain 0.2 in master (#21191) 5 months ago
retrievers ci: Add script to check for pickle usage in community (#22863) 4 months ago
storage community: docstrings (#23202) 4 months ago
tools docs: Fix URL formatting in deprecation warnings (#23075) 4 months ago
utilities community[patch]: Fix sql_databse.from_databricks issue when ran from Job (#23224) 4 months ago
utils community[patch]: Use Custom Logger Instead of Root Logger in get_user_agent Function (#22691) 4 months ago
vectorstores community: docstrings (#23202) 4 months ago
__init__.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
cache.py community: init signature revision for Cassandra LLM cache classes + small maintenance (#17765) 5 months ago
py.typed community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago