@@ -68,15 +68,15 @@ func TestMapTools(t *testing.T) {
6868 if result [0 ].Type != "function" {
6969 t .Errorf ("result[0].Type = %q, want %q" , result [0 ].Type , "function" )
7070 }
71- if result [0 ].Function . Name != "get_weather" {
72- t .Errorf ("result[0].Function. Name = %q, want %q" , result [0 ]. Function .Name , "get_weather" )
71+ if result [0 ].Name != "get_weather" {
72+ t .Errorf ("result[0].Name = %q, want %q" , result [0 ].Name , "get_weather" )
7373 }
74- if result [0 ].Function . Description != "Get weather for a city" {
75- t .Errorf ("result[0].Function. Description = %q, want %q" , result [0 ]. Function .Description , "Get weather for a city" )
74+ if result [0 ].Description != "Get weather for a city" {
75+ t .Errorf ("result[0].Description = %q, want %q" , result [0 ].Description , "Get weather for a city" )
7676 }
7777
78- if result [1 ].Function . Name != "search" {
79- t .Errorf ("result[1].Function. Name = %q, want %q" , result [1 ]. Function .Name , "search" )
78+ if result [1 ].Name != "search" {
79+ t .Errorf ("result[1].Name = %q, want %q" , result [1 ].Name , "search" )
8080 }
8181 })
8282}
0 commit comments