MCPcopy Create free account
hub / github.com/The-Pocket/PocketFlow-Tutorial-Website-Chatbot / post

Method post

nodes.py:392–397  ·  view source on GitHub ↗

Store the final answer

(self, shared, prep_res, exec_res)

Source from the content-addressed store, hash-verified

390 return "I encountered an error while generating the answer. Please try again or rephrase your question."
391
392 def post(self, shared, prep_res, exec_res):
393 """Store the final answer"""
394 shared["final_answer"] = exec_res
395 if "progress_queue" in shared:
396 shared["progress_queue"].put_nowait("The final answer is ready!")
397 print(f"FINAL ANSWER: {exec_res}")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected