Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -107,7 +107,7 @@ def build_graph(provider: str = "google"):
|
|
| 107 |
def assistant(state: MessagesState):
|
| 108 |
""" Use the tools to answer the query. you have add,subtract,multiply,divide,web_search,wikipedia_search,arxiv_search tools."""
|
| 109 |
response = llm_with_tools.invoke([system_message]+state["messages"])
|
| 110 |
-
time.sleep(
|
| 111 |
return {"messages": state["messages"] + [response]}
|
| 112 |
|
| 113 |
|
|
|
|
| 107 |
def assistant(state: MessagesState):
|
| 108 |
""" Use the tools to answer the query. you have add,subtract,multiply,divide,web_search,wikipedia_search,arxiv_search tools."""
|
| 109 |
response = llm_with_tools.invoke([system_message]+state["messages"])
|
| 110 |
+
time.sleep(4) # 무료 티어의 한계
|
| 111 |
return {"messages": state["messages"] + [response]}
|
| 112 |
|
| 113 |
|