Open seyeong-han opened 2 weeks ago
Any updates @seyeong-han
I am getting the same error here.
Usually, the made_plan
and active_plan
values are always passed in the jockey terminal. But we must figure out how to pass them from the front end to the langgraph API.
# Here the default values are always given in the terminal
jockey_input = {
"chat_history": user_input,
"made_plan": False,
"next_worker": None,
"active_plan": None
}
I found the error occurs in the def _build_supervisor
from class Jockey(StateGraph)
by looking at the LangGraph Debugger.
Also, the default values of the made plan and active plan passed alongside the user input from the frontend solves this issue.
in streameventsapi.js line 38
or your solution might work too
Yes, both ways can solve the error, but given the value under the code, it looks more natural, not directly on user chat.
I think LangGraph docker still not fixed. It seems like they changed the
ChatPromptTemplate
and I will check their update.Reproduce The Error
I got the error when I sent a message through the jockey chat.
Error