Files
picoclaw/pkg/providers/toolcall_utils_test.go
T
lxowalle e556a816e4 Feat/channel tool feedback animation (#2569)
* feat(channels): unify tool feedback animation across discord telegram and feishu

* fix(tool-feedback): unify fallback and single-message delivery

* fix(channels): finalize tool feedback in place

* fix ci

* feat: improve tool feedback
2026-04-20 15:20:26 +08:00

25 lines
644 B
Go

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)
}
}