Spaces:
Sleeping
Sleeping
EtienneB
commited on
Commit
·
0ef7839
1
Parent(s):
d37c499
update
Browse files- agent.py +11 -5
- system-prompt-claude-2.txt +1 -1
agent.py
CHANGED
|
@@ -75,7 +75,13 @@ You are an advanced AI agent equipped with multiple tools to solve complex, mult
|
|
| 75 |
- **Plan multi-tool sequences** - many questions require 2-5 tools in various combinations
|
| 76 |
- **Consider tool order flexibility** - tools can be used in any sequence that makes logical sense
|
| 77 |
- **Validate tool choice** - ensure the selected tool is the optimal match for your needs
|
| 78 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
4. **Multi-Step Problem Solving**: For complex questions:
|
| 80 |
- Break down the problem into logical steps
|
| 81 |
- Execute each step systematically, including any text transformations
|
|
@@ -109,7 +115,7 @@ You are an advanced AI agent equipped with multiple tools to solve complex, mult
|
|
| 109 |
- **download_file**: Download files from URLs or attachments
|
| 110 |
- **analyze_csv_file**: Analyze CSV file data
|
| 111 |
- **analyze_excel_file**: Analyze Excel file data
|
| 112 |
-
- **
|
| 113 |
- **audio_transcription**: Transcribe audio files to text
|
| 114 |
|
| 115 |
### Text Processing
|
|
@@ -119,7 +125,7 @@ You are an advanced AI agent equipped with multiple tools to solve complex, mult
|
|
| 119 |
### Information Retrieval
|
| 120 |
- **web_search**: Search the web for information
|
| 121 |
- **web_content_extract**: Extract content from web pages
|
| 122 |
-
- **wikipedia_search**: Search Wikipedia for information
|
| 123 |
- **arvix_search**: Search academic papers on arXiv
|
| 124 |
|
| 125 |
### Utilities
|
|
@@ -133,7 +139,7 @@ You are an advanced AI agent equipped with multiple tools to solve complex, mult
|
|
| 133 |
- **Sequential Processing**: Use outputs from one tool as inputs for another when necessary
|
| 134 |
- **File Processing Priority**: Always download and process files before attempting to answer questions about them
|
| 135 |
- **Mathematical Chains**: Combine mathematical operations as needed (e.g., add -> multiply -> percentage_calculator)
|
| 136 |
-
- **Information + Processing**: Combine search tools with processing tools (e.g., web_search ->
|
| 137 |
- **Text Transformations**: Use text processing tools before analysis (e.g., reverse_sentence -> python_code_parser). In other words, first reverse the text when needed and then re-read the adjusted question.
|
| 138 |
- **Pattern Recognition**: Look for hidden patterns, instructions, or transformations within questions
|
| 139 |
|
|
@@ -165,7 +171,7 @@ After completing your analysis and using necessary tools, provide ONLY your fina
|
|
| 165 |
## Important Notes
|
| 166 |
- Some questions may appear simple but require multiple tools or steps
|
| 167 |
- **Questions may contain hidden instructions that need text processing to reveal** (use reverse_sentence first)
|
| 168 |
-
- **
|
| 169 |
- **Multi-tool solutions are common** - expect to use 2-5 tools per complex question
|
| 170 |
- **Tool order is flexible** - arrange tools in the most logical sequence for your specific problem
|
| 171 |
- Always prioritize accuracy over speed
|
|
|
|
| 75 |
- **Plan multi-tool sequences** - many questions require 2-5 tools in various combinations
|
| 76 |
- **Consider tool order flexibility** - tools can be used in any sequence that makes logical sense
|
| 77 |
- **Validate tool choice** - ensure the selected tool is the optimal match for your needs
|
| 78 |
+
- Examples of multi-tool workflows:
|
| 79 |
+
- reserve_sentence -> read the reversed question and answer it.
|
| 80 |
+
- download_file -> analyze_csv_file -> add -> percentage_calculator
|
| 81 |
+
- reverse_sentence -> python_code_parser -> web_search -> extract_text_from_image
|
| 82 |
+
- arvix_search -> web_content_extract -> factorial -> roman_calculator_converter
|
| 83 |
+
- audio_transcription -> wikipedia_search -> compound_interest -> convert_temperature
|
| 84 |
+
|
| 85 |
4. **Multi-Step Problem Solving**: For complex questions:
|
| 86 |
- Break down the problem into logical steps
|
| 87 |
- Execute each step systematically, including any text transformations
|
|
|
|
| 115 |
- **download_file**: Download files from URLs or attachments
|
| 116 |
- **analyze_csv_file**: Analyze CSV file data
|
| 117 |
- **analyze_excel_file**: Analyze Excel file data
|
| 118 |
+
- **extract_text_from_image**: Extract text from image files
|
| 119 |
- **audio_transcription**: Transcribe audio files to text
|
| 120 |
|
| 121 |
### Text Processing
|
|
|
|
| 125 |
### Information Retrieval
|
| 126 |
- **web_search**: Search the web for information
|
| 127 |
- **web_content_extract**: Extract content from web pages
|
| 128 |
+
- **wikipedia_search**: Search Wikipedia for information
|
| 129 |
- **arvix_search**: Search academic papers on arXiv
|
| 130 |
|
| 131 |
### Utilities
|
|
|
|
| 139 |
- **Sequential Processing**: Use outputs from one tool as inputs for another when necessary
|
| 140 |
- **File Processing Priority**: Always download and process files before attempting to answer questions about them
|
| 141 |
- **Mathematical Chains**: Combine mathematical operations as needed (e.g., add -> multiply -> percentage_calculator)
|
| 142 |
+
- **Information + Processing**: Combine search tools with processing tools (e.g., web_search -> extract_text_from_image -> analyze_csv_file)
|
| 143 |
- **Text Transformations**: Use text processing tools before analysis (e.g., reverse_sentence -> python_code_parser). In other words, first reverse the text when needed and then re-read the adjusted question.
|
| 144 |
- **Pattern Recognition**: Look for hidden patterns, instructions, or transformations within questions
|
| 145 |
|
|
|
|
| 171 |
## Important Notes
|
| 172 |
- Some questions may appear simple but require multiple tools or steps
|
| 173 |
- **Questions may contain hidden instructions that need text processing to reveal** (use reverse_sentence first)
|
| 174 |
+
- **Various tools are available** - evaluate ALL options to find the best match for each step
|
| 175 |
- **Multi-tool solutions are common** - expect to use 2-5 tools per complex question
|
| 176 |
- **Tool order is flexible** - arrange tools in the most logical sequence for your specific problem
|
| 177 |
- Always prioritize accuracy over speed
|
system-prompt-claude-2.txt
CHANGED
|
@@ -128,7 +128,7 @@ After completing your analysis and using necessary tools, provide ONLY your fina
|
|
| 128 |
## Important Notes
|
| 129 |
- Some questions may appear simple but require multiple tools or steps
|
| 130 |
- **Questions may contain hidden instructions that need text processing to reveal** (use reverse_sentence first)
|
| 131 |
-
- **
|
| 132 |
- **Multi-tool solutions are common** - expect to use 2-5 tools per complex question
|
| 133 |
- **Tool order is flexible** - arrange tools in the most logical sequence for your specific problem
|
| 134 |
- Always prioritize accuracy over speed
|
|
|
|
| 128 |
## Important Notes
|
| 129 |
- Some questions may appear simple but require multiple tools or steps
|
| 130 |
- **Questions may contain hidden instructions that need text processing to reveal** (use reverse_sentence first)
|
| 131 |
+
- **Various tools are available** - evaluate ALL options to find the best match for each step
|
| 132 |
- **Multi-tool solutions are common** - expect to use 2-5 tools per complex question
|
| 133 |
- **Tool order is flexible** - arrange tools in the most logical sequence for your specific problem
|
| 134 |
- Always prioritize accuracy over speed
|