wso2 / wso2/reference-implementations-afm

Improve UX of tool calls in Webchat and Consolechat interfaces

Open
#24 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Description

Currently, neither the consolechat nor webchat interface in any reference implementation surfaces tool call activity to the user. During agent execution, users see only a generic "thinking" or loading indicator, with no visibility into which tools are being invoked, what inputs were provided, or what results were returned. The tool calls execute silently and only the final response is shown.

This is a significant UX gap, especially as AFM agents can be powered by multiple MCP tools with non-trivial side effects. Users have no way to understand what the agent is doing on their behalf, or to build trust in its actions.

Current Behavior

  • consolechat (Textual TUI): Shows a LoadingIndicator widget while the agent runs, then renders the final reply.
  • webchat (HTML/JS): Shows a typing indicator during the blocking HTTP request, then renders the final agent response.
  • Both implementations execute tool calls entirely within the backend with no streaming or intermediate feedback surfaced to the UI.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the consolechat and webchat reference implementations, including their LoadingIndicator and typing indicator behavior. Trace how backend tool calls execute and determine how intermediate activity can reach both UIs; done means both show invoked tools, inputs, and returned results during agent execution.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, javascript, python
Domain
ai, backend, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.