import{_ as f}from"./Agents.vue_vue_type_script_setup_true_lang-ead90234.js";import{d as v,i as _,f as y,g as w,o as n,w as o,a as c,b as e,m as l,s as u,z as b,u as S,h as p,e as r}from"./index-debd9251.js";const A={class:"view setting-view"},C={class:"setting-area"},k=e("div",{class:"setting-info"},[e("p",{class:"setting-title"},"Prevent Unrelated Conversations "),e("p",{class:"setting-description"}," This system checks queries to see if they are unrelated to your business. "),e("p",{class:"setting-description mt-5"}," If the query is unrelated, the chatbot responds that it can't help with that query. ")],-1),D={class:"flex f-column ml-auto"},V={class:"setting-interface-top-right"},F={class:"setting-interface-compact mt-50"},K=e("div",{class:"text text-light text-s mt-5 ml-auto"}," To help the system understand which visitor queries may be unrelated, please provide a description of what your business or agent specializes in. ",-1),Q={class:"setting-area"},I=e("div",{class:"setting-info"},[e("p",{class:"setting-title"},"Prevent Offensive Messages "),e("p",{class:"setting-description"},[p(" This system checks queries using "),e("br"),e("a",{href:"https://platform.openai.com/docs/guides/moderation/overview",class:"text-primary text-500",target:"_blank"},"OpenAI's Content Moderation API"),p(". ")]),e("p",{class:"setting-description mt-5"},` If the query contains vulgar content or violates OpenAI's ToS, the chatbot will respond with a default message: "I can't help with that." `)],-1),J={class:"setting-interface-top-right"},q={class:"setting-buttons"},N=["disabled"],T=e("div",{class:"mt-50"},null,-1),x=v({__name:"QualityControl",setup(z){let i=_(!1);async function g(){i.value=!0;let t=await FSDK.State.Agents.edit();if(i.value=!1,!t.status){FSDK.Notification.error(t.data);return}FSDK.Notification.success("Agent updated")}return(t,s)=>{const d=r("zoom"),m=r("limit"),h=r("browser-title");return n(),y(f,null,{default:w(()=>[o((n(),c("div",A,[o((n(),c("div",null,[e("div",C,[k,e("div",D,[e("div",V,[o(l(u,{modelValue:t.FSDK.State.Agents.workspace.agent.JQualityControl.unrelated.enabled,"onUpdate:modelValue":s[0]||(s[0]=a=>t.FSDK.State.Agents.workspace.agent.JQualityControl.unrelated.enabled=a)},null,8,["modelValue"]),[[d,1.3]])]),e("div",F,[l(b,{modelValue:t.FSDK.State.Agents.workspace.agent.JQualityControl.unrelated.info,"onUpdate:modelValue":s[1]||(s[1]=a=>t.FSDK.State.Agents.workspace.agent.JQualityControl.unrelated.info=a),disabled:!t.FSDK.State.Agents.workspace.agent.JQualityControl.unrelated.enabled,placeholder:"ACME is about .. "},null,8,["modelValue","disabled","placeholder"]),K])])]),e("div",Q,[I,e("div",J,[o(l(u,{modelValue:t.FSDK.State.Agents.workspace.agent.JQualityControl.offensive,"onUpdate:modelValue":s[2]||(s[2]=a=>t.FSDK.State.Agents.workspace.agent.JQualityControl.offensive=a)},null,8,["modelValue"]),[[d,1.3]])])]),e("div",q,[e("button",{onClick:g,async:"",disabled:S(i),class:"button-one-a"}," Save settings ",8,N)])])),[[m,"AI.Agent.QualityControl"]]),T])),[[h,"Agent - Quality Control"]])]),_:1})}}});export{x as default};
