refactor: remove trace data from reply context and related services

This commit is contained in:
mlogclub
2026-06-23 23:29:29 +08:00
parent 6122a1d881
commit 02ae515bd6
10 changed files with 1 additions and 110 deletions
-12
View File
@@ -8,18 +8,6 @@ import (
"agent-desk/internal/pkg/toolx"
)
func TestRuntimeTraceFinalAction(t *testing.T) {
if got := runtimeTraceFinalAction(&applicationruntime.Summary{Status: "completed", ReplyText: "ok"}); got != "reply" {
t.Fatalf("expected reply final action, got %q", got)
}
if got := runtimeTraceFinalAction(&applicationruntime.Summary{Status: "completed"}); got != "completed" {
t.Fatalf("expected completed final action, got %q", got)
}
if got := runtimeTraceFinalAction(&applicationruntime.Summary{Status: "fallback"}); got != "fallback" {
t.Fatalf("expected fallback final action, got %q", got)
}
}
func TestExtractRuntimeToolTraces(t *testing.T) {
summary := &applicationruntime.Summary{
TraceData: `{