Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 =
|
| 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 |
|