Callback - cozeloop
CozeLoop Callbacks
A CozeLoop callback implementation for Eino that implements the Handler interface. This enables seamless integration with Eino’s application for enhanced observability.
Features
- Implements github.com/cloudwego/eino/internel/callbacks.Handler
- Easy integration with Eino’s application
Installation
go get github.com/cloudwego/eino-ext/callbacks/cozeloop
Quick Start
package main
import (
	"context"
	"log"
	ccb "github.com/cloudwego/eino-ext/callbacks/cozeloop"
	"github.com/cloudwego/eino/callbacks"
	"github.com/coze-dev/cozeloop-go"
)
func main() {
	// Set relevant environment variables
	// COZELOOP_WORKSPACE_ID=your workspace id
	// COZELOOP_API_TOKEN=your token
	client, err := cozeloop.NewClient()
	if err != nil {
		panic(err)
	}
	defer client.Close(ctx)
	// Call once during service initialization
	handler := ccb.NewLoopHandler(client)
	callbacks.AppendGlobalHandlers(handler)
}
For More Details
Last modified
October 28, 2025
: fix(eino_doc): markdown splitter example codeblock \` error (#1450) (3c8bed9)