Add files via upload

This commit is contained in:
公明
2026-08-15 02:08:52 +08:00
committed by GitHub
parent 799282d0e7
commit bbc3395ac5
78 changed files with 10092 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)
}
}