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

[bot] OpenAI Decisions API (client.decisions.create) not instrumented

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

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

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

評価

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

調査の方向性

Start with lib/braintrust/contrib/openai/integration.rb (the patchers list near line 53) and lib/braintrust/contrib/openai/instrumentation/moderations.rb, the simplest non-streaming patcher to copy. A new DecisionsPatcher and instrumentation/decisions.rb would wrap client.decisions.create. Done when a call produces a span with model, input, questions, answers and usage, and a test under the OpenAI contrib specs verifies it.

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

説明

ruby

<!-- provider-gap-audit: openai-decisions-api-not-instrumented -->

Summary

OpenAI shipped a new standalone Decisions API (client.decisions.create), reaching public beta on 2026-10-06 and landing in the official openai Ruby gem the same day (v0.101.0). It is a distinct generative inference endpoint — not a variant of Chat Completions or Responses — and this SDK's OpenAI integration has no instrumentation for it.

The endpoint runs on a dedicated model (gpt-6-luna) and returns typed answers (predicate/choice/score questions with probabilities and confidence) over text/image input, billed separately from normal chat/responses usage. This is exactly the kind of distinct generative execution surface this SDK otherwise instruments (model, input, output, usage/cost).

What is missing

No DecisionsPatcher or Instrumentation::Decisions exists. The OpenAI integration only wires up three patchers:

# lib/braintrust/contrib/openai/integration.rb:53
[ChatPatcher, ResponsesPatcher, ModerationsPatcher]

and lib/braintrust/contrib/openai/instrumentation/ only contains chat.rb, responses.rb, common.rb, and moderations.rb — no file for client.decisions.create.

Expected instrumentation (matching the pattern used for moderations.rb, the simplest existing non-streaming patcher): a span per client.decisions.create call capturing the model (gpt-6-luna), input, the questions array (names/types/instructions), and the returned answers (values, probabilities, confidence) plus usage/cost, since Decisions billing differs from standard chat pricing ($0.10/M input tokens, no output/cache charge).

Braintrust docs status

not_found — https://www.braintrust.dev/docs/integrations/ai-providers/openai documents Chat Completions, Responses, Embeddings, Moderations, Batch API, Agents API, Images, and Audio for the OpenAI integration. No mention of Decisions anywhere on the page.

Upstream sources

Local repo files inspected

  • lib/braintrust/contrib/openai/integration.rb (line 53) — patchers returns only [ChatPatcher, ResponsesPatcher, ModerationsPatcher]
  • lib/braintrust/contrib/openai/patcher.rb — no DecisionsPatcher class defined
  • lib/braintrust/contrib/openai/instrumentation/ — contains only chat.rb, responses.rb, common.rb, moderations.rb; no decisions.rb
  • Grep for decisions/Decision across lib/ — zero matches
主要言語
Ruby
スター
9
フォーク
11
平均マージ
3日 43分
マージ済み PR(30日)
9

環境構築

はじめの一歩

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

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

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

似ている issue

Ruby の issue をもっと見る

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

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