Skip to content

feat(agent): add ask_user tool for agent-to-user question suspension#4

Merged
mengnankkkk merged 3 commits into
MaloneTalk:mainfrom
lzq986:feat/add-ask-question
May 28, 2026
Merged

feat(agent): add ask_user tool for agent-to-user question suspension#4
mengnankkkk merged 3 commits into
MaloneTalk:mainfrom
lzq986:feat/add-ask-question

Conversation

@lzq986
Copy link
Copy Markdown
Contributor

@lzq986 lzq986 commented May 26, 2026

  • Add AskUserTool that suspends agent via ToolSuspendException to ask user
  • Add QUESTION event type for agent-originated questions
  • Update ChatRequest to support optional toolResults for resuming suspended calls
  • Add ChatInput question banner UI with pending question state
  • Wire pendingQuestion flow through useAgentChat composable
  • Add toolResults parameter to AgentController.chatStream for tool resumption
  • Add CLAUDE.md content with simplicity principle

lzq986 added 3 commits May 26, 2026 19:47
- Add AskUserTool that suspends agent via ToolSuspendException to ask user
- Add QUESTION event type for agent-originated questions
- Update ChatRequest to support optional toolResults for resuming suspended calls
- Add ChatInput question banner UI with pending question state
- Wire pendingQuestion flow through useAgentChat composable
- Add toolResults parameter to AgentController.chatStream for tool resumption
@lzq986 lzq986 requested review from VLSMB and mengnankkkk May 26, 2026 12:08
@VLSMB VLSMB closed this May 27, 2026
@VLSMB VLSMB reopened this May 27, 2026
@mengnankkkk mengnankkkk merged commit c2affe4 into MaloneTalk:main May 28, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants