✅Test: 测试结构体解析器

This commit is contained in:
2026-03-25 21:37:40 +08:00
parent 0a5f30b328
commit c60140f1da
@@ -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)
}