omp packages

@zjie-wang/pi-ask-user0.2.0

Interactive question dialog for Pi with options, multi-select, and free-text answers

zjie-wang Published 1 day ago MIT ~221 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

ask-user

ask_user lets the agent ask you questions instead of guessing.

What the user sees

ask_user dialog

What the model sees

Tool definition (request payload):

{
  "name": "ask_user",
  "description": "Ask user questions. Provide distinct options, with the recommended one first; set multiSelect when options are not mutually exclusive. Omit options for a free-text question.",
  "parameters": {
    "type": "object",
    "required": ["questions"],
    "properties": {
      "questions": {
        "type": "array",
        "items": {
          "type": "object",
          "required": ["question"],
          "properties": {
            "question": {
              "type": "string",
              "maxLength": 300
            },
            "options": {
              "type": "array",
              "maxItems": 4,
              "items": {
                "type": "string",
                "maxLength": 150
              }
            },
            "multiSelect": {
              "type": "boolean",
              "default": false
            }
          }
        }
      }
    }
  }
}

System prompt guidance — this extension's contribution, alongside the other tools in the session:

Available tools:
- ask_user: Ask the user questions

Guidelines:
- Surface uncertainty or ambiguity. Whenever missing user input blocks progress, use ask_user to ask rather than guess.

Install

pi install npm:@zjie-wang/pi-ask-user