Background
Gemma 4 supports tool use (function calling). Now that MAM-AI has migrated to Gemma 4 E4B (issue #28), this capability is available on-device and worth exploring.
Potential Use Cases
In a clinical decision support context, tool use could enable:
- Structured triage output — model fills a defined schema (e.g. severity level, recommended action, escalation flag) rather than free text
- Medication lookup — model calls a local drug formulary function instead of generating dosing from memory, reducing hallucination risk
- Referral decision logic — model invokes a rule-based escalation checker grounded in MOHSW protocols
To Investigate
Background
Gemma 4 supports tool use (function calling). Now that MAM-AI has migrated to Gemma 4 E4B (issue #28), this capability is available on-device and worth exploring.
Potential Use Cases
In a clinical decision support context, tool use could enable:
To Investigate
litertlm-androidSDK version (0.10.0)?RagPipeline.kt?