Add files via upload

This commit is contained in:
公明
2026-08-18 20:29:17 +08:00
committed by GitHub
parent 5eaddd9e8c
commit acc2ebd7e2
96 changed files with 11867 additions and 0 deletions
@@ -0,0 +1,17 @@
package multiagent
import "testing"
func TestUnwrapPlanExecuteUserText(t *testing.T) {
raw := `{"response": "你好!很高兴见到你。"}`
if got := UnwrapPlanExecuteUserText(raw); got != "你好!很高兴见到你。" {
t.Fatalf("got %q", got)
}
if got := UnwrapPlanExecuteUserText("plain"); got != "plain" {
t.Fatalf("got %q", got)
}
steps := `{"steps":["a","b"]}`
if got := UnwrapPlanExecuteUserText(steps); got != steps {
t.Fatalf("expected unchanged steps json, got %q", got)
}
}