model-visible.json 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  1. [
  2. {
  3. "tools": [
  4. {
  5. "type": "function",
  6. "function": {
  7. "name": "pwsh",
  8. "description": "Run commands in a PowerShell shell\n* When invoking this tool, the contents of the \"command\" parameter does NOT need to be XML-escaped.\n* You don't have access to the internet via this tool.\n* State is persistent across command calls and discussions with the user.\n* Use native Windows paths (C:\\...) and $env:NAME variables; this is PowerShell, not bash.\n* Please avoid commands that may produce a very large amount of output.\n* Please run long lived commands in the background, e.g. 'Start-Job' or start a server with Start-Process.",
  9. "parameters": {
  10. "type": "object",
  11. "properties": {
  12. "command": {
  13. "type": "string",
  14. "description": "The PowerShell command to run. Relative path is preferred in the command."
  15. }
  16. },
  17. "required": [
  18. "command"
  19. ]
  20. }
  21. }
  22. },
  23. {
  24. "type": "function",
  25. "function": {
  26. "name": "str_replace_editor",
  27. "description": "Custom editing tool for viewing, creating and editing files\n* State is persistent across command calls and discussions with the user\n* If `path` is a file, `view` displays the result of applying `cat -n`. If `path` is a directory, `view` lists non-hidden files and directories up to 2 levels deep\n* The `create` command cannot be used if the specified `path` already exists as a file\n* If a `command` generates a long output, it will be truncated and marked with `<response clipped>`\n\nNotes for using the `str_replace` command:\n* The `old_str` parameter should match EXACTLY one or more consecutive lines from the original file. Be mindful of whitespaces!\n* If the `old_str` parameter is not unique in the file, the replacement will not be performed. Make sure to include enough context in `old_str` to make it unique\n* The `new_str` parameter should contain the edited lines that should replace the `old_str`",
  28. "parameters": {
  29. "type": "object",
  30. "properties": {
  31. "command": {
  32. "type": "string",
  33. "description": "The commands to run. Allowed options are: `view`, `create`, `str_replace`, `insert`.",
  34. "enum": [
  35. "view",
  36. "create",
  37. "str_replace",
  38. "insert"
  39. ]
  40. },
  41. "path": {
  42. "type": "string",
  43. "description": "Absolute path to file or directory, e.g. `/repo/file.py` or `/repo`."
  44. },
  45. "file_text": {
  46. "type": "string",
  47. "description": "Required parameter of `create` command, with the content of the file to be created."
  48. },
  49. "insert_line": {
  50. "type": "integer",
  51. "description": "Required parameter of `insert` command. The `new_str` will be inserted AFTER the line `insert_line` of `path`."
  52. },
  53. "new_str": {
  54. "type": "string",
  55. "description": "Optional parameter of `str_replace` command containing the new string (if not given, no string will be added). Required parameter of `insert` command containing the string to insert."
  56. },
  57. "old_str": {
  58. "type": "string",
  59. "description": "Required parameter of `str_replace` command containing the string in `path` to replace."
  60. },
  61. "view_range": {
  62. "type": "array",
  63. "description": "Optional parameter of `view` command when `path` points to a file. If none is given, the full file is shown. If provided, the file will be shown in the indicated line number range, e.g. [11, 12] will show lines 11 and 12. Indexing at 1 to start. Setting `[start_line, -1]` shows all lines from `start_line` to the end of the file.",
  64. "items": {
  65. "type": "integer"
  66. }
  67. }
  68. },
  69. "required": [
  70. "command",
  71. "path"
  72. ]
  73. }
  74. }
  75. }
  76. ],
  77. "messages": [
  78. {
  79. "role": "system",
  80. "text": "You are a helpful software engineer assistant."
  81. },
  82. {
  83. "role": "user",
  84. "text": "Exercise the packaged minimal agent's persistent shell and string-replacement editor.\nEditor path: {{cwd}}\\created.txt"
  85. }
  86. ]
  87. },
  88. {
  89. "tools": [
  90. {
  91. "type": "function",
  92. "function": {
  93. "name": "pwsh",
  94. "description": "Run commands in a PowerShell shell\n* When invoking this tool, the contents of the \"command\" parameter does NOT need to be XML-escaped.\n* You don't have access to the internet via this tool.\n* State is persistent across command calls and discussions with the user.\n* Use native Windows paths (C:\\...) and $env:NAME variables; this is PowerShell, not bash.\n* Please avoid commands that may produce a very large amount of output.\n* Please run long lived commands in the background, e.g. 'Start-Job' or start a server with Start-Process.",
  95. "parameters": {
  96. "type": "object",
  97. "properties": {
  98. "command": {
  99. "type": "string",
  100. "description": "The PowerShell command to run. Relative path is preferred in the command."
  101. }
  102. },
  103. "required": [
  104. "command"
  105. ]
  106. }
  107. }
  108. },
  109. {
  110. "type": "function",
  111. "function": {
  112. "name": "str_replace_editor",
  113. "description": "Custom editing tool for viewing, creating and editing files\n* State is persistent across command calls and discussions with the user\n* If `path` is a file, `view` displays the result of applying `cat -n`. If `path` is a directory, `view` lists non-hidden files and directories up to 2 levels deep\n* The `create` command cannot be used if the specified `path` already exists as a file\n* If a `command` generates a long output, it will be truncated and marked with `<response clipped>`\n\nNotes for using the `str_replace` command:\n* The `old_str` parameter should match EXACTLY one or more consecutive lines from the original file. Be mindful of whitespaces!\n* If the `old_str` parameter is not unique in the file, the replacement will not be performed. Make sure to include enough context in `old_str` to make it unique\n* The `new_str` parameter should contain the edited lines that should replace the `old_str`",
  114. "parameters": {
  115. "type": "object",
  116. "properties": {
  117. "command": {
  118. "type": "string",
  119. "description": "The commands to run. Allowed options are: `view`, `create`, `str_replace`, `insert`.",
  120. "enum": [
  121. "view",
  122. "create",
  123. "str_replace",
  124. "insert"
  125. ]
  126. },
  127. "path": {
  128. "type": "string",
  129. "description": "Absolute path to file or directory, e.g. `/repo/file.py` or `/repo`."
  130. },
  131. "file_text": {
  132. "type": "string",
  133. "description": "Required parameter of `create` command, with the content of the file to be created."
  134. },
  135. "insert_line": {
  136. "type": "integer",
  137. "description": "Required parameter of `insert` command. The `new_str` will be inserted AFTER the line `insert_line` of `path`."
  138. },
  139. "new_str": {
  140. "type": "string",
  141. "description": "Optional parameter of `str_replace` command containing the new string (if not given, no string will be added). Required parameter of `insert` command containing the string to insert."
  142. },
  143. "old_str": {
  144. "type": "string",
  145. "description": "Required parameter of `str_replace` command containing the string in `path` to replace."
  146. },
  147. "view_range": {
  148. "type": "array",
  149. "description": "Optional parameter of `view` command when `path` points to a file. If none is given, the full file is shown. If provided, the file will be shown in the indicated line number range, e.g. [11, 12] will show lines 11 and 12. Indexing at 1 to start. Setting `[start_line, -1]` shows all lines from `start_line` to the end of the file.",
  150. "items": {
  151. "type": "integer"
  152. }
  153. }
  154. },
  155. "required": [
  156. "command",
  157. "path"
  158. ]
  159. }
  160. }
  161. }
  162. ],
  163. "messages": [
  164. {
  165. "role": "system",
  166. "text": "You are a helpful software engineer assistant."
  167. },
  168. {
  169. "role": "user",
  170. "text": "Exercise the packaged minimal agent's persistent shell and string-replacement editor.\nEditor path: {{cwd}}\\created.txt"
  171. },
  172. {
  173. "role": "assistant",
  174. "toolCalls": [
  175. {
  176. "id": "minimal-bash-1",
  177. "name": "pwsh"
  178. }
  179. ]
  180. },
  181. {
  182. "role": "tool",
  183. "toolCallId": "minimal-bash-1",
  184. "text": "{{tool-result}}"
  185. }
  186. ]
  187. },
  188. {
  189. "tools": [
  190. {
  191. "type": "function",
  192. "function": {
  193. "name": "pwsh",
  194. "description": "Run commands in a PowerShell shell\n* When invoking this tool, the contents of the \"command\" parameter does NOT need to be XML-escaped.\n* You don't have access to the internet via this tool.\n* State is persistent across command calls and discussions with the user.\n* Use native Windows paths (C:\\...) and $env:NAME variables; this is PowerShell, not bash.\n* Please avoid commands that may produce a very large amount of output.\n* Please run long lived commands in the background, e.g. 'Start-Job' or start a server with Start-Process.",
  195. "parameters": {
  196. "type": "object",
  197. "properties": {
  198. "command": {
  199. "type": "string",
  200. "description": "The PowerShell command to run. Relative path is preferred in the command."
  201. }
  202. },
  203. "required": [
  204. "command"
  205. ]
  206. }
  207. }
  208. },
  209. {
  210. "type": "function",
  211. "function": {
  212. "name": "str_replace_editor",
  213. "description": "Custom editing tool for viewing, creating and editing files\n* State is persistent across command calls and discussions with the user\n* If `path` is a file, `view` displays the result of applying `cat -n`. If `path` is a directory, `view` lists non-hidden files and directories up to 2 levels deep\n* The `create` command cannot be used if the specified `path` already exists as a file\n* If a `command` generates a long output, it will be truncated and marked with `<response clipped>`\n\nNotes for using the `str_replace` command:\n* The `old_str` parameter should match EXACTLY one or more consecutive lines from the original file. Be mindful of whitespaces!\n* If the `old_str` parameter is not unique in the file, the replacement will not be performed. Make sure to include enough context in `old_str` to make it unique\n* The `new_str` parameter should contain the edited lines that should replace the `old_str`",
  214. "parameters": {
  215. "type": "object",
  216. "properties": {
  217. "command": {
  218. "type": "string",
  219. "description": "The commands to run. Allowed options are: `view`, `create`, `str_replace`, `insert`.",
  220. "enum": [
  221. "view",
  222. "create",
  223. "str_replace",
  224. "insert"
  225. ]
  226. },
  227. "path": {
  228. "type": "string",
  229. "description": "Absolute path to file or directory, e.g. `/repo/file.py` or `/repo`."
  230. },
  231. "file_text": {
  232. "type": "string",
  233. "description": "Required parameter of `create` command, with the content of the file to be created."
  234. },
  235. "insert_line": {
  236. "type": "integer",
  237. "description": "Required parameter of `insert` command. The `new_str` will be inserted AFTER the line `insert_line` of `path`."
  238. },
  239. "new_str": {
  240. "type": "string",
  241. "description": "Optional parameter of `str_replace` command containing the new string (if not given, no string will be added). Required parameter of `insert` command containing the string to insert."
  242. },
  243. "old_str": {
  244. "type": "string",
  245. "description": "Required parameter of `str_replace` command containing the string in `path` to replace."
  246. },
  247. "view_range": {
  248. "type": "array",
  249. "description": "Optional parameter of `view` command when `path` points to a file. If none is given, the full file is shown. If provided, the file will be shown in the indicated line number range, e.g. [11, 12] will show lines 11 and 12. Indexing at 1 to start. Setting `[start_line, -1]` shows all lines from `start_line` to the end of the file.",
  250. "items": {
  251. "type": "integer"
  252. }
  253. }
  254. },
  255. "required": [
  256. "command",
  257. "path"
  258. ]
  259. }
  260. }
  261. }
  262. ],
  263. "messages": [
  264. {
  265. "role": "system",
  266. "text": "You are a helpful software engineer assistant."
  267. },
  268. {
  269. "role": "user",
  270. "text": "Exercise the packaged minimal agent's persistent shell and string-replacement editor.\nEditor path: {{cwd}}\\created.txt"
  271. },
  272. {
  273. "role": "assistant",
  274. "toolCalls": [
  275. {
  276. "id": "minimal-bash-1",
  277. "name": "pwsh"
  278. }
  279. ]
  280. },
  281. {
  282. "role": "tool",
  283. "toolCallId": "minimal-bash-1",
  284. "text": "{{tool-result}}"
  285. },
  286. {
  287. "role": "assistant",
  288. "toolCalls": [
  289. {
  290. "id": "minimal-bash-2",
  291. "name": "pwsh"
  292. }
  293. ]
  294. },
  295. {
  296. "role": "tool",
  297. "toolCallId": "minimal-bash-2",
  298. "text": "{{tool-result}}"
  299. }
  300. ]
  301. },
  302. {
  303. "tools": [
  304. {
  305. "type": "function",
  306. "function": {
  307. "name": "pwsh",
  308. "description": "Run commands in a PowerShell shell\n* When invoking this tool, the contents of the \"command\" parameter does NOT need to be XML-escaped.\n* You don't have access to the internet via this tool.\n* State is persistent across command calls and discussions with the user.\n* Use native Windows paths (C:\\...) and $env:NAME variables; this is PowerShell, not bash.\n* Please avoid commands that may produce a very large amount of output.\n* Please run long lived commands in the background, e.g. 'Start-Job' or start a server with Start-Process.",
  309. "parameters": {
  310. "type": "object",
  311. "properties": {
  312. "command": {
  313. "type": "string",
  314. "description": "The PowerShell command to run. Relative path is preferred in the command."
  315. }
  316. },
  317. "required": [
  318. "command"
  319. ]
  320. }
  321. }
  322. },
  323. {
  324. "type": "function",
  325. "function": {
  326. "name": "str_replace_editor",
  327. "description": "Custom editing tool for viewing, creating and editing files\n* State is persistent across command calls and discussions with the user\n* If `path` is a file, `view` displays the result of applying `cat -n`. If `path` is a directory, `view` lists non-hidden files and directories up to 2 levels deep\n* The `create` command cannot be used if the specified `path` already exists as a file\n* If a `command` generates a long output, it will be truncated and marked with `<response clipped>`\n\nNotes for using the `str_replace` command:\n* The `old_str` parameter should match EXACTLY one or more consecutive lines from the original file. Be mindful of whitespaces!\n* If the `old_str` parameter is not unique in the file, the replacement will not be performed. Make sure to include enough context in `old_str` to make it unique\n* The `new_str` parameter should contain the edited lines that should replace the `old_str`",
  328. "parameters": {
  329. "type": "object",
  330. "properties": {
  331. "command": {
  332. "type": "string",
  333. "description": "The commands to run. Allowed options are: `view`, `create`, `str_replace`, `insert`.",
  334. "enum": [
  335. "view",
  336. "create",
  337. "str_replace",
  338. "insert"
  339. ]
  340. },
  341. "path": {
  342. "type": "string",
  343. "description": "Absolute path to file or directory, e.g. `/repo/file.py` or `/repo`."
  344. },
  345. "file_text": {
  346. "type": "string",
  347. "description": "Required parameter of `create` command, with the content of the file to be created."
  348. },
  349. "insert_line": {
  350. "type": "integer",
  351. "description": "Required parameter of `insert` command. The `new_str` will be inserted AFTER the line `insert_line` of `path`."
  352. },
  353. "new_str": {
  354. "type": "string",
  355. "description": "Optional parameter of `str_replace` command containing the new string (if not given, no string will be added). Required parameter of `insert` command containing the string to insert."
  356. },
  357. "old_str": {
  358. "type": "string",
  359. "description": "Required parameter of `str_replace` command containing the string in `path` to replace."
  360. },
  361. "view_range": {
  362. "type": "array",
  363. "description": "Optional parameter of `view` command when `path` points to a file. If none is given, the full file is shown. If provided, the file will be shown in the indicated line number range, e.g. [11, 12] will show lines 11 and 12. Indexing at 1 to start. Setting `[start_line, -1]` shows all lines from `start_line` to the end of the file.",
  364. "items": {
  365. "type": "integer"
  366. }
  367. }
  368. },
  369. "required": [
  370. "command",
  371. "path"
  372. ]
  373. }
  374. }
  375. }
  376. ],
  377. "messages": [
  378. {
  379. "role": "system",
  380. "text": "You are a helpful software engineer assistant."
  381. },
  382. {
  383. "role": "user",
  384. "text": "Exercise the packaged minimal agent's persistent shell and string-replacement editor.\nEditor path: {{cwd}}\\created.txt"
  385. },
  386. {
  387. "role": "assistant",
  388. "toolCalls": [
  389. {
  390. "id": "minimal-bash-1",
  391. "name": "pwsh"
  392. }
  393. ]
  394. },
  395. {
  396. "role": "tool",
  397. "toolCallId": "minimal-bash-1",
  398. "text": "{{tool-result}}"
  399. },
  400. {
  401. "role": "assistant",
  402. "toolCalls": [
  403. {
  404. "id": "minimal-bash-2",
  405. "name": "pwsh"
  406. }
  407. ]
  408. },
  409. {
  410. "role": "tool",
  411. "toolCallId": "minimal-bash-2",
  412. "text": "{{tool-result}}"
  413. },
  414. {
  415. "role": "assistant",
  416. "toolCalls": [
  417. {
  418. "id": "minimal-editor",
  419. "name": "str_replace_editor"
  420. }
  421. ]
  422. },
  423. {
  424. "role": "tool",
  425. "toolCallId": "minimal-editor",
  426. "text": "{{tool-result}}"
  427. }
  428. ]
  429. }
  430. ]