@@ -58,7 +58,7 @@ async def __call__(self, *args, **kwargs):
5858ANTHROPIC_VERSION = package_version ("anthropic" )
5959
6060EXAMPLE_MESSAGE = Message (
61- id = "id " ,
61+ id = "msg_01XFDUDYJgAACzvnptvVoYEL " ,
6262 model = "model" ,
6363 role = "assistant" ,
6464 content = [TextBlock (type = "text" , text = "Hi, I'm Claude." )],
@@ -134,7 +134,7 @@ def test_nonstreaming_create_message(
134134 assert span ["data" ][SPANDATA .GEN_AI_USAGE_OUTPUT_TOKENS ] == 20
135135 assert span ["data" ][SPANDATA .GEN_AI_USAGE_TOTAL_TOKENS ] == 30
136136 assert span ["data" ][SPANDATA .GEN_AI_RESPONSE_STREAMING ] is False
137- assert span ["data" ][SPANDATA .GEN_AI_RESPONSE_ID ] == "id "
137+ assert span ["data" ][SPANDATA .GEN_AI_RESPONSE_ID ] == "msg_01XFDUDYJgAACzvnptvVoYEL "
138138
139139
140140@pytest .mark .asyncio
@@ -205,7 +205,7 @@ async def test_nonstreaming_create_message_async(
205205 assert span ["data" ][SPANDATA .GEN_AI_USAGE_OUTPUT_TOKENS ] == 20
206206 assert span ["data" ][SPANDATA .GEN_AI_USAGE_TOTAL_TOKENS ] == 30
207207 assert span ["data" ][SPANDATA .GEN_AI_RESPONSE_STREAMING ] is False
208- assert span ["data" ][SPANDATA .GEN_AI_RESPONSE_ID ] == "id "
208+ assert span ["data" ][SPANDATA .GEN_AI_RESPONSE_ID ] == "msg_01XFDUDYJgAACzvnptvVoYEL "
209209
210210
211211@pytest .mark .parametrize (
@@ -308,7 +308,7 @@ def test_streaming_create_message(
308308 assert span ["data" ][SPANDATA .GEN_AI_USAGE_OUTPUT_TOKENS ] == 10
309309 assert span ["data" ][SPANDATA .GEN_AI_USAGE_TOTAL_TOKENS ] == 20
310310 assert span ["data" ][SPANDATA .GEN_AI_RESPONSE_STREAMING ] is True
311- assert span ["data" ][SPANDATA .GEN_AI_RESPONSE_ID ] == "id "
311+ assert span ["data" ][SPANDATA .GEN_AI_RESPONSE_ID ] == "msg_01XFDUDYJgAACzvnptvVoYEL "
312312
313313
314314@pytest .mark .asyncio
@@ -414,7 +414,7 @@ async def test_streaming_create_message_async(
414414 assert span ["data" ][SPANDATA .GEN_AI_USAGE_OUTPUT_TOKENS ] == 10
415415 assert span ["data" ][SPANDATA .GEN_AI_USAGE_TOTAL_TOKENS ] == 20
416416 assert span ["data" ][SPANDATA .GEN_AI_RESPONSE_STREAMING ] is True
417- assert span ["data" ][SPANDATA .GEN_AI_RESPONSE_ID ] == "id "
417+ assert span ["data" ][SPANDATA .GEN_AI_RESPONSE_ID ] == "msg_01XFDUDYJgAACzvnptvVoYEL "
418418
419419
420420@pytest .mark .skipif (
0 commit comments