library · inferred from evidence
LangChain
A library mentioned as a source of unhashable types (e.g., Document lists).
- LangSmith Python SDK memory grows in long-running apps (RunTree kept in memory)
Long-running Python app using LangGraph/LangChain (asyncio.gather with create_task, one graph per task). Memory grows steadily over time, but only when LangSmith tracing is enabled. tracemalloc and objgraph show RunTree objects accumulating
- LangChain agent: {tool_name} is not a valid tool, try another one (long tool names)
An agent intermittently failed with "{tool_name} is not a valid tool, try another one" — e.g. "retrieve_from_somewhere_else is not a valid tool, try [retrieve_from_vectorstore]" — even though both tools were registered. Wrapping an agent as
- ValueError: create_tool_calling_agent requires .bind_tools on the LLM when using with_fallbacks
Wrapping a chat model with .with_fallbacks([fallback_model]) and passing the result to create_tool_calling_agent raised ValueError: This function requires a .bind_tools method be implemented on the LLM. The same error also hit AzureChatOpen
- DeepSeek multi-turn agent 400 error: The `reasoning_content` in the thinking mode must be passed back to the API
Running a multi-turn agent with tool calls on a DeepSeek thinking model (deepseek-v4-flash via langchain-deepseek's ChatDeepSeek, built with create_agent). The first turn succeeded, but the second turn raised openai.BadRequestError: Error c
- streaming not working when using bind_tools with ChatOllama - llm.stream() returns no tokens
Streaming chat responses from an Ollama model (e.g. llama3.1:70b via ChatOllama, or ChatOpenAI pointed at Ollama's /v1 endpoint) with tools bound via llm.bind_tools([...]).stream(). With tools bound, streaming produced no tokens at all and
- Error in RootListenersTracer.on_chain_end callback: KeyError('answer') while streaming a RAG chain
Building a conversational RAG chatbot with create_retrieval_chain wrapped in RunnableWithMessageHistory (input_messages_key="input", history_messages_key="chat_history", output_messages_key="answer"). Calling astream() on the chain printed
- Chroma.from_documents() raises sqlite3.OperationalError: attempt to write a readonly database
Using Chroma as a persistent vector store via Chroma.from_documents(docs, embedding, persist_directory=...) on Ubuntu with langchain 0.0.351. The first creation worked, but deleting the persist directory with shutil.rmtree and recreating th