Align `gen_ai.decide` span payloads with the AI Agents module spec
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 45/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- typescript
研究方向
Start with packages/server-utils/src/ai/core/utils.ts and the OpenAI mapping and integration tests mentioned in the issue. Compare emitted decision inputs and outputs with the linked Decision span spec, then trace the shared token usage helper and TypeSafe addResponseAttributes; the issue notes that changing shared token handling affects all AI spans. Check real Jev output for the noul fields, and update or add tests for the agreed payload behavior.
由索引模型根據 Issue 內容生成。
描述
The Decision span spec and our decide spans differ in some places. This applies to all decide integrations: TypeSafe / LangChain Jev, Workers AI (Jev, Clef), OpenAI decisions, Vercel AI experimental_decide, and the Mastra classifier.
The op, the span name, the operation name, the model, and the tokens are correct. The question and answer layouts are correct (OpenAI is converted in openai/mapping.ts).
Gaps
- Extra
type: "evaluation"key. We send[{type: "evaluation", state, questions}]and[{type: "evaluation", answers}]. The spec says[{state, questions}]and[{answers}]. Remove the key ingetEvaluationInputMessages/getEvaluationOutputMessages(packages/server-utils/src/ai/core/utils.ts), or add the key to the spec. - No
[Blob substitute]instate. The spec says to replace binary data anddata:URLs. We send them raw. The OpenAI v7 integration test asserts that adata:image/png;base64,...input goes out unchanged. - We send
gen_ai.usage.total_tokens. The spec lists it under "Derived by Relay, don't send". TypeSafeaddResponseAttributes, OpenAI, and the sharedgetTokenUsageAttributesset it. Relay overwrites the value, so nothing breaks. The shared helper is used by all AI spans, so this fix is wider than decide spans. gen_ai.agent.nameis not set when a decision runs inside an agent. Low priority.
Open question
The spec has a noul question type and a noul answer field. None of our fixtures has a noul answer, so check it against real Jev output.
- 主要語言
- TypeScript
- 星號
- 8.8k
- 分支
- 1.9k
- 平均合併
- 1 天 8 小時
- 30 天內合併 PR
- 744
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
getsentry/sentry-javascript 的其他 Issue
-
AWS Lambda Waiting for: Product Owner
難度 1/5 1 小時以內 新手友好度 82/100
getsentry/sentry-javascript#26910 · 1 則留言 ·
維護者通常 1 天內回覆
-
Only create Nuxt database and storage spans when there is a parent span可能重新可做 關聯的 PR 已關閉且未合併。 未關閉Improvement Nuxt
難度 2/5 1-3 小時 新手友好度 83/100
getsentry/sentry-javascript#25805 · 3 則留言 ·
維護者通常 1 天內回覆
-
Only create Cloudflare storage and D1 db spans when there is a parent span可能重新可做 關聯的 PR 已關閉且未合併。 未關閉Cloudflare Workers Improvement Spans
難度 2/5 1-3 小時 新手友好度 78/100
getsentry/sentry-javascript#25804 · 1 則留言 ·
維護者通常 1 天內回覆
-
Core Feature: Typescript Meta: Breaking
難度 2/5 1-3 小時 新手友好度 65/100
getsentry/sentry-javascript#25286 · 2 則留言 ·
維護者通常 1 天內回覆
-
javascript
難度 2/5 1-3 小時 新手友好度 75/100
getsentry/sentry-javascript#24200 · 2 則留言 ·
維護者通常 1 天內回覆
查看 getsentry/sentry-javascript 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 82/100
garrytan/gbrain#10437 · 1 則留言 ·
維護者通常 1 天內回覆
-
Bedrock "Too many tokens" throttle is not auto-retried, unlike "Too many requests"可能已有人在做 @acmerfight 今天認領。 未關閉untriaged
難度 2/5 1-3 小時 新手友好度 78/100
earendil-works/pi#12573 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 70/100
agentes-chat/agentes-chat#1506 ·
維護者通常 1 天內回覆
-
comp/desktop desktop/files os/windows P2 type/perf
難度 2/5 1-3 小時 新手友好度 80/100
NousResearch/hermes-agent#160359 ·
維護者通常 1 天內回覆
-
Missing repro Platform: Android
難度 2/5 1-3 小時 新手友好度 76/100
software-mansion/react-native-reanimated#11554 · 1 則留言 ·
維護者通常 1 天內回覆