Download data/test/Home/task_09ed96c0/reference_trajectory.json from X-LANCE/SynthDCB: direct link, hf CLI and curl.
- Browser
- Download file 41.8 kB
-
https://huggingface.co/datasets/X-LANCE/SynthDCB/resolve/main/data/test/Home/task_09ed96c0/reference_trajectory.json
- Command line
-
hf download hf://datasets/X-LANCE/SynthDCB/data/test/Home/task_09ed96c0/reference_trajectory.json
-
curl -L -o reference_trajectory.json https://huggingface.co/datasets/X-LANCE/SynthDCB/resolve/main/data/test/Home/task_09ed96c0/reference_trajectory.json
41.8 kB
{
"trajectory_id": "task_09ed96c0_reference",
"world_id": "task_09ed96c0",
"task_id": "task_09ed96c0",
"source": "repair",
"records": [
{
"kind": "tool_exchange",
"call": {
"call_id": "call_1",
"turn_id": "turn_1",
"command": {
"target": "session",
"function": "get_device_tools",
"parameters": {
"device_id": "coffee_maker_1"
}
}
},
"result": {
"call_id": "call_1",
"turn_id": "turn_1",
"sequence": 1,
"status": "success",
"code": "[PASS]",
"data": {
"device_id": "coffee_maker_1",
"tools": [
{
"function": "get_program",
"description": "Returns the selected program while powered on.",
"mutation": false,
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"program"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "program",
"response_key": "program",
"preconditions": {
"power": true
}
}
},
{
"function": "set_program",
"description": "Selects espresso or coffee while powered on and not processing. Cleaning is started with clean.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {
"value": {
"type": "string",
"enum": [
"espresso",
"coffee"
],
"description": "Desired beverage program."
}
},
"required": [
"value"
],
"additionalProperties": false
},
"reads": [
"power",
"status",
"program"
],
"writes": [
"program"
],
"semantics": {
"kind": "set",
"property": "program",
"parameter": "value",
"preconditions": {
"power": true,
"status": {
"one_of": [
"idle",
"completed"
]
}
}
}
},
{
"function": "get_cup_volume",
"description": "Returns the selected cup volume while powered on.",
"mutation": false,
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"cup_volume"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "cup_volume",
"response_key": "cup_volume",
"preconditions": {
"power": true
}
}
},
{
"function": "set_cup_volume",
"description": "Sets the cup volume from 30 through 500 milliliters in 10 milliliter steps while powered on and idle or completed.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {
"value": {
"type": "integer",
"minimum": 30,
"maximum": 500,
"multipleOf": 10,
"description": "Cup volume in milliliters."
}
},
"required": [
"value"
],
"additionalProperties": false
},
"reads": [
"power",
"status"
],
"writes": [
"cup_volume"
],
"semantics": {
"kind": "set",
"property": "cup_volume",
"parameter": "value",
"preconditions": {
"power": true,
"status": {
"one_of": [
"idle",
"completed"
]
}
}
}
},
{
"function": "get_strength",
"description": "Returns the selected strength while powered on.",
"mutation": false,
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"strength"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "strength",
"response_key": "strength",
"preconditions": {
"power": true
}
}
},
{
"function": "set_strength",
"description": "Sets coffee strength from level 1 through 3 while powered on and idle or completed.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {
"value": {
"type": "integer",
"minimum": 1,
"maximum": 3,
"description": "Coffee strength level."
}
},
"required": [
"value"
],
"additionalProperties": false
},
"reads": [
"power",
"status"
],
"writes": [
"strength"
],
"semantics": {
"kind": "set",
"property": "strength",
"parameter": "value",
"preconditions": {
"power": true,
"status": {
"one_of": [
"idle",
"completed"
]
}
}
}
},
{
"function": "get_status",
"description": "Returns the current extraction or cleaning process state while powered on.",
"mutation": false,
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"status",
"phase",
"remaining_minutes",
"progress_minutes"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "status",
"response_key": "status",
"preconditions": {
"power": true
}
}
},
{
"function": "brew",
"description": "Starts beverage extraction using the selected espresso or coffee program.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {
"program": {
"type": "string",
"enum": [
"espresso",
"coffee"
]
}
},
"required": [
"program"
],
"additionalProperties": false
},
"reads": [
"power",
"program",
"status"
],
"writes": [
"phase",
"program",
"progress_minutes",
"remaining_minutes",
"started_at_minute",
"status"
],
"semantics": {
"kind": "process_start",
"mode_parameter": "program",
"preconditions": {
"power": true,
"status": {
"one_of": [
"idle",
"completed"
]
}
}
}
},
{
"function": "pause",
"description": "Pauses an active extraction or cleaning process.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"status"
],
"writes": [
"status"
],
"semantics": {
"kind": "process_pause",
"preconditions": {
"power": true,
"status": "running"
}
}
},
{
"function": "resume",
"description": "Resumes a paused extraction or cleaning process without resetting its progress.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"status"
],
"writes": [
"status",
"started_at_minute"
],
"semantics": {
"kind": "process_resume",
"preconditions": {
"power": true,
"status": "paused"
}
}
},
{
"function": "clean",
"description": "Starts the cleaning program.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {
"program": {
"type": "string",
"enum": [
"cleaning"
]
}
},
"required": [
"program"
],
"additionalProperties": false
},
"reads": [
"power",
"status",
"program"
],
"writes": [
"phase",
"program",
"progress_minutes",
"remaining_minutes",
"started_at_minute",
"status"
],
"semantics": {
"kind": "process_start",
"mode_parameter": "program",
"preconditions": {
"power": true,
"status": {
"one_of": [
"idle",
"completed"
]
}
}
}
},
{
"function": "get_power",
"description": "Get the current power state.",
"mutation": false,
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"reads": [
"power"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "power",
"response_key": "power"
}
},
{
"function": "set_power",
"description": "Set power and update access for active dependent properties.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {
"value": {
"type": "boolean"
}
},
"required": [
"value"
],
"additionalProperties": false
},
"reads": [
"power",
"status"
],
"writes": [
"power",
"status"
],
"semantics": {
"kind": "set",
"property": "power",
"parameter": "value"
}
}
]
},
"mutation_committed": false,
"audit_sequence": 1
}
},
{
"kind": "tool_exchange",
"call": {
"call_id": "call_2",
"turn_id": "turn_1",
"command": {
"target": "session",
"function": "get_device_tools",
"parameters": {
"device_id": "robot_vacuum_1"
}
}
},
"result": {
"call_id": "call_2",
"turn_id": "turn_1",
"sequence": 2,
"status": "success",
"code": "[PASS]",
"data": {
"device_id": "robot_vacuum_1",
"tools": [
{
"function": "get_cleaning_mode",
"description": "Get the configured cleaning mode while powered on.",
"mutation": false,
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"cleaning_mode"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "cleaning_mode",
"response_key": "cleaning_mode",
"preconditions": {
"power": true
}
}
},
{
"function": "set_cleaning_mode",
"description": "Set the cleaning mode while powered on and no process is running. Settings can change only in idle or completed state, so the selected run configuration is stable across a pause.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {
"value": {
"type": "string",
"enum": [
"vacuum",
"mop",
"vacuum_and_mop"
]
}
},
"required": [
"value"
],
"additionalProperties": false
},
"reads": [
"power",
"status"
],
"writes": [
"cleaning_mode"
],
"semantics": {
"kind": "set",
"property": "cleaning_mode",
"parameter": "value",
"preconditions": {
"power": true,
"status": {
"one_of": [
"idle",
"completed"
]
}
}
}
},
{
"function": "get_suction_level",
"description": "Get the configured suction level while powered on.",
"mutation": false,
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"suction_level"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "suction_level",
"response_key": "suction_level",
"preconditions": {
"power": true
}
}
},
{
"function": "set_suction_level",
"description": "Set suction level from 1 through 4 while powered on and not running. Settings can change only in idle or completed state, so the selected run configuration is stable across a pause.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {
"value": {
"type": "integer",
"minimum": 1,
"maximum": 4
}
},
"required": [
"value"
],
"additionalProperties": false
},
"reads": [
"power",
"status"
],
"writes": [
"suction_level"
],
"semantics": {
"kind": "set",
"property": "suction_level",
"parameter": "value",
"preconditions": {
"power": true,
"status": {
"one_of": [
"idle",
"completed"
]
}
}
}
},
{
"function": "get_mopping_water_level",
"description": "Get the configured mopping-water level while powered on.",
"mutation": false,
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"mopping_water_level"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "mopping_water_level",
"response_key": "mopping_water_level",
"preconditions": {
"power": true
}
}
},
{
"function": "set_mopping_water_level",
"description": "Set mopping-water level from 0 through 3 while powered on and not running. Settings can change only in idle or completed state, so the selected run configuration is stable across a pause.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {
"value": {
"type": "integer",
"minimum": 0,
"maximum": 3
}
},
"required": [
"value"
],
"additionalProperties": false
},
"reads": [
"power",
"status"
],
"writes": [
"mopping_water_level"
],
"semantics": {
"kind": "set",
"property": "mopping_water_level",
"parameter": "value",
"preconditions": {
"power": true,
"status": {
"one_of": [
"idle",
"completed"
]
}
}
}
},
{
"function": "get_cleaning_area",
"description": "Get the configured cleaning area while powered on.",
"mutation": false,
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"cleaning_area"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "cleaning_area",
"response_key": "cleaning_area",
"preconditions": {
"power": true
}
}
},
{
"function": "set_cleaning_area",
"description": "Set a non-empty single-line cleaning-area label while powered on and not running. Settings can change only in idle or completed state, so the selected run configuration is stable across a pause.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {
"value": {
"type": "string",
"pattern": "^[^\\r\\n]+$",
"minLength": 1,
"maxLength": 100
}
},
"required": [
"value"
],
"additionalProperties": false
},
"reads": [
"power",
"status"
],
"writes": [
"cleaning_area"
],
"semantics": {
"kind": "set",
"property": "cleaning_area",
"parameter": "value",
"preconditions": {
"power": true,
"status": {
"one_of": [
"idle",
"completed"
]
}
}
}
},
{
"function": "get_status",
"description": "Get the process status while powered on.",
"mutation": false,
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"status"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "status",
"response_key": "status",
"preconditions": {
"power": true
}
}
},
{
"function": "get_phase",
"description": "Get the current process phase while powered on.",
"mutation": false,
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"phase"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "phase",
"response_key": "phase",
"preconditions": {
"power": true
}
}
},
{
"function": "get_remaining_minutes",
"description": "Get the remaining process duration while powered on.",
"mutation": false,
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"remaining_minutes"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "remaining_minutes",
"response_key": "remaining_minutes",
"preconditions": {
"power": true
}
}
},
{
"function": "get_progress_minutes",
"description": "Get retained process progress while powered on.",
"mutation": false,
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"progress_minutes"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "progress_minutes",
"response_key": "progress_minutes",
"preconditions": {
"power": true
}
}
},
{
"function": "get_base_state",
"description": "Get the base-station state while powered on.",
"mutation": false,
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"base_state"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "base_state",
"response_key": "base_state",
"preconditions": {
"power": true
}
}
},
{
"function": "start",
"description": "Start a fresh cleaning or recharge process from idle or completed state. The requested cleaning mode and the configured cleaning_area select the floor-cleaning run. Set operation_mode to the supplied mode, status=running, phase to the first declared phase, progress_minutes=0, remaining_minutes to the sum of the mode phase durations, base_state=idle, vacuum_cleaned_units=0 and mopped_units=0. For a cleaning mode also assign cleaning_mode to that mode; recharge preserves cleaning_mode. The after_action hook establishes the logical time origin. Invalid arguments leave all state unchanged.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"vacuum",
"mop",
"vacuum_and_mop",
"recharge"
]
}
},
"required": [
"mode"
],
"additionalProperties": false
},
"reads": [
"power",
"status",
"cleaning_area"
],
"writes": [
"operation_mode",
"cleaning_mode",
"status",
"phase",
"remaining_minutes",
"started_at_minute",
"progress_minutes",
"base_state",
"vacuum_cleaned_units",
"mopped_units"
],
"semantics": {
"kind": "process_start",
"mode_parameter": "mode",
"preconditions": {
"power": true,
"status": {
"one_of": [
"idle",
"completed"
]
}
}
}
},
{
"function": "pause",
"description": "Pause the running process and retain its progress.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"status"
],
"writes": [
"status"
],
"semantics": {
"kind": "process_pause",
"preconditions": {
"power": true,
"status": "running"
}
}
},
{
"function": "resume",
"description": "Resume a paused process without resetting its progress.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"status",
"progress_minutes"
],
"writes": [
"status",
"started_at_minute"
],
"semantics": {
"kind": "process_resume",
"preconditions": {
"power": true,
"status": "paused"
}
}
},
{
"function": "recharge",
"description": "Cancel the current process if any, and begin a single returning-then-charging process in recharge mode. Set operation_mode to the supplied mode, status=running, phase to the first declared phase, progress_minutes=0, remaining_minutes to the sum of the mode phase durations, base_state=idle, vacuum_cleaned_units=0 and mopped_units=0. For a cleaning mode also assign cleaning_mode to that mode; recharge preserves cleaning_mode. The after_action hook establishes the logical time origin. Invalid arguments leave all state unchanged.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"recharge"
],
"default": "recharge"
}
},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"status",
"phase",
"operation_mode",
"progress_minutes"
],
"writes": [
"operation_mode",
"status",
"phase",
"remaining_minutes",
"started_at_minute",
"progress_minutes",
"base_state",
"vacuum_cleaned_units",
"mopped_units"
],
"semantics": {
"kind": "process_start",
"mode_parameter": "mode",
"preconditions": {
"power": true
}
}
},
{
"function": "return_to_base",
"description": "While powered, if phase=cleaning and status is running or paused, stop further floor cleaning and skip directly to the returning boundary: set progress_minutes=30, phase=returning, status=running, remaining_minutes to the selected operation_mode total minus 30, and base_state=idle. Preserve achieved vacuum_cleaned_units and mopped_units; skipped cleaning time produces no cleaning output. The after_action hook rebases started_at_minute to the current elapsed minute minus progress_minutes, even if that origin is negative. If already paused in returning, set status=running and rebase the origin while preserving progress. In idle, completed, already-running returning, or any base-station phase, succeed without changing state.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"status",
"phase",
"operation_mode",
"progress_minutes"
],
"writes": [
"status",
"phase",
"progress_minutes",
"remaining_minutes",
"started_at_minute",
"base_state"
],
"semantics": {
"kind": "custom",
"reason": "Skip remaining cleaning while preserving actual cleaning output and start or resume the existing return-and-base sequence.",
"preconditions": {
"power": true
}
}
},
{
"function": "get_power",
"description": "Get the current power state.",
"mutation": false,
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"reads": [
"power"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "power",
"response_key": "power"
}
},
{
"function": "set_power",
"description": "Set power and update access for active dependent properties.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {
"value": {
"type": "boolean"
}
},
"required": [
"value"
],
"additionalProperties": false
},
"reads": [
"power",
"status"
],
"writes": [
"power",
"status"
],
"semantics": {
"kind": "set",
"property": "power",
"parameter": "value"
}
},
{
"function": "get_operation_mode",
"description": "Return operation_mode while powered.",
"mutation": false,
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"operation_mode"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "operation_mode",
"response_key": "operation_mode",
"preconditions": {
"power": true
}
}
},
{
"function": "get_vacuum_cleaned_units",
"description": "Return vacuum_cleaned_units while powered.",
"mutation": false,
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"vacuum_cleaned_units"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "vacuum_cleaned_units",
"response_key": "vacuum_cleaned_units",
"preconditions": {
"power": true
}
}
},
{
"function": "get_mopped_units",
"description": "Return mopped_units while powered.",
"mutation": false,
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"mopped_units"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "mopped_units",
"response_key": "mopped_units",
"preconditions": {
"power": true
}
}
}
]
},
"mutation_committed": false,
"audit_sequence": 2
}
},
{
"kind": "turn_boundary",
"boundary": {
"turn_id": "turn_1",
"apply_after_turn": true
}
},
{
"kind": "tool_exchange",
"call": {
"call_id": "call_3",
"turn_id": "turn_2",
"command": {
"target": "robot_vacuum_1",
"function": "set_power",
"parameters": {
"value": true
}
}
},
"result": {
"call_id": "call_3",
"turn_id": "turn_2",
"sequence": 3,
"status": "success",
"code": "[PASS]",
"data": {},
"mutation_committed": true,
"audit_sequence": 4
}
},
{
"kind": "tool_exchange",
"call": {
"call_id": "call_4",
"turn_id": "turn_2",
"command": {
"target": "robot_vacuum_1",
"function": "start",
"parameters": {
"mode": "mop"
}
}
},
"result": {
"call_id": "call_4",
"turn_id": "turn_2",
"sequence": 4,
"status": "success",
"code": "[PASS]",
"data": {},
"mutation_committed": true,
"audit_sequence": 5
}
},
{
"kind": "tool_exchange",
"call": {
"call_id": "call_5",
"turn_id": "turn_2",
"command": {
"target": "session",
"function": "sleep_time",
"parameters": {
"minutes": 92
}
}
},
"result": {
"call_id": "call_5",
"turn_id": "turn_2",
"sequence": 5,
"status": "success",
"code": "[PASS]",
"data": {
"requested_minutes": 92,
"applied_minutes": 92,
"tick_count": 92,
"limit_reached": false,
"time_state": {
"date": "2026-07-22",
"clock": "15:32",
"elapsed_minutes": 92,
"timezone": "Asia/Shanghai"
}
},
"mutation_committed": false,
"audit_sequence": 6
}
},
{
"kind": "tool_exchange",
"call": {
"call_id": "call_6",
"turn_id": "turn_2",
"command": {
"target": "coffee_maker_1",
"function": "set_power",
"parameters": {
"value": true
}
}
},
"result": {
"call_id": "call_6",
"turn_id": "turn_2",
"sequence": 6,
"status": "success",
"code": "[PASS]",
"data": {},
"mutation_committed": true,
"audit_sequence": 100
}
},
{
"kind": "tool_exchange",
"call": {
"call_id": "call_7",
"turn_id": "turn_2",
"command": {
"target": "coffee_maker_1",
"function": "brew",
"parameters": {
"program": "coffee"
}
}
},
"result": {
"call_id": "call_7",
"turn_id": "turn_2",
"sequence": 7,
"status": "success",
"code": "[PASS]",
"data": {},
"mutation_committed": true,
"audit_sequence": 101
}
},
{
"kind": "tool_exchange",
"call": {
"call_id": "call_8",
"turn_id": "turn_2",
"command": {
"target": "session",
"function": "finish",
"parameters": {}
}
},
"result": {
"call_id": "call_8",
"turn_id": "turn_2",
"sequence": 8,
"status": "success",
"code": "[PASS]",
"data": {
"finished": true
},
"mutation_committed": false,
"audit_sequence": 102
}
},
{
"kind": "termination",
"termination": {
"reason": "session_finish",
"turn_id": "turn_2",
"turn_index": 2,
"elapsed_minutes": 92,
"limits": {
"max_turns": 2,
"max_elapsed_minutes": 104
}
}
}
]
}
{
"trajectory_id": "task_09ed96c0_reference",
"world_id": "task_09ed96c0",
"task_id": "task_09ed96c0",
"source": "repair",
"records": [
{
"kind": "tool_exchange",
"call": {
"call_id": "call_1",
"turn_id": "turn_1",
"command": {
"target": "session",
"function": "get_device_tools",
"parameters": {
"device_id": "coffee_maker_1"
}
}
},
"result": {
"call_id": "call_1",
"turn_id": "turn_1",
"sequence": 1,
"status": "success",
"code": "[PASS]",
"data": {
"device_id": "coffee_maker_1",
"tools": [
{
"function": "get_program",
"description": "Returns the selected program while powered on.",
"mutation": false,
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"reads": [
"power",
"program"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "program",
"response_key": "program",
"preconditions": {
"power": true
}
}
},
{
"function": "set_program",
"description": "Selects espresso or coffee while powered on and not processing. Cleaning is started with clean.",
"mutation": true,
"parameters_schema": {
"type": "object",
"properties": {
"value": {
"type": "string",
"enum": [
"espresso",
"coffee"
],
"description": "Desired beverage program."
}
},
"required": [
"value"
],
"additionalProperties": false
},
"reads": [
"power",
"status",
"program"
],
"writes": [
"program"
],
"semantics": {
"kind": "set",
"property": "program",
"parameter": "value",
"preconditions": {
"power": true,
"status": {
"one_of": [
"idle",
"completed"
]
}
}
}
},
{
"function": "get_cup_volume",
"description": "Returns the selected cup volume while powered on.",
"mutation": false,