@@ -913,7 +913,7 @@ def test_tool_execution_span(
913913 chat_spans [1 ]["attributes" ][SPANDATA .GEN_AI_RESPONSE_MODEL ] == "gpt-4-0613"
914914 )
915915
916- assert "word" in tool_exec_span ["attributes" ][SPANDATA .GEN_AI_TOOL_INPUT ]
916+ assert "word" in tool_exec_span ["attributes" ][SPANDATA .GEN_AI_TOOL_CALL_ARGUMENTS ]
917917
918918 assert "5" in chat_spans [1 ]["attributes" ][SPANDATA .GEN_AI_RESPONSE_TEXT ]
919919
@@ -1088,7 +1088,9 @@ def test_tool_execution_span_no_sensitive_data(
10881088 assert SPANDATA .GEN_AI_RESPONSE_TEXT not in chat_spans [0 ].get ("attributes" , {})
10891089 assert SPANDATA .GEN_AI_REQUEST_MESSAGES not in chat_spans [1 ].get ("attributes" , {})
10901090 assert SPANDATA .GEN_AI_RESPONSE_TEXT not in chat_spans [1 ].get ("attributes" , {})
1091- assert SPANDATA .GEN_AI_TOOL_INPUT not in tool_exec_span .get ("attributes" , {})
1091+ assert SPANDATA .GEN_AI_TOOL_CALL_ARGUMENTS not in tool_exec_span .get (
1092+ "attributes" , {}
1093+ )
10921094 assert SPANDATA .GEN_AI_TOOL_OUTPUT not in tool_exec_span .get ("attributes" , {})
10931095
10941096 assert SPANDATA .GEN_AI_RESPONSE_TOOL_CALLS not in chat_spans [0 ].get (
@@ -1264,7 +1266,7 @@ def test_langchain_openai_tools_agent(
12641266 )
12651267
12661268 assert "5" in chat_spans [0 ]["attributes" ][SPANDATA .GEN_AI_RESPONSE_TEXT ]
1267- assert "word" in tool_exec_span ["attributes" ][SPANDATA .GEN_AI_TOOL_INPUT ]
1269+ assert "word" in tool_exec_span ["attributes" ][SPANDATA .GEN_AI_TOOL_CALL_ARGUMENTS ]
12681270 assert 5 == int (tool_exec_span ["attributes" ][SPANDATA .GEN_AI_TOOL_OUTPUT ])
12691271
12701272 assert json .loads (
@@ -1434,7 +1436,9 @@ def test_langchain_openai_tools_agent_no_sensitive_data(
14341436 )
14351437 assert SPANDATA .GEN_AI_REQUEST_MESSAGES not in chat_spans [1 ].get ("attributes" , {})
14361438 assert SPANDATA .GEN_AI_RESPONSE_TEXT not in chat_spans [1 ].get ("attributes" , {})
1437- assert SPANDATA .GEN_AI_TOOL_INPUT not in tool_exec_span .get ("attributes" , {})
1439+ assert SPANDATA .GEN_AI_TOOL_CALL_ARGUMENTS not in tool_exec_span .get (
1440+ "attributes" , {}
1441+ )
14381442 assert SPANDATA .GEN_AI_TOOL_OUTPUT not in tool_exec_span .get ("attributes" , {})
14391443
14401444 assert SPANDATA .GEN_AI_RESPONSE_TOOL_CALLS not in chat_spans [0 ].get (
@@ -1659,7 +1663,9 @@ def test_langchain_openai_tools_agent_stream_no_sensitive_data(
16591663 )
16601664 assert SPANDATA .GEN_AI_REQUEST_MESSAGES not in chat_spans [1 ].get ("attributes" , {})
16611665 assert SPANDATA .GEN_AI_RESPONSE_TEXT not in chat_spans [1 ].get ("attributes" , {})
1662- assert SPANDATA .GEN_AI_TOOL_INPUT not in tool_exec_span .get ("attributes" , {})
1666+ assert SPANDATA .GEN_AI_TOOL_CALL_ARGUMENTS not in tool_exec_span .get (
1667+ "attributes" , {}
1668+ )
16631669 assert SPANDATA .GEN_AI_TOOL_OUTPUT not in tool_exec_span .get ("attributes" , {})
16641670
16651671 assert SPANDATA .GEN_AI_RESPONSE_TOOL_CALLS not in chat_spans [0 ].get (
@@ -1847,7 +1853,7 @@ def test_langchain_openai_tools_agent_stream(
18471853 )
18481854
18491855 assert "5" in chat_spans [0 ]["attributes" ][SPANDATA .GEN_AI_RESPONSE_TEXT ]
1850- assert "word" in tool_exec_span ["attributes" ][SPANDATA .GEN_AI_TOOL_INPUT ]
1856+ assert "word" in tool_exec_span ["attributes" ][SPANDATA .GEN_AI_TOOL_CALL_ARGUMENTS ]
18511857 assert 5 == int (tool_exec_span ["attributes" ][SPANDATA .GEN_AI_TOOL_OUTPUT ])
18521858
18531859 assert json .loads (
@@ -3358,14 +3364,14 @@ def test_langchain_data_collection_request_tool_call_params(
33583364 [
33593365 pytest .param (
33603366 {"gen_ai" : {"inputs" : True , "outputs" : False }},
3361- {SPANDATA .GEN_AI_TOOL_INPUT : {"word" : "eudca" }},
3367+ {SPANDATA .GEN_AI_TOOL_CALL_ARGUMENTS : {"word" : "eudca" }},
33623368 [SPANDATA .GEN_AI_TOOL_OUTPUT ],
33633369 id = "gen-ai-inputs-enabled-outputs-disabled" ,
33643370 ),
33653371 pytest .param (
33663372 {"gen_ai" : {"inputs" : False , "outputs" : True }},
33673373 {SPANDATA .GEN_AI_TOOL_OUTPUT : 5 },
3368- [SPANDATA .GEN_AI_TOOL_INPUT ],
3374+ [SPANDATA .GEN_AI_TOOL_CALL_ARGUMENTS ],
33693375 id = "gen-ai-outputs-enabled-inputs-disabled" ,
33703376 ),
33713377 ],
0 commit comments