75 lines
90 KiB
JSON
75 lines
90 KiB
JSON
{"messages": [{"role": "user", "content": "Edit train.py and change 255 into 128"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"train.py\", \"old_string\": \"255\", \"new_string\": \"128\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "Modify model.py so v1 becomes v2"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"model.py\", \"old_string\": \"v1\", \"new_string\": \"v2\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "What is R language?"}, {"role": "assistant", "content": "R is a language and environment for statistical computing and graphics."}]}
|
|
{"messages": [{"role": "user", "content": "Change True to False in README.md"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"README.md\", \"old_string\": \"True\", \"new_string\": \"False\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "Identify which animal species is alive or extinct: Sandpiper, Greater Sage-Grouse"}, {"role": "assistant", "content": "Greater Sage-Grouse is alive, Sandpiper is extinct."}]}
|
|
{"messages": [{"role": "user", "content": "What are examples of endocrine disruptors?"}, {"role": "assistant", "content": "BPA (bisphenol-A), phthalates, parabens and xenoestrogens are some examples of EDC's (endocrine disrupting chemicals)."}]}
|
|
{"messages": [{"role": "user", "content": "Update .env.example: swap lr=1e-3 for lr=3e-4"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \".env.example\", \"old_string\": \"lr=1e-3\", \"new_string\": \"lr=3e-4\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "What is a credit card?"}, {"role": "assistant", "content": "A credit card is a payment card issued to users (cardholders) to enable the cardholder to pay a merchant for goods and services based on the cardholder's accrued debt (i.e., promise to the card issuer to pay them for the amounts plus the other agreed charges).The card issuer (usually a bank or credit union) creates a revolving account and grants a line of credit to the cardholder, from which the cardholder can borrow money for payment to a merchant or as a cash advance. There are two credit card groups: consumer credit cards and business credit cards. Most cards are plastic, but some are metal cards (stainless steel, gold, palladium, titanium), and a few gemstone-encrusted metal cards."}]}
|
|
{"messages": [{"role": "user", "content": "In main.py replace lr=1e-3 with lr=3e-4"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"main.py\", \"old_string\": \"lr=1e-3\", \"new_string\": \"lr=3e-4\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "Given this reference text about Delta Lambda Phi, during which years was the DLP fraternity not the fastest growing fraternity in the US?\n\nDelta Lambda Phi (\u0394\u039b\u03a6) is an international social fraternity for gay, bisexual, transgender and progressive men. It offers a social environment and structure similar to other Greek-model college fraternities. The fraternity was founded on October 15, 1986, by Vernon L. Strickland III in Washington, D.C.: becoming the first national social fraternity for gay, bisexual, and straight progressive men. The full, corporate name of the fraternity is Delta Lambda Phi Social Fraternity, but it is commonly referred to as \"DLP\" by its members. As of 2007, DLP was one of the fastest-growing fraternities in the United States."}, {"role": "assistant", "content": "Between 1986 and 2007, DLP was available, but not the fastest growing fraternity."}]}
|
|
{"messages": [{"role": "user", "content": "In model.py replace GET with POST"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"model.py\", \"old_string\": \"GET\", \"new_string\": \"POST\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "In .env.example replace v1 with v2"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \".env.example\", \"old_string\": \"v1\", \"new_string\": \"v2\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "Why do people think that cricket is a boring sport?"}, {"role": "assistant", "content": "People think that cricket is a boring sport because they fundamentally do not understand how the various forms of the game work and what their respective laws are. They are blind to its beauty. \n\nThere are three main forms of cricket, T20 (lasting approximately three to four hrs), One Day (lasting a playing day) and First Class/Test Matches (lasting four to five playing days). \n\nEach form of the game includes specific laws but fundamentally the objective is to score more runs than your opponents whilst giving away fewer wickets. It is a game of real skill and strategy, requiring physical fitness, agility, strength and stamina as well as mental rigour, concentration, resilience and also stamina. \n\nIn the longest form of the game, it is indeed a possible outcome that two teams can play each other for five days and a DRAW is still possible. It is the hardest sport in the world to win if you can play for five days and still not win! \n\nHow can anyone say that's boring...?"}]}
|
|
{"messages": [{"role": "user", "content": "What game was the animated series Tank Knights Fortress based on?\n\nFortress is a shooter video game developed by CCR Inc and published by Netsgo. The game spawned an animated series, Tank Knights Fortress, and a sequel, Fortress 2. On November 18, 2011, service for the game was terminated in South Korea and Japan."}, {"role": "assistant", "content": "Fortress."}]}
|
|
{"messages": [{"role": "user", "content": "Open tests/test_api.py"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"read_file\", \"arguments\": {\"path\": \"tests/test_api.py\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "Edit README.md and change lr=1e-3 into lr=3e-4"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"README.md\", \"old_string\": \"lr=1e-3\", \"new_string\": \"lr=3e-4\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "Update README.md: swap debug=False for debug=True"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"README.md\", \"old_string\": \"debug=False\", \"new_string\": \"debug=True\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "In app.py replace 255 with 128"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"app.py\", \"old_string\": \"255\", \"new_string\": \"128\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "Edit app.py and change debug=False into debug=True"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"app.py\", \"old_string\": \"debug=False\", \"new_string\": \"debug=True\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "Execute git diff"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"run_bash\", \"arguments\": {\"command\": \"git diff\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "Read model.py"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"read_file\", \"arguments\": {\"path\": \"model.py\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "Modify main.py so v1 becomes v2"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"main.py\", \"old_string\": \"v1\", \"new_string\": \"v2\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "In the file data/train.csv, replace foo with bar"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"data/train.csv\", \"old_string\": \"foo\", \"new_string\": \"bar\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "What are the Olympic light weight events.\n\nThe first lightweight events were added to the World Championships in 1974 for men and 1985 for women. Lightweight rowing was added to the Olympics in 1996 but this came under threat in 2002 when the Programme Commission of the IOC recommended that, outside combat sports and weightlifting, there should not be weight category events. The executive board overturned this recommendation and lightweight rowing continues at the Olympics, though only in the men's and women's double sculls.\n\nThere are two Olympic-class lightweight events: men's double sculls and women's double sculls. From 1996 - 2016 the men's Lightweight 4- was included in the Olympics."}, {"role": "assistant", "content": "Two Olympic lightweight events are men's double sculls and women's double sculls"}]}
|
|
{"messages": [{"role": "user", "content": "Show me the contents of src/utils.py"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"read_file\", \"arguments\": {\"path\": \"src/utils.py\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "Open index.html"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"read_file\", \"arguments\": {\"path\": \"index.html\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "Open utils.py"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"read_file\", \"arguments\": {\"path\": \"utils.py\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "What's in the tests directory?"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"list_dir\", \"arguments\": {\"path\": \"tests\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "What's in the configs directory?"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"list_dir\", \"arguments\": {\"path\": \"configs\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "Print out config.py for me"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"read_file\", \"arguments\": {\"path\": \"config.py\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "When building a piece of furniture, categorize each of the following as either \"useful\" or \"not useful\": Hammer, Asphalt, Gym, Wood, Nails, Tequila, Measuring Tape, Burrito"}, {"role": "assistant", "content": "Hammer: Useful\nAsphalt: Not Useful\nGym: Not Useful\nWood: Useful\nNails: Useful\nTequila: Not Useful\nMeasuring Tape: Useful\nBurrito: Not Useful"}]}
|
|
{"messages": [{"role": "user", "content": "Open app.py"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"read_file\", \"arguments\": {\"path\": \"app.py\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "Why is baseball considered such a quintessential US sport?"}, {"role": "assistant", "content": "There are many factors that make many Americans think of baseball as \"America's pastime.\" Possibly the biggest factor is that baseball has been played for so long that it's history ties together generations of Americans through their common rooting interest in their favorite teams. Another reason: baseball players became celebrities and figures in pop culture long before such a thing was common in other sports. While baseball has lagged in growth in recent times when compared to leagues such as the NFL and the NBA, it is still a vibrant sport with large revenues and extremely passionate fan bases around the country."}]}
|
|
{"messages": [{"role": "user", "content": "In utils.py replace True with False"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"utils.py\", \"old_string\": \"True\", \"new_string\": \"False\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "Why should I change my car oil?"}, {"role": "assistant", "content": "Changing your car's engine oil is important for the engine's performance and longevity. The oil plays a critical role in engine operation, by providing lubrication between metal surfaces. Without oil, these surfaces will rub against one another and cause permanent damage and unrecoverable damage to the engine. Always use the engine oil type that is suggested by your car's manufacturer, and change the oil at the suggested interval. For many modern cars, this is either every 12 months or after 5000 to 10000 miles, whichever come first."}]}
|
|
{"messages": [{"role": "user", "content": "Update main.py: swap 255 for 128"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"main.py\", \"old_string\": \"255\", \"new_string\": \"128\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "How can you prepare for a longer airplane flight with children?"}, {"role": "assistant", "content": "Taking longer airplane flights with children can be stressful. With some planning you can alleviate some of the stress and keep yourself and your children ready for the journey. In preparation for your trip make sure that you cover the basics of food, hydration, entertainment and comfort. Food: While most longer flights will offer refreshments, not all flights have full meal options available. Prepare by eating a meal before getting on the plane and by packing a range of snack options for you and your children. Hydration: You will likely be served refreshments and drinks several times during longer flights. However you will likely find that you will need to bring additional water and drink options to ensure proper hydrations, especially on very long flights. Entertainment: You want to make sure that your children can engage in plenty of activities on long flights. Most airlines will provide for games, movies and music options via on board entertainment. However, you want to make sure you supplement by bringing additional entertainment options for your children. Comfort: Your plane can be too cold or too warm for your preferences, so be prepared for both scenarios."}]}
|
|
{"messages": [{"role": "user", "content": "Open src/utils.py"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"read_file\", \"arguments\": {\"path\": \"src/utils.py\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "In model.py replace localhost with 0.0.0.0"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"model.py\", \"old_string\": \"localhost\", \"new_string\": \"0.0.0.0\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "Which Game of Thrones episode does Arya go blind?"}, {"role": "assistant", "content": "Arya goes temporarily blind in the last episode of season 5, entitled \"Mother's Mercy\""}]}
|
|
{"messages": [{"role": "user", "content": "What Is a Request for Quote (RFQ)?"}, {"role": "assistant", "content": "A request for quote (RFQ) is a structured acquisition process in which a company or Govt. Agency solicits select suppliers and contractors to submit price quotes and bids for the chance to fulfill specific tasks or projects. The RFQ process is especially important to businesses or government agencies that need a consistent supply of a specific number of standard products. Companies may send RFQs alone or before a request for proposal (RFP)."}]}
|
|
{"messages": [{"role": "user", "content": "Change 5000 to 8080 in .env.example"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \".env.example\", \"old_string\": \"5000\", \"new_string\": \"8080\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "Categorize these paint colours as \u201cprimary\u201d, \u201csecondary\u201d, and \u201ctertiary\u201d according to the Quiller color wheel.\n\nCadmium Yellow Light, Permanent Green Light, Viridian Green, Green Blue, Phthalocyanine Blue, Ultramarine Blue, Ultramarine Violet, Magenta, Permanent Rose, Cadmium Red, Cadmium Scarlet, Cadmium Orange"}, {"role": "assistant", "content": "Primary: Cadmium Yellow Light, Phthalocyanine Blue, Permanent Rose\nSecondary: Viridian Green, Ultramarine Violet, Cadmium Scarlet\nTertiary: Permanent Green Light, Green Blue, Ultramarine Blue, Magenta, Cadmium Red, Cadmium Orange"}]}
|
|
{"messages": [{"role": "user", "content": "Edit requirements.txt and change 255 into 128"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"requirements.txt\", \"old_string\": \"255\", \"new_string\": \"128\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "Edit model.py and change debug=False into debug=True"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"model.py\", \"old_string\": \"debug=False\", \"new_string\": \"debug=True\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "Who won highest number of Men's singles Wimbledon titles?"}, {"role": "assistant", "content": "Roger Federer won highest number of Wimbledon titles (8 Titles)"}]}
|
|
{"messages": [{"role": "user", "content": "Modify src/utils.py so foo becomes bar"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"src/utils.py\", \"old_string\": \"foo\", \"new_string\": \"bar\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "Update requirements.txt: swap 255 for 128"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"requirements.txt\", \"old_string\": \"255\", \"new_string\": \"128\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "Modify data/train.csv so v1 becomes v2"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"data/train.csv\", \"old_string\": \"v1\", \"new_string\": \"v2\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "In index.html replace 255 with 128"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"index.html\", \"old_string\": \"255\", \"new_string\": \"128\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "Change localhost to 0.0.0.0 in model.py"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"model.py\", \"old_string\": \"localhost\", \"new_string\": \"0.0.0.0\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "Edit app.py and change GET into POST"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"app.py\", \"old_string\": \"GET\", \"new_string\": \"POST\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "From the paragraph provided, extract the mechanisms of heat transfer.\n\nHeat transfer is a discipline of thermal engineering that concerns the generation, use, conversion, and exchange of thermal energy (heat) between physical systems. Heat transfer is classified into various mechanisms, such as thermal conduction, thermal convection, thermal radiation, and transfer of energy by phase changes. Engineers also consider the transfer of mass of differing chemical species (mass transfer in the form of advection), either cold or hot, to achieve heat transfer. While these mechanisms have distinct characteristics, they often occur simultaneously in the same system."}, {"role": "assistant", "content": "The mechanisms of heat transfer include thermal conduction, thermal convection, thermal radiation, and transfer of energy by phase changes, although engineers also consider mass transfer in the form of advection a form of heat transfer."}]}
|
|
{"messages": [{"role": "user", "content": "Change debug=False to debug=True in docker-compose.yml"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"docker-compose.yml\", \"old_string\": \"debug=False\", \"new_string\": \"debug=True\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "Print out utils.py for me"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"read_file\", \"arguments\": {\"path\": \"utils.py\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "In index.html replace foo with bar"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"index.html\", \"old_string\": \"foo\", \"new_string\": \"bar\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "In the file Makefile, replace True with False"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"Makefile\", \"old_string\": \"True\", \"new_string\": \"False\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "What are some recommendations for US national parks to visit?"}, {"role": "assistant", "content": "1. Yosemite National Park\n2. Yellowstone National Park\n3. Zion National Park\n4. Bryce Canyon National Park\n5. Glacier National Park"}]}
|
|
{"messages": [{"role": "user", "content": "What makes you smile? What makes you happy?"}, {"role": "assistant", "content": "I smile when I can let life slow down a bit and I can stop to appreciate what's around me. The small things are the best. A passerby having a happy moment. A great song. A nice tree."}]}
|
|
{"messages": [{"role": "user", "content": "Modify config.py so True becomes False"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"config.py\", \"old_string\": \"True\", \"new_string\": \"False\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "Update tests/test_api.py: swap GET for POST"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"tests/test_api.py\", \"old_string\": \"GET\", \"new_string\": \"POST\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "In the file index.html, replace 5000 with 8080"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"index.html\", \"old_string\": \"5000\", \"new_string\": \"8080\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "In src/utils.py replace v1 with v2"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"src/utils.py\", \"old_string\": \"v1\", \"new_string\": \"v2\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "List five titles by Anne Rice."}, {"role": "assistant", "content": "Lasher, The Queen of the Damned, The Vampire Lestat, Interview with a Vampire, Memnoch the Devil"}]}
|
|
{"messages": [{"role": "user", "content": "In the file model.py, replace localhost with 0.0.0.0"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"model.py\", \"old_string\": \"localhost\", \"new_string\": \"0.0.0.0\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "Please run npm test"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"run_bash\", \"arguments\": {\"command\": \"npm test\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "What is rowing?"}, {"role": "assistant", "content": "Rowing is the sport of racing boats using oars. It differs from paddling sports in that rowing oars are attached to the boat using oarlocks, while paddles are not connected to the boat. Rowing is divided into two disciplines: sculling and sweep rowing. In sculling, each rower holds two oars\u2014one in each hand, while in sweep rowing each rower holds one oar with both hands. There are several boat classes in which athletes may compete, ranging from single sculls, occupied by one person, to shells with eight rowers and a coxswain, called eights. There are a wide variety of course types and formats of racing, but most elite and championship level racing is conducted on calm water courses 2 kilometres long with several lanes marked using buoys."}]}
|
|
{"messages": [{"role": "user", "content": "Print out .env.example for me"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"read_file\", \"arguments\": {\"path\": \".env.example\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "Modify README.md so v1 becomes v2"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"README.md\", \"old_string\": \"v1\", \"new_string\": \"v2\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "What's in config.py?"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"read_file\", \"arguments\": {\"path\": \"config.py\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "Edit utils.py and change GET into POST"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"utils.py\", \"old_string\": \"GET\", \"new_string\": \"POST\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "Modify app.py so GET becomes POST"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"app.py\", \"old_string\": \"GET\", \"new_string\": \"POST\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "In model.py replace foo with bar"}, {"role": "assistant", "content": "<tool_call>\n{\"name\": \"edit_file\", \"arguments\": {\"path\": \"model.py\", \"old_string\": \"foo\", \"new_string\": \"bar\"}}\n</tool_call>"}], "tools": [{"type": "function", "function": {"name": "read_file", "description": "Read and return the contents of a file.", "parameters": {"type": "object", "properties": {"path": {"type": "string", "description": "File path to read."}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "write_file", "description": "Create or overwrite a file with the given content.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "content": {"type": "string"}}, "required": ["path", "content"]}}}, {"type": "function", "function": {"name": "edit_file", "description": "Replace an exact substring in a file with new text.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}, "old_string": {"type": "string"}, "new_string": {"type": "string"}}, "required": ["path", "old_string", "new_string"]}}}, {"type": "function", "function": {"name": "list_dir", "description": "List the entries in a directory.", "parameters": {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}}}, {"type": "function", "function": {"name": "run_bash", "description": "Run a shell command and return its output.", "parameters": {"type": "object", "properties": {"command": {"type": "string"}}, "required": ["command"]}}}]}
|
|
{"messages": [{"role": "user", "content": "Classify each of the following as either a chip or a cracker: Goldfish, Wheat Thins, Pringles, Doritos, Cheez-Its, Lays, Ruffles"}, {"role": "assistant", "content": "Goldfish: Cracker\nWheat Thins: Cracker\nPringles: Chip\nDoritos: Chip\nCheez-Its: Cracker\nLays: Chip\nRuffles: Chip"}]}
|