Expand description
Pass-through for the agent’s typed tool-input parsers
(AskUserQuestion, Monitor), which the server reads when folding
a tool call into the block a view draws.
Structs§
- AskUser
Question Option - AskUser
Question Prompt - Monitor
Input Monitortool’stool_use.inputpayload. The renderer consumesdescriptionfor the chat one-liner + the MONITORS-section header;commandis informational;persistenttoggles the “(persistent)” suffix on the chat notice;timeout_msis honoured by the CLI’s task-lifecycle handler.
Constants§
Functions§
- build_
question_ request - Mirrors
buildQuestionRequest(promptToolCall, prompt, index, total). - build_
updated_ input - Helper used by the worker’s loop driver: build the final
updatedInputpayload after every question has been answered. Mirrors the tail ofrequestAskUserQuestionAnswersupstream. - derive_
annotation - Mirrors
deriveAnnotation. Joins option previews with a blank line separator when no caller-supplied annotation preview is present. - parse_
ask_ user_ question_ prompts - Mirrors upstream’s
parseAskUserQuestionPrompts. Walks the rawinput.questionsJSON array, dropping malformed entries and requiring at least 2 options per question (matches upstream’s validity rule). - parse_
monitor_ input - Parse a
Monitortool_use’sraw_inputinto aMonitorInput. ReturnsNonewhendescriptionorcommandis missing or non-string - both are required for a meaningful render.