Skip to main content

Module question

Module question 

Source
Expand description

Shared interactive user question normalization across diverse agents.

Different agents emit interactive question requests under different tool names and JSON schemas:

  • OpenCode: question (opencode.tool.question)
  • Antigravity: ask_question
  • Claude Code: AskUserQuestion or MCP ertangle_question
  • Codex: request_user_input or item/tool/requestUserInput

This module normalizes them into ertangle_core::UserQuestion.

Functionsยง

is_question_tool
Checks if a tool name refers to an interactive user question tool.
parse_acp_elicitation
Parses an ACP elicitation/create request into UserQuestion and property keys.
parse_acp_elicitations
Parses an ACP elicitation/create request into multiple UserQuestions with property keys.
parse_codex_user_input
Parses Codex item/tool/requestUserInput parameters into UserQuestion and question key.
parse_codex_user_inputs
Parses Codex item/tool/requestUserInput parameters into multiple UserQuestions with question keys.
parse_options
Parses options from either an array of objects [{"label": "...", "description": "..."}] or an array of strings ["Option A", "Option B"].
parse_tool_call_question
Parses tool call JSON input into a normalized UserQuestion.
parse_tool_call_questions
Parses tool call JSON input into a list of normalized UserQuestions.