add_priority_choice
Create a priority choice pattern: primary transition fires if resources available, else alternative transition executes.
Instructions
Add a PriorityChoice pattern for resource-dependent branching.
Implements "do X if resources available, otherwise do Y" logic. Primary transition has higher priority and fires first if resources available.
Args: name: Name for this choice point (e.g., "SectionFill") resource_place_ids: Resource requirements for primary path. Each dict: {"place_id": "p5", "weight": 10} primary_delay: Delay for primary/success transition in time_unit alternative_delay: Delay for alternative/fallback transition in time_unit primary_name: Name suffix for success output alternative_name: Name suffix for fallback output time_unit: Unit for time values — "s", "min", "h", or "d" (days)
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": {
"name": "<name>"
},
"name": "add_priority_choice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| resource_place_ids | No | ||
| primary_delay | No | ||
| alternative_delay | No | ||
| primary_name | No | Success | |
| alternative_name | No | Fallback | |
| time_unit | No | s |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |