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:
AskUserQuestionor MCPertangle_question - Codex:
request_user_inputoritem/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/createrequest intoUserQuestionand property keys. - parse_
acp_ elicitations - Parses an ACP
elicitation/createrequest into multipleUserQuestions with property keys. - parse_
codex_ user_ input - Parses Codex
item/tool/requestUserInputparameters intoUserQuestionand question key. - parse_
codex_ user_ inputs - Parses Codex
item/tool/requestUserInputparameters into multipleUserQuestions 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.