integration: fix tools_test.go for ToolCallFunctionArguments API change (#13731)

This commit is contained in:
Gyungrai Wang
2026-01-16 09:08:09 +09:00
committed by GitHub
parent 38eac40d56
commit 55d0b6e8b9

View File

@@ -131,7 +131,7 @@ func TestAPIToolCalling(t *testing.T) {
t.Errorf("unexpected tool called: got %q want %q", lastToolCall.Function.Name, "get_weather")
}
if _, ok := lastToolCall.Function.Arguments["location"]; !ok {
if _, ok := lastToolCall.Function.Arguments.Get("location"); !ok {
t.Errorf("expected tool arguments to include 'location', got: %s", lastToolCall.Function.Arguments.String())
}
case <-ctx.Done():