Update app.py
Browse files
app.py
CHANGED
@@ -254,9 +254,9 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
254 |
# (4) Create the prompt templates to plug in CodeAgent
|
255 |
default_prompt_templates = PromptTemplates()
|
256 |
my_prompt_templates = PromptTemplates(system_prompt=combined_system_prompt,
|
257 |
-
planning=default_prompt_templates
|
258 |
-
managed_agent=default_prompt_templates
|
259 |
-
final_answer=default_prompt_templates
|
260 |
# (5) Create the CodeAgent, passing the LLM wrapper and tools
|
261 |
agent = CodeAgent(model=llm_model,
|
262 |
tools=[web_structure_analyzer_tool, wiki_tool, search_tool, python_tool, html_parse_tool],
|
|
|
254 |
# (4) Create the prompt templates to plug in CodeAgent
|
255 |
default_prompt_templates = PromptTemplates()
|
256 |
my_prompt_templates = PromptTemplates(system_prompt=combined_system_prompt,
|
257 |
+
planning=default_prompt_templates["planning"],
|
258 |
+
managed_agent=default_prompt_templates["managed_agent"],
|
259 |
+
final_answer=default_prompt_templates["final_answer"])
|
260 |
# (5) Create the CodeAgent, passing the LLM wrapper and tools
|
261 |
agent = CodeAgent(model=llm_model,
|
262 |
tools=[web_structure_analyzer_tool, wiki_tool, search_tool, python_tool, html_parse_tool],
|