Spaces:
Runtime error
Runtime error
Update Agent.py
Browse files
Agent.py
CHANGED
|
@@ -4,8 +4,9 @@ from langgraph.graph import StateGraph, END
|
|
| 4 |
from langchain.agents import AgentExecutor, initialize_agent
|
| 5 |
from langchain.memory import ConversationBufferMemory
|
| 6 |
from langchain_community.tools import DuckDuckGoSearchRun
|
| 7 |
-
from langchain.schema import SystemMessage
|
| 8 |
-
from langchain.schema.messages import HumanMessage
|
|
|
|
| 9 |
GAIA_SYSTEM_PROMPT = """
|
| 10 |
You are an advanced autonomous agent designed to pass the GAIA benchmark.
|
| 11 |
You must:
|
|
|
|
| 4 |
from langchain.agents import AgentExecutor, initialize_agent
|
| 5 |
from langchain.memory import ConversationBufferMemory
|
| 6 |
from langchain_community.tools import DuckDuckGoSearchRun
|
| 7 |
+
#from langchain.schema import SystemMessage
|
| 8 |
+
#from langchain.schema.messages import HumanMessage
|
| 9 |
+
from langchain_core.messages import SystemMessage, HumanMessage
|
| 10 |
GAIA_SYSTEM_PROMPT = """
|
| 11 |
You are an advanced autonomous agent designed to pass the GAIA benchmark.
|
| 12 |
You must:
|