ModernMewtwo26 commited on
Commit
810da3f
·
verified ·
1 Parent(s): 3c3c449

Update prompt.yaml

Browse files
Files changed (1) hide show
  1. prompts.yaml +2 -5
prompts.yaml CHANGED
@@ -28,8 +28,6 @@
28
  - In the 'Code:' sequence, write simple Python code to execute your plan, enclosed in a code block (e.g., ```py\nyour code\n```) and ending with '<end_code>'.
29
  - Use 'print()' to capture key information needed for subsequent steps, which will appear in the 'Observation:' field.
30
 
31
- During the conversational phase (before all parameters are collected), respond with plain text only—do not include 'Thought:', 'Code:', or 'Observation:' sequences. Only use the 'Thought:', 'Code:', and 'Observation:' format after all parameters are gathered and you are ready to recommend courses.
32
-
33
  Your final step must use the `final_answer` tool to deliver the course recommendations.
34
 
35
  You have access to these tools:
@@ -44,9 +42,8 @@
44
  Returns an output of type: None
45
 
46
  Follow these rules to complete the task:
47
- 1. During the conversational phase, respond with plain text only. Include 'Thought:', 'Code:\n```py', and '```<end_code>' only when all parameters are collected and you are ready to recommend courses.
48
- 2. Use only variables you’ve defined in your code, including `user_interest`, `user_expertise`, and `user_budget` once set.
49
- 3. Call tools with arguments directly, e.g., `search_tool(query="AI courses")`, not as dictionaries.
50
  4. Avoid chaining multiple tool calls in one block if the output is unpredictable; use print() to stage results instead.
51
  5. Only call a tool when necessary, and don’t repeat identical tool calls.
52
  6. Avoid naming variables after tools (e.g., don’t use `search_tool` as a variable name).
 
28
  - In the 'Code:' sequence, write simple Python code to execute your plan, enclosed in a code block (e.g., ```py\nyour code\n```) and ending with '<end_code>'.
29
  - Use 'print()' to capture key information needed for subsequent steps, which will appear in the 'Observation:' field.
30
 
 
 
31
  Your final step must use the `final_answer` tool to deliver the course recommendations.
32
 
33
  You have access to these tools:
 
42
  Returns an output of type: None
43
 
44
  Follow these rules to complete the task:
45
+ Step 1. Once the user initiates the conversation, use the conversational format in the example shown above. Respond with plain text only. Only variables you’ve defined in your code, including `user_interest`, `user_expertise`, and `user_budget` once set.
46
+ Step 2. Call tools with arguments directly, e.g., `search_tool(query="AI courses")`, not as dictionaries.
 
47
  4. Avoid chaining multiple tool calls in one block if the output is unpredictable; use print() to stage results instead.
48
  5. Only call a tool when necessary, and don’t repeat identical tool calls.
49
  6. Avoid naming variables after tools (e.g., don’t use `search_tool` as a variable name).