prompt listlengths 1 1 | chosen listlengths 1 1 | rejected listlengths 1 1 |
|---|---|---|
[
{
"role": "user",
"content": "Northwind Labs (CUST-NWD) ORD-1011: sum qty_ordered across their open lines. Integer only."
}
] | [
{
"role": "assistant",
"content": "```json\n{}\n```"
}
] | [
{
"role": "assistant",
"content": "{'name': 'calculate_sum_qty_ordered', 'arguments': {'customer_id': '1011', 'query_string': 'SELECT SUM(qty_ordered) FROM orders WHERE customer_id = @customer_id'}}\n{'name': 'calculate_sum_qty_ordered', 'arguments': {'customer_id': '1011', 'query_string': 'SELECT SUM(qty_o... |
[
{
"role": "user",
"content": "Northwind Labs (CUST-NWD) ORD-1011: sum qty_ordered across their open lines. Integer only."
}
] | [
{
"role": "assistant",
"content": "```json\n{}\n```"
}
] | [
{
"role": "assistant",
"content": "{'name': 'calculate_sum_qty_ordered', 'arguments': {'customer_id': '1011', 'query_string': 'SELECT SUM(qty_ordered) FROM orders WHERE customer_id = @customer_id'}}\n{'name': 'calculate_sum_qty_ordered', 'arguments': {'customer_id': '1011', 'query_string': 'SELECT SUM(qty_o... |
[
{
"role": "user",
"content": "Northwind Labs (CUST-NWD) ORD-1011: sum qty_ordered across their open lines. Integer only."
}
] | [
{
"role": "assistant",
"content": "```json\n{\n \"name\": \"calculate_sum_qty_ordered\",\n \"arguments\": {\n \"customer_id\": \"1011\",\n \"query_string\": \"SELECT SUM(qty_ordered) FROM orders WHERE customer_id = @customer_id\"\n }\n}\n```"
}
] | [
{
"role": "assistant",
"content": "{'name': 'calculate_sum_qty_ordered', 'arguments': {'customer_id': '1011', 'query_string': 'SELECT SUM(qty_ordered) FROM orders WHERE customer_id = @customer_id'}}\n{'name': 'calculate_sum_qty_ordered', 'arguments': {'customer_id': '1011', 'query_string': 'SELECT SUM(qty_o... |
[
{
"role": "user",
"content": "Northwind Labs (CUST-NWD) ORD-1011: sum qty_ordered across their open lines. Integer only."
}
] | [
{
"role": "assistant",
"content": "```json\n{}\n```"
}
] | [
{
"role": "assistant",
"content": "{'name': 'calculate_sum_qty_ordered', 'arguments': {'customer_id': '1011', 'query_string': 'SELECT SUM(qty_ordered) FROM orders WHERE customer_id = @customer_id'}}\n{'name': 'calculate_sum_qty_ordered', 'arguments': {'customer_id': '1011', 'query_string': 'SELECT SUM(qty_o... |
[
{
"role": "user",
"content": "Ops ticket #4418 — Dallas is picking ORD-1003 for Acme Robotics this afternoon. If any line is short of on-hand, report the dollar gap (shortfall units × price). Number only."
}
] | [
{
"role": "assistant",
"content": "```json\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"query_inventory\",\n \"parameters\": {\n \"sql_command\": \"SELECT * FROM `inventory` WHERE sku IN ('ORD-1003', 'ORD-1004');\"\n }\n }\n}\n```"
}
] | [
{
"role": "assistant",
"content": "{}\n[{\"type\": \"function\", \"function\": {\"name\": \"query_inventory\", \"description\": \"Read-only SQL against Dallas DC: customers(id,name,sla_hours), orders(id,customer_id,dest_dc,promised_date), order_lines(order_id,sku,qty_ordered), inventory(sku,name,qty,price,r... |
[
{
"role": "user",
"content": "Same ticket #4418 / ORD-1003. How many units short is the SKU that cannot fully ship? Integer only."
}
] | [
{
"role": "assistant",
"content": "```json\n{\n \"action\": \"correct\",\n \"message\": \"The quantity of units that cannot fully ship is 5.\"\n}\n```"
}
] | [
{
"role": "assistant",
"content": "{}\nThe quantity of units that cannot fully ship is 0."
}
] |
[
{
"role": "user",
"content": "Replenishment board: how many SKUs are below reorder_point? Integer only."
}
] | [
{
"role": "assistant",
"content": "```json\n{\n \"tool_call\": \"execute_sql\",\n \"parameters\": {\n \"sql_query\": \"with subquery as (\\n select order_id\\n from order_lines\\n join order_lines_inventory on order_lines_inventory.order_id = order_lines.order_id\\n where order_lines.order_... | [
{
"role": "assistant",
"content": "{}\nThe following SQL query can be used to retrieve the number of SKUs below the reorder point:\n\n```python\nwith subquery as (\n select order_id\n from order_lines\n join order_lines_inventory on order_lines_inventory.order_id = order_lines.order_id\n where o... |
[
{
"role": "user",
"content": "Solace AI ORD-1008 is six PT100 probes (SKU-H70). On-hand probes before the pick? Integer only."
}
] | [
{
"role": "assistant",
"content": "```json\n{\n \"tool_call\": \"\",\n \"arguments\": {\n \"sql_command\": \"\"\n }\n}\n```"
}
] | [
{
"role": "assistant",
"content": "{}\n<query>\n<function>query_inventory</function>\n<parameters>\n <param name=\"sql_command\" type=\"string\" description=\"A read-only SQL query to execute.\">\n <param name=\"sql_command\" type=\"string\" description=\"A read-only SQL query to execute.\">\n</parameters... |
[
{
"role": "user",
"content": "What is CUST-ACME's SLA in hours on customers.sla_hours? Integer only."
}
] | [
{
"role": "assistant",
"content": "```json\n{\n \"action\": \"set_state\",\n \"property\": \"cust_acme.sla_hours\",\n \"value\": 24,\n \"type\": \"integer\"\n}\n```"
}
] | [
{
"role": "assistant",
"content": "{}\ncust_acme.sla_hours is an integer not a string."
}
] |
[
{
"role": "user",
"content": "Line-down cell needs SKU-C91 (24V DIN PSU). Raw on-hand qty? Integer only."
}
] | [
{
"role": "assistant",
"content": "```json\n{\n \"action\": \"retry\",\n \"message\": \"The classification error is expected; retry with a corrected input.\"\n}\n```"
}
] | [
{
"role": "assistant",
"content": "{}\n{\n \"type\": \"function\",\n \"function\": {\n \"name\": \"query_inventory\",\n \"description\": \"Read-only SQL against Dallas DC: customers(id,name,sla_hours), orders(id,customer_id,dest_dc,promised_date), order_lines(order_id,sku,qty_ordered), inventory(sku... |
agenttune-testrun-selfheal
Built using AgentTune — agentic workflows, then train / evaluate / distill / self-heal through one trajectory schema.
| Finetuned from | — |
| Algorithm | dpo |
| Backend | trl |
| Artifact | dataset |
| Published | 2026-09-09 12:12 UTC |
Usage
from datasets import load_dataset
ds = load_dataset("ram-lexsi/agenttune-testrun-selfheal")
print(ds)
Community: Lexsi Discord
- Downloads last month
- 21

