bstraehle commited on
Commit
e87b565
·
verified ·
1 Parent(s): 374cf2e

Update rag_langgraph.py

Browse files
Files changed (1) hide show
  1. rag_langgraph.py +2 -2
rag_langgraph.py CHANGED
@@ -133,13 +133,13 @@ def run_multi_agent(prompt):
133
  for s in graph.stream(
134
  {
135
  "messages": [
136
- HumanMessage(content=prompt)
137
  ]
138
  }
139
  ):
140
  if "__end__" not in s:
141
  print(s)
142
- result += s
143
  print("----")
144
 
145
  return result
 
133
  for s in graph.stream(
134
  {
135
  "messages": [
136
+ HumanMessage(content="Code hello world and print it to the terminal")
137
  ]
138
  }
139
  ):
140
  if "__end__" not in s:
141
  print(s)
142
+ result = str(s)
143
  print("----")
144
 
145
  return result