Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[BOT ISSUE] RubyLLM embed, paint, and transcribe APIs not instrumented

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
ruby
領域
observability

調査の方向性

まず lib/braintrust/contrib/ruby_llm/patcher.rb と lib/braintrust/contrib/ruby_llm/instrumentation/chat.rb を確認し、既存の ChatPatcher と Chat#complete のインストルメンテーションを理解します。次に、現在は ChatPatcher だけを登録している lib/braintrust/contrib/ruby_llm/integration.rb を調べます。RubyLLM.embed、RubyLLM.paint、RubyLLM.transcribe が既存の chat API とともにインストルメントされれば完了です。

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

説明

Summary

RubyLLM provides three AI inference APIs beyond chat completions — RubyLLM.embed, RubyLLM.paint, and RubyLLM.transcribe — none of which are instrumented by this SDK. The current RubyLLM integration only instruments Chat#complete and Chat#execute_tool.

What is missing

1. Embeddings — RubyLLM::Embedding.embed / RubyLLM.embed

Creates vector embeddings from text. Returns an Embedding object with vectors, model, and input_tokens. Supports provider/model selection and dimensions parameter. This is a core inference API used for RAG and semantic search.

2. Image generation — RubyLLM::Image.paint / RubyLLM.paint

Generates images from text prompts. Returns an Image object with url, data, mime_type, revised_prompt, model_id. Supports model/provider/size selection.

3. Audio transcription — RubyLLM::Transcription.transcribe / RubyLLM.transcribe

Converts audio files to text. Returns a Transcription object with text, model, language, duration, segments, input_tokens, output_tokens. Has built-in token tracking useful for cost attribution.

All three are stable public APIs available since RubyLLM 1.8+ (the minimum version this SDK targets). Each is a single-method call with a simple request/response pattern (no streaming), making instrumentation straightforward.

Braintrust docs status

not_found — The Braintrust RubyLLM integration docs at https://www.braintrust.dev/docs/integrations/ai-sdks/ruby-llm describe support for chat completions across multiple providers and tool/function call tracing but do not mention embeddings, image generation, or transcription.

Upstream sources

Local repo files inspected

  • lib/braintrust/contrib/ruby_llm/patcher.rb — defines only ChatPatcher, no EmbeddingPatcher, ImagePatcher, or TranscriptionPatcher
  • lib/braintrust/contrib/ruby_llm/instrumentation/chat.rb — only wraps Chat#complete and Chat#execute_tool
  • lib/braintrust/contrib/ruby_llm/integration.rb — registers only the ChatPatcher
主要言語
Ruby
スター
9
フォーク
10
平均マージ
22時間 10分
マージ済み PR(30日)
6

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

braintrustdata/braintrust-sdk-ruby のほかの issue

braintrustdata/braintrust-sdk-ruby の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

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

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