shortest_path
Finds the route between two airways in a ventilation network by distance, resistance, or hop count, returning airway Unique Nos plus total length and resistance.
Instructions
EXPERIMENTAL. Shortest route between two airways over the network (Ventsim's Shortest Path). weight: 'distance' (Length), 'resistance' (Resistance Total) or 'hops'. Returns the airway Unique Nos in order with total length and resistance.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>",
"from_unique_no": "<from_unique_no>",
"to_unique_no": "<to_unique_no>"
},
"name": "shortest_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| weight | No | distance | |
| to_unique_no | Yes | ||
| from_unique_no | Yes |