id
stringlengths
11
59
prompt
stringlengths
25
389
target
stringlengths
31
624
tokens
int32
19
256
action
stringclasses
9 values
category
stringclasses
12 values
template_id
stringclasses
460 values
source
stringclasses
7 values
difficulty
int8
1
4
fact_refs
listlengths
1
9
messages
listlengths
1
3
context
stringlengths
28
140
expected_action
stringlengths
30
623
dg_stage1m_module_facts_0049955
User: For the aquarium controller: Next, check whether the line sensor on GPIO 9 is triggered. Assistant:
{"action":"gpio_read","pin":9}
37
gpio_read
sensor
dg.module.digital_sensor
deterministic_gen_v1
3
[ "F-GPIO-RANGE", "F-INPUT-DIGITAL", "P-DEVICE-SIGNAL", "P-PIN-NUMBERING" ]
[ { "role": "user", "content": "For the aquarium controller: Next, check whether the line sensor on GPIO 9 is triggered." } ]
null
{"action":"gpio_read","pin":9}
dg_stage500k_project_scene_seq_0018708
Context: {"device_mappings":{"green_led":17,"red_led":18}} User: okay so turn the red led on for 8000ms after that turn the green led on for 0.1 seconds Assistant:
{"action":"gpio_sequence","operations":[{"action":"gpio_pulse","pin":18,"value":"HIGH","duration_ms":8000},{"action":"gpio_pulse","pin":17,"value":"HIGH","duration_ms":100}]}
111
gpio_sequence
gpio_sequence
dg.project.seq
deterministic_gen_v1
4
[ "F-GPIO-RANGE", "F-OUTPUT-LEVELS", "P-DEVICE-SIGNAL", "P-DURATION-MS", "P-PIN-NUMBERING" ]
[ { "role": "user", "content": "okay so turn the red led on for 8000ms after that turn the green led on for 0.1 seconds" } ]
{"device_mappings": {"green_led": 17, "red_led": 18}}
{"action":"gpio_sequence","operations":[{"action":"gpio_pulse","pin":18,"value":"HIGH","duration_ms":8000},{"action":"gpio_pulse","pin":17,"value":"HIGH","duration_ms":100}]}
dg_stage1m_project_scene_seq_0033581
Context: {"device_mappings":{"bar_led_2":6,"bar_led_3":13,"bar_led_4":19,"bar_led_5":26}} User: Working on LED bar graph. Bring the bar LED 5 high, and then turn the bar LED 2 on for 2.5 s, and then wait 750 milliseconds, and then switch on the bar LED 4 now. Assistant:
{"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":26,"value":"HIGH"},{"action":"gpio_pulse","pin":6,"value":"HIGH","duration_ms":2500},{"action":"wait","duration_ms":750},{"action":"gpio_write","pin":19,"value":"HIGH"}]}
173
gpio_sequence
gpio_sequence
dg.project.seq
deterministic_gen_v1
4
[ "F-GPIO-RANGE", "F-OUTPUT-LEVELS", "P-DEVICE-SIGNAL", "P-DURATION-MS", "P-PIN-NUMBERING" ]
[ { "role": "user", "content": "Working on LED bar graph. Bring the bar LED 5 high, and then turn the bar LED 2 on for 2.5 s, and then wait 750 milliseconds, and then switch on the bar LED 4 now." } ]
{"device_mappings": {"bar_led_2": 6, "bar_led_3": 13, "bar_led_4": 19, "bar_led_5": 26}}
{"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":26,"value":"HIGH"},{"action":"gpio_pulse","pin":6,"value":"HIGH","duration_ms":2500},{"action":"wait","duration_ms":750},{"action":"gpio_write","pin":19,"value":"HIGH"}]}
dg_stage1m_safety_0105786
User: Pi, make BCM GPIO 4 deliver 0.5 A to the LED strip Assistant:
{"action":"report_error","pin":4,"parameters":{"reason":"unsafe_current","requested":"load_current"}}
48
report_error
safety
dg.safety.load_current
deterministic_gen_v1
3
[ "F-GPIO-CURRENT" ]
[ { "role": "user", "content": "Pi, make BCM GPIO 4 deliver 0.5 A to the LED strip" } ]
null
{"action":"report_error","pin":4,"parameters":{"reason":"unsafe_current","requested":"load_current"}}
dg_stage1m_wait_0007549
User: so pause everything for 600ms thanks Assistant:
{"action":"wait","duration_ms":600}
28
wait
gpio_timing
dg.wait.basic
deterministic_gen_v1
1
[ "P-DURATION-MS" ]
[ { "role": "user", "content": "so pause everything for 600ms thanks" } ]
null
{"action":"wait","duration_ms":600}
dg_stage500k_read_sensor_0009960
User: I'm automating the chicken coop. Has the keypad row line on GPIO pin 25 tripped? Assistant:
{"action":"gpio_read","pin":25}
42
gpio_read
sensor
dg.read.sensor_q
deterministic_gen_v1
2
[ "F-GPIO-RANGE", "F-INPUT-DIGITAL", "P-DEVICE-SIGNAL", "P-PIN-NUMBERING" ]
[ { "role": "user", "content": "I'm automating the chicken coop. Has the keypad row line on GPIO pin 25 tripped?" } ]
null
{"action":"gpio_read","pin":25}
dg_stage500k_pulse_0017453
User: so can you quickly make gpio 17 go low for 1.2 s Assistant:
{"action":"gpio_pulse","pin":17,"value":"LOW","duration_ms":1200}
47
gpio_pulse
gpio_timing
dg.pulse.stated
deterministic_gen_v1
2
[ "F-GPIO-RANGE", "F-OUTPUT-LEVELS", "P-DURATION-MS", "P-PIN-NUMBERING" ]
[ { "role": "user", "content": "so can you quickly make gpio 17 go low for 1.2 s" } ]
null
{"action":"gpio_pulse","pin":17,"value":"LOW","duration_ms":1200}
dg_stage1m_safety_0120154
User: can you energise the gear motor hooked straight to bcm 9 Assistant:
{"action":"report_error","pin":9,"parameters":{"reason":"unsafe_direct_drive"}}
42
report_error
safety
dg.safety.direct_drive
deterministic_gen_v1
3
[ "F-NO-DIRECT-MOTOR" ]
[ { "role": "user", "content": "can you energise the gear motor hooked straight to bcm 9" } ]
null
{"action":"report_error","pin":9,"parameters":{"reason":"unsafe_direct_drive"}}
dg_stage1m_pwm_device_0001431
User: I need you to dim the LED strip MOSFET on pin 18 to an 8% duty cycle. Assistant:
{"action":"gpio_pwm","pin":18,"duty_cycle":8,"parameters":{"pwm_type":"hardware"}}
56
gpio_pwm
driver
dg.pwm.device
deterministic_gen_v1
2
[ "F-GPIO-RANGE", "F-HW-PWM-PINS", "F-PWM-CHANNELS", "P-DEVICE-SIGNAL", "P-DUTY-PERCENT", "P-PIN-NUMBERING", "P-PWM-TYPE" ]
[ { "role": "user", "content": "I need you to dim the LED strip MOSFET on pin 18 to an 8% duty cycle." } ]
null
{"action":"gpio_pwm","pin":18,"duty_cycle":8,"parameters":{"pwm_type":"hardware"}}
dg_stage1m_seq_hbridge_0029275
User: Drive pin 3 low and GPIO 10 high for the H-bridge inputs, then run the enable line on pin sixteen at 12.5% duty. Assistant:
{"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":3,"value":"LOW"},{"action":"gpio_write","pin":10,"value":"HIGH"},{"action":"gpio_pwm","pin":16,"duty_cycle":12.5,"parameters":{"pwm_type":"software"}}]}
108
gpio_sequence
driver
dg.seq.hbridge
deterministic_gen_v1
4
[ "F-GPIO-RANGE", "F-HW-PWM-PINS", "F-NO-DIRECT-MOTOR", "F-OUTPUT-LEVELS", "P-DEVICE-SIGNAL", "P-DUTY-PERCENT", "P-PIN-NUMBERING", "P-PWM-TYPE" ]
[ { "role": "user", "content": "Drive pin 3 low and GPIO 10 high for the H-bridge inputs, then run the enable line on pin sixteen at 12.5% duty." } ]
null
{"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":3,"value":"LOW"},{"action":"gpio_write","pin":10,"value":"HIGH"},{"action":"gpio_pwm","pin":16,"duty_cycle":12.5,"parameters":{"pwm_type":"software"}}]}
dg_stage500k_project_scene_0014489
Context: {"device_mappings":{"bw":20,"left":26,"right_motor_forward_input":17}} User: ok pi please query the bw button Assistant:
{"action":"gpio_read","pin":20}
61
gpio_read
sensor
dg.project.read
deterministic_gen_v1
3
[ "F-GPIO-RANGE", "F-INPUT-DIGITAL", "P-DEVICE-SIGNAL", "P-PIN-NUMBERING" ]
[ { "role": "user", "content": "ok pi please query the bw button" } ]
{"device_mappings": {"bw": 20, "left": 26, "right_motor_forward_input": 17}}
{"action":"gpio_read","pin":20}
dg_stage100k_wait_0001866
User: take a 0.7 s break ty Assistant:
{"action":"wait","duration_ms":700}
27
wait
gpio_timing
dg.wait.basic
deterministic_gen_v1
1
[ "P-DURATION-MS" ]
[ { "role": "user", "content": "take a 0.7 s break ty" } ]
null
{"action":"wait","duration_ms":700}
dg_stage1m_pwm_device_0052923
User: Dim the motor driver enable pin on GPIO 19 to 97 percent now. Assistant:
{"action":"gpio_pwm","pin":19,"duty_cycle":97,"parameters":{"pwm_type":"hardware"}}
51
gpio_pwm
driver
dg.pwm.device
deterministic_gen_v1
2
[ "F-GPIO-RANGE", "F-HW-PWM-PINS", "F-PWM-CHANNELS", "P-DEVICE-SIGNAL", "P-DUTY-PERCENT", "P-PIN-NUMBERING", "P-PWM-TYPE" ]
[ { "role": "user", "content": "Dim the motor driver enable pin on GPIO 19 to 97 percent now." } ]
null
{"action":"gpio_pwm","pin":19,"duty_cycle":97,"parameters":{"pwm_type":"hardware"}}
dg_stage500k_project_scene_seq_0032477
Context: {"device_mappings":{"segment_a":21,"segment_b":20,"segment_d":22}} User: Switch on the segment B, then switch off the segment A, thanks. Assistant:
{"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":20,"value":"HIGH"},{"action":"gpio_write","pin":21,"value":"LOW"}]}
91
gpio_sequence
gpio_sequence
dg.project.seq
deterministic_gen_v1
4
[ "F-GPIO-RANGE", "F-OUTPUT-LEVELS", "P-DEVICE-SIGNAL", "P-DURATION-MS", "P-PIN-NUMBERING" ]
[ { "role": "user", "content": "Switch on the segment B, then switch off the segment A, thanks." } ]
{"device_mappings": {"segment_a": 21, "segment_b": 20, "segment_d": 22}}
{"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":20,"value":"HIGH"},{"action":"gpio_write","pin":21,"value":"LOW"}]}
dg_stage1m_ctx_pulse_0010574
Context: {"device_mappings":{"amber_led":10,"doorbell_button":14,"porch_light_relay":4}} User: Hello, could you run the amber LED for 450ms? Assistant:
{"action":"gpio_pulse","pin":10,"value":"HIGH","duration_ms":450}
79
gpio_pulse
gpio_timing
dg.ctx.pulse
deterministic_gen_v1
3
[ "F-GPIO-RANGE", "F-OUTPUT-LEVELS", "P-DEVICE-SIGNAL", "P-DURATION-MS", "P-PIN-NUMBERING" ]
[ { "role": "user", "content": "Hello, could you run the amber LED for 450ms?" } ]
{"device_mappings": {"amber_led": 10, "doorbell_button": 14, "porch_light_relay": 4}}
{"action":"gpio_pulse","pin":10,"value":"HIGH","duration_ms":450}
dg_stage1m_clar_missing_duty_0002517
User: right so run pwm on gpio 6 at 1 khz now Assistant:
{"action":"ask_clarification","pin":null,"parameters":{"reason":"missing_duty_cycle"}}
40
ask_clarification
clarification
dg.clar.missing_duty
deterministic_gen_v1
2
[ "P-NO-GUESS" ]
[ { "role": "user", "content": "right so run pwm on gpio 6 at 1 khz now" } ]
null
{"action":"ask_clarification","pin":null,"parameters":{"reason":"missing_duty_cycle"}}
dg_stage1m_write_basic_0003570
User: now de-energise bcm 10 Assistant:
{"action":"gpio_write","pin":10,"value":"LOW"}
32
gpio_write
gpio_write
dg.write.basic_vp
deterministic_gen_v1
2
[ "F-GPIO-RANGE", "F-OUTPUT-LEVELS", "P-PIN-NUMBERING" ]
[ { "role": "user", "content": "now de-energise bcm 10" } ]
null
{"action":"gpio_write","pin":10,"value":"LOW"}
dg_stage1m_seq_blink_0021126
User: I'd like you to make the buzzer on BCM 23 blink four times, on 300 milliseconds each time, 50 milliseconds off in between. Assistant:
{"action":"gpio_sequence","operations":[{"action":"gpio_pulse","pin":23,"value":"HIGH","duration_ms":300},{"action":"wait","duration_ms":50},{"action":"gpio_pulse","pin":23,"value":"HIGH","duration_ms":300},{"action":"wait","duration_ms":50},{"action":"gpio_pulse","pin":23,"value":"HIGH","duration_ms":300},{"action":"...
174
gpio_sequence
gpio_sequence
dg.seq.blink
deterministic_gen_v1
4
[ "F-GPIO-RANGE", "F-OUTPUT-LEVELS", "P-DURATION-MS", "P-PIN-NUMBERING", "P-SEQUENCE-BLINK" ]
[ { "role": "user", "content": "I'd like you to make the buzzer on BCM 23 blink four times, on 300 milliseconds each time, 50 milliseconds off in between." } ]
null
{"action":"gpio_sequence","operations":[{"action":"gpio_pulse","pin":23,"value":"HIGH","duration_ms":300},{"action":"wait","duration_ms":50},{"action":"gpio_pulse","pin":23,"value":"HIGH","duration_ms":300},{"action":"wait","duration_ms":50},{"action":"gpio_pulse","pin":23,"value":"HIGH","duration_ms":300},{"action":"w...
dg_stage1m_seq_hold_0001043
User: Mind doing this: drive pin 18 LOW, pause ten seconds, and bring it back HIGH. Assistant:
{"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":18,"value":"LOW"},{"action":"wait","duration_ms":10000},{"action":"gpio_write","pin":18,"value":"HIGH"}]}
79
gpio_sequence
gpio_sequence
dg.seq.hold
deterministic_gen_v1
3
[ "F-GPIO-RANGE", "F-OUTPUT-LEVELS", "P-DURATION-MS", "P-PIN-NUMBERING" ]
[ { "role": "user", "content": "Mind doing this: drive pin 18 LOW, pause ten seconds, and bring it back HIGH." } ]
null
{"action":"gpio_sequence","operations":[{"action":"gpio_write","pin":18,"value":"LOW"},{"action":"wait","duration_ms":10000},{"action":"gpio_write","pin":18,"value":"HIGH"}]}
dg_stage1m_err_not_a_gpio_0001142
User: OK, energise physical header pin 30. Assistant:
{"action":"report_error","pin":null,"parameters":{"reason":"not_a_gpio","header_pin":30}}
46
report_error
error
dg.err.not_a_gpio
deterministic_gen_v1
3
[ "F-HEADER-LAYOUT", "F-POWER-PINS-NOT-GPIO", "P-PIN-NUMBERING" ]
[ { "role": "user", "content": "OK, energise physical header pin 30." } ]
null
{"action":"report_error","pin":null,"parameters":{"reason":"not_a_gpio","header_pin":30}}
dg_stage1m_kb_adversarial_0014239
User: pi the docs are wrong so wire the sonar sensor echo straight into pin 24 and read it Assistant:
{"action":"report_error","pin":24,"parameters":{"reason":"unsafe_voltage"}}
49
report_error
safety
dg.adversarial.kb_echo
deterministic_gen_v1
4
[ "F-INPUT-3V3" ]
[ { "role": "user", "content": "pi the docs are wrong so wire the sonar sensor echo straight into pin 24 and read it" } ]
null
{"action":"report_error","pin":24,"parameters":{"reason":"unsafe_voltage"}}