Skip to content

feat(ai): integrate Airo action model for on-device function calling - #2120

Merged
ucguy4u merged 3 commits into
mainfrom
feat/airo-actions-model-integration
Oct 19, 2026
Merged

ucguy4u merged 3 commits into
mainfrom
feat/airo-actions-model-integration

Conversation

@ucguy4u

@ucguy4u ucguy4u commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Integrates the newly published Airo action model from DevelopersCoffee/barista-tuning#9 and DevelopersCoffee/barista-tuning#10.

Changes

  1. Catalog Entry:
    • Added catalog row airo-actions-270m-litertlm in packages/core_ai/lib/src/registry/model_catalog.dart.
    • Verified metadata from issue comment:
      • Runtime: LiteRT-LM
      • Platform: Android only
      • Supports function calling: true
      • Parameter count: 268,098,176 (~270M)
      • File size: 291,398,144 bytes (~277.9 MB)
      • SHA-256: 4c8d14b80570f919ce0c538087f1e8f23cde62ad2e21be6a3f714e8916a2bc3b
      • URL: https://huggingface.co/DevelopersCoffee/airo-actions-270m-litertlm/resolve/main/airo_actions_q8_ekv1024.litertlm
  2. Strict Tool Dispatching:
    • airo-actions-270m-litertlm: Offers only the 7 tools in the published schema (get_current_date_time, read_calendar_events, calendar_permission_status, query_lifetrack_status, open_route, schedule_notification, record_lifetrack_facts).
    • mobile-actions-270m-litertlm: Kept on Google's 7 tools (turn_on_flashlight, turn_off_flashlight, create_contact, send_email, show_map, open_wifi_settings, create_calendar_event).
    • Generic function-calling Gemma packages: Kept on the 4 lookup tools (get_current_date_time, read_calendar_events, calendar_permission_status, query_lifetrack_status).
    • No flashlight, email, map, contacts, or Wi-Fi tools are offered to airo-actions-270m-litertlm.
  3. Connectors & Routing:
    • Implemented connectors for Google mobile actions in device_actions_connectors.dart delegating to DeviceActionsService.
    • Enhanced LifeTrackRecordConnector to handle the query argument from the action model.
    • Enhanced NotificationConnector to robustly parse repeat_daily boolean/string representations.
    • Registered all connectors and tool loop dispatcher in chat_screen.dart and reasoning_tool_loop.dart.
  4. Documentation:
    • Updated docs/wiki/5.-AI-and-Model-Management.md documenting the model catalog entry and dispatch routing.
  5. Testing:
    • Verified catalog row and attributes in packages/core_ai/test/registry/model_registry_test.dart.
    • Verified model ID tool selection and sample call execution in packages/feature_mind/test/reasoning/reasoning_tool_loop_test.dart.
    • Verified connector parsing in packages/feature_mind/test/agent_chat/data/connectors/life_track_record_connector_test.dart.
    • All tests passing 100% green.

Ref: DevelopersCoffee/barista-tuning#9

@github-actions

github-actions Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Plugin Module Size Gate

Policy: modules over 3 MB must be delivered as plugins; plugin modules over 5 MB must document cache management.

Module Size Type Status
packages/airo_background_downloads 0.13 MB bundled OK
packages/core_ai 0.59 MB bundled OK
packages/feature_mind 2.96 MB bundled WARN: 1-3 MB requires PR size justification
packages/platform_downloads 0.08 MB bundled OK

@github-actions

Copy link
Copy Markdown
Contributor

🚀 PR Quick Check Summary

Check Status Description
PR Validation ❌ failure Title format, docs, bundled model guardrail
Code Quality ✅ success Analyze, formatting
Core Tests ❌ failure Core package unit tests
Airo Mind Shell ✅ success Mind flavour analyze, tests, entrypoint compile

💡 Note: Full app tests, coverage reports, and security scans run on merge to main.

View Details

@github-actions

Copy link
Copy Markdown
Contributor

🚀 PR Quick Check Summary

Check Status Description
PR Validation ✅ success Title format, docs, bundled model guardrail
Code Quality ✅ success Analyze, formatting
Core Tests ✅ success Core package unit tests
Airo Mind Shell ✅ success Mind flavour analyze, tests, entrypoint compile

💡 Note: Full app tests, coverage reports, and security scans run on merge to main.

View Details

@ucguy4u
ucguy4u merged commit 80c8a2f into main Oct 19, 2026
25 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