mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
This reverts commit e556a816e4.
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
package providers
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestNormalizeToolCall_PreservesExtraContentGoogleThoughtSignature(t *testing.T) {
|
||||
tc := NormalizeToolCall(ToolCall{
|
||||
ID: "call_1",
|
||||
Name: "search",
|
||||
Arguments: map[string]any{"q": "pico"},
|
||||
ExtraContent: &ExtraContent{
|
||||
Google: &GoogleExtra{ThoughtSignature: "sig-1"},
|
||||
},
|
||||
})
|
||||
|
||||
if tc.ThoughtSignature != "sig-1" {
|
||||
t.Fatalf("ThoughtSignature = %q, want sig-1", tc.ThoughtSignature)
|
||||
}
|
||||
if tc.Function == nil {
|
||||
t.Fatal("Function is nil")
|
||||
}
|
||||
if tc.Function.ThoughtSignature != "sig-1" {
|
||||
t.Fatalf("Function.ThoughtSignature = %q, want sig-1", tc.Function.ThoughtSignature)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user