Repository navigation
feat(tool): add built-in ask_user tool for LLM-driven user input - #86
Merged
Merged
Conversation
Add AskUserTool as a framework-built-in tool that is automatically registered for every agent, allowing the LLM to ask structured questions when it needs user clarification, decisions, or approval. - AskUserTool: ITool (kernel.ITool ABC, new execute signature) - IUserInputHandler: ABC callback for host apps (CLI, web, etc.) - CLIUserInputHandler: default stdin/stdout implementation - Auto-registered in builder._resolve_tools() — no add_tools() needed - with_user_input_handler() on builder for custom handler injection - Merged ask_user example into examples/02-with-tools Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
bouillipx
force-pushed
the
claude/elated-wing
branch
from
February 12, 2026 14:25
fb59613 to
04fcf96
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add AskUserTool as a framework-built-in tool that is automatically registered for every agent, allowing the LLM to ask structured questions when it needs user clarification, decisions, or approval.
Summary
Scope (One PR One Thing)
Changed Files (required)
List all touched files and why each file changed.
If this PR is a large diff (>300 changed lines), explain why split PRs are not possible and provide a split follow-up plan.
Acceptance Criteria
Test Evidence (required)
.........If this PR changes high-risk runtime paths (auth/concurrency/execution control), include
risk-matrixevidence.Risk and Rollback
Dependency and Lockfile Changes
requirements.txt/pyproject.toml/package.json): [ ] Yes [ ] No [ ] N/AAgent Rules Checklist (required)
Reference:
docs/agent_rules.mdskip/only/excludeusage is explained and reviewed