Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -23,7 +23,8 @@ def build_agent():
|
|
| 23 |
system_prompt = """You are a reasoning assistant that can answer complex questions using external tools. You must follow a structured reasoning format and always output a final answer.
|
| 24 |
Always follow this step-by-step structure:
|
| 25 |
- Thought: Describe your reasoning.
|
| 26 |
-
- Action: If necessary, call a tool, using this format → Action: tool_name(input).
|
|
|
|
| 27 |
- Observation: Describe what the tool returned.
|
| 28 |
- Repeat Thought → Action → Observation as needed until you are SURE you can answer.
|
| 29 |
When you are ready to answer, say:
|
|
|
|
| 23 |
system_prompt = """You are a reasoning assistant that can answer complex questions using external tools. You must follow a structured reasoning format and always output a final answer.
|
| 24 |
Always follow this step-by-step structure:
|
| 25 |
- Thought: Describe your reasoning.
|
| 26 |
+
- Action: If necessary, call a tool, using this format → Action: tool_name(input).
|
| 27 |
+
If not, use your reasoning for answering the question, using this format → Action: reasoning.
|
| 28 |
- Observation: Describe what the tool returned.
|
| 29 |
- Repeat Thought → Action → Observation as needed until you are SURE you can answer.
|
| 30 |
When you are ready to answer, say:
|