mrmtaeb commited on
Commit
16edc8c
·
verified ·
1 Parent(s): a3491c6

Update src/state.py

Browse files
Files changed (1) hide show
  1. src/state.py +1 -1
src/state.py CHANGED
@@ -34,7 +34,7 @@ def build_graph(rag_chain):
34
  # For agent_chain.invoke
35
  def build_graph_with_callable(call_fn):
36
  def call_model(state: State):
37
- response = call_fn(state)
38
  return {
39
  "chat_history": [
40
  HumanMessage(state["input"]),
 
34
  # For agent_chain.invoke
35
  def build_graph_with_callable(call_fn):
36
  def call_model(state: State):
37
+ response = call_fn({"input": state["input"]})
38
  return {
39
  "chat_history": [
40
  HumanMessage(state["input"]),