UNPKG

graphdb-workbench

Version:
2 lines 1.15 kB
export const __webpack_esm_id__=96089;export const __webpack_esm_ids__=[96089];export const __webpack_esm_modules__={96089(e,t,n){var s=n(73964);angular.module("graphdb.framework.rest.ttyg.service",[]).factory("TTYGRestService",c),c.$inject=["$http"];const o="rest/chat/conversations",a="rest/chat/agents",r=`${o}/explain`,p="rest/chat/chats";function c(e){return new s.r,{createChat:t=>e.post(p,t),getConversation:t=>e.get(`${o}/${t}`),renameConversation:(t,n)=>e.put(`${o}/${t}`,n),exportConversation:t=>e.get(`${o}/export/${t}`,{responseType:"blob"}),askQuestion:t=>e.post(`${p}/question`,t),continueChatRun:t=>e.post(`${o}/continue`,t),getConversations:()=>e.get(o),deleteConversation:t=>e.delete(`${o}/${t}`),createConversation:(t={})=>e.post(o,t),cancelPendingQuestion:t=>e.post(`${p}/${t}/cancel`),getAgents:()=>e.get(a),getAgent:t=>e.get(`${a}/${t}`),createAgent:t=>e.post(a,t),editAgent:t=>e.put(`${a}`,t),deleteAgent:t=>e.delete(`${a}/${t}`),explainResponse:(t={})=>e.post(r,t),getAgentDefaultValues:()=>e.get(`${a}/default`),explainAgentSettings:t=>e.post(`${a}/explain`,t)}}}}; //# sourceMappingURL=96089.a8d69d2afac1ce9c74fa.bundle.js.map