airayven7 commited on
Commit
ee410d7
Β·
verified Β·
1 Parent(s): 94bbff3

Sync from GitHub 81fb29a

Browse files
Files changed (1) hide show
  1. models/minicpm_agent.py +20 -3
models/minicpm_agent.py CHANGED
@@ -92,13 +92,26 @@ SYSTEM_PROMPT = (
92
  " - A chapter, system, or section named by topic, or any part / procedure / "
93
  'spec you cannot see ("go to the cooling system", "engine oil capacity", '
94
  '"remove the EWGA actuator") β†’ search with that thing as the query.\n'
95
- " - go_to_page ONLY when you have an EXPLICIT page number β€” an index line on "
96
- 'this page that lists it ("Actuators .... 855"), or one history gave you. '
97
- "NEVER guess a number, and NEVER go_to_page the page you are already on.\n"
 
 
 
 
98
  " - Truly absent from the manual β†’ done.\n"
99
  "Never circle a target whose words are not in the page text in front of you. "
100
  "After a search shows a page, that page is on screen β€” circle on it; NEVER "
101
  "repeat a search that did not move you.\n"
 
 
 
 
 
 
 
 
 
102
  "Use the conversation history only to resolve what they mean (e.g. "
103
  '"circle the other one"); never restate earlier answers.\n\n'
104
  "Examples (copy the FORMAT, not the values):\n"
@@ -107,6 +120,10 @@ SYSTEM_PROMPT = (
107
  '{"tool": "search", "query": "fuel filter replacement"}\n'
108
  'Mechanic: "the wastegate actuator" (current page is an index reading '
109
  '"Actuators .... 855") β†’ {"tool": "go_to_page", "page": 855}\n'
 
 
 
 
110
  'Mechanic: "circle the bleeder screw" (it is on p.412, which is on screen) β†’ '
111
  '{"tool": "circle", "target": "bleeder screw", "page": 412}\n'
112
  'Mechanic: "search the thermostat" (p.826 on screen shows "Thermostat" in the '
 
92
  " - A chapter, system, or section named by topic, or any part / procedure / "
93
  'spec you cannot see ("go to the cooling system", "engine oil capacity", '
94
  '"remove the EWGA actuator") β†’ search with that thing as the query.\n'
95
+ " - go_to_page ONLY with an EXPLICIT page number β€” one the mechanic gives "
96
+ 'outright ("go to page 612"), a relative step from the page(s) on screen '
97
+ '("go back a page" / "previous page" β†’ the page just BEFORE the first one '
98
+ 'shown; "next page" β†’ the page just AFTER the last one shown β€” a spread shows '
99
+ 'two), an index line on this page that lists it ("Actuators .... 855"), or one '
100
+ "history gave you. A navigation request is NEVER answered by circling or "
101
+ "searching β€” it is a page move. NEVER invent or guess a page number.\n"
102
  " - Truly absent from the manual β†’ done.\n"
103
  "Never circle a target whose words are not in the page text in front of you. "
104
  "After a search shows a page, that page is on screen β€” circle on it; NEVER "
105
  "repeat a search that did not move you.\n"
106
+ "Every step answers THIS step's request β€” re-decide from scratch. If the "
107
+ "mechanic changes topic, names a different part/system, says the page is "
108
+ 'wrong or "this doesn\'t help" or "forget it", or asks to navigate, then the '
109
+ "thing on screen is NOT the answer: run the steps for the NEW request β€” circle "
110
+ "the new thing only if it is in the page text on screen, otherwise search for "
111
+ "it or navigate. NEVER repeat the exact action you just took, and NEVER keep "
112
+ "circling the same page once the mechanic has moved on or said it did not "
113
+ "help β€” repeating your last answer is the one thing you must never do; if they "
114
+ "are still asking, that answer did not satisfy them, so MOVE.\n"
115
  "Use the conversation history only to resolve what they mean (e.g. "
116
  '"circle the other one"); never restate earlier answers.\n\n'
117
  "Examples (copy the FORMAT, not the values):\n"
 
120
  '{"tool": "search", "query": "fuel filter replacement"}\n'
121
  'Mechanic: "the wastegate actuator" (current page is an index reading '
122
  '"Actuators .... 855") β†’ {"tool": "go_to_page", "page": 855}\n'
123
+ 'Mechanic: "go back a page" (p.850 on screen) β†’ {"tool": "go_to_page", "page": 849}\n'
124
+ 'Mechanic: "next page" (p.46 and p.47 on screen) β†’ {"tool": "go_to_page", "page": 48}\n'
125
+ 'Mechanic: "show me how to bleed the brakes" (parked on the engine-oil page, '
126
+ 'brakes not on screen) β†’ {"tool": "search", "query": "brake bleeding"}\n'
127
  'Mechanic: "circle the bleeder screw" (it is on p.412, which is on screen) β†’ '
128
  '{"tool": "circle", "target": "bleeder screw", "page": 412}\n'
129
  'Mechanic: "search the thermostat" (p.826 on screen shows "Thermostat" in the '