refactor(android): drop the single-prompt merge once ml kit sends older gemini nano whole conversations

オープン
#364 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
30/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
android, react-native, typescript
領域
ai, mobile-dev

調査の方向性

Start by reading GeminiNano.buildRequest in @react-native-ai/android and the change made in PR #367, then compare it with ADK's NanoSingleTextPrompt reference in #358. The work is blocked until ML Kit or AICore sends older Gemini Nano models the full multi-Content conversation or until those models age out. Done means the single TextPart merge is removed, system instructions and turns are sent separately, and behavior is verified on an affected nano-v2 device such as a Pixel 9 Pro.

索引モデルが issue の本文から書いたものです。

説明

Blocked enhancement

Gemini Nano without system prompt support (isSystemPromptAvailable() false, such as nano-v2 on a Pixel 9 Pro with AICore aicore_20260219) reads only the first text part of an ML Kit genai-prompt request. A conversation sent as several Content turns, or with a separate system instruction, gets an answer to the first part only.

@react-native-ai/android (PR #367) therefore merges the system instruction and the text of every turn into one TextPart on those models, with images first, like ADK's NanoSingleTextPrompt (#358). Models with system prompt support get the instruction and turns separately.

genai-agent's AgentSession is no alternative: it rebuilds the same multi-Content request.

Remove the merge in GeminiNano.buildRequest once ML Kit or AICore sends older Gemini Nano the whole conversation (or those models age out).

主要言語
TypeScript
スター
1.4k
フォーク
64
平均マージ
11時間 24分
マージ済み PR(30日)
91

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

callstackincubator/ai のほかの issue

callstackincubator/ai の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。