Skip to content

docs(reference): add AskUser tool reference - #83

Merged
factory-airamare01 merged 1 commit into
mainfrom
stomzy/ask-user-tool-docs
Oct 23, 2026
Merged

factory-airamare01 merged 1 commit into
mainfrom
stomzy/ask-user-tool-docs

Conversation

@factory-droid

@factory-droid factory-droid Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds an AskUser tool reference page (/reference/ask-user-tool) so customers can parse the AskUser contract directly from our docs (requested by Adyen for use in their agent marketplace, Pylon #15245).

The page is sourced from the current CLI implementation in factory-mono (packages/droid-core/.../askUser.ts + schema.ts, packages/utils/src/askUser/parseQuestionnaire.ts, packages/droid-sdk-core/.../protocol/droid/schemas/cli.ts, apps/cli/.../ask-user.ts, AskUserAnswerStore.ts) and covers:

  • Input JSON schema (questionnaire string, strict)
  • Questionnaire text format: [question], (multi), [topic], [option], plus the parser's tolerance rules (numbering/bullets, fences, headers, implicit questions, Yes/No default, topic normalization)
  • Limits: model guidance (1-4 questions, 2-4 options) vs. parser-enforced (1-10 / 1-10, no duplicates), and the error format
  • Output format returned to the model ([question]/[answer], comma-joined multi-select) and cancellation behavior (interrupts the turn)
  • Availability: TUI / Factory App / spec mode on; subagents and one-shot droid exec off; disabling via disabledToolIds
  • JSON-RPC droid.ask_user request/response shapes for custom clients
  • Notification hook with notification_type: "elicitation_dialog"

Also:

  • Adds the page to the Reference nav in docs.json
  • Links it from the droid exec JSON-RPC section and the hooks reference Notification section

JP docs are left to the existing sync-jp-docs workflow.

Validation

  • docs.json parses as valid JSON
  • Did not run a local Mintlify preview; please check the rendered page on the preview deployment

cc @factory-airamare01 (Stomzy Mwendwa), who requested this update.

Document the AskUser questionnaire format, limits, output, availability,
droid.ask_user JSON-RPC shapes, and the elicitation_dialog notification hook.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: factory-airamare01 <stomzy.mwendwa@factory.ai>
@factory-droid

factory-droid Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor Author

Droid finished @factory-droid[bot]'s task —— View job


No candidate comments were submitted for validation.

0 inline comments posted

@factory-airamare01 factory-airamare01 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well covered. Ready for live consumption on docsite

@factory-airamare01
factory-airamare01 merged commit 892925c into main Oct 23, 2026
2 checks passed
@factory-airamare01
factory-airamare01 deleted the stomzy/ask-user-tool-docs branch October 23, 2026 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant