Align `gen_ai.decide` span payloads with the AI Agents module spec
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 45/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
- Bereich
- backend-api-design
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 8.8k
- Forks
- 1.9k
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 744
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus getsentry/sentry-javascript
-
AWS Lambda Waiting for: Product Owner
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
getsentry/sentry-javascript#26910 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Only create Nuxt database and storage spans when there is a parent spanEvtl. wieder frei Ein Pull Request dazu wurde ohne Merge geschlossen. OffenImprovement Nuxt
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
getsentry/sentry-javascript#25805 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Only create Cloudflare storage and D1 db spans when there is a parent spanEvtl. wieder frei Ein Pull Request dazu wurde ohne Merge geschlossen. OffenCloudflare Workers Improvement Spans
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
getsentry/sentry-javascript#25804 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Core Feature: Typescript Meta: Breaking
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
getsentry/sentry-javascript#25286 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
javascript
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
getsentry/sentry-javascript#24200 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in getsentry/sentry-javascript
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
garrytan/gbrain#10437 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Bedrock "Too many tokens" throttle is not auto-retried, unlike "Too many requests"Evtl. vergeben @acmerfight hat das heute übernommen. Offenuntriaged
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
earendil-works/pi#12573 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
agentes-chat/agentes-chat#1506 ·
Maintainer antworten meist innerhalb von 1 Tag
-
comp/desktop desktop/files os/windows P2 type/perf
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 80/100
NousResearch/hermes-agent#160359 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Missing repro Platform: Android
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
software-mansion/react-native-reanimated#11554 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag