Documentation ¶
Index ¶
- type History
- type LLM
- type LLMAlert
- type Server
- func (s *Server) AskHandler(w http.ResponseWriter, r *http.Request)
- func (s *Server) DismissHandler(w http.ResponseWriter, r *http.Request)
- func (s *Server) MessageHandler(w http.ResponseWriter, r *http.Request)
- func (s *Server) RootHandler(w http.ResponseWriter, r *http.Request)
- func (s *Server) Serve(address string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type History ¶
type History struct {
// contains filtered or unexported fields
}
func (*History) Append ¶
func (h *History) Append(cs ...model.ChatMessage)
func (*History) GetChat ¶
func (h *History) GetChat() []model.ChatMessage
func (*History) UpdateWaiting ¶
type Server ¶
type Server struct { Start time.Time LLM *LLM Docs []schema.Document ChatHistory History Alert LLMAlert }
func (*Server) AskHandler ¶
func (s *Server) AskHandler(w http.ResponseWriter, r *http.Request)
func (*Server) DismissHandler ¶
func (s *Server) DismissHandler(w http.ResponseWriter, r *http.Request)
func (*Server) MessageHandler ¶
func (s *Server) MessageHandler(w http.ResponseWriter, r *http.Request)
func (*Server) RootHandler ¶
func (s *Server) RootHandler(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.