From c60140f1da5095f6cea7aefd3d58403a31dfb5aa Mon Sep 17 00:00:00 2001 From: wonder Date: Wed, 25 Mar 2026 21:37:40 +0800 Subject: [PATCH] =?UTF-8?q?=20=E2=9C=85Test:=20=E6=B5=8B=E8=AF=95=E7=BB=93?= =?UTF-8?q?=E6=9E=84=E4=BD=93=E8=A7=A3=E6=9E=90=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/agent/response_struct/card_test.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 backend/agent/response_struct/card_test.go diff --git a/backend/agent/response_struct/card_test.go b/backend/agent/response_struct/card_test.go new file mode 100644 index 0000000..f66ddd0 --- /dev/null +++ b/backend/agent/response_struct/card_test.go @@ -0,0 +1,18 @@ +package agent + +import ( + "testing" + + "github.com/tmc/langchaingo/outputparser" +) + +func TestCard(t *testing.T) { + definedCard, err := outputparser.NewDefined(Card{}) + + if err != nil { + t.Fatalf("%v", err) + } + + output := definedCard.GetFormatInstructions() + t.Log(output) +}