@@ -3098,7 +3098,7 @@ async def test_anthropic_mcp_servers(allow_model_requests: None, anthropic_api_k
30983098 provider_name = 'anthropic' ,
30993099 ),
31003100 BuiltinToolReturnPart (
3101- tool_name = 'code_execution ' ,
3101+ tool_name = 'mcp_server ' ,
31023102 content = [{'citations' : None , 'text' : '["Lies of P","Bloodborne","Sekiro"]' , 'type' : 'text' }],
31033103 tool_call_id = 'mcptoolu_01TwwBu8ALMaffJS5riJmE8r' ,
31043104 timestamp = IsDatetime (),
@@ -3172,7 +3172,7 @@ async def test_anthropic_mcp_servers_stream(allow_model_requests: None, anthropi
31723172 provider_name = 'anthropic' ,
31733173 ),
31743174 BuiltinToolReturnPart (
3175- tool_name = 'code_execution ' ,
3175+ tool_name = 'mcp_server ' ,
31763176 content = [{'citations' : None , 'text' : '["Lies of P","Bloodborne","Sekiro"]' , 'type' : 'text' }],
31773177 tool_call_id = 'mcptoolu_01WaYLgtwyroxT1CQWGFfTTy' ,
31783178 timestamp = IsDatetime (),
@@ -3230,7 +3230,13 @@ async def test_anthropic_mcp_servers_stream(allow_model_requests: None, anthropi
32303230 PartDeltaEvent (
32313231 index = 0 , delta = ThinkingPartDelta (content_delta = ' so I can call it directly.' , provider_name = 'anthropic' )
32323232 ),
3233- PartDeltaEvent (index = 0 , delta = ThinkingPartDelta (signature_delta = IsStr (), provider_name = 'anthropic' )),
3233+ PartDeltaEvent (
3234+ index = 0 ,
3235+ delta = ThinkingPartDelta (
3236+ signature_delta = 'Ev4CCkYICBgCKkC2CV8NXGK/AuQ4/m1/1qE91t9kn26YXfJqV4GLu+pQ5arslF66ul0lb2tjDaq6jEoScCgXONCbjVTTGXRgL31OEgz6Hf2+sxQphfOM0NsaDAGUIjrX8JtDLUHYCSIwDiCjhcg4JzBLobWmlquAlva+JlrB3yUlyWBCOe3z0GBxqs9MGtaEsmROBfy9w5bVKuUBPWfEKKcSIj57MWaQKquRHrl+EaaTVI2/dS3fU0opvd7HTbJ647RvWIKatcw1u3Q9WlNuGhts2TzwpqvzliIkheOjbv3URnfdW2vjka5WN6sntwoqdMrmmJTMD33PLXs2PZlnFUJ2BAS0lglihGbrOrIE1gRsTjZVrhXI8ZpJWPMYJ07FdtLwd+v0F3gf32z282QuQdNlaVliNjdcV+IvfJJL8BCF7coL+fKahuu8GCLVCjwmitJEIgC3ykzuVxCGT7U6hCuEM3Oe7UcLlay9n89O2jmW/FbQIuUpNmVFrrmM3Mn1GBgB' ,
3237+ provider_name = 'anthropic' ,
3238+ ),
3239+ ),
32343240 PartStartEvent (
32353241 index = 1 ,
32363242 part = BuiltinToolCallPart (
@@ -3243,7 +3249,7 @@ async def test_anthropic_mcp_servers_stream(allow_model_requests: None, anthropi
32433249 PartStartEvent (
32443250 index = 2 ,
32453251 part = BuiltinToolReturnPart (
3246- tool_name = 'code_execution ' ,
3252+ tool_name = 'mcp_server ' ,
32473253 content = [{'citations' : None , 'text' : '["Lies of P","Bloodborne","Sekiro"]' , 'type' : 'text' }],
32483254 tool_call_id = 'mcptoolu_01WaYLgtwyroxT1CQWGFfTTy' ,
32493255 timestamp = IsDatetime (),
@@ -3268,16 +3274,16 @@ async def test_anthropic_mcp_servers_stream(allow_model_requests: None, anthropi
32683274 args = '' ,
32693275 tool_call_id = 'mcptoolu_01WaYLgtwyroxT1CQWGFfTTy' ,
32703276 provider_name = 'anthropic' ,
3271- )
3277+ ),
32723278 ),
32733279 BuiltinToolResultEvent ( # pyright: ignore[reportDeprecated]
32743280 result = BuiltinToolReturnPart (
3275- tool_name = 'code_execution ' ,
3281+ tool_name = 'mcp_server ' ,
32763282 content = [{'citations' : None , 'text' : '["Lies of P","Bloodborne","Sekiro"]' , 'type' : 'text' }],
32773283 tool_call_id = 'mcptoolu_01WaYLgtwyroxT1CQWGFfTTy' ,
32783284 timestamp = IsDatetime (),
32793285 provider_name = 'anthropic' ,
3280- )
3286+ ),
32813287 ),
32823288 ]
32833289 )
0 commit comments