Skip to content

Commit bf79609

Browse files
authored
fix(v9/core): Update ai.response.object to gen_ai.response.object (#17155)
Backport of #17153
1 parent 12881cd commit bf79609

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/core/src/utils/vercel-ai.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
AI_PROMPT_ATTRIBUTE,
1111
AI_PROMPT_MESSAGES_ATTRIBUTE,
1212
AI_PROMPT_TOOLS_ATTRIBUTE,
13+
AI_RESPONSE_OBJECT_ATTRIBUTE,
1314
AI_RESPONSE_PROVIDER_METADATA_ATTRIBUTE,
1415
AI_RESPONSE_TEXT_ATTRIBUTE,
1516
AI_RESPONSE_TOOL_CALLS_ATTRIBUTE,
@@ -93,6 +94,7 @@ function processEndedVercelAiSpan(span: SpanJSON): void {
9394
renameAttributeKey(attributes, AI_PROMPT_MESSAGES_ATTRIBUTE, 'gen_ai.request.messages');
9495
renameAttributeKey(attributes, AI_RESPONSE_TEXT_ATTRIBUTE, 'gen_ai.response.text');
9596
renameAttributeKey(attributes, AI_RESPONSE_TOOL_CALLS_ATTRIBUTE, 'gen_ai.response.tool_calls');
97+
renameAttributeKey(attributes, AI_RESPONSE_OBJECT_ATTRIBUTE, 'gen_ai.response.object');
9698
renameAttributeKey(attributes, AI_PROMPT_TOOLS_ATTRIBUTE, 'gen_ai.request.available_tools');
9799

98100
renameAttributeKey(attributes, AI_TOOL_CALL_ARGS_ATTRIBUTE, 'gen_ai.tool.input');

0 commit comments

Comments
 (0)