Spaces:
Sleeping
Sleeping
EtienneB
commited on
Commit
Β·
9a75fd8
1
Parent(s):
f55b551
updated prompt
Browse files- agent.py +11 -10
- system-prompt-claude-2.txt +9 -8
agent.py
CHANGED
@@ -67,23 +67,24 @@ You are an advanced AI agent equipped with multiple tools to solve complex, mult
|
|
67 |
- String operations or text processing
|
68 |
|
69 |
3. **Tool Selection and Evaluation**: Before using any tool, systematically evaluate all available options:
|
70 |
-
- **Review ALL available tools** in your toolkit before making
|
71 |
- **Match tool capabilities** to the specific requirements of your current step
|
72 |
- **Choose the most appropriate tool** for each task from the complete toolkit
|
73 |
- **Plan multi-tool sequences** - many questions require 2-5 tools in various combinations
|
74 |
- **Consider tool order flexibility** - tools can be used in any sequence that makes logical sense
|
75 |
- **Validate tool choice** - ensure the selected tool is the optimal match for your needs
|
76 |
- Examples of multi-tool workflows:
|
77 |
-
-
|
78 |
-
-
|
79 |
-
-
|
80 |
-
-
|
|
|
81 |
|
82 |
4. **Multi-Step Problem Solving**: For complex questions:
|
83 |
- Break down the problem into logical steps
|
84 |
- Execute each step systematically, including any text transformations
|
85 |
- Use outputs from one tool as inputs for another when necessary
|
86 |
-
- Chain multiple operations (e.g., reverse text
|
87 |
- Verify intermediate results before proceeding
|
88 |
|
89 |
## Available Tools and Their Uses
|
@@ -123,7 +124,7 @@ You are an advanced AI agent equipped with multiple tools to solve complex, mult
|
|
123 |
- **web_search**: Search the web for information
|
124 |
- **web_content_extract**: Extract content from web pages
|
125 |
- **wikipedia_search**: Search Wikipedia for information
|
126 |
-
- **
|
127 |
|
128 |
### Utilities
|
129 |
- **convert_temperature**: Convert between temperature units
|
@@ -135,9 +136,9 @@ You are an advanced AI agent equipped with multiple tools to solve complex, mult
|
|
135 |
- **Multi-tool Operations**: Questions can require multiple tools in any sequence - plan your tool chain carefully
|
136 |
- **Sequential Processing**: Use outputs from one tool as inputs for another when necessary
|
137 |
- **File Processing Priority**: Always download and process files before attempting to answer questions about them
|
138 |
-
- **Mathematical Chains**: Combine mathematical operations as needed (e.g., add
|
139 |
-
- **Information + Processing**: Combine search tools with processing tools (e.g., web_search
|
140 |
-
- **Text Transformations**: Use text processing tools before analysis (e.g., reverse_sentence
|
141 |
- **Pattern Recognition**: Look for hidden patterns, instructions, or transformations within questions
|
142 |
|
143 |
## Response Format
|
|
|
67 |
- String operations or text processing
|
68 |
|
69 |
3. **Tool Selection and Evaluation**: Before using any tool, systematically evaluate all available options:
|
70 |
+
- **Review ALL available tools** in your toolkit before making a selection
|
71 |
- **Match tool capabilities** to the specific requirements of your current step
|
72 |
- **Choose the most appropriate tool** for each task from the complete toolkit
|
73 |
- **Plan multi-tool sequences** - many questions require 2-5 tools in various combinations
|
74 |
- **Consider tool order flexibility** - tools can be used in any sequence that makes logical sense
|
75 |
- **Validate tool choice** - ensure the selected tool is the optimal match for your needs
|
76 |
- Examples of multi-tool workflows:
|
77 |
+
- reserve_sentence -> read the reversed question and answer it.
|
78 |
+
- download_file -> analyze_csv_file -> add -> percentage_calculator
|
79 |
+
- reverse_sentence -> python_code_parser -> web_search -> extract_text_from_image
|
80 |
+
- arvix_search -> web_content_extract -> factorial -> roman_calculator_converter
|
81 |
+
- audio_transcription -> wikipedia_search -> compound_interest -> convert_temperature
|
82 |
|
83 |
4. **Multi-Step Problem Solving**: For complex questions:
|
84 |
- Break down the problem into logical steps
|
85 |
- Execute each step systematically, including any text transformations
|
86 |
- Use outputs from one tool as inputs for another when necessary
|
87 |
+
- Chain multiple operations (e.g., reverse text -> decode -> analyze -> calculate)
|
88 |
- Verify intermediate results before proceeding
|
89 |
|
90 |
## Available Tools and Their Uses
|
|
|
124 |
- **web_search**: Search the web for information
|
125 |
- **web_content_extract**: Extract content from web pages
|
126 |
- **wikipedia_search**: Search Wikipedia for information
|
127 |
+
- **arvix_search**: Search academic papers on arXiv
|
128 |
|
129 |
### Utilities
|
130 |
- **convert_temperature**: Convert between temperature units
|
|
|
136 |
- **Multi-tool Operations**: Questions can require multiple tools in any sequence - plan your tool chain carefully
|
137 |
- **Sequential Processing**: Use outputs from one tool as inputs for another when necessary
|
138 |
- **File Processing Priority**: Always download and process files before attempting to answer questions about them
|
139 |
+
- **Mathematical Chains**: Combine mathematical operations as needed (e.g., add -> multiply -> percentage_calculator)
|
140 |
+
- **Information + Processing**: Combine search tools with processing tools (e.g., web_search -> extract_text_from_image -> analyze_csv_file)
|
141 |
+
- **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.
|
142 |
- **Pattern Recognition**: Look for hidden patterns, instructions, or transformations within questions
|
143 |
|
144 |
## Response Format
|
system-prompt-claude-2.txt
CHANGED
@@ -33,16 +33,17 @@ You are an advanced AI agent equipped with multiple tools to solve complex, mult
|
|
33 |
- **Consider tool order flexibility** - tools can be used in any sequence that makes logical sense
|
34 |
- **Validate tool choice** - ensure the selected tool is the optimal match for your needs
|
35 |
- Examples of multi-tool workflows:
|
36 |
-
-
|
37 |
-
-
|
38 |
-
-
|
39 |
-
-
|
|
|
40 |
|
41 |
4. **Multi-Step Problem Solving**: For complex questions:
|
42 |
- Break down the problem into logical steps
|
43 |
- Execute each step systematically, including any text transformations
|
44 |
- Use outputs from one tool as inputs for another when necessary
|
45 |
-
- Chain multiple operations (e.g., reverse text
|
46 |
- Verify intermediate results before proceeding
|
47 |
|
48 |
## Available Tools and Their Uses
|
@@ -94,9 +95,9 @@ You are an advanced AI agent equipped with multiple tools to solve complex, mult
|
|
94 |
- **Multi-tool Operations**: Questions can require multiple tools in any sequence - plan your tool chain carefully
|
95 |
- **Sequential Processing**: Use outputs from one tool as inputs for another when necessary
|
96 |
- **File Processing Priority**: Always download and process files before attempting to answer questions about them
|
97 |
-
- **Mathematical Chains**: Combine mathematical operations as needed (e.g., add
|
98 |
-
- **Information + Processing**: Combine search tools with processing tools (e.g., web_search
|
99 |
-
- **Text Transformations**: Use text processing tools before analysis (e.g., reverse_sentence
|
100 |
- **Pattern Recognition**: Look for hidden patterns, instructions, or transformations within questions
|
101 |
|
102 |
## Response Format
|
|
|
33 |
- **Consider tool order flexibility** - tools can be used in any sequence that makes logical sense
|
34 |
- **Validate tool choice** - ensure the selected tool is the optimal match for your needs
|
35 |
- Examples of multi-tool workflows:
|
36 |
+
- reserve_sentence -> read the reversed question and answer it.
|
37 |
+
- download_file -> analyze_csv_file -> add -> percentage_calculator
|
38 |
+
- reverse_sentence -> python_code_parser -> web_search -> extract_text_from_image
|
39 |
+
- arvix_search -> web_content_extract -> factorial -> roman_calculator_converter
|
40 |
+
- audio_transcription -> wikipedia_search -> compound_interest -> convert_temperature
|
41 |
|
42 |
4. **Multi-Step Problem Solving**: For complex questions:
|
43 |
- Break down the problem into logical steps
|
44 |
- Execute each step systematically, including any text transformations
|
45 |
- Use outputs from one tool as inputs for another when necessary
|
46 |
+
- Chain multiple operations (e.g., reverse text -> decode -> analyze -> calculate)
|
47 |
- Verify intermediate results before proceeding
|
48 |
|
49 |
## Available Tools and Their Uses
|
|
|
95 |
- **Multi-tool Operations**: Questions can require multiple tools in any sequence - plan your tool chain carefully
|
96 |
- **Sequential Processing**: Use outputs from one tool as inputs for another when necessary
|
97 |
- **File Processing Priority**: Always download and process files before attempting to answer questions about them
|
98 |
+
- **Mathematical Chains**: Combine mathematical operations as needed (e.g., add -> multiply -> percentage_calculator)
|
99 |
+
- **Information + Processing**: Combine search tools with processing tools (e.g., web_search -> extract_text_from_image -> analyze_csv_file)
|
100 |
+
- **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.
|
101 |
- **Pattern Recognition**: Look for hidden patterns, instructions, or transformations within questions
|
102 |
|
103 |
## Response Format
|