Skip to content

Suggest follow-up questions after each Ask GalwayBus answer - #152

Merged
joreilly merged 1 commit into
mainfrom
ask-followups
Nov 28, 2026
Merged

joreilly merged 1 commit into
mainfrom
ask-followups

Conversation

@joreilly

Copy link
Copy Markdown
Owner

Summary

  • Up to three follow-up chips appear under the latest answer, and tapping one asks it.
  • They're built in code from the answer's tool calls and results, not by the model, so they're instant and only suggest things the tools can answer:
    • return trip
    • by route, and any route
    • the other side of the road
    • stops near the destination
    • questions that work anywhere when nothing was found
  • When departures come from several stops ("Salthill"), the stop is named as you asked it. When they come from one stop, it's pinned by number so the follow-up stays on that side of the road.
  • The agent is now told to call the tools for every question. On a follow-up about the same stop, Gemini Nano had answered from the previous result, so no card showed and the times were stale.

Test plan

  • Unit tests for each follow-up rule; :androidApp:testDebugUnitTest passes
  • Release build
  • On a Pixel 10 Pro XL with Gemini Nano:
    • Eyre Square to Salthill, then the return trip
    • Stops near the cathedral, then the other side of the road
    • By-route follow-up, which now calls getDepartures(stop=522571, routeNumber=405) instead of answering from history
  • CI green

🤖 Generated with Claude Code

https://claude.ai/code/session_01XcDRQnBoiM8GnCbW7b4Dts

Built in code from the reply's tool calls and results rather than asked
of the model, which would mean a second generation after every answer
and suggestions the tools can't answer: the return trip, by route,
any route, the other side of the road, stops near the destination. A
stop is named as asked when departures span several stops, and pinned by
number when they come from one, so a follow-up can't switch sides.

The agent is also told to call the tools for every question: given a
follow-up about the same stop, Gemini Nano answered from the previous
result, so no card showed and the times were stale.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XcDRQnBoiM8GnCbW7b4Dts
@joreilly
joreilly merged commit 516023e into main Nov 28, 2026
4 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.

1 participant