Add tool_result type in the coverter test for Anthropic.

This commit is contained in:
Hemang
2025-03-21 00:56:52 +01:00
committed by Hemang Sarkar
parent ad49e688f0
commit 0a9cc244c8
@@ -60,6 +60,16 @@ def test_convert_messages_with_tool_call():
},
],
},
{
"role": "user",
"content": [
{
"type": "tool_result",
"content": "Paris is the capital of France.",
"tool_use_id": "toolu_013btUg7dbaEq7NbPGzw4K9u",
}
],
},
]
converted_messages = convert_anthropic_to_invariant_message_format(messages)
@@ -84,4 +94,9 @@ def test_convert_messages_with_tool_call():
}
],
},
{
"role": "tool",
"content": "Paris is the capital of France.",
"tool_call_id": "toolu_013btUg7dbaEq7NbPGzw4K9u",
},
]