chore: localize new dataset piles

Co-authored-by: acon96 <35843486+acon96@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-21 04:32:25 +00:00
parent 6e667b17cc
commit ecf9586b5a
9 changed files with 25 additions and 25 deletions

View File

@@ -561,7 +561,7 @@ def generate_tool_failure_example(failure_case: dict, persona: str, language: st
response_confirmed = response_confirmed.replace("<device_name>", friendly_name)
tool_args_extra = {}
if "climate" in service_action:
if device_type == "climate":
if "<temp_f>" in question or "<temp_f>" in response_starting or "<temp_f>" in response_confirmed:
temp_f = generate_random_parameter("temp_f", piles)
question = question.replace("<temp_f>", str(temp_f))

View File

@@ -1,4 +1,4 @@
service_name,correct_device_name,correct_friendly_name,bad_device_name,phrase,error_result,retry_prompt
light.turn_on,light.living_room_lamp,Living Room Lamp,light.livng_room_lamp,"Please turn on the <device_name>.","Error: Entity light.livng_room_lamp not found.","Trying the living room lamp instead."
climate.set_temperature,climate.hallway,Hallway Thermostat,climate.halway,"Set the <device_name> to <temp_f> degrees.","Error: Entity climate.halway not found.","Retrying with the hallway thermostat."
fan.turn_off,fan.office,Office Fan,fan.offce,"Turn off the <device_name>.","Error: Entity fan.offce not found.","I'll try the office fan again."
light.turn_on,light.living_room_lamp,Lampe du salon,light.livng_room_lamp,"Veuillez allumer la <device_name>.","Erreur : entité light.livng_room_lamp introuvable.","Je vais essayer la lampe du salon à la place."
climate.set_temperature,climate.hallway,Thermostat du couloir,climate.halway,"Règle la <device_name> à <temp_f> degrés.","Erreur : entité climate.halway introuvable.","Nouvelle tentative avec le thermostat du couloir."
fan.turn_off,fan.office,Ventilateur du bureau,fan.offce,"Éteins le <device_name>.","Erreur : entité fan.offce introuvable.","Je vais réessayer avec le ventilateur du bureau."
1 service_name correct_device_name correct_friendly_name bad_device_name phrase error_result retry_prompt
2 light.turn_on light.living_room_lamp Living Room Lamp Lampe du salon light.livng_room_lamp Please turn on the <device_name>. Veuillez allumer la <device_name>. Error: Entity light.livng_room_lamp not found. Erreur : entité light.livng_room_lamp introuvable. Trying the living room lamp instead. Je vais essayer la lampe du salon à la place.
3 climate.set_temperature climate.hallway Hallway Thermostat Thermostat du couloir climate.halway Set the <device_name> to <temp_f> degrees. Règle la <device_name> à <temp_f> degrés. Error: Entity climate.halway not found. Erreur : entité climate.halway introuvable. Retrying with the hallway thermostat. Nouvelle tentative avec le thermostat du couloir.
4 fan.turn_off fan.office Office Fan Ventilateur du bureau fan.offce Turn off the <device_name>. Éteins le <device_name>. Error: Entity fan.offce not found. Erreur : entité fan.offce introuvable. I'll try the office fan again. Je vais réessayer avec le ventilateur du bureau.

View File

@@ -1,4 +1,4 @@
reason_type,service_name,device_name,friendly_name,desired_state,phrase,response
not_available,lock.lock,back_door,Back Door Lock,,"Lock the <device_name>.","I can't find a back door lock to control."
already_state,light.turn_on,hallway,Hallway Lights,on,"Turn on the <device_name>.","The hallway lights are already on."
already_state,switch.turn_off,garage,Garage Outlet,off,"Turn off the <device_name>.","The garage outlet is already off."
not_available,lock.lock,back_door,Serrure de la porte arrière,,"Verrouille la <device_name>.","Je ne trouve pas de serrure de porte arrière à contrôler."
already_state,light.turn_on,hallway,Lumières du couloir,on,"Allume les <device_name>.","Les lumières du couloir sont déjà allumées."
already_state,switch.turn_off,garage,Prise du garage,off,"Éteins la <device_name>.","La prise du garage est déjà éteinte."
1 reason_type service_name device_name friendly_name desired_state phrase response
2 not_available lock.lock back_door Back Door Lock Serrure de la porte arrière Lock the <device_name>. Verrouille la <device_name>. I can't find a back door lock to control. Je ne trouve pas de serrure de porte arrière à contrôler.
3 already_state light.turn_on hallway Hallway Lights Lumières du couloir on Turn on the <device_name>. Allume les <device_name>. The hallway lights are already on. Les lumières du couloir sont déjà allumées.
4 already_state switch.turn_off garage Garage Outlet Prise du garage off Turn off the <device_name>. Éteins la <device_name>. The garage outlet is already off. La prise du garage est déjà éteinte.

View File

@@ -1,4 +1,4 @@
service_name,correct_device_name,correct_friendly_name,bad_device_name,phrase,error_result,retry_prompt
light.turn_on,light.living_room_lamp,Living Room Lamp,light.livng_room_lamp,"Please turn on the <device_name>.","Error: Entity light.livng_room_lamp not found.","Trying the living room lamp instead."
climate.set_temperature,climate.hallway,Hallway Thermostat,climate.halway,"Set the <device_name> to <temp_f> degrees.","Error: Entity climate.halway not found.","Retrying with the hallway thermostat."
fan.turn_off,fan.office,Office Fan,fan.offce,"Turn off the <device_name>.","Error: Entity fan.offce not found.","I'll try the office fan again."
light.turn_on,light.living_room_lamp,Wohnzimmerlampe,light.livng_room_lamp,"Bitte schalte die <device_name> ein.","Fehler: Entität light.livng_room_lamp nicht gefunden.","Ich versuche stattdessen die Wohnzimmerlampe."
climate.set_temperature,climate.hallway,Flurthermostat,climate.halway,"Stelle den <device_name> auf <temp_f> Grad ein.","Fehler: Entität climate.halway nicht gefunden.","Versuche es erneut mit dem Flurthermostat."
fan.turn_off,fan.office,Büroventilator,fan.offce,"Schalte den <device_name> aus.","Fehler: Entität fan.offce nicht gefunden.","Ich versuche den Büroventilator erneut."
1 service_name correct_device_name correct_friendly_name bad_device_name phrase error_result retry_prompt
2 light.turn_on light.living_room_lamp Living Room Lamp Wohnzimmerlampe light.livng_room_lamp Please turn on the <device_name>. Bitte schalte die <device_name> ein. Error: Entity light.livng_room_lamp not found. Fehler: Entität light.livng_room_lamp nicht gefunden. Trying the living room lamp instead. Ich versuche stattdessen die Wohnzimmerlampe.
3 climate.set_temperature climate.hallway Hallway Thermostat Flurthermostat climate.halway Set the <device_name> to <temp_f> degrees. Stelle den <device_name> auf <temp_f> Grad ein. Error: Entity climate.halway not found. Fehler: Entität climate.halway nicht gefunden. Retrying with the hallway thermostat. Versuche es erneut mit dem Flurthermostat.
4 fan.turn_off fan.office Office Fan Büroventilator fan.offce Turn off the <device_name>. Schalte den <device_name> aus. Error: Entity fan.offce not found. Fehler: Entität fan.offce nicht gefunden. I'll try the office fan again. Ich versuche den Büroventilator erneut.

View File

@@ -1,4 +1,4 @@
reason_type,service_name,device_name,friendly_name,desired_state,phrase,response
not_available,lock.lock,back_door,Back Door Lock,,"Lock the <device_name>.","I can't find a back door lock to control."
already_state,light.turn_on,hallway,Hallway Lights,on,"Turn on the <device_name>.","The hallway lights are already on."
already_state,switch.turn_off,garage,Garage Outlet,off,"Turn off the <device_name>.","The garage outlet is already off."
not_available,lock.lock,back_door,Schloss an der Hintertür,,"Schließe <device_name> ab.","Ich kann kein Schloss an der Hintertür finden."
already_state,light.turn_on,hallway,Flurlichter,on,"Schalte die <device_name> ein.","Die Flurlichter sind bereits an."
already_state,switch.turn_off,garage,Steckdose in der Garage,off,"Schalte die <device_name> aus.","Die Steckdose in der Garage ist bereits aus."
1 reason_type service_name device_name friendly_name desired_state phrase response
2 not_available lock.lock back_door Back Door Lock Schloss an der Hintertür Lock the <device_name>. Schließe <device_name> ab. I can't find a back door lock to control. Ich kann kein Schloss an der Hintertür finden.
3 already_state light.turn_on hallway Hallway Lights Flurlichter on Turn on the <device_name>. Schalte die <device_name> ein. The hallway lights are already on. Die Flurlichter sind bereits an.
4 already_state switch.turn_off garage Garage Outlet Steckdose in der Garage off Turn off the <device_name>. Schalte die <device_name> aus. The garage outlet is already off. Die Steckdose in der Garage ist bereits aus.

View File

@@ -1,4 +1,4 @@
service_name,correct_device_name,correct_friendly_name,bad_device_name,phrase,error_result,retry_prompt
light.turn_on,light.living_room_lamp,Living Room Lamp,light.livng_room_lamp,"Please turn on the <device_name>.","Error: Entity light.livng_room_lamp not found.","Trying the living room lamp instead."
climate.set_temperature,climate.hallway,Hallway Thermostat,climate.halway,"Set the <device_name> to <temp_f> degrees.","Error: Entity climate.halway not found.","Retrying with the hallway thermostat."
fan.turn_off,fan.office,Office Fan,fan.offce,"Turn off the <device_name>.","Error: Entity fan.offce not found.","I'll try the office fan again."
light.turn_on,light.living_room_lamp,Lampa w salonie,light.livng_room_lamp,"Proszę włącz <device_name>.","Błąd: encja light.livng_room_lamp nie została znaleziona.","Spróbuję zamiast tego lampy w salonie."
climate.set_temperature,climate.hallway,Termostat w korytarzu,climate.halway,"Ustaw <device_name> na <temp_f> stopni.","Błąd: encja climate.halway nie została znaleziona.","Ponawiam z termostatem w korytarzu."
fan.turn_off,fan.office,Wentylator w biurze,fan.offce,"Wyłącz <device_name>.","Błąd: encja fan.offce nie została znaleziona.","Spróbuję ponownie z wentylatorem w biurze."
1 service_name correct_device_name correct_friendly_name bad_device_name phrase error_result retry_prompt
2 light.turn_on light.living_room_lamp Living Room Lamp Lampa w salonie light.livng_room_lamp Please turn on the <device_name>. Proszę włącz <device_name>. Error: Entity light.livng_room_lamp not found. Błąd: encja light.livng_room_lamp nie została znaleziona. Trying the living room lamp instead. Spróbuję zamiast tego lampy w salonie.
3 climate.set_temperature climate.hallway Hallway Thermostat Termostat w korytarzu climate.halway Set the <device_name> to <temp_f> degrees. Ustaw <device_name> na <temp_f> stopni. Error: Entity climate.halway not found. Błąd: encja climate.halway nie została znaleziona. Retrying with the hallway thermostat. Ponawiam z termostatem w korytarzu.
4 fan.turn_off fan.office Office Fan Wentylator w biurze fan.offce Turn off the <device_name>. Wyłącz <device_name>. Error: Entity fan.offce not found. Błąd: encja fan.offce nie została znaleziona. I'll try the office fan again. Spróbuję ponownie z wentylatorem w biurze.

View File

@@ -1,4 +1,4 @@
reason_type,service_name,device_name,friendly_name,desired_state,phrase,response
not_available,lock.lock,back_door,Back Door Lock,,"Lock the <device_name>.","I can't find a back door lock to control."
already_state,light.turn_on,hallway,Hallway Lights,on,"Turn on the <device_name>.","The hallway lights are already on."
already_state,switch.turn_off,garage,Garage Outlet,off,"Turn off the <device_name>.","The garage outlet is already off."
not_available,lock.lock,back_door,Zamek tylnych drzwi,,"Zablokuj <device_name>.","Nie mogę znaleźć zamka tylnych drzwi do sterowania."
already_state,light.turn_on,hallway,Światła w korytarzu,on,"Włącz <device_name>.","Światła w korytarzu są już włączone."
already_state,switch.turn_off,garage,Gniazdko w garażu,off,"Wyłącz <device_name>.","Gniazdko w garażu jest już wyłączone."
1 reason_type service_name device_name friendly_name desired_state phrase response
2 not_available lock.lock back_door Back Door Lock Zamek tylnych drzwi Lock the <device_name>. Zablokuj <device_name>. I can't find a back door lock to control. Nie mogę znaleźć zamka tylnych drzwi do sterowania.
3 already_state light.turn_on hallway Hallway Lights Światła w korytarzu on Turn on the <device_name>. Włącz <device_name>. The hallway lights are already on. Światła w korytarzu są już włączone.
4 already_state switch.turn_off garage Garage Outlet Gniazdko w garażu off Turn off the <device_name>. Wyłącz <device_name>. The garage outlet is already off. Gniazdko w garażu jest już wyłączone.

View File

@@ -1,4 +1,4 @@
service_name,correct_device_name,correct_friendly_name,bad_device_name,phrase,error_result,retry_prompt
light.turn_on,light.living_room_lamp,Living Room Lamp,light.livng_room_lamp,"Please turn on the <device_name>.","Error: Entity light.livng_room_lamp not found.","Trying the living room lamp instead."
climate.set_temperature,climate.hallway,Hallway Thermostat,climate.halway,"Set the <device_name> to <temp_f> degrees.","Error: Entity climate.halway not found.","Retrying with the hallway thermostat."
fan.turn_off,fan.office,Office Fan,fan.offce,"Turn off the <device_name>.","Error: Entity fan.offce not found.","I'll try the office fan again."
light.turn_on,light.living_room_lamp,Lámpara de la sala,light.livng_room_lamp,"Por favor enciende la <device_name>.","Error: Entidad light.livng_room_lamp no encontrada.","Intentaré con la lámpara de la sala."
climate.set_temperature,climate.hallway,Termostato del pasillo,climate.halway,"Configura el <device_name> a <temp_f> grados.","Error: Entidad climate.halway no encontrada.","Probando de nuevo con el termostato del pasillo."
fan.turn_off,fan.office,Ventilador de la oficina,fan.offce,"Apaga el <device_name>.","Error: Entidad fan.offce no encontrada.","Volveré a intentar con el ventilador de la oficina."
1 service_name correct_device_name correct_friendly_name bad_device_name phrase error_result retry_prompt
2 light.turn_on light.living_room_lamp Living Room Lamp Lámpara de la sala light.livng_room_lamp Please turn on the <device_name>. Por favor enciende la <device_name>. Error: Entity light.livng_room_lamp not found. Error: Entidad light.livng_room_lamp no encontrada. Trying the living room lamp instead. Intentaré con la lámpara de la sala.
3 climate.set_temperature climate.hallway Hallway Thermostat Termostato del pasillo climate.halway Set the <device_name> to <temp_f> degrees. Configura el <device_name> a <temp_f> grados. Error: Entity climate.halway not found. Error: Entidad climate.halway no encontrada. Retrying with the hallway thermostat. Probando de nuevo con el termostato del pasillo.
4 fan.turn_off fan.office Office Fan Ventilador de la oficina fan.offce Turn off the <device_name>. Apaga el <device_name>. Error: Entity fan.offce not found. Error: Entidad fan.offce no encontrada. I'll try the office fan again. Volveré a intentar con el ventilador de la oficina.

View File

@@ -1,4 +1,4 @@
reason_type,service_name,device_name,friendly_name,desired_state,phrase,response
not_available,lock.lock,back_door,Back Door Lock,,"Lock the <device_name>.","I can't find a back door lock to control."
already_state,light.turn_on,hallway,Hallway Lights,on,"Turn on the <device_name>.","The hallway lights are already on."
already_state,switch.turn_off,garage,Garage Outlet,off,"Turn off the <device_name>.","The garage outlet is already off."
not_available,lock.lock,back_door,Cerrojo de la puerta trasera,,"Cierra con llave el <device_name>.","No encuentro un cerrojo de la puerta trasera para controlar."
already_state,light.turn_on,hallway,Luces del pasillo,on,"Enciende las <device_name>.","Las luces del pasillo ya están encendidas."
already_state,switch.turn_off,garage,Enchufe del garaje,off,"Apaga el <device_name>.","El enchufe del garaje ya está apagado."
1 reason_type service_name device_name friendly_name desired_state phrase response
2 not_available lock.lock back_door Back Door Lock Cerrojo de la puerta trasera Lock the <device_name>. Cierra con llave el <device_name>. I can't find a back door lock to control. No encuentro un cerrojo de la puerta trasera para controlar.
3 already_state light.turn_on hallway Hallway Lights Luces del pasillo on Turn on the <device_name>. Enciende las <device_name>. The hallway lights are already on. Las luces del pasillo ya están encendidas.
4 already_state switch.turn_off garage Garage Outlet Enchufe del garaje off Turn off the <device_name>. Apaga el <device_name>. The garage outlet is already off. El enchufe del garaje ya está apagado.