@@ -419,6 +419,7 @@ def test_stream_messages(
419419
420420 assert span ["op" ] == OP .GEN_AI_CHAT
421421 assert span ["description" ] == "chat model"
422+ assert span ["data" ][SPANDATA .GEN_AI_SYSTEM ] == "anthropic"
422423 assert span ["data" ][SPANDATA .GEN_AI_OPERATION_NAME ] == "chat"
423424 assert span ["data" ][SPANDATA .GEN_AI_REQUEST_MODEL ] == "model"
424425
@@ -437,6 +438,7 @@ def test_stream_messages(
437438 assert span ["data" ][SPANDATA .GEN_AI_USAGE_OUTPUT_TOKENS ] == 10
438439 assert span ["data" ][SPANDATA .GEN_AI_USAGE_TOTAL_TOKENS ] == 20
439440 assert span ["data" ][SPANDATA .GEN_AI_RESPONSE_STREAMING ] is True
441+ assert span ["data" ][SPANDATA .GEN_AI_RESPONSE_ID ] == "msg_01XFDUDYJgAACzvnptvVoYEL"
440442
441443
442444@pytest .mark .asyncio
@@ -658,6 +660,7 @@ async def test_stream_message_async(
658660
659661 assert span ["op" ] == OP .GEN_AI_CHAT
660662 assert span ["description" ] == "chat model"
663+ assert span ["data" ][SPANDATA .GEN_AI_SYSTEM ] == "anthropic"
661664 assert span ["data" ][SPANDATA .GEN_AI_OPERATION_NAME ] == "chat"
662665 assert span ["data" ][SPANDATA .GEN_AI_REQUEST_MODEL ] == "model"
663666
@@ -676,6 +679,7 @@ async def test_stream_message_async(
676679 assert span ["data" ][SPANDATA .GEN_AI_USAGE_OUTPUT_TOKENS ] == 10
677680 assert span ["data" ][SPANDATA .GEN_AI_USAGE_TOTAL_TOKENS ] == 20
678681 assert span ["data" ][SPANDATA .GEN_AI_RESPONSE_STREAMING ] is True
682+ assert span ["data" ][SPANDATA .GEN_AI_RESPONSE_ID ] == "msg_01XFDUDYJgAACzvnptvVoYEL"
679683
680684
681685@pytest .mark .skipif (
@@ -958,6 +962,7 @@ def test_stream_messages_with_input_json_delta(
958962
959963 assert span ["op" ] == OP .GEN_AI_CHAT
960964 assert span ["description" ] == "chat model"
965+ assert span ["data" ][SPANDATA .GEN_AI_SYSTEM ] == "anthropic"
961966 assert span ["data" ][SPANDATA .GEN_AI_OPERATION_NAME ] == "chat"
962967 assert span ["data" ][SPANDATA .GEN_AI_REQUEST_MODEL ] == "model"
963968
@@ -1275,6 +1280,7 @@ async def test_stream_message_with_input_json_delta_async(
12751280
12761281 assert span ["op" ] == OP .GEN_AI_CHAT
12771282 assert span ["description" ] == "chat model"
1283+ assert span ["data" ][SPANDATA .GEN_AI_SYSTEM ] == "anthropic"
12781284 assert span ["data" ][SPANDATA .GEN_AI_OPERATION_NAME ] == "chat"
12791285 assert span ["data" ][SPANDATA .GEN_AI_REQUEST_MODEL ] == "model"
12801286
@@ -2074,6 +2080,7 @@ def test_stream_messages_with_system_prompt(
20742080
20752081 assert span ["op" ] == OP .GEN_AI_CHAT
20762082 assert span ["description" ] == "chat model"
2083+ assert span ["data" ][SPANDATA .GEN_AI_SYSTEM ] == "anthropic"
20772084 assert span ["data" ][SPANDATA .GEN_AI_OPERATION_NAME ] == "chat"
20782085 assert span ["data" ][SPANDATA .GEN_AI_REQUEST_MODEL ] == "model"
20792086
@@ -2205,6 +2212,7 @@ async def test_stream_message_with_system_prompt_async(
22052212
22062213 assert span ["op" ] == OP .GEN_AI_CHAT
22072214 assert span ["description" ] == "chat model"
2215+ assert span ["data" ][SPANDATA .GEN_AI_SYSTEM ] == "anthropic"
22082216 assert span ["data" ][SPANDATA .GEN_AI_OPERATION_NAME ] == "chat"
22092217 assert span ["data" ][SPANDATA .GEN_AI_REQUEST_MODEL ] == "model"
22102218
0 commit comments