| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570 |
- [
- {
- "tools": [
- {
- "type": "function",
- "function": {
- "name": "bash",
- "description": "Run commands in a bash 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* You do have access to a mirror of common linux and python packages via apt and pip.\n* State is persistent across command calls and discussions with the user.\n* To inspect a particular line range of a file, e.g. lines 10-25, try 'sed -n 10,25p /path/to/the/file'.\n* Please avoid commands that may produce a very large amount of output.\n* Please run long lived commands in the background, e.g. 'sleep 10 &' or start a server in the background.",
- "parameters": {
- "type": "object",
- "properties": {
- "command": {
- "type": "string",
- "description": "The bash command to run. Relative path is preferred in the command."
- }
- },
- "required": [
- "command"
- ]
- }
- }
- },
- {
- "type": "function",
- "function": {
- "name": "str_replace_editor",
- "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* A null placeholder for a parameter unused by the selected command is treated as omitted. Required parameters still need values; omit `str_replace.new_str` rather than setting it to null when deleting a match\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`",
- "parameters": {
- "type": "object",
- "properties": {
- "command": {
- "type": "string",
- "description": "The commands to run. Allowed options are: `view`, `create`, `str_replace`, `insert`.",
- "enum": [
- "view",
- "create",
- "str_replace",
- "insert"
- ]
- },
- "path": {
- "type": "string",
- "description": "Absolute path to file or directory, e.g. `/repo/file.py` or `/repo`."
- },
- "file_text": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Required string parameter of `create` command, with the content of the file to be created. A null placeholder is treated as omitted by commands that do not use this parameter."
- },
- "insert_line": {
- "oneOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Required integer parameter of `insert` command. The `new_str` will be inserted AFTER the line `insert_line` of `path`. A null placeholder is treated as omitted by commands that do not use this parameter."
- },
- "new_str": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Optional string parameter of `str_replace` command containing the new string (if omitted, no string will be added). Required string parameter of `insert` command containing the string to insert. A null placeholder is accepted only by commands that do not use this parameter."
- },
- "old_str": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Required string parameter of `str_replace` command containing the string in `path` to replace. A null placeholder is treated as omitted by commands that do not use this parameter."
- },
- "view_range": {
- "oneOf": [
- {
- "type": "array",
- "items": {
- "type": "integer"
- }
- },
- {
- "type": "null"
- }
- ],
- "description": "Optional parameter of `view` command when `path` points to a file. If omitted or null, 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."
- }
- },
- "required": [
- "command",
- "path"
- ]
- }
- }
- }
- ],
- "messages": [
- {
- "role": "system",
- "text": "You are a helpful software engineer assistant."
- },
- {
- "role": "user",
- "text": "Exercise the packaged minimal agent's persistent shell and string-replacement editor.\nEditor path: {{cwd}}/created.txt"
- }
- ]
- },
- {
- "tools": [
- {
- "type": "function",
- "function": {
- "name": "bash",
- "description": "Run commands in a bash 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* You do have access to a mirror of common linux and python packages via apt and pip.\n* State is persistent across command calls and discussions with the user.\n* To inspect a particular line range of a file, e.g. lines 10-25, try 'sed -n 10,25p /path/to/the/file'.\n* Please avoid commands that may produce a very large amount of output.\n* Please run long lived commands in the background, e.g. 'sleep 10 &' or start a server in the background.",
- "parameters": {
- "type": "object",
- "properties": {
- "command": {
- "type": "string",
- "description": "The bash command to run. Relative path is preferred in the command."
- }
- },
- "required": [
- "command"
- ]
- }
- }
- },
- {
- "type": "function",
- "function": {
- "name": "str_replace_editor",
- "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* A null placeholder for a parameter unused by the selected command is treated as omitted. Required parameters still need values; omit `str_replace.new_str` rather than setting it to null when deleting a match\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`",
- "parameters": {
- "type": "object",
- "properties": {
- "command": {
- "type": "string",
- "description": "The commands to run. Allowed options are: `view`, `create`, `str_replace`, `insert`.",
- "enum": [
- "view",
- "create",
- "str_replace",
- "insert"
- ]
- },
- "path": {
- "type": "string",
- "description": "Absolute path to file or directory, e.g. `/repo/file.py` or `/repo`."
- },
- "file_text": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Required string parameter of `create` command, with the content of the file to be created. A null placeholder is treated as omitted by commands that do not use this parameter."
- },
- "insert_line": {
- "oneOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Required integer parameter of `insert` command. The `new_str` will be inserted AFTER the line `insert_line` of `path`. A null placeholder is treated as omitted by commands that do not use this parameter."
- },
- "new_str": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Optional string parameter of `str_replace` command containing the new string (if omitted, no string will be added). Required string parameter of `insert` command containing the string to insert. A null placeholder is accepted only by commands that do not use this parameter."
- },
- "old_str": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Required string parameter of `str_replace` command containing the string in `path` to replace. A null placeholder is treated as omitted by commands that do not use this parameter."
- },
- "view_range": {
- "oneOf": [
- {
- "type": "array",
- "items": {
- "type": "integer"
- }
- },
- {
- "type": "null"
- }
- ],
- "description": "Optional parameter of `view` command when `path` points to a file. If omitted or null, 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."
- }
- },
- "required": [
- "command",
- "path"
- ]
- }
- }
- }
- ],
- "messages": [
- {
- "role": "system",
- "text": "You are a helpful software engineer assistant."
- },
- {
- "role": "user",
- "text": "Exercise the packaged minimal agent's persistent shell and string-replacement editor.\nEditor path: {{cwd}}/created.txt"
- },
- {
- "role": "assistant",
- "toolCalls": [
- {
- "id": "minimal-bash-1",
- "name": "bash"
- }
- ]
- },
- {
- "role": "tool",
- "toolCallId": "minimal-bash-1",
- "text": "{{tool-result}}"
- }
- ]
- },
- {
- "tools": [
- {
- "type": "function",
- "function": {
- "name": "bash",
- "description": "Run commands in a bash 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* You do have access to a mirror of common linux and python packages via apt and pip.\n* State is persistent across command calls and discussions with the user.\n* To inspect a particular line range of a file, e.g. lines 10-25, try 'sed -n 10,25p /path/to/the/file'.\n* Please avoid commands that may produce a very large amount of output.\n* Please run long lived commands in the background, e.g. 'sleep 10 &' or start a server in the background.",
- "parameters": {
- "type": "object",
- "properties": {
- "command": {
- "type": "string",
- "description": "The bash command to run. Relative path is preferred in the command."
- }
- },
- "required": [
- "command"
- ]
- }
- }
- },
- {
- "type": "function",
- "function": {
- "name": "str_replace_editor",
- "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* A null placeholder for a parameter unused by the selected command is treated as omitted. Required parameters still need values; omit `str_replace.new_str` rather than setting it to null when deleting a match\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`",
- "parameters": {
- "type": "object",
- "properties": {
- "command": {
- "type": "string",
- "description": "The commands to run. Allowed options are: `view`, `create`, `str_replace`, `insert`.",
- "enum": [
- "view",
- "create",
- "str_replace",
- "insert"
- ]
- },
- "path": {
- "type": "string",
- "description": "Absolute path to file or directory, e.g. `/repo/file.py` or `/repo`."
- },
- "file_text": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Required string parameter of `create` command, with the content of the file to be created. A null placeholder is treated as omitted by commands that do not use this parameter."
- },
- "insert_line": {
- "oneOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Required integer parameter of `insert` command. The `new_str` will be inserted AFTER the line `insert_line` of `path`. A null placeholder is treated as omitted by commands that do not use this parameter."
- },
- "new_str": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Optional string parameter of `str_replace` command containing the new string (if omitted, no string will be added). Required string parameter of `insert` command containing the string to insert. A null placeholder is accepted only by commands that do not use this parameter."
- },
- "old_str": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Required string parameter of `str_replace` command containing the string in `path` to replace. A null placeholder is treated as omitted by commands that do not use this parameter."
- },
- "view_range": {
- "oneOf": [
- {
- "type": "array",
- "items": {
- "type": "integer"
- }
- },
- {
- "type": "null"
- }
- ],
- "description": "Optional parameter of `view` command when `path` points to a file. If omitted or null, 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."
- }
- },
- "required": [
- "command",
- "path"
- ]
- }
- }
- }
- ],
- "messages": [
- {
- "role": "system",
- "text": "You are a helpful software engineer assistant."
- },
- {
- "role": "user",
- "text": "Exercise the packaged minimal agent's persistent shell and string-replacement editor.\nEditor path: {{cwd}}/created.txt"
- },
- {
- "role": "assistant",
- "toolCalls": [
- {
- "id": "minimal-bash-1",
- "name": "bash"
- }
- ]
- },
- {
- "role": "tool",
- "toolCallId": "minimal-bash-1",
- "text": "{{tool-result}}"
- },
- {
- "role": "assistant",
- "toolCalls": [
- {
- "id": "minimal-bash-2",
- "name": "bash"
- }
- ]
- },
- {
- "role": "tool",
- "toolCallId": "minimal-bash-2",
- "text": "{{tool-result}}"
- }
- ]
- },
- {
- "tools": [
- {
- "type": "function",
- "function": {
- "name": "bash",
- "description": "Run commands in a bash 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* You do have access to a mirror of common linux and python packages via apt and pip.\n* State is persistent across command calls and discussions with the user.\n* To inspect a particular line range of a file, e.g. lines 10-25, try 'sed -n 10,25p /path/to/the/file'.\n* Please avoid commands that may produce a very large amount of output.\n* Please run long lived commands in the background, e.g. 'sleep 10 &' or start a server in the background.",
- "parameters": {
- "type": "object",
- "properties": {
- "command": {
- "type": "string",
- "description": "The bash command to run. Relative path is preferred in the command."
- }
- },
- "required": [
- "command"
- ]
- }
- }
- },
- {
- "type": "function",
- "function": {
- "name": "str_replace_editor",
- "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* A null placeholder for a parameter unused by the selected command is treated as omitted. Required parameters still need values; omit `str_replace.new_str` rather than setting it to null when deleting a match\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`",
- "parameters": {
- "type": "object",
- "properties": {
- "command": {
- "type": "string",
- "description": "The commands to run. Allowed options are: `view`, `create`, `str_replace`, `insert`.",
- "enum": [
- "view",
- "create",
- "str_replace",
- "insert"
- ]
- },
- "path": {
- "type": "string",
- "description": "Absolute path to file or directory, e.g. `/repo/file.py` or `/repo`."
- },
- "file_text": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Required string parameter of `create` command, with the content of the file to be created. A null placeholder is treated as omitted by commands that do not use this parameter."
- },
- "insert_line": {
- "oneOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Required integer parameter of `insert` command. The `new_str` will be inserted AFTER the line `insert_line` of `path`. A null placeholder is treated as omitted by commands that do not use this parameter."
- },
- "new_str": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Optional string parameter of `str_replace` command containing the new string (if omitted, no string will be added). Required string parameter of `insert` command containing the string to insert. A null placeholder is accepted only by commands that do not use this parameter."
- },
- "old_str": {
- "oneOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Required string parameter of `str_replace` command containing the string in `path` to replace. A null placeholder is treated as omitted by commands that do not use this parameter."
- },
- "view_range": {
- "oneOf": [
- {
- "type": "array",
- "items": {
- "type": "integer"
- }
- },
- {
- "type": "null"
- }
- ],
- "description": "Optional parameter of `view` command when `path` points to a file. If omitted or null, 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."
- }
- },
- "required": [
- "command",
- "path"
- ]
- }
- }
- }
- ],
- "messages": [
- {
- "role": "system",
- "text": "You are a helpful software engineer assistant."
- },
- {
- "role": "user",
- "text": "Exercise the packaged minimal agent's persistent shell and string-replacement editor.\nEditor path: {{cwd}}/created.txt"
- },
- {
- "role": "assistant",
- "toolCalls": [
- {
- "id": "minimal-bash-1",
- "name": "bash"
- }
- ]
- },
- {
- "role": "tool",
- "toolCallId": "minimal-bash-1",
- "text": "{{tool-result}}"
- },
- {
- "role": "assistant",
- "toolCalls": [
- {
- "id": "minimal-bash-2",
- "name": "bash"
- }
- ]
- },
- {
- "role": "tool",
- "toolCallId": "minimal-bash-2",
- "text": "{{tool-result}}"
- },
- {
- "role": "assistant",
- "toolCalls": [
- {
- "id": "minimal-editor",
- "name": "str_replace_editor"
- }
- ]
- },
- {
- "role": "tool",
- "toolCallId": "minimal-editor",
- "text": "{{tool-result}}"
- }
- ]
- }
- ]
|