Spaces:
Sleeping
Sleeping
Mayur Shrivastav commited on
Commit ·
17d65b2
1
Parent(s): efbd093
removed prompt template
Browse files
app.py
CHANGED
|
@@ -18,17 +18,17 @@ class BasicAgent:
|
|
| 18 |
def __init__(self):
|
| 19 |
print("BasicAgent initialized.")
|
| 20 |
api_key = os.getenv("ANTHROPIC_API_KEY")
|
| 21 |
-
prompt_templates = PromptTemplates(
|
| 22 |
-
system_prompt = """
|
| 23 |
-
You are a fast reasoning agent for benchmark questions.
|
| 24 |
-
|
| 25 |
-
- Solve step-by-step internally
|
| 26 |
-
- But output only final answer
|
| 27 |
-
- Use tools only if necessary
|
| 28 |
-
- Never repeat tool output verbatim
|
| 29 |
-
- Be extremely concise
|
| 30 |
-
"""
|
| 31 |
-
)
|
| 32 |
model = LiteLLMModel(
|
| 33 |
model_id="claude-3-haiku",
|
| 34 |
api_key=api_key
|
|
@@ -38,7 +38,6 @@ class BasicAgent:
|
|
| 38 |
tools=[DuckDuckGoSearchTool(), VisitWebpageTool()],
|
| 39 |
additional_authorized_imports=["pandas"],
|
| 40 |
max_steps=3,
|
| 41 |
-
prompt_templates=prompt_templates,
|
| 42 |
)
|
| 43 |
|
| 44 |
def save_result(question, result, file_path="agent_logs.jsonl"):
|
|
|
|
| 18 |
def __init__(self):
|
| 19 |
print("BasicAgent initialized.")
|
| 20 |
api_key = os.getenv("ANTHROPIC_API_KEY")
|
| 21 |
+
#prompt_templates = PromptTemplates(
|
| 22 |
+
#system_prompt = """
|
| 23 |
+
#You are a fast reasoning agent for benchmark questions.
|
| 24 |
+
|
| 25 |
+
#- Solve step-by-step internally
|
| 26 |
+
#- But output only final answer
|
| 27 |
+
#- Use tools only if necessary
|
| 28 |
+
#- Never repeat tool output verbatim
|
| 29 |
+
#- Be extremely concise
|
| 30 |
+
#"""
|
| 31 |
+
#)
|
| 32 |
model = LiteLLMModel(
|
| 33 |
model_id="claude-3-haiku",
|
| 34 |
api_key=api_key
|
|
|
|
| 38 |
tools=[DuckDuckGoSearchTool(), VisitWebpageTool()],
|
| 39 |
additional_authorized_imports=["pandas"],
|
| 40 |
max_steps=3,
|
|
|
|
| 41 |
)
|
| 42 |
|
| 43 |
def save_result(question, result, file_path="agent_logs.jsonl"):
|