mrhenu commited on
Commit
bfd247c
·
verified ·
1 Parent(s): 2d1056f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -39,10 +39,7 @@ def create_langgraph_agent():
39
 
40
  # 3. Define the agent's logic (the "agent" node)
41
  # We create a prompt that tells the model how to use tools
42
- prompt = ChatPromptTemplate.from_messages([
43
- ("system", "You are a helpful assistant. Use your tools to answer the user's questions."),
44
- ("placeholder", "{messages}"),
45
- ])
46
  agent = create_tool_calling_agent(llm, tools, prompt)
47
  print("Agent logic created.")
48
 
 
39
 
40
  # 3. Define the agent's logic (the "agent" node)
41
  # We create a prompt that tells the model how to use tools
42
+ prompt = hub.pull("hwchase17/openai-tools-agent")
 
 
 
43
  agent = create_tool_calling_agent(llm, tools, prompt)
44
  print("Agent logic created.")
45