test(apicompat): avoid unchecked tool history assertions
This commit is contained in:
1 parent
e4896c41d2
commit
fefd0d5145
1 file changed
+3
-1
@@ -133,7 +133,9 @@ func TestAdaptResponsesClientToolsWithInheritedMapping_ExplicitToolsReplaceInher
|
|||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
require.False(t, changed)
|
require.False(t, changed)
|
||||||
require.Empty(t, mapping)
|
require.Empty(t, mapping)
|
||||||
require.Equal(t, "custom_tool_call", req["input"].([]any)[0].(map[string]any)["type"])
|
items := requireResponsesClientToolValue[[]any](t, req["input"])
|
||||||
|
call := requireResponsesClientToolValue[map[string]any](t, items[0])
|
||||||
|
require.Equal(t, "custom_tool_call", call["type"])
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestRestoreResponsesClientToolPayload_RestoresClientAndNamespaceCalls(t *testing.T) {
|
func TestRestoreResponsesClientToolPayload_RestoresClientAndNamespaceCalls(t *testing.T) {
|
||||||
|
|||||||
Reference in new issue
Block a user