156 questions
0
votes
0
answers
27
views
Langgraph Supervisor SDK not storing states
I am developing a langgraph agent ( Python ) using langgraph SDK,langgraph supervisor. My agent has this structure below
Primary Agent ( which will route requests to the appropriate sub-agent )
It ...
1
vote
3
answers
90
views
ToolRuntime error: Required fields tool_runtime missing when invoking tool in LangGraph
I'm encountering an error when invoking a tool that requires tool_runtime inside a LangGraph StateGraph agent.
Original file is located at:
https://colab.research.google.com/drive/...
0
votes
3
answers
103
views
Using a tool from a local Model Context Protocol server in a synchronous manner
I'm working with LangChain and its Model Context Protocol implementation. I have launched a MCP server that exposes an interface that provides some tool on port 3000. This means that the tools should ...
2
votes
1
answer
198
views
Using member functions of a class as LangGraph tools
I'm writing an agent using the LangChain and LangGraph libraries. I want to make my agent able to interact with files but only inside of the local directory, so I am writing a family of tools that are ...
1
vote
0
answers
34
views
Redis- OpenAI not able to tune with actual radis text retrieved from vector index
I am trying to create a simple vector index for conversation AI application where i want to use radis as long-term memory.
i configured radis locally and created the index which ideally stores
"...
0
votes
0
answers
107
views
How to Get user_id from LangGraph Metadata?
🧩 In short, how to retrieve user_id at graph runtime?
LangGraph introduced the Runtime class (since v0.6.0) to replace RunnableConfig:
🔗 https://github.com/langchain-ai/langgraph/releases/tag/0.6.0
...
2
votes
0
answers
142
views
psycopg.OperationalError: server closed the connection unexpectedly when using LangGraph AsyncPostgresSaver with FastAPI and SQLAlchemy
I'm integrating LangGraph (which uses psycopg) with an existing SQLAlchemy ORM (which uses asyncpg) inside a FastAPI app.
The ORM has been part of the project for a long time - stable and used across ...
-1
votes
1
answer
233
views
Command “langgraph dev” errors:langgraph_api.utils.errors.GraphLoadError: Failed to load graph
I test my code (it's a simple agent demo) successfully, and run pip install -e . successfully.
Then I deploy my agent as a LangGraph Server; I execute langgraph dev. It gives me the error:
...
2
votes
1
answer
128
views
Langchain-based model memory
I am referring to the official documentation of langchain to learn how to build a simple agent. But the model don't have memory even though I have used MemeorySaver
the link of official document is ...
0
votes
0
answers
88
views
langgraph with ollama not responding with a response
I use langgraph to build reflection agent with Llama-3.2-3B-Instruct-GGUF:Q4_K_M on ollama, but it is not responding with a response in a reflect_node
But it is responding in generate_node:
app.py
...
1
vote
1
answer
221
views
Langfuse trace graph for multi-agent runs is ambiguous / broken — bug or my trace format?
I’m seeing confusing / broken graphs in the Langfuse dashboard for multi-agent traces and I’m not sure if it’s a Langfuse bug or something I’m doing wrong.
What I did:
I run a multi-agent system using ...
3
votes
1
answer
207
views
How to solve GRAPH_RECURSION_LIMIT error in langgraph and streamlit?
I am new to langgraph and streamlit. I am working on a graph which will takes interview of condidate.
Logic is it will ask user information one by one in self loop.Get all data. Then generate user ...
1
vote
1
answer
148
views
How to retrieve the current conversation ID inside a tool function in LangGraph?
Is there any built-in way for a LangGraph tool function to access the current conversation (session/thread) ID at runtime? I need this ID for logging and external service correlation, but I can’t find ...
0
votes
1
answer
442
views
langgraph tool missing required positional argument: 'tool_call_id'"
I'm defining a LangGraph graph. I wanted a tool to change the conversation state, not only to return a ToolMessage.
I followed this example and I did:
class EndConversationSchema(BaseModel):
"...
0
votes
2
answers
178
views
The conditional edge in LangGraph causes the reduce function to be invoked twice
I am a beginner with LangGraph and am learning to create a graph to compute the Fibonacci sequence. The program has two nodes: one responsible for updating the Fibonacci sequence, and the other for ...
0
votes
2
answers
189
views
Human in the loop to work in both Langgraph studio and CLI based
I have a LangGraph agent from a Python shell script, and I expose it as a Typer command to be executed from the command line. Everything works fine. But now I want to add a human in the loop as one ...
-1
votes
1
answer
86
views
Why is the condition in the Langraph not working
I am trying to build a langraph and call the relevant node as per the condition. Here is my code:
class PersonDetails(TypedDict):
name: str
age: int
# Nodes
def greet(state: PersonDetails):
...
1
vote
1
answer
290
views
How to delete a thread with MemorySaver?
I'm using langgraph.js to create a simple chatbot.
When the session has ended I'd like to be able to delete the thread but I haven't been able to find any way to do this in the docs.
this.graph = ...
0
votes
1
answer
353
views
How to expand multi-agent graph plot in LangGraph
I'm using LangGraph do design a multi-agent system where a supervisor agent control worker agents.
When I display the graph, the worker's subgraph is collapsed.
Even though the worker's graphs can be ...
0
votes
0
answers
38
views
Blocking call to socket.socket.accept - when using langchain_postgres.v2.vectorstores
blockbuster.blockbuster.BlockingError: Blocking call to socket.socket.accept - when using langchain_postgres.v2.vectorstores
I'm customizing chat-langchain repo using PGvectorstore V2
I've been trying ...
0
votes
1
answer
344
views
Add web_search_preview tool to langchain invoke
I'm working with LangGraph and LangChain, and I need to add the web_search_preview tool to my model when using model.invoke() within a state graph node. I can see that the tool works when used ...
0
votes
0
answers
178
views
How to route to a specific node based on tool return in LangGraph
I'm working on an agent using LangGraph, and I need to implement proper routing after tool execution. My setup uses a state graph with conditional edges, and I want to route to a specific node if the ...
1
vote
0
answers
372
views
How to add prompt caching when using ChatBedrockConverse and ChatPromptTemplate
I am having a serious time finding solutions as to how to add prompt caching and verify that it works using the usage_metadata(). I keep running into one error or another.
Scenario 1 : I use the ...
0
votes
1
answer
2k
views
Conditional Edge in Langgraph is not working as expected
I'm new to Langgraph, trying to create a simple graph with four nodes i.e 'node_1', 'node_2', 'node_3', 'node_4'.
the edges are defined as : node_1--> node_2 direct edge, from node_2 conditional ...
0
votes
0
answers
227
views
LangGraph SSE Streaming Delay: Events Batched, Not Real-time
logger = setup_logger()
async def generate_sse_event(event: str, data: Any, step: str = None) -> str:
"""Generate SSE formatted message with timestamp and consistent structure."&...