feat: Add MedGemma/TxGemma model configurations to terraphim_multi_agent
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Start in crates/terraphim_multi_agent/src/agent.rs at the GenAiLlmClient section, then inspect the genai fork to understand its provider boundaries. Define how the HuggingFace and Google endpoints, listed MedGemma and TxGemma configurations, and optional GGUF fallback fit the design; done means the requested model families can be selected through supported providers.
Written by the indexing model from the issue text.
Description
Problem
terraphim_multi_agent uses the genai crate (terraphim fork of rust-genai) with OpenRouter as the default provider. MedGemma and TxGemma models are available via HuggingFace Inference API and Google AI Studio but not via OpenRouter. The agent's LLM client has no support for HuggingFace or Google endpoints.
Proposed Change
- Add HuggingFace Inference API provider to
genaior as an alternative interraphim_multi_agent::GenAiLlmClient - Add model configs for MedGemma 1.5-4b-it, MedGemma 27b-text-it, TxGemma 2b/9b/27b variants
- Add Google AI Studio provider as an alternative
- Support GGUF local inference via llama-cpp-rs as a fallback provider
Scope
crates/terraphim_multi_agent/src/agent.rs(LLM client section)- Possibly
genaifork in a separate PR
Context
This is UPLIFT-4 from the medgemma-competition multi-agent integration plan. MedGemma models are Google's medical foundation models (HAI-DEF ecosystem, Feb 2026) and are critical for clinical reasoning in agentic workflows. The current genai/OpenRouter path does not support these model families.
Related upstream issues: #534, #535, #536
- Dominant language
- Rust
- Stars
- 62
- Forks
- 5
- Avg merge
- 2h 27m
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from terraphim/terraphim-ai
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
terraphim/terraphim-ai#885 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
terraphim/terraphim-ai#871 ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
terraphim/terraphim-ai#810 · 2 comments ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
terraphim/terraphim-ai#729 ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
terraphim/terraphim-ai#728 ·
All issues in terraphim/terraphim-ai
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100