Support for response schema in FunctionDeclaration to enable Async (Non-Blocking) Function Calling.

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

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
android, java
領域
api, mobile

調査の方向性

まず Android SDK 内の FunctionDeclaration クラスを見つけ、既存のパラメータがどのように表現されているかを確認します。Gemini Live API のドキュメントで response Schema の要件を確認し、関連するテストがあれば調べます。FunctionDeclaration がクライアント側の非同期ツール用に要求された response schema を受け入れ、既存の宣言を壊さなければ完了です。

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

説明

api: firebaseai type: feature request

What feature would you like to see?

I would like the FunctionDeclaration class in the Android SDK (Firebase AI / Vertex AI) to accept a response parameter of type Schema. This field is currently missing but is required by the Gemini Live API to enable "Client-side async tools" (also known as NON_BLOCKING mode).

How would you use it?

I am building a real-time voice application using the Gemini Live API. I have tools (functions) that take time to execute (e.g., fetching weather, looking up database records), but I do not want the model's audio generation to pause while these tools run.

According to the Gemini API documentation for Async Function Calling, providing a response schema in the function declaration allows the model to predict the tool's output structure and continue the conversation immediately without waiting for the actual execution result.

主要言語
Java
スター
2.6k
フォーク
733
平均マージ
2日 15時間
マージ済み PR(30日)
72

環境構築

はじめの一歩

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

firebase/firebase-android-sdk のほかの issue

firebase/firebase-android-sdk の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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