MCPcopy Create free account
hub / github.com/coder/agentapi / SaveState

Method SaveState

lib/httpapi/server.go:655–661  ·  view source on GitHub ↗
(source string)

Source from the content-addressed store, hash-verified

653}
654
655func (s *Server) SaveState(source string) error {
656 if err := s.conversation.SaveState(); err != nil {
657 s.logger.Error("Failed to save conversation state", "source", source, "error", err)
658 return err
659 }
660 return nil
661}
662
663// registerStaticFileRoutes sets up routes for serving static files
664func (s *Server) registerStaticFileRoutes() {

Callers 1

runServerFunction · 0.95

Calls 1

SaveStateMethod · 0.65

Tested by

no test coverage detected