Highlights — structured questions
v0.0.28 adds structured questions: a first-class way for an agent to ask you a structured question mid-turn.
ask_usertool — single-select, multi-select, or free-text (with an optional "Other"), each carrying a suggested default. One representation, rendered on every surface: an interactive REPL prompt, suspend-and-ask over the API (streamed via SSE, answered over REST), or a per-loop policy for hands-off runs.- Loops gain an
on_questionpolicy:block(the loop pauses and escalates the question for you to answer, reusing the loop-hardeningblocked/retry path) ordefault(auto-take the agent's suggested answer and keep going). Default isblock. - Every question and answer is validated and audit-logged. New REST endpoints:
GET /sessions/{id}/questionsandPOST /sessions/{id}/questions/{questionId}/answer.
Non-breaking — purely additive; existing turns and loops are unaffected (no ask_user call ⇒ no change).
Full per-PR changelog below.
What's Changed
- feat(questions): structured questions to the user — ask_user + REPL/API/loop responders (brief #6) by @carmelosantana in #160
Full Changelog: v0.0.27...v0.0.28