MCPcopy Create free account
hub / github.com/cloudwego/eino-examples / Server

Struct Server

quickstart/chatwitheino/server/server.go:76–79  ·  view source on GitHub ↗

Server wraps a Hertz HTTP server with the chat-with-doc routes.

Source from the content-addressed store, hash-verified

74
75// Server wraps a Hertz HTTP server with the chat-with-doc routes.
76type Server[M adk.MessageType] struct {
77 cfg Config[M]
78 turnStates sync.Map // sessionID → *sessionTurnState
79}
80
81// New creates a Server from the given config.
82func New[M adk.MessageType](cfg Config[M]) *Server[M] {

Callers 1

__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected