Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions adk/human-in-the-loop/3_feedback-loop/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,18 @@ import (
"strings"

"github.com/cloudwego/eino/adk"
"github.com/cloudwego/eino/schema"

"github.com/cloudwego/eino-examples/adk/common/prints"
"github.com/cloudwego/eino-examples/adk/common/store"
)

// 初始化函数:注册中断信息类型,确保检查点持久化时能够正确序列化
func init() {
// 注册指针类型,因为中断上下文中保存的是 *FeedbackInfo
schema.RegisterName[*FeedbackInfo]("human_in_the_loop.FeedbackInfo")
}

func main() {
ctx := context.Background()
a := NewWriterAgent()
Expand Down