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

未关闭
#7,687 2 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
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 小时
30 天内合并 PR
72

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

firebase/firebase-android-sdk 的其他 Issue

查看 firebase/firebase-android-sdk 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。