fix(gemini): satisfy schema cleanup test lint
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
6c2db4f461
commit
8c4a43cf72
1 file changed
+12
-3
@@ -323,9 +323,18 @@ func TestCleanToolSchema_NormalizesGeminiUnsupportedSchemaFields(t *testing.T) {
|
||||
|
||||
properties, ok := cleaned["properties"].(map[string]any)
|
||||
require.True(t, ok)
|
||||
require.Equal(t, "STRING", properties["path"].(map[string]any)["type"])
|
||||
require.Equal(t, "INTEGER", properties["count"].(map[string]any)["type"])
|
||||
require.NotContains(t, properties["empty"].(map[string]any), "type")
|
||||
|
||||
pathSchema, ok := properties["path"].(map[string]any)
|
||||
require.True(t, ok)
|
||||
require.Equal(t, "STRING", pathSchema["type"])
|
||||
|
||||
countSchema, ok := properties["count"].(map[string]any)
|
||||
require.True(t, ok)
|
||||
require.Equal(t, "INTEGER", countSchema["type"])
|
||||
|
||||
emptySchema, ok := properties["empty"].(map[string]any)
|
||||
require.True(t, ok)
|
||||
require.NotContains(t, emptySchema, "type")
|
||||
}
|
||||
|
||||
func TestConvertClaudeToolsToGeminiTools_PreservesWebSearchAlongsideFunctions(t *testing.T) {
|
||||
|
||||
Reference in new issue
Block a user