yetessam commited on
Commit
4368d69
·
verified ·
1 Parent(s): 8b3e3ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -18,8 +18,10 @@ from agents.prompts import load_prompts
18
 
19
  def initialize_agent(endpoint_uri: str):
20
 
21
- # Load prompts
22
- combined_prompts = load_prompts()
 
 
23
  combined_tools = load_tools() ## from the tools folder (don't remove final answer)
24
 
25
  """Initialize and configure the CodeAgent"""
 
18
 
19
  def initialize_agent(endpoint_uri: str):
20
 
21
+ # Load prompts
22
+ custom_prompts = load_prompts()
23
+ # Merge default prompts and then ours, instead of overriding
24
+ combined_prompts ={**_DEFAULTS, **custom}
25
  combined_tools = load_tools() ## from the tools folder (don't remove final answer)
26
 
27
  """Initialize and configure the CodeAgent"""