Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -14,7 +14,7 @@ def build_agent():
|
|
| 14 |
chat_with_tools = llm.bind_tools(tools)
|
| 15 |
|
| 16 |
def assistant(state: MessagesState):
|
| 17 |
-
response = chat_with_tools.invoke(
|
| 18 |
return {
|
| 19 |
"messages": [response]
|
| 20 |
}
|
|
|
|
| 14 |
chat_with_tools = llm.bind_tools(tools)
|
| 15 |
|
| 16 |
def assistant(state: MessagesState):
|
| 17 |
+
response = chat_with_tools.invoke(state["messages"])
|
| 18 |
return {
|
| 19 |
"messages": [response]
|
| 20 |
}
|