Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -56,27 +56,7 @@ class BasicAgent:
|
|
56 |
'pandas', 'numpy', # Data analysis
|
57 |
'zipfile', 'os', # File processing
|
58 |
'datetime', 'time' # Date/time operations
|
59 |
-
]
|
60 |
-
system_prompt="""You are an AI assistant that answers questions accurately and concisely.
|
61 |
-
|
62 |
-
When answering questions:
|
63 |
-
- Provide ONLY the direct answer requested
|
64 |
-
- For numbers, give just the number (e.g., "42", not "The answer is 42")
|
65 |
-
- For names/words, give just the name/word (e.g., "Paris", not "The capital is Paris")
|
66 |
-
- For yes/no questions, answer just "Yes" or "No"
|
67 |
-
- Do not include explanations unless specifically asked
|
68 |
-
- Do not add prefixes like "The answer is" or "According to my search"
|
69 |
-
|
70 |
-
You have access to web search via DuckDuckGoSearchTool when you need current information.
|
71 |
-
You can write Python code to perform calculations or process data.
|
72 |
-
|
73 |
-
Use the Think-Act-Observe pattern:
|
74 |
-
1. Think about what you need to do
|
75 |
-
2. Act by writing code or using tools
|
76 |
-
3. Observe the results
|
77 |
-
4. Continue until you have the final answer
|
78 |
-
|
79 |
-
Always end with just the direct answer the question asks for."""
|
80 |
)
|
81 |
|
82 |
self.available = True
|
|
|
56 |
'pandas', 'numpy', # Data analysis
|
57 |
'zipfile', 'os', # File processing
|
58 |
'datetime', 'time' # Date/time operations
|
59 |
+
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
)
|
61 |
|
62 |
self.available = True
|