Skip to content

Commit b3bb7e3

Browse files
committed
Removed some unused prompting. Also made a slight change to the planning prompt (retaining the current version as a comment).
1 parent bbfcc4d commit b3bb7e3

7 files changed

Lines changed: 27 additions & 179 deletions

File tree

src/ursa/agents/deep_review_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from langgraph.runtime import Runtime
2121

2222
from ursa.agents.base import AgentContext, AgentWithTools, BaseAgent
23-
from ursa.prompt_library.hypothesizer_prompts import (
23+
from ursa.prompt_library.deepreview_prompts import (
2424
competitor_prompt,
2525
critic_prompt,
2626
hypothesizer_prompt,

src/ursa/prompt_library/chatter_prompts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ def get_chatter_system_prompt():
22
return """
33
You are the chat interface to URSA, a flexible agentic workflow for accelerating scientific tasks.
44
Do not speculate about the capabilities of URSA beyond the information given to you.
5-
The documentation for URSA is available at https://github.com/lanl/ursa.
5+
The documentation for URSA is available at https://lanl.github.io/ursa/.
66
The user may view a list of commands by typing `?` or `help`.
77
The user may view help for a specific command by typing `help` followed by the name of the command.
88
File renamed without changes.

src/ursa/prompt_library/execution_prompts.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,3 @@ def get_review_prompt(user_prompt):
4949
3. Execution Review: Assess whether the agent successfully completed all the in-scope objectives.
5050
4. Final Verdict: Conclude with a final status decision to continue or if the work is complete and give a reasoning to your verdict
5151
"""
52-
53-
54-
def get_safety_prompt(query, safe_codes, created_files):
55-
return f"""
56-
Assume any of the following are safe:
57-
- Commands to run/install or install packages for the following with any files, because they are from a trusted source:
58-
{", ".join(safe_codes)}
59-
60-
- You can also assume the following are files you have created:
61-
{created_files}
62-
so they are safe to be compiled or run, regardless of the interpreter.
63-
64-
Explain why. Is this command safe to run: {query}
65-
"""

src/ursa/prompt_library/literature_prompts.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/ursa/prompt_library/planning_prompts.py

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
# planner_prompt = """
2+
# You have been given a problem and must formulate a step-by-step plan to solve it.
3+
4+
# Consider the complexity of the task and assign an appropriate number of steps.
5+
# Each step should be a well-defined task that can be implemented and evaluated.
6+
# For each step, specify:
7+
8+
# 1. A descriptive name for the step
9+
# 2. A detailed description of what needs to be done
10+
# 3. Whether the step requires generating and executing code
11+
# 4. Expected outputs of the step
12+
# 5. How to evaluate whether the step was successful
13+
14+
# Consider a diverse range of appropriate steps such as:
15+
# - Data gathering or generation
16+
# - Data preprocessing and cleaning
17+
# - Analysis and modeling
18+
# - Hypothesis testing
19+
# - Visualization
20+
# - Evaluation and validation
21+
22+
# Only allocate the steps that are needed to solve the problem.
23+
# """
24+
125
planner_prompt = """
226
You have been given a problem and must formulate a step-by-step plan to solve it.
327
@@ -9,17 +33,7 @@
933
2. A detailed description of what needs to be done
1034
3. Whether the step requires generating and executing code
1135
4. Expected outputs of the step
12-
5. How to evaluate whether the step was successful
13-
14-
Consider a diverse range of appropriate steps such as:
15-
- Data gathering or generation
16-
- Data preprocessing and cleaning
17-
- Analysis and modeling
18-
- Hypothesis testing
19-
- Visualization
20-
- Evaluation and validation
21-
22-
Only allocate the steps that are needed to solve the problem.
36+
5. How to evaluate whether the step was successful
2337
"""
2438

2539
detailed_planner_prompt = """
@@ -34,16 +48,6 @@
3448
Please keep your plan concise yet sufficiently detailed so that it can be executed without additional clarification.
3549
"""
3650

37-
# reflection_prompt = '''
38-
# You are a critical reviewer being given a series of steps to solve a problem.
39-
40-
# Provide detailed recommendations, including adding missing steps or removing
41-
# superfluous steps. Ensure the proposed effort is appropriate for the problem.
42-
43-
# In the end, decide if the current proposal should be approved or revised.
44-
# Include [APPROVED] in your response if the proposal should be approved with no changes.
45-
# '''
46-
4751
reflection_prompt = """
4852
You are acting as a critical reviewer evaluating a series of steps proposed to solve a specific problem.
4953

src/ursa/prompt_library/websearch_prompts.py

Lines changed: 0 additions & 131 deletions
This file was deleted.

0 commit comments

Comments
 (0)