Spaces:
Configuration error
Configuration error
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -4,7 +4,7 @@ from langgraph.prebuilt import ToolNode, tools_condition
|
|
| 4 |
from langgraph.graph import START, StateGraph, MessagesState
|
| 5 |
from langchain_core.messages import HumanMessage
|
| 6 |
import requests, base64
|
| 7 |
-
|
| 8 |
sys_prompt="""
|
| 9 |
You are a helpful assistant tasked with answering questions using a set of tools.
|
| 10 |
Now, I will ask you a question. Report your thoughts, and finish your answer with the following template:
|
|
|
|
| 4 |
from langgraph.graph import START, StateGraph, MessagesState
|
| 5 |
from langchain_core.messages import HumanMessage
|
| 6 |
import requests, base64
|
| 7 |
+
import os
|
| 8 |
sys_prompt="""
|
| 9 |
You are a helpful assistant tasked with answering questions using a set of tools.
|
| 10 |
Now, I will ask you a question. Report your thoughts, and finish your answer with the following template:
|