Skip to content

feat: Sync from internal staging. - #66

Open
chengfeitao-google wants to merge 1 commit into
mainfrom
release-maui-samples-08212026
Open

feat: Sync from internal staging.#66
chengfeitao-google wants to merge 1 commit into
mainfrom
release-maui-samples-08212026

Conversation

@chengfeitao-google

Copy link
Copy Markdown
Contributor

PiperOrigin-RevId: 968071773

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

feat(samples): update sample apps and backend for template agent routing and offline testing

Features & Capabilities

  • Template Agent Support & Routing:

    • Backend Server (agent/python/):
      • Integrated template-based agent execution into the Python backend server.
      • Added prefix-based routing ([TEMPLATE]) to automatically direct user queries to the template agent pipeline.
      • Enabled configurable agent selection and fallback modes via CLI flags and environment variables.
      • Configured default fallback mode to grounded text response to significantly reduce latency and eliminate hallucinations when template extraction does not apply.
    • Mobile Clients (iOS & Android):
      • Added a "Template Agent" toggle in both the iOS and Android demo applications.
      • Automatically prefixes outbound requests with [TEMPLATE] when enabled to route traffic on the backend.
  • Offline & Mock Testing (iOS):

    • Added a "Use Canned Responses" switch in the iOS sample app to run completely offline without an active backend server.
    • Introduced MockScenarioRegistry to centrally map UI demo buttons and automated UI test cases to local fixture files.
    • Updated UI test suites to use the scenario registry for consistent offline verification.

CI / CD & Maintenance

  • Dependabot: Updated .github/dependabot.yml configuration and formatting to ensure dependency automation operates smoothly.

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.

2 participants