@@ -442,9 +442,9 @@ func TestOpenAIChatCompletions(t *testing.T) {
442442
443443 require .Len (t , recorderClient .toolUsages , 1 )
444444 assert .Equal (t , "read_file" , recorderClient .toolUsages [0 ].Tool )
445- require .IsType (t , "" , recorderClient .toolUsages [0 ].Args )
445+ require .IsType (t , map [ string ] any {} , recorderClient .toolUsages [0 ].Args )
446446 require .Contains (t , recorderClient .toolUsages [0 ].Args , "path" )
447- assert .Equal (t , "README.md" , gjson . Get ( recorderClient .toolUsages [0 ].Args .(string ), "path" ). Str )
447+ assert .Equal (t , "README.md" , recorderClient .toolUsages [0 ].Args .(map [ string ] any )[ "path" ] )
448448
449449 require .Len (t , recorderClient .userPrompts , 1 )
450450 assert .Equal (t , "how large is the README.md file in my current path" , recorderClient .userPrompts [0 ].Prompt )
@@ -852,7 +852,7 @@ func TestOpenAIInjectedTools(t *testing.T) {
852852 // Ensure expected tool was invoked with expected input.
853853 require .Len (t , recorderClient .toolUsages , 1 )
854854 require .Equal (t , mockToolName , recorderClient .toolUsages [0 ].Tool )
855- expected := "{ \ " owner\" : \ " admin\" }"
855+ expected := map [ string ] any { "owner" : "admin" }
856856 require .EqualValues (t , expected , recorderClient .toolUsages [0 ].Args )
857857
858858 var (
0 commit comments