Spaces:
Sleeping
Sleeping
Update src/state.py
Browse files- 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"]),
|