Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[BOT ISSUE] gemini-ai gem not instrumented

已关闭
#149 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
ruby

调研方向

先阅读 lib/braintrust/contrib/* 下现有的 integration.rb 文件和集成注册,然后检查 Appraisals 与 braintrust.gemspec,了解依赖和场景约定。当 gemini-ai 已针对所列出的 generation、streaming、embedding、tool-calling、structured-output 和 provider surface 实现 instrumentation,完成集成注册,并由 appraisal 场景覆盖时,此 issue 的实现就完成了。

由索引模型根据 Issue 内容生成。

描述

Summary

The gemini-ai gem (~360K downloads, v4.3.0, July 2025) is the most established standalone Google Gemini Ruby client and is not instrumented by this SDK. The SDK instruments standalone clients for OpenAI (openai, ruby-openai) and Anthropic (anthropic), but has no standalone Google Gemini client instrumentation.

What is missing

No instrumentation exists for any gemini-ai execution surface. Key APIs that should be instrumented:

Chat / Content Generation
  • client.generate_content(params) — non-streaming content generation (text, multimodal)
  • client.stream_generate_content(params) — streaming content generation with chunk callbacks
Embeddings
  • client.embed_content(params) — vector embeddings generation
Tool / Function Calling
  • Function declarations and automatic function calling during content generation
Structured Outputs
  • JSON format mode for structured generation via response schema
Provider Support
  • Google AI Studio (API key auth)
  • Google Vertex AI (service account and application default credentials)

Braintrust docs status

not_found — No mention of gemini-ai anywhere in Braintrust documentation at https://www.braintrust.dev/docs. The SDK integrations page does not list any standalone Google Gemini Ruby client.

Upstream sources

Local repo files inspected

  • lib/braintrust/contrib/*/integration.rb — only 4 integrations registered: OpenAI, RubyOpenAI, RubyLLM, Anthropic. No Gemini integration.
  • lib/braintrust/contrib/ — no directory or files for gemini or google
  • Appraisals — no appraisal scenarios for gemini-ai
  • braintrust.gemspec — no mention of gemini
  • Grep for gemini across lib/braintrust/ returns zero matches
主要语言
Ruby
星标
9
派生
11
平均合并
3 天 43 分钟
30 天内合并 PR
9

环境准备

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

从这里开始

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

braintrustdata/braintrust-sdk-ruby 的其他 Issue

查看 braintrustdata/braintrust-sdk-ruby 的全部 Issue

相似的 Issue

更多 Ruby Issue

把新 issue 发到你的邮箱

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