Spaces:
Sleeping
Sleeping
| from agents.base_agent import agent_executor | |
| from langchain_core.messages import HumanMessage | |
| # question = "In Series 9, Episode 11 of Doctor Who, the Doctor is trapped inside an ever-shifting maze. What is this location called in the official script for the episode? Give the setting exactly as it appears in the first scene heading." | |
| # question = "In Emily Midkiff's June 2014 article in a journal named for the one of Hreidmar's sons that guarded his house, what word was quoted from two different authors in distaste for the nature of dragon depictions?" | |
| question = "If Eliud Kipchoge could maintain his record-making marathon pace indefinitely, how many thousand hours would it take him to run the distance between the Earth and the Moon its closest approach? Please use the minimum perigee value on the Wikipedia page for the Moon when carrying out your calculation. Round your result to the nearest 1000 hours and do not use any comma separators if necessary." | |
| messages = [HumanMessage(content=question)] | |
| response = agent_executor.invoke({"messages": messages}) | |
| for message in response["messages"]: | |
| message.pretty_print() | |