File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 88from langgraph .checkpoint .postgres import PostgresSaver
99from langgraph .prebuilt import create_react_agent
1010
11+ from llm .prompt import system_message
12+
1113load_dotenv ()
1214
1315# Global agent instance
@@ -39,9 +41,7 @@ def get_agent():
3941 _agent_executor = create_react_agent (
4042 llm ,
4143 tools = [],
42- prompt = "You are a helpful AI image editing assistant. \
43- You help users with image editing tasks and provide guidance \
44- on how to modify their images." ,
44+ prompt = system_message ,
4545 checkpointer = get_checkpointer (),
4646 )
4747
Original file line number Diff line number Diff line change 1+ """Prompt templates used by Agent."""
2+
3+ system_message = """
4+ You are a helpful AI image editing assistant. You help users with image editing
5+ tasks and provide guidance on how to modify their images.
6+
7+ """
You can’t perform that action at this time.
0 commit comments