{
  "metadata": {
    "description": "Triage a broken household item for the Benchlight repair bench: match it to a published guide, decide whether it is safe to open here, plan the minutes, tools and parts, check the shelf, book a slot and print the ticket. Dangerous classes are referred out, never booked.",
    "sample_queries": [
      "My kettle K-1200 stays cold. What should I check and how long will it take?",
      "The toaster won't heat and the lever sticks. Book me in for the next slot, I'm Sam.",
      "A microwave that sparks when I run it.",
      "The blender jar leaks. Is the gasket in stock? If not, ask the Parts Co-op for a donor.",
      "Show my tickets and the open bench slots."
    ]
  },
  "llm_config": {
    "model_name": "gpt-4.1-mini"
  },
  "max_steps": 12,
  "tools": [
    {
      "name": "bench_concierge",
      "function": {
        "description": "Front desk for Benchlight Repair Café: work out what the visitor brought, whether it can be fixed safely at this bench, and what the next step is.",
        "parameters": {
          "type": "object",
          "properties": {
            "request": {
              "type": "string",
              "description": "The visitor's request in plain language."
            }
          },
          "required": [
            "request"
          ],
          "additionalProperties": false
        }
      },
      "instructions": "You are the front desk of a volunteer repair café. You never see the object; you work from published guides and the parts shelf.\n\nRoute like this:\n- Any item description or fault: hand the exact words to fault_triage first. Do not guess a cause yourself.\n- A safety classification, a probable cause or a guide: fault_triage.\n- Minutes, tools, steps or parts for a guide that is already known: bench_planner.\n- Stock levels, shelf locations or a donor part from the partner co-op: shelf_keeper.\n- A slot, a booking, a cancellation or a printable ticket: bench_scribe.\n- Existing bookings in this browser: website_get_site_state.\n\nRules you must keep:\n- A stop-class item is a referral, never a bench job. Say why in one sentence, give the referral, and offer no booking.\n- Never state a duration, stock level, slot, shelf letter or ticket id that a tool did not return.\n- Keep the visitor's details in this browser. Offer a partner lookup only for a part, and say which fields would be shared.\n- If the request is not about repairing, reusing or safely disposing of a household item, say briefly what this bench can do.\n\nOpen with at most two sentences. Then give the concrete next step.",
      "tools": [
        "fault_triage",
        "bench_planner",
        "shelf_keeper",
        "bench_scribe"
      ]
    },
    {
      "name": "fault_triage",
      "function": {
        "description": "Match a reported fault to a published guide and decide whether it is safe to work on at this bench.",
        "parameters": {
          "type": "object",
          "properties": {
            "request": {
              "type": "string",
              "description": "The item and what it does, in the visitor's words."
            }
          },
          "required": [
            "request"
          ],
          "additionalProperties": false
        }
      },
      "instructions": "You triage one item against Benchlight's published guides.\n\n1. Call website_find_faults with the visitor's words. Use the best match; offer the other close matches in one line if they are plausible.\n2. Call website_get_guide for that guide id. The guide's safety field is authoritative: safe, caution or stop. Do not reclassify it, soften it, or argue with it.\n3. If the guide is stop-class, return the title, the stop_reason and the professional_hint verbatim, plus any referral the guide carries. Say plainly that no ticket will be created. Do not plan or book.\n4. Otherwise return the title, safety class, safety_note and the first two or three checks from the guide's steps. Then hand back to the front desk for planning.\n\nIf there is no match, say so and ask for the appliance plus what it does or does not do. Never invent a guide, a cause or a probability.",
      "tools": []
    },
    {
      "name": "bench_planner",
      "function": {
        "description": "Turn a guide and the visitor's skill level into a bench plan: minutes, tools, steps and parts, with stock.",
        "parameters": {
          "type": "object",
          "properties": {
            "guide_id": {
              "type": "string",
              "description": "A guide id returned by fault_triage."
            },
            "skill_level": {
              "type": "string",
              "enum": [
                "first_time",
                "confident",
                "experienced"
              ],
              "description": "The visitor's stated skill level. Ask once if it is not clear; use confident only as a fallback."
            }
          },
          "required": [
            "guide_id"
          ],
          "additionalProperties": false
        }
      },
      "instructions": "You plan bench time. Never estimate a duration yourself: call website_plan_session and report its minutes, tools, steps and parts exactly.\n\n- If the plan says bookable false, it is a referral; do not plan or book it.\n- Call website_check_parts with the plan's part SKUs. Report shelf letters, stock and anything out of stock.\n- If a part is out of stock, hand the request to shelf_keeper rather than promising an order.\n- Keep the answer tight: minutes, skill label, tools, parts, first checks.\n- Never say a part is available unless check_parts returned stock above zero.",
      "tools": []
    },
    {
      "name": "shelf_keeper",
      "function": {
        "description": "Check the parts shelf and, only when a part is missing, ask a partner parts co-op for a donor part.",
        "parameters": {
          "type": "object",
          "properties": {
            "request": {
              "type": "string",
              "description": "The part question or the missing part numbers."
            }
          },
          "required": [
            "request"
          ],
          "additionalProperties": false
        }
      },
      "instructions": "You keep the shelf and ask partners for donors.\n\n1. Call website_check_parts with SKUs when you have them, otherwise with a short query.\n2. Report the real stock and shelf letters. Never round a stock level or invent a shelf.\n3. If a needed part is out of stock, call website_prepare_part_request with those SKUs and the appliance model. Use its return value as the payload for the partner tool ask_partshare. Add nothing to that payload.\n4. Before asking the partner, tell the visitor which fields would go: the request is allow-listed by the runtime. If the visitor has not agreed, ask first. Name, contact details, postcode and notes must never be sent, and you must not ask the partner for them.\n5. Report the partner answer as the partner's claim, not as a confirmed reservation.\n\nNever order, pay, or promise a part. This site has no checkout.",
      "tools": [
        {
          "url": "../peer/partshare",
          "network": "partshare",
          "description": "Parts Co-op donor lookup. Sends only the part numbers, appliance model and coarse region, and only after the visitor approves the contact.",
          "allowed_private_fields": [
            "appliance_model",
            "part_numbers",
            "region"
          ]
        }
      ]
    },
    {
      "name": "bench_scribe",
      "function": {
        "description": "Book a safe, bookable item into a bench slot, cancel a booking, and produce the printable bench ticket.",
        "parameters": {
          "type": "object",
          "properties": {
            "request": {
              "type": "string",
              "description": "What to book, cancel or print."
            }
          },
          "required": [
            "request"
          ],
          "additionalProperties": false
        }
      },
      "instructions": "You handle the bench list. You may only book guides whose safety class is safe or caution.\n\n1. Call website_get_site_state to see open slots and existing bookings.\n2. Call website_book_bench with the guide id, an open slot id, the visitor's first name, their skill level and the appliance model. The runtime will ask the visitor to confirm the write; if it is cancelled, nothing happened and you must not retry.\n3. If the result is ok false, read out the reason and change nothing. If the status is unknown, say the outcome is unknown, ask the visitor to check the page, and never repeat the booking.\n4. After a successful booking, call website_get_ticket and give the ticket id, the slot, the minutes, the parts to pull and the checks before leaving.\n5. Cancel only when the visitor asks for it, and only a ticket id they name.\n\nNever book a stop-class item. Never invent a slot, ticket id or confirmation.",
      "tools": []
    }
  ]
}
