Replies: 3 comments 1 reply
-
Hello @youdar! 👋 I'm Dosu, a bot here to help you solve bugs, answer questions, and guide you on contributing while we wait for a human maintainer. I'm here to assist you! Let me take a look at your issue and I'll get back to you with a full answer shortly. |
Beta Was this translation helpful? Give feedback.
-
Having a similar issue using DynamoDBChatMessageHistory. Any input would be welcomed |
Beta Was this translation helpful? Give feedback.
-
To address the "Parent run not found for run... Treating as a root run" error, it's crucial to manage For the issue with the Regarding the use of Make sure all dependencies, including If you continue to face difficulties, reviewing the documentation of the services and libraries you're using for correct implementation of
|
Beta Was this translation helpful? Give feedback.
-
Checked other resources
Commit to Help
Example Code
Description
I am working on an
agent_executor
that worked with OpenAI tools and models and that has chat history.When I was working directly with OpenAI credentials (
from langchain_openai import ChatOpenAI
) I had no issue.Switching to OpenAI via Azure (
from langchain_openai import AzureChatOpenAI
), when interacting with the agent I get something like:Parent run b134b735-...2 not found for run 9ce0ed27-... Treating as a root run.
While looking for solutions I found reference to solutions of the form
but it looks a bit overkill to start Azure workspace and experiments every time we run something.
I also tried adding session_id to
ChatMessageHistory()
. It did not helpNote that when calling the llm model without the agent (
llm.invoke(...)
), there are not such issuesAny thought on what am I missing?
System Info
Platform: Mac (Sonoma 14.3)
% pip freeze | grep lang
langchain==0.1.17
langchain-community==0.0.36
langchain-core==0.1.50
langchain-google-vertexai==1.0.3
langchain-openai==0.1.6
langchain-text-splitters==0.0.1
langchainhub==0.1.15
langsmith==0.1.53
openinference-instrumentation-langchain==0.1.14
% pip freeze | grep openai
langchain-openai==0.1.6
openai==1.25.1
openinference-instrumentation-openai==0.1.4
% python3 --version
Python 3.11.8
Beta Was this translation helpful? Give feedback.
All reactions