Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -7,9 +7,11 @@ from langchain_huggingface import HuggingFaceEndpoint, ChatHuggingFace
|
|
| 7 |
from langgraph.graph import StateGraph, END
|
| 8 |
|
| 9 |
from retriever import get_retriever
|
| 10 |
-
from system_prompts import SYSTEM_PROMPT
|
| 11 |
from tools import tools
|
| 12 |
|
|
|
|
|
|
|
|
|
|
| 13 |
# Define the shared memory structure for the agent
|
| 14 |
class AgentState(dict):
|
| 15 |
pass
|
|
|
|
| 7 |
from langgraph.graph import StateGraph, END
|
| 8 |
|
| 9 |
from retriever import get_retriever
|
|
|
|
| 10 |
from tools import tools
|
| 11 |
|
| 12 |
+
with open("system_prompt.txt", "r", encoding="utf-8") as f:
|
| 13 |
+
SYSTEM_PROMPT = f.read()
|
| 14 |
+
|
| 15 |
# Define the shared memory structure for the agent
|
| 16 |
class AgentState(dict):
|
| 17 |
pass
|