Update app.py
Browse files
app.py
CHANGED
@@ -184,15 +184,6 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
184 |
prompt_yaml_file_path = os.path.join(current_dir, "default_system_prompt.yaml")
|
185 |
with open(prompt_yaml_file_path, 'r', encoding='utf-8') as f:
|
186 |
data = yaml.safe_load(f)
|
187 |
-
my_added_prompts = """
|
188 |
-
When you receive output from a tool (like wiki_tool or html_parse_tool), do not include the entire raw output in your next thought if it is very long.
|
189 |
-
Instead, first analyze it (possibly using another tool or by writing code to extract key parts) and only include essential snippets, summaries, or the extracted data relevant to your current plan in your thoughts and observations.
|
190 |
-
ALL executable Python code that you want to run with the PythonInterpreterTool MUST be enclosed in triple backticks with 'py' like this: ```py\n# your python code here\n```
|
191 |
-
Do NOT write any explanations outside of Python comments within these code blocks.
|
192 |
-
Your thoughts and reasoning should precede the code block.
|
193 |
-
For web pages, always use web_structure_analyzer_tool to understand the page's layout before attempting to write detailed parsing code with bs4.
|
194 |
-
"""
|
195 |
-
combined_system_prompt = default_system_prompt + "\n\n" + my_added_prompts
|
196 |
# (4) Create the prompt templates to plug in CodeAgent
|
197 |
my_prompt_templates = PromptTemplates(system_prompt=data['system_prompt'],
|
198 |
planning=PlanningPromptTemplate(initial_plan=data['planning']['initial_plan'],
|
|
|
184 |
prompt_yaml_file_path = os.path.join(current_dir, "default_system_prompt.yaml")
|
185 |
with open(prompt_yaml_file_path, 'r', encoding='utf-8') as f:
|
186 |
data = yaml.safe_load(f)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
187 |
# (4) Create the prompt templates to plug in CodeAgent
|
188 |
my_prompt_templates = PromptTemplates(system_prompt=data['system_prompt'],
|
189 |
planning=PlanningPromptTemplate(initial_plan=data['planning']['initial_plan'],
|