@@ -105,10 +105,8 @@ describe('OpenAI Tool Calls integration', () => {
105105 type : 'string' ,
106106 value : 'gpt-4' ,
107107 } ) ;
108- expect ( chatToolsSpan ! . attributes [ GEN_AI_TOOL_DEFINITIONS ] ) . toEqual ( {
109- type : 'string' ,
110- value : WEATHER_TOOL_DEFINITION ,
111- } ) ;
108+ // Tool definitions are gen AI input data, so `genAI.inputs: false` drops them.
109+ expect ( chatToolsSpan ! . attributes [ GEN_AI_TOOL_DEFINITIONS ] ) . toBeUndefined ( ) ;
112110 expect ( chatToolsSpan ! . attributes [ GEN_AI_RESPONSE_MODEL ] ) . toEqual ( {
113111 type : 'string' ,
114112 value : 'gpt-4' ,
@@ -164,10 +162,7 @@ describe('OpenAI Tool Calls integration', () => {
164162 type : 'boolean' ,
165163 value : true ,
166164 } ) ;
167- expect ( streamingChatToolsSpan ! . attributes [ GEN_AI_TOOL_DEFINITIONS ] ) . toEqual ( {
168- type : 'string' ,
169- value : WEATHER_TOOL_DEFINITION ,
170- } ) ;
165+ expect ( streamingChatToolsSpan ! . attributes [ GEN_AI_TOOL_DEFINITIONS ] ) . toBeUndefined ( ) ;
171166 expect ( streamingChatToolsSpan ! . attributes [ GEN_AI_RESPONSE_MODEL ] ) . toEqual ( {
172167 type : 'string' ,
173168 value : 'gpt-4' ,
@@ -224,10 +219,7 @@ describe('OpenAI Tool Calls integration', () => {
224219 value : 'gpt-4' ,
225220 } ) ;
226221 expect ( responsesToolsSpan ! . attributes [ GEN_AI_REQUEST_STREAM_ATTRIBUTE ] ) . toBeUndefined ( ) ;
227- expect ( responsesToolsSpan ! . attributes [ GEN_AI_TOOL_DEFINITIONS ] ) . toEqual ( {
228- type : 'string' ,
229- value : WEATHER_TOOL_DEFINITION ,
230- } ) ;
222+ expect ( responsesToolsSpan ! . attributes [ GEN_AI_TOOL_DEFINITIONS ] ) . toBeUndefined ( ) ;
231223 expect ( responsesToolsSpan ! . attributes [ GEN_AI_RESPONSE_MODEL ] ) . toEqual ( {
232224 type : 'string' ,
233225 value : 'gpt-4' ,
@@ -283,10 +275,7 @@ describe('OpenAI Tool Calls integration', () => {
283275 type : 'boolean' ,
284276 value : true ,
285277 } ) ;
286- expect ( streamingResponsesToolsSpan ! . attributes [ GEN_AI_TOOL_DEFINITIONS ] ) . toEqual ( {
287- type : 'string' ,
288- value : WEATHER_TOOL_DEFINITION ,
289- } ) ;
278+ expect ( streamingResponsesToolsSpan ! . attributes [ GEN_AI_TOOL_DEFINITIONS ] ) . toBeUndefined ( ) ;
290279 expect ( streamingResponsesToolsSpan ! . attributes [ GEN_AI_RESPONSE_MODEL ] ) . toEqual ( {
291280 type : 'string' ,
292281 value : 'gpt-4' ,
0 commit comments