Server wraps a Hertz HTTP server with the chat-with-doc routes.
| 74 | |
| 75 | // Server wraps a Hertz HTTP server with the chat-with-doc routes. |
| 76 | type 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. |
| 82 | func New[M adk.MessageType](cfg Config[M]) *Server[M] { |