@e-llm-studio/instant-learning 1.3.0-alpha.69 → 1.3.0-alpha.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/features/IL-OTJ/ILOTJ.js +1 -1
- package/dist/cjs/features/IL-OTJ/ILOTJTest.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/ILPopup.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/templates/TemplatesMap/templatesMap.js +1 -1
- package/dist/cjs/features/LearningManagement/components/InstantLearningModal.js +1 -1
- package/dist/cjs/plugins/ValueTypes/Guidelines/GuidelinesTeachMeRenderer.js +1 -1
- package/dist/features/IL-OTJ/ILOTJ.js +1 -1
- package/dist/features/IL-OTJ/ILOTJTest.js +1 -1
- package/dist/features/IL-OTJ/_components/ILPopup.js +1 -1
- package/dist/features/IL-OTJ/_components/templates/TemplatesMap/templatesMap.js +1 -1
- package/dist/features/LearningManagement/components/InstantLearningModal.js +1 -1
- package/dist/plugins/ValueTypes/Guidelines/GuidelinesTeachMeRenderer.js +1 -1
- package/dist/types/src/features/IL-OTJ/ILOTJ.d.ts +0 -2
- package/dist/types/src/features/IL-OTJ/ILOTJ.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/InstantLearningModal.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("@mui/material"),a=require("react"),o=require("./_components/ChatComponents/ChatComponent.js"),i=require("./_components/ILPopup.js"),s=require("./_components/VariantLoadingOverlay.js"),r=require("./_components/templates/RuleComparison/RuleComparison.js"),l=require("./_components/templates/RuleComparison/AgentComposerRuleComparison.js"),u=require("./_components/ChatComponents/NormalChat.js"),d=require("../LearningManagement/store/useLearningTemplateStore.js"),c=require("./_components/templates/RuleComparison/RuleComparisonNew.js");function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var m=g(a);exports.default=function(g){var h=g.open,p=g.chatAssistantName,f=g.organizationName,C=g.baseUrl,v=g.baseWebsocketUrl,x=g.closeFunction,S=g.ThinkingBulbIconComponent,b=g.customSections,k=g.customMetaData,w=g.chatTitle,M=void 0===w?"Instant Learning On-The-Job":w,y=g.formTitle,R=void 0===y?"Instant Learning On-The-Job Form":y,I=g.onSave,j=g.headerMessageHandlers,_=g.aiResponse,T=g.setAIResponse,V=g.width,F=void 0===V?"90vw":V,A=g.height,L=void 0===A?"90vh":A,D=g.sendMessageInChat,B=void 0===D?"":D,E=g.setSendMessageInChat,W=g.validateCustom,q=g.onResetChat,P=g.template,z=g.templateProps,O=g.initialChatMessage,N=g.setCitations,U=g.isLoading,J=void 0!==U&&U,H=g.isLocked,G=void 0!==H&&H,X=g.saveButtonConfig,Y=void 0===X?{label:"Save Learning",loadingLabel:"Saving Learning..."}:X,K=g.saveButtonColor,Q=g.saveWithoutValBtnConfig,Z=void 0===Q?{label:"Save Without Validation",loadingLabel:"Saving Without Validation..."}:Q,$=g.textareaPlaceholder,ee=g.setCurrentRequestId,ne=g.showSavedMessage,te=void 0!==ne&&ne,ae=g.savedMessage,oe=void 0===ae?"Thank you teacher for teaching me, your learning has been saved successfully.":ae,ie=g.isError,se=void 0!==ie&&ie,re=g.errorMessage,le=void 0===re?"I'm sorry, I couldn't save your changes. Please try again.":re,ue=g.isSaving,de=void 0!==ue&&ue,ce=g.isAiStreaming,ge=g.setIsAiStreaming,me=g.showConfirmReset,he=void 0!==me&&me,pe=g.setShowConfirmReset,fe=g.confirmReset,Ce=g.isLoadingVariants,ve=g.isFormDirty,xe=g.onResetRequest,Se=g.mainText,be=void 0===Se?"Adding a variant":Se,ke=g.subText,we=void 0===ke?"This may take a moment as we update the learning with the new variant.":ke,Me=g.showComparison,ye=void 0!==Me&&Me,Re=g.setShowComparison,Ie=g.showAgentComposerRuleComparison,je=void 0!==Ie&&Ie,_e=g.setShowAgentComposerRuleComparison,Te=g.isFetchingComparison,Ve=g.handleOpenComparison,Fe=g.proposedRule,Ae=g.variants,Le=g.onAddAsVariant,De=g.isCopyEnabled,Be=g.showSaveWithoutValidation,Ee=void 0!==Be&&Be,We=g.onSaveWithoutValidation,qe=g.onComparisonLinkClick,Pe=g.targetComparisonVariantId,ze=g.highlightedComparisonField,Oe=g.onSubmitFeedback,Ne=g.isUseNormalChat,Ue=void 0!==Ne&&Ne,Je=g.userDetails,He=g.handleGlobalClickCapture,Ge=g.isGlobalEditActive,Xe=g.socketTimeOutInMilliSeconds,Ye=g.initialDraftMessage,Ke=g.onValidateSession,Qe=a.useState(h),Ze=Qe[0],$e=Qe[1],en=a.useState(!1);en[0];var nn=en[1],tn=a.useState(!1),an=tn[0],on=tn[1],sn=a.useState(!1),rn=sn[0];sn[1];var ln=a.useState(45),un=ln[0],dn=ln[1],cn=a.useState("right"),gn=cn[0],mn=cn[1],hn=m.default.useRef(gn),pn=a.useState(!1),fn=pn[0],Cn=pn[1],vn=a.useState(0),xn=vn[0],Sn=vn[1],bn=a.useState(40),kn=bn[0],wn=bn[1],Mn=d.useLearningTemplateStore.getState().backwardCompatibility;a.useEffect(function(){hn.current=gn},[gn]),a.useEffect(function(){$e(h)},[h]);var yn=a.useCallback(function(e){e.preventDefault(),Cn(!0),Sn(e.clientX),wn(un)},[un]),Rn=a.useCallback(function(e){if(fn){var n=document.querySelector("[data-dialog-content]");if(n){var t=n.getBoundingClientRect(),a=(e.clientX-xn)/t.width*100,o=Math.max(20,Math.min(80,kn+a));dn(o),o>kn&&mn("right"),o<kn&&mn("left")}}},[fn,xn,kn]),In=a.useCallback(function(){Cn(!1)},[]);a.useEffect(function(){if(fn)return document.addEventListener("mousemove",Rn),document.addEventListener("mouseup",In),function(){document.removeEventListener("mousemove",Rn),document.removeEventListener("mouseup",In)}},[fn,Rn,In]);var jn=function(e,n){G&&"backdropClick"===n||("escapeKeyDown"!==n&&"manualClose"!==n||!(null==ve?void 0:ve())?($e(!1),x()):null==xe||xe())},_n=a.useCallback(function(e){dn(function(n){var t;if("number"==typeof e)return e>n&&mn("right"),e<n&&mn("left"),e;var a=hn.current,o=null!==(t={20:30,30:"left"===a?20:50,50:"left"===a?30:75,75:"left"===a?50:100,100:75}[n])&&void 0!==t?t:40;return 100===o&&mn("left"),20===o&&mn("right"),o})},[]),Tn=a.useCallback(function(){Ve&&(_n(30),Ve())},[_n,Ve]);return n.jsx(t.Dialog,e.__assign({open:Ze,onClose:jn,maxWidth:!1,fullWidth:!0,PaperProps:{sx:{width:F,height:L,display:"flex",flexDirection:"column",padding:0,margin:0,maxWidth:"100vw",borderRadius:"10px"}}},{children:n.jsxs(t.DialogContent,e.__assign({"data-dialog-content":!0,onClickCapture:He,sx:{flex:1,overflow:"hidden",display:"flex",flexDirection:"row",gap:0,padding:0,fontFamily:'"Plus Jakarta Sans", sans-serif',"& *":{fontFamily:'"Plus Jakarta Sans", sans-serif !important'}}},{children:[n.jsx(t.Box,e.__assign({sx:{width:"".concat(un,"%"),maxWidth:"".concat(un,"%"),transition:fn?"none":"width 0.3s ease-in-out, max-width 0.3s ease-in-out",bgcolor:"#ffffff",p:0,display:0===un?"none":"flex",flexDirection:"column"}},{children:Ue?n.jsx(u.default,{chatAssistantName:p,organizationName:f,baseUrl:C,baseWebsocketUrl:v,setIsNewChatClicked:nn,ThinkingBulbIconComponent:S,isFormSaveClicked:an,setIsFormSavedClicked:on,onResetLearningData:function(){},sendMessageInChat:B,setSendMessageInChat:E,isFormValidating:rn,chatTitle:M,customMetaData:k,headerMessageHandlers:j,aiResponse:_,setAIResponse:T,onResetChat:q,initialChatMessage:O,onSave:I,chatSize:un,movingTowards:gn,setChatSize:_n,setCitations:N,textareaPlaceholder:$,setCurrentRequestId:ee,showSavedMessage:te,savedMessage:oe,isError:se,errorMessage:le,isSaving:de,onStreamingStateChange:ge,onViewComparison:Tn,isCopyEnabled:De,onComparisonLinkClick:qe,onSubmitFeedback:Oe}):n.jsx(o.default,{chatAssistantName:p,organizationName:f,baseUrl:C,baseWebsocketUrl:v,setIsNewChatClicked:nn,ThinkingBulbIconComponent:S,isFormSaveClicked:an,setIsFormSavedClicked:on,onResetLearningData:function(){},sendMessageInChat:B,setSendMessageInChat:E,isFormValidating:rn,chatTitle:M,customMetaData:k,headerMessageHandlers:j,aiResponse:_,setAIResponse:T,onResetChat:q,initialChatMessage:O,onSave:I,chatSize:un,movingTowards:gn,setChatSize:_n,setCitations:N,textareaPlaceholder:$,setCurrentRequestId:ee,showSavedMessage:te,savedMessage:oe,isError:se,errorMessage:le,isSaving:de,onStreamingStateChange:ge,onViewComparison:Tn,isCopyEnabled:De,onComparisonLinkClick:qe,onSubmitFeedback:Oe,userDetails:Je,isGlobalEditActive:Ge,socketTimeOutInMilliSeconds:Xe,initialDraftMessage:Ye,onValidateSession:Ke,onCloseSessionModal:fe})})),n.jsx(t.Box,{sx:{width:"2px",cursor:"col-resize",backgroundColor:fn?"#1976d2":"#e0e0e0",transition:"background-color 0.2s ease","&:hover":{backgroundColor:"#1976d2"},flexShrink:0},onMouseDown:yn}),n.jsxs(t.Box,e.__assign({sx:{width:"".concat(100-un,"%"),maxWidth:"".concat(100-un,"%"),transition:fn?"none":"width 0.3s ease-in-out, max-width 0.3s ease-in-out",display:100===un?"none":"flex",flexDirection:"column",overflowY:"hidden",position:"relative"}},{children:[n.jsx(s.default,{isLoading:Te||!1,mainText:"Fetching differences between rules",subText:"This may take a moment..."}),n.jsx(s.default,{isLoading:Ce||!1,mainText:be,subText:we}),je?n.jsx(l.default,{proposedRule:Fe,variants:Ae,onSelectVariant:function(e){console.log("Selected Variant ID:",e.id)},onAddAsVariant:function(){null==Le||Le(),_n(40),null==_e||_e(!1)},onSkip:function(){_n(40),null==_e||_e(!1)},onBack:function(){_n(40),null==_e||_e(!1)},targetVariantId:Pe,highlightedField:ze}):ye?Mn?n.jsx(c.default,{proposedRule:Fe,variants:Ae,onSelectVariant:function(e){console.log("Selected Variant ID:",e.id)},onAddAsVariant:function(){null==Le||Le(),_n(40),null==Re||Re(!1)},onSkip:function(){_n(40),null==Re||Re(!1)},onBack:function(){_n(40),null==Re||Re(!1)},targetVariantId:Pe,highlightedField:ze}):n.jsx(r.default,{variants:Ae,onSelectVariant:function(e){console.log("Selected Variant ID:",e.id)},onAddAsVariant:function(){null==Le||Le(),_n(40),null==Re||Re(!1)},onSkip:function(){_n(40),null==Re||Re(!1)},onBack:function(){_n(40),null==Re||Re(!1)},targetVariantId:Pe}):n.jsx(i.default,{setIsFormSavedClicked:on,customSections:b,onSave:I,formHeader:R,onClose:function(){return jn(0,"manualClose")},validateCustom:W,template:P,templateProps:z,isLoading:J,isAiStreaming:ce,saveButtonConfig:Y,saveButtonColor:K,showSaveWithoutValidation:Ee,saveWithoutValBtnConfig:Z,onSaveWithoutValidation:We}),n.jsx(t.Dialog,e.__assign({open:he,onClose:function(){return null==pe?void 0:pe(!1)},PaperProps:{sx:{borderRadius:"12px",padding:"8px",maxWidth:"400px"}}},{children:n.jsxs(t.Box,e.__assign({sx:{p:3,textAlign:"center",fontFamily:"'Plus Jakarta Sans', sans-serif"}},{children:[n.jsx("h3",e.__assign({style:{fontSize:"18px",fontWeight:600,color:"#0F172A",marginBottom:"6px"}},{children:"Exit Teach Me OTJ?"})),n.jsx("p",e.__assign({style:{fontSize:"14px",color:"#64748B",lineHeight:"1.5",marginBottom:"10px"}},{children:"Exiting will discard any unsaved changes and end your session."})),n.jsxs(t.Box,e.__assign({sx:{display:"flex",gap:2,justifyContent:"center"}},{children:[n.jsx("button",e.__assign({onClick:function(){return null==pe?void 0:pe(!1)},style:{flex:1,padding:"10px 16px",cursor:"pointer",backgroundColor:"white",border:"1px solid #E2E8F0",borderRadius:"8px",fontSize:"14px",fontWeight:500,color:"#475569",transition:"all 0.2s"},onMouseOver:function(e){return e.currentTarget.style.backgroundColor="#F8FAFC"},onMouseOut:function(e){return e.currentTarget.style.backgroundColor="white"}},{children:"Cancel"})),n.jsx("button",e.__assign({onClick:fe,style:{flex:1,padding:"10px 16px",backgroundColor:"#EF4444",color:"white",border:"none",borderRadius:"8px",fontSize:"14px",fontWeight:500,cursor:"pointer",transition:"background-color 0.2s"},onMouseOver:function(e){return e.currentTarget.style.backgroundColor="#DC2626"},onMouseOut:function(e){return e.currentTarget.style.backgroundColor="#EF4444"}},{children:"Yes, Discard"}))]}))]}))}))]}))]}))}))};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),t=require("@mui/material"),a=require("react"),o=require("./_components/ChatComponents/ChatComponent.js"),i=require("./_components/ILPopup.js"),s=require("./_components/VariantLoadingOverlay.js"),r=require("./_components/templates/RuleComparison/RuleComparison.js"),l=require("./_components/templates/RuleComparison/AgentComposerRuleComparison.js"),u=require("./_components/ChatComponents/NormalChat.js"),d=require("../LearningManagement/store/useLearningTemplateStore.js"),c=require("./_components/templates/RuleComparison/RuleComparisonNew.js");function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var h=g(a);exports.default=function(g){var m=g.open,p=g.chatAssistantName,f=g.organizationName,C=g.baseUrl,v=g.baseWebsocketUrl,x=g.closeFunction,S=g.ThinkingBulbIconComponent,b=g.customSections,k=g.customMetaData,w=g.chatTitle,M=void 0===w?"Instant Learning On-The-Job":w,y=g.formTitle,R=void 0===y?"Instant Learning On-The-Job Form":y,I=g.onSave,j=g.headerMessageHandlers,_=g.aiResponse,T=g.setAIResponse,V=g.width,F=void 0===V?"90vw":V,A=g.height,L=void 0===A?"90vh":A,D=g.sendMessageInChat,B=void 0===D?"":D,E=g.setSendMessageInChat,W=g.validateCustom,q=g.onResetChat,P=g.templateProps,z=g.initialChatMessage,O=g.setCitations,N=g.isLoading,U=void 0!==N&&N,J=g.isLocked,H=void 0!==J&&J,G=g.saveButtonConfig,X=void 0===G?{label:"Save Learning",loadingLabel:"Saving Learning..."}:G,Y=g.saveButtonColor,K=g.saveWithoutValBtnConfig,Q=void 0===K?{label:"Save Without Validation",loadingLabel:"Saving Without Validation..."}:K,Z=g.textareaPlaceholder,$=g.setCurrentRequestId,ee=g.showSavedMessage,ne=void 0!==ee&&ee,te=g.savedMessage,ae=void 0===te?"Thank you teacher for teaching me, your learning has been saved successfully.":te,oe=g.isError,ie=void 0!==oe&&oe,se=g.errorMessage,re=void 0===se?"I'm sorry, I couldn't save your changes. Please try again.":se,le=g.isSaving,ue=void 0!==le&&le,de=g.isAiStreaming,ce=g.setIsAiStreaming,ge=g.showConfirmReset,he=void 0!==ge&&ge,me=g.setShowConfirmReset,pe=g.confirmReset,fe=g.isLoadingVariants,Ce=g.isFormDirty,ve=g.onResetRequest,xe=g.mainText,Se=void 0===xe?"Adding a variant":xe,be=g.subText,ke=void 0===be?"This may take a moment as we update the learning with the new variant.":be,we=g.showComparison,Me=void 0!==we&&we,ye=g.setShowComparison,Re=g.showAgentComposerRuleComparison,Ie=void 0!==Re&&Re,je=g.setShowAgentComposerRuleComparison,_e=g.isFetchingComparison,Te=g.handleOpenComparison,Ve=g.proposedRule,Fe=g.variants,Ae=g.onAddAsVariant,Le=g.isCopyEnabled,De=g.showSaveWithoutValidation,Be=void 0!==De&&De,Ee=g.onSaveWithoutValidation,We=g.onComparisonLinkClick,qe=g.targetComparisonVariantId,Pe=g.highlightedComparisonField,ze=g.onSubmitFeedback,Oe=g.isUseNormalChat,Ne=void 0!==Oe&&Oe,Ue=g.userDetails,Je=g.handleGlobalClickCapture,He=g.isGlobalEditActive,Ge=g.socketTimeOutInMilliSeconds,Xe=g.initialDraftMessage,Ye=g.onValidateSession,Ke=a.useState(m),Qe=Ke[0],Ze=Ke[1],$e=a.useState(!1);$e[0];var en=$e[1],nn=a.useState(!1),tn=nn[0],an=nn[1],on=a.useState(!1),sn=on[0];on[1];var rn=a.useState(45),ln=rn[0],un=rn[1],dn=a.useState("right"),cn=dn[0],gn=dn[1],hn=h.default.useRef(cn),mn=a.useState(!1),pn=mn[0],fn=mn[1],Cn=a.useState(0),vn=Cn[0],xn=Cn[1],Sn=a.useState(40),bn=Sn[0],kn=Sn[1],wn=d.useLearningTemplateStore.getState().backwardCompatibility;a.useEffect(function(){hn.current=cn},[cn]),a.useEffect(function(){Ze(m)},[m]);var Mn=a.useCallback(function(e){e.preventDefault(),fn(!0),xn(e.clientX),kn(ln)},[ln]),yn=a.useCallback(function(e){if(pn){var n=document.querySelector("[data-dialog-content]");if(n){var t=n.getBoundingClientRect(),a=(e.clientX-vn)/t.width*100,o=Math.max(20,Math.min(80,bn+a));un(o),o>bn&&gn("right"),o<bn&&gn("left")}}},[pn,vn,bn]),Rn=a.useCallback(function(){fn(!1)},[]);a.useEffect(function(){if(pn)return document.addEventListener("mousemove",yn),document.addEventListener("mouseup",Rn),function(){document.removeEventListener("mousemove",yn),document.removeEventListener("mouseup",Rn)}},[pn,yn,Rn]);var In=function(e,n){H&&"backdropClick"===n||("escapeKeyDown"!==n&&"manualClose"!==n||!(null==Ce?void 0:Ce())?(Ze(!1),x()):null==ve||ve())},jn=a.useCallback(function(e){un(function(n){var t;if("number"==typeof e)return e>n&&gn("right"),e<n&&gn("left"),e;var a=hn.current,o=null!==(t={20:30,30:"left"===a?20:50,50:"left"===a?30:75,75:"left"===a?50:100,100:75}[n])&&void 0!==t?t:40;return 100===o&&gn("left"),20===o&&gn("right"),o})},[]),_n=a.useCallback(function(){Te&&(jn(30),Te())},[jn,Te]);return n.jsx(t.Dialog,e.__assign({open:Qe,onClose:In,maxWidth:!1,fullWidth:!0,PaperProps:{sx:{width:F,height:L,display:"flex",flexDirection:"column",padding:0,margin:0,maxWidth:"100vw",borderRadius:"10px"}}},{children:n.jsxs(t.DialogContent,e.__assign({"data-dialog-content":!0,onClickCapture:Je,sx:{flex:1,overflow:"hidden",display:"flex",flexDirection:"row",gap:0,padding:0,fontFamily:'"Plus Jakarta Sans", sans-serif',"& *":{fontFamily:'"Plus Jakarta Sans", sans-serif !important'}}},{children:[n.jsx(t.Box,e.__assign({sx:{width:"".concat(ln,"%"),maxWidth:"".concat(ln,"%"),transition:pn?"none":"width 0.3s ease-in-out, max-width 0.3s ease-in-out",bgcolor:"#ffffff",p:0,display:0===ln?"none":"flex",flexDirection:"column"}},{children:Ne?n.jsx(u.default,{chatAssistantName:p,organizationName:f,baseUrl:C,baseWebsocketUrl:v,setIsNewChatClicked:en,ThinkingBulbIconComponent:S,isFormSaveClicked:tn,setIsFormSavedClicked:an,onResetLearningData:function(){},sendMessageInChat:B,setSendMessageInChat:E,isFormValidating:sn,chatTitle:M,customMetaData:k,headerMessageHandlers:j,aiResponse:_,setAIResponse:T,onResetChat:q,initialChatMessage:z,onSave:I,chatSize:ln,movingTowards:cn,setChatSize:jn,setCitations:O,textareaPlaceholder:Z,setCurrentRequestId:$,showSavedMessage:ne,savedMessage:ae,isError:ie,errorMessage:re,isSaving:ue,onStreamingStateChange:ce,onViewComparison:_n,isCopyEnabled:Le,onComparisonLinkClick:We,onSubmitFeedback:ze}):n.jsx(o.default,{chatAssistantName:p,organizationName:f,baseUrl:C,baseWebsocketUrl:v,setIsNewChatClicked:en,ThinkingBulbIconComponent:S,isFormSaveClicked:tn,setIsFormSavedClicked:an,onResetLearningData:function(){},sendMessageInChat:B,setSendMessageInChat:E,isFormValidating:sn,chatTitle:M,customMetaData:k,headerMessageHandlers:j,aiResponse:_,setAIResponse:T,onResetChat:q,initialChatMessage:z,onSave:I,chatSize:ln,movingTowards:cn,setChatSize:jn,setCitations:O,textareaPlaceholder:Z,setCurrentRequestId:$,showSavedMessage:ne,savedMessage:ae,isError:ie,errorMessage:re,isSaving:ue,onStreamingStateChange:ce,onViewComparison:_n,isCopyEnabled:Le,onComparisonLinkClick:We,onSubmitFeedback:ze,userDetails:Ue,isGlobalEditActive:He,socketTimeOutInMilliSeconds:Ge,initialDraftMessage:Xe,onValidateSession:Ye,onCloseSessionModal:pe})})),n.jsx(t.Box,{sx:{width:"2px",cursor:"col-resize",backgroundColor:pn?"#1976d2":"#e0e0e0",transition:"background-color 0.2s ease","&:hover":{backgroundColor:"#1976d2"},flexShrink:0},onMouseDown:Mn}),n.jsxs(t.Box,e.__assign({sx:{width:"".concat(100-ln,"%"),maxWidth:"".concat(100-ln,"%"),transition:pn?"none":"width 0.3s ease-in-out, max-width 0.3s ease-in-out",display:100===ln?"none":"flex",flexDirection:"column",overflowY:"hidden",position:"relative"}},{children:[n.jsx(s.default,{isLoading:_e||!1,mainText:"Fetching differences between rules",subText:"This may take a moment..."}),n.jsx(s.default,{isLoading:fe||!1,mainText:Se,subText:ke}),Ie?n.jsx(l.default,{proposedRule:Ve,variants:Fe,onSelectVariant:function(e){console.log("Selected Variant ID:",e.id)},onAddAsVariant:function(){null==Ae||Ae(),jn(40),null==je||je(!1)},onSkip:function(){jn(40),null==je||je(!1)},onBack:function(){jn(40),null==je||je(!1)},targetVariantId:qe,highlightedField:Pe}):Me?wn?n.jsx(c.default,{proposedRule:Ve,variants:Fe,onSelectVariant:function(e){console.log("Selected Variant ID:",e.id)},onAddAsVariant:function(){null==Ae||Ae(),jn(40),null==ye||ye(!1)},onSkip:function(){jn(40),null==ye||ye(!1)},onBack:function(){jn(40),null==ye||ye(!1)},targetVariantId:qe,highlightedField:Pe}):n.jsx(r.default,{variants:Fe,onSelectVariant:function(e){console.log("Selected Variant ID:",e.id)},onAddAsVariant:function(){null==Ae||Ae(),jn(40),null==ye||ye(!1)},onSkip:function(){jn(40),null==ye||ye(!1)},onBack:function(){jn(40),null==ye||ye(!1)},targetVariantId:qe}):n.jsx(i.default,{setIsFormSavedClicked:an,customSections:b,onSave:I,formHeader:R,onClose:function(){return In(0,"manualClose")},validateCustom:W,templateProps:P,isLoading:U,isAiStreaming:de,saveButtonConfig:X,saveButtonColor:Y,showSaveWithoutValidation:Be,saveWithoutValBtnConfig:Q,onSaveWithoutValidation:Ee}),n.jsx(t.Dialog,e.__assign({open:he,onClose:function(){return null==me?void 0:me(!1)},PaperProps:{sx:{borderRadius:"12px",padding:"8px",maxWidth:"400px"}}},{children:n.jsxs(t.Box,e.__assign({sx:{p:3,textAlign:"center",fontFamily:"'Plus Jakarta Sans', sans-serif"}},{children:[n.jsx("h3",e.__assign({style:{fontSize:"18px",fontWeight:600,color:"#0F172A",marginBottom:"6px"}},{children:"Exit Teach Me OTJ?"})),n.jsx("p",e.__assign({style:{fontSize:"14px",color:"#64748B",lineHeight:"1.5",marginBottom:"10px"}},{children:"Exiting will discard any unsaved changes and end your session."})),n.jsxs(t.Box,e.__assign({sx:{display:"flex",gap:2,justifyContent:"center"}},{children:[n.jsx("button",e.__assign({onClick:function(){return null==me?void 0:me(!1)},style:{flex:1,padding:"10px 16px",cursor:"pointer",backgroundColor:"white",border:"1px solid #E2E8F0",borderRadius:"8px",fontSize:"14px",fontWeight:500,color:"#475569",transition:"all 0.2s"},onMouseOver:function(e){return e.currentTarget.style.backgroundColor="#F8FAFC"},onMouseOut:function(e){return e.currentTarget.style.backgroundColor="white"}},{children:"Cancel"})),n.jsx("button",e.__assign({onClick:pe,style:{flex:1,padding:"10px 16px",backgroundColor:"#EF4444",color:"white",border:"none",borderRadius:"8px",fontSize:"14px",fontWeight:500,cursor:"pointer",transition:"background-color 0.2s"},onMouseOver:function(e){return e.currentTarget.style.backgroundColor="#DC2626"},onMouseOut:function(e){return e.currentTarget.style.backgroundColor="#EF4444"}},{children:"Yes, Discard"}))]}))]}))}))]}))]}))}))};
|
|
2
2
|
//# sourceMappingURL=ILOTJ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib");require("react/jsx-runtime"),require("@mui/material"),require("lucide-react"),require("react"),require("uuid"),require("./_components/templates/TemplatesMap/templatesMap.js"),require("@mui/material/Tooltip"),require("react-markdown"),require("rehype-raw");var t=require("axios");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("@e-llm-studio/streaming-response"),require("@e-llm-studio/watch-me-work"),require("./_components/ChatComponents/ChatHeader.js"),require("remark-gfm"),require("./_components/MarkdownComponents/MarkdownElements.js"),require("./_components/CitationLink.js"),require("@e-llm-studio/citation"),require("./store/CitationsContext.js"),require("@viswa-test/test-citation");var n=i(t);exports.dummyDat=[[{intent_output:{nodes:{title:{next:null,skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"independent",execution_mode:"per_node",criterion_set_id:"intent_in_learning_title"},comparison_inputs:{existing_variant:{title:"Title",content:"Order Separation",additional_attributes:null},new_variant:{title:"Title",content:"Order Separation",additional_attributes:null}},mapping_rationale:null,evaluation_result:{deviation_title:"No Deviation Found",deviation_explanation:["1. Both base section and compare section are semantically identical — no deviations were found."],evaluation_outputs:{name:"labelling_criteria",output_value:"100% Conflict",metadata:{label_color:"#B91C1C"}},cognitive_decisioning:{decisioning_factors:["1. Both base section and compare section are exactly the same — no semantic deviation exists between them."],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null},deviations:{}}},learning_description_intent:{next:null,skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"independent",execution_mode:"per_node",criterion_set_id:"intent_in_learning_description"},comparison_inputs:{existing_variant:{title:"Description",content:"Maintains a minimum separation of 15 minutes between ads with the same order number.",additional_attributes:null},new_variant:{title:"Description",content:"Maintains a minimum separation of 10 minutes between ads with the same order number.",additional_attributes:null}},mapping_rationale:null,evaluation_result:{deviation_title:"Separation Interval Reduced",deviation_explanation:["1. The Description from Variant you are creating reduces the required separation interval between ads with the same order number to 10 minutes, which is a less restrictive enforcement than the 15-minute standard in the Existing variant.","2. The Variant you are creating lacks the 15-minute minimum separation threshold required by the Existing variant, thereby narrowing the buffer period between identical order ads."],evaluation_outputs:{name:"labelling_criteria",output_value:"90% Conflict",metadata:{label_color:"#B91C1C"}},cognitive_decisioning:{decisioning_factors:["1. The Description from Variant you are creating specifies a 10-minute separation interval while the Description from Existing variant mandates a 15-minute interval","2. Both entities share the same underlying intent of maintaining separation between ads with the same order number, but the rule-defining numerical threshold differs, triggering the 90% Conflict criteria"],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null},deviations:{0:{existing_variant:"15 minutes",new_variant:"10 minutes",deviation_summary:""}}}},overall_comparison:{next:{0:"title",1:"learning_description_intent"},skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"aggregated",execution_mode:"per_node",criterion_set_id:"intent_overall_compare"},comparison_inputs:{existing_variant:{title:"Existing learning",content:null,additional_attributes:null},new_variant:{title:"Learning You 're Creating",content:null,additional_attributes:null}},mapping_rationale:null,decision_scope_title:"Is the learning's intent matching?",decision_scope_description:"Checking if the intent of the learning you are creating is conflicting with the the existing learning.",evaluation_result:{deviation_title:"Separation Interval Reduced",deviation_explanation:["1. The reduction of the separation interval in the Description from Variant you are creating to 10 minutes creates a less restrictive enforcement compared to the 15-minute standard in the Description from Existing variant, potentially increasing ad frequency.","2. The Description from Variant you are creating lacks the 15-minute minimum separation threshold mandated by the Description from Existing variant, thereby narrowing the buffer period between ads with the same order number."],evaluation_outputs:{name:"labelling_criteria",output_value:"1% Conflict",metadata:{label_color:"#B91C1C"}},cognitive_decisioning:{decisioning_factors:["1. The Title from Variant you are creating and the Title from Existing variant are semantically identical ([Title from Variant you are contributing to the overall intent alignment.","2. The Description from Variant you are creating specifies a 10-minute interval while the Description from Existing variant mandates a 15-minute interval ([Description from Variant you are which represents the primary behavioral divergence.","3. The aggregated evaluation reflects the high degree of alignment in the title and the specific numerical threshold difference in the description, resulting in the final conflict classification ([Description from Variant you are"],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null}}}},documents:{existing_variant:{role:"reference",title:"Existing variant | tier1",metadata:{file_name:null},mime_type:null,source_uri:null},new_variant:{role:"source",title:"Variant you are creating | tier1",metadata:{file_name:null},mime_type:null,source_uri:null}},base_root_id:"overall_comparison",input_index_map:{0:"new_variant",1:"existing_variant"},evaluation_criteria:{"criteria-uuid1":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the overall intent by combining the results from learning title comparison and learning description comparison. Always assign the output_label as 'Conflict'. The final output_percentage must be calculated using weighted averaging where intent_in_learning_title contributes 20% (0.2 weightage) and intent_in_learning_description contributes 80% (0.8 weightage). The percentage should not be determined independently and must be derived from the child comparison results. A higher weighted score indicates greater intent overlap, while a lower weighted score indicates less overlap. Use the computed weighted average as the final Conflict percentage.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"intent_overall_compare"},"criteria-uuid2":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the learning titles semantically. Always assign the output_label as 'Conflict'. Use 100% Conflict when both titles convey exactly the same meaning and intent. Use 50% Conflict when the titles partially overlap in meaning but are not exact matches. Use 0% Conflict when the titles represent different meanings with no meaningful overlap. Intermediate percentages may be used to represent the degree of overlap between 0% and 100%.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"intent_in_learning_title"},"criteria-uuid3":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the tiers. Always assign the output_label as 'Conflict'. Use 100% Conflict when the tiers are exactly the same. Use 50% Conflict when both are of different tiers. Use 0% Conflict when the tiers are completely different.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"match_in_tier"},"criteria-uuid4":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the learning descriptions primarily based on rule-defining properties such as thresholds, limits, numerical values, conditions, or any property that directly defines the behavior of the rule. Always assign the output_label as 'Conflict'. If both learnings contain rule-defining properties and all such properties match exactly, assign 100% Conflict. If both learnings represent the same underlying intent but one or more rule-defining properties differ, assign exactly 90% Conflict. If no rule-defining properties exist in either learning, determine the Conflict percentage based on semantic similarity of the descriptions. Intermediate percentages may be used only when evaluating semantic similarity in cases where rule-defining properties do not exist.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"intent_in_learning_description"}}}},{behaviour_output:{nodes:{learning_description_behavior:{next:null,skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"independent",execution_mode:"per_node",criterion_set_id:"behaviour_in_learning_description"},comparison_inputs:{existing_variant:{title:"Behavior",content:"Maintains a minimum separation of 15 minutes between ads with the same order number.",additional_attributes:null},new_variant:{title:"Behavior",content:"Maintains a minimum separation of 10 minutes between ads with the same order number.",additional_attributes:null}},mapping_rationale:null,evaluation_result:{deviation_title:"Separation duration reduced",deviation_explanation:["1. The Behavior from Variant you are creating reduces the mandatory separation interval between ads with the same order number, which weakens the enforcement standard compared to the Existing variant.","2. The Variant you are creating specifies a 10-minute separation threshold, whereas the Existing variant requires a more restrictive 15-minute separation threshold."],evaluation_outputs:{name:"labelling_criteria",output_value:"0% Conflict"},cognitive_decisioning:{decisioning_factors:["1. The Behavior from Variant you are creating defines a 10-minute separation threshold while the Behavior from Existing variant defines a 15-minute threshold","2. As per the criteria, any difference in rule-defining properties such as numerical thresholds results in 0% Conflict"],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null},deviations:{0:{existing_variant:"15 minutes",new_variant:"10 minutes",deviation_summary:""}}}},"conditions-uuid12":{next:{0:"when_to_apply",1:"when_not_to_apply"},skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"aggregated",execution_mode:"per_node",criterion_set_id:"conditions_compare"},comparison_inputs:{existing_variant:{title:"Conditions",content:null,additional_attributes:null},new_variant:{title:"Conditions",content:null,additional_attributes:null}},mapping_rationale:null,evaluation_result:{deviation_title:"Targeting scope expanded",deviation_explanation:["1. The expanded targeting scope in the Conditions from Variant you are creating increases the operational reach by including an additional advertiser, Audacy, which is not present in the Conditions from Existing variant.","2. The Conditions from Variant you are creating relaxes the restrictive targeting logic found in the Conditions from Existing variant by permitting application for both Audacy and KYKY instead of limiting it solely to KYKY."],evaluation_outputs:{name:"labelling_criteria",output_value:"50% Conflict",metadata:{label_color:"#B91C1C"}},cognitive_decisioning:{decisioning_factors:["1. The 'When to apply' evaluation confirms that the Conditions from Variant you are creating broadens the targeting scope compared to the Conditions from Existing variant, resulting in a 50% Conflict classification.","2. The 'When NOT to apply' evaluation indicates that both the Conditions from Variant you are creating and the Conditions from Existing variant define no exemptions, leading to an N/A classification that defaults the aggregated result to the 'When to apply' outcome."],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null}}},overall_comparison:{next:{0:"learning_description_behavior",1:"conditions-uuid12"},skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"aggregated",execution_mode:"per_node",criterion_set_id:"behavior_compare"},comparison_inputs:{existing_variant:{title:"Existing learning",content:null,additional_attributes:null},new_variant:{title:"Learning You 're Creating",content:null,additional_attributes:null}},mapping_rationale:null,decision_scope_title:"Is the learning 's behaviour matching?",decision_scope_description:"Checking if the behaviour of the learning you are trying to create is conflicting with the existing learning",evaluation_result:{deviation_title:"Operational scope altered",deviation_explanation:["1. The cumulative impact of the reduced separation interval and expanded targeting scope in the Learning You're Creating results in a less restrictive operational workflow compared to the Existing learning.","2. The Behavior from Learning You're Creating shortens the mandatory ad separation duration, while the Conditions from Learning You're Creating broadens the targeting scope to include additional advertisers not present in the Existing learning."],evaluation_outputs:{name:"labelling_criteria",output_value:"25% Conflict",metadata:{label_color:"#B91C1C"}},cognitive_decisioning:{decisioning_factors:["1. The Behavior from Learning You're Creating defines a 10-minute separation threshold while the Behavior from Existing learning defines a 15-minute threshold, which the child evaluation classifies as a 0% Conflict","2. The Conditions from Learning You're Creating broadens the targeting scope to include additional advertisers, which the child evaluation classifies as a 50% Conflict","3. The final classification reflects the synthesis of these two findings, where the behavioral reduction and targeting expansion collectively result in a 25% Conflict."],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null}}},when_to_apply:{next:null,skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"independent",execution_mode:"per_node",criterion_set_id:"behavior_in_when_to_apply"},comparison_inputs:{existing_variant:{title:"When to apply",content:"When the advertiser is KYKY",additional_attributes:null},new_variant:{title:"When to apply",content:"When the advertiser is Audacy or KYKY",additional_attributes:null}},mapping_rationale:null,evaluation_result:{deviation_title:"Targeting scope expanded",deviation_explanation:["1. The 'When to apply' condition from the Variant you are creating broadens the targeting scope by including an additional advertiser, Audacy, which is absent in the 'When to apply' condition from the Existing variant.","2. The Variant you are creating lacks the restrictive targeting logic present in the Existing variant, as it permits application for both Audacy and KYKY rather than limiting it solely to KYKY."],evaluation_outputs:{name:"labelling_criteria",output_value:"50% Conflict",metadata:{label_color:"#B91C1C"}},cognitive_decisioning:{decisioning_factors:["1. The 'When to apply' condition from the Variant you are creating includes 'Audacy or KYKY', whereas the 'When to apply' condition from the Existing variant is restricted to 'KYKY'.","2. Because the Variant you are creating includes the advertiser from the Existing variant but adds an additional one, there is a partial overlap in targeting logic, justifying a 50% Conflict classification as per the criteria."],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null},deviations:{0:{existing_variant:"When the advertiser is KYKY",new_variant:"When the advertiser is Audacy or KYKY",deviation_summary:""}}}},when_not_to_apply:{next:null,skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"independent",execution_mode:"per_node",criterion_set_id:"behavior_in_when_not_to_apply"},comparison_inputs:{existing_variant:{title:"When NOT to apply",content:"No Exemptions",additional_attributes:null},new_variant:{title:"When NOT to apply",content:"No Exemptions",additional_attributes:null}},mapping_rationale:null,evaluation_result:{deviation_title:"No Exclusion Conditions",deviation_explanation:["1. The 'When NOT to apply' section from Variant you are creating defines no exclusion conditions, which aligns with the operational standard of the 'When NOT to apply' section from Existing variant.","2. Both variants lack specific exclusion logic, resulting in an N/A classification as per the evaluation criteria."],evaluation_outputs:{name:"labelling_criteria",output_value:"N/A"},cognitive_decisioning:{decisioning_factors:["1. The 'When NOT to apply' section from Variant you are creating explicitly states 'No Exemptions'","2. The 'When NOT to apply' section from Existing variant also states 'No Exemptions'","3. Since neither variant defines active exclusion conditions, the criteria mandate an N/A result"],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null},deviations:{}}}},documents:{existing_variant:{role:"reference",title:"Existing variant | tier1",metadata:{file_name:null},mime_type:null,source_uri:null},new_variant:{role:"source",title:"Variant you are creating | tier1",metadata:{file_name:null},mime_type:null,source_uri:null}},base_root_id:"overall_comparison",input_index_map:{0:"new_variant",1:"existing_variant"},evaluation_criteria:{"criteria-uuid1":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the overall behavior of both learnings. Always assign the output_label as 'Conflict'. Use 100% Conflict when both learnings express exactly the same behavior and meaning. Use 50% Conflict when the learnings partially overlap in behavior, scope, or meaning. Use 0% Conflict when the learnings represent different behaviors with no meaningful overlap. Intermediate percentages may be used to represent the degree of overlap between 0% and 100%.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"default_criteria"},"criteria-uuid2":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare only the rule-defining properties that determine the behavior of the learning, such as thresholds, limits, numerical values, conditions, or any property that directly governs execution of the rule. Always assign the output_label as 'Conflict'. If all rule-defining properties match exactly, assign 100% Conflict. If any rule-defining property differs, assign 0% Conflict. No intermediate percentages should be used for this comparison. The evaluation should focus exclusively on rule-defining properties and not on general semantic similarity.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"behaviour_in_learning_description"},"criteria-uuid3":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the 'When to apply' conditions. Always assign the output_label as 'Conflict'. Use 100% Conflict when all conditions, entities, entity types, and logical relationships match exactly. Use 50% Conflict when there is partial overlap between the conditions. Use 0% Conflict when the conditions are completely different or have no meaningful overlap. If one condition is global in scope and the other is specific in scope, the result must be treated as 0% Conflict. Intermediate percentages may be used to represent the degree of overlap between 0% and 100%.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"behavior_in_when_to_apply"},"criteria-uuid4":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the 'When NOT to apply' conditions. Always assign the output_label as 'Conflict'. Use 100% Conflict when all exclusion conditions, entities, entity types, and logical relationships match exactly. Use 50% Conflict when there is partial overlap between exclusion conditions. Use 0% Conflict when exclusion conditions are completely different or have no meaningful overlap. Intermediate percentages may be used to represent the degree of overlap between 0% and 100%.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"},{metadata:{label_color:"#475569"},description:"Assign the output_label as 'N/A' when exclusion conditions are not defined in one or both learnings. When N/A is assigned, no output_percentage should be provided. The result should contain only the label 'N/A'.",output_label:"N/A",output_template:"{output_percentage} {output_label}",output_percentage:""}]},criteria_set_id:"behavior_in_when_not_to_apply"},"criteria-uuid5":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the combined conditions from both 'When to apply' and 'When NOT to apply'. Always assign the output_label as 'Conflict'. The final output_percentage must be calculated using weighted averaging where behavior_in_when_to_apply contributes 80% (0.8 weightage) and behavior_in_when_not_to_apply contributes 20% (0.2 weightage). If When NOT to apply is labelled as N/A, the comparison should rely entirely on the When to apply result. The percentage should not be independently determined and must be derived from the weighted child comparison results.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"conditions_compare"},"criteria-uuid6":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the overall learning behavior by combining the learning behavior description comparison and the conditions comparison. Always assign the output_label as 'Conflict'. The final output_percentage must be calculated using weighted averaging where behaviour_in_learning_description contributes 50% (0.5 weightage) and conditions_compare contributes 50% (0.5 weightage). The percentage should not be determined independently and must be derived from the child comparison results. Exact matches in both components should result in 100% Conflict, while complete differences in both components should result in 0% Conflict. All intermediate values should be derived from the weighted average of the two components.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"behavior_compare"}},final_score:"59% Conflict",rule_id:"2873566e-9232-4c3a-bfc9-17f1483162e2"}}],[{intent_output:{nodes:{title:{next:null,skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"independent",execution_mode:"per_node",criterion_set_id:"intent_in_learning_title"},comparison_inputs:{existing_variant:{title:"Title",content:"Order Separation",additional_attributes:null},new_variant:{title:"Title",content:"Order Separation",additional_attributes:null}},mapping_rationale:null,evaluation_result:{deviation_title:"No Deviation Found",deviation_explanation:["1. Both base section and compare section are semantically identical — no deviations were found."],evaluation_outputs:{name:"labelling_criteria",output_value:"100% Conflict",metadata:{label_color:"#B91C1C"}},cognitive_decisioning:{decisioning_factors:["1. Both base section and compare section are exactly the same — no semantic deviation exists between them."],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null},deviations:{}}},learning_description_intent:{next:null,skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"independent",execution_mode:"per_node",criterion_set_id:"intent_in_learning_description"},comparison_inputs:{existing_variant:{title:"Description",content:"Maintains a minimum separation of 5 minutes between ads with the same order number.",additional_attributes:null},new_variant:{title:"Description",content:"Maintains a minimum separation of 10 minutes between ads with the same order number.",additional_attributes:null}},mapping_rationale:null,evaluation_result:{deviation_title:"Separation Duration Reduced",deviation_explanation:["1. The Description from Variant you are creating reduces the required separation interval between ads with the same order number to 5 minutes, which is a more permissive operational threshold than the 10-minute standard in the Existing variant.","2. The Variant you are creating lacks the stricter 10-minute separation enforcement required by the Existing variant, thereby narrowing the buffer period for ad delivery.","3. This change in the threshold directly alters the behavioral enforcement of the rule, resulting in a deviation from the established operational standard."],evaluation_outputs:{name:"labelling_criteria",output_value:"90% Conflict",metadata:{label_color:"#B91C1C"}},cognitive_decisioning:{decisioning_factors:["1. The Description from Variant you are creating specifies a 5-minute separation interval while the Description from Existing variant mandates a 10-minute interval","2. Both entities share the same underlying intent of maintaining separation between ads with the same order number, but the rule-defining numerical threshold differs","3. Per the criteria, when intent matches but rule-defining properties differ, the classification must be exactly 90% Conflict"],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null},deviations:{0:{existing_variant:"5 minutes",new_variant:"10 minutes",deviation_summary:""}}}},overall_comparison:{next:{0:"title",1:"learning_description_intent"},skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"aggregated",execution_mode:"per_node",criterion_set_id:"intent_overall_compare"},comparison_inputs:{existing_variant:{title:"Existing learning",content:null,additional_attributes:null},new_variant:{title:"Learning You 're Creating",content:null,additional_attributes:null}},mapping_rationale:null,decision_scope_title:"Is the learning's intent matching?",decision_scope_description:"Checking if the intent of the learning you are creating is conflicting with the the existing learning.",evaluation_result:{deviation_title:"Separation Duration Reduced",deviation_explanation:["1. The Description from Variant you are creating reduces the required separation interval between ads with the same order number to 5 minutes, which is a more permissive operational threshold than the 10-minute standard in the Existing variant.","2. The Description from Variant you are creating lacks the stricter 10-minute separation enforcement required by the Existing variant, thereby narrowing the buffer period for ad delivery.","3. This change in the threshold directly alters the behavioral enforcement of the rule, resulting in a deviation from the established operational standard."],evaluation_outputs:{name:"labelling_criteria",output_value:"92% Conflict",metadata:{label_color:"#B91C1C"}},cognitive_decisioning:{decisioning_factors:["1. The Title from Variant you are creating and the Title from Existing variant are semantically identical, confirming full alignment in the learning's primary identifier ([Title from Variant you are","2. The Description from Variant you are creating introduces a 5-minute separation threshold, whereas the Description from Existing variant mandates a 10-minute interval, representing a clear divergence in operational enforcement ([Description from Variant you are [Description from Existing","3. The aggregated evaluation reflects the high degree of alignment in the learning title alongside the specific numerical divergence in the description, resulting in the final conflict classification."],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null}}}},documents:{existing_variant:{role:"reference",title:"Existing variant | tier1",metadata:{file_name:null},mime_type:null,source_uri:null},new_variant:{role:"source",title:"Variant you are creating | tier1",metadata:{file_name:null},mime_type:null,source_uri:null}},base_root_id:"overall_comparison",input_index_map:{0:"new_variant",1:"existing_variant"},evaluation_criteria:{"criteria-uuid1":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the overall intent by combining the results from learning title comparison and learning description comparison. Always assign the output_label as 'Conflict'. The final output_percentage must be calculated using weighted averaging where intent_in_learning_title contributes 20% (0.2 weightage) and intent_in_learning_description contributes 80% (0.8 weightage). The percentage should not be determined independently and must be derived from the child comparison results. A higher weighted score indicates greater intent overlap, while a lower weighted score indicates less overlap. Use the computed weighted average as the final Conflict percentage.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"intent_overall_compare"},"criteria-uuid2":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the learning titles semantically. Always assign the output_label as 'Conflict'. Use 100% Conflict when both titles convey exactly the same meaning and intent. Use 50% Conflict when the titles partially overlap in meaning but are not exact matches. Use 0% Conflict when the titles represent different meanings with no meaningful overlap. Intermediate percentages may be used to represent the degree of overlap between 0% and 100%.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"intent_in_learning_title"},"criteria-uuid3":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the tiers. Always assign the output_label as 'Conflict'. Use 100% Conflict when the tiers are exactly the same. Use 50% Conflict when both are of different tiers. Use 0% Conflict when the tiers are completely different.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"match_in_tier"},"criteria-uuid4":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the learning descriptions primarily based on rule-defining properties such as thresholds, limits, numerical values, conditions, or any property that directly defines the behavior of the rule. Always assign the output_label as 'Conflict'. If both learnings contain rule-defining properties and all such properties match exactly, assign 100% Conflict. If both learnings represent the same underlying intent but one or more rule-defining properties differ, assign exactly 90% Conflict. If no rule-defining properties exist in either learning, determine the Conflict percentage based on semantic similarity of the descriptions. Intermediate percentages may be used only when evaluating semantic similarity in cases where rule-defining properties do not exist.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"intent_in_learning_description"}}}},{behaviour_output:{nodes:{learning_description_behavior:{next:null,skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"independent",execution_mode:"per_node",criterion_set_id:"behaviour_in_learning_description"},comparison_inputs:{existing_variant:{title:"Behavior",content:"Maintains a minimum separation of 5 minutes between ads with the same order number.",additional_attributes:null},new_variant:{title:"Behavior",content:"Maintains a minimum separation of 10 minutes between ads with the same order number.",additional_attributes:null}},mapping_rationale:null,evaluation_result:{deviation_title:"Separation Duration Reduced",deviation_explanation:["1. The Variant you are creating enforces a 10-minute separation interval, which broadens the separation enforcement compared to the Existing variant's 5-minute requirement.","2. The Variant you are creating lacks the 5-minute threshold defined in the Existing variant, resulting in a more restrictive operational behavior."],evaluation_outputs:{name:"labelling_criteria",output_value:"0% Conflict"},cognitive_decisioning:{decisioning_factors:["1. The Behavior from Variant you are creating specifies a 10-minute separation interval whereas the Behavior from Existing variant specifies a 5-minute interval","2. As per the criteria, any difference in rule-defining properties such as numerical thresholds results in 0% Conflict"],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null},deviations:{0:{existing_variant:"5 minutes",new_variant:"10 minutes",deviation_summary:""}}}},"conditions-uuid12":{next:{0:"when_to_apply",1:"when_not_to_apply"},skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"aggregated",execution_mode:"per_node",criterion_set_id:"conditions_compare"},comparison_inputs:{existing_variant:{title:"Conditions",content:null,additional_attributes:null},new_variant:{title:"Conditions",content:null,additional_attributes:null}},mapping_rationale:null,evaluation_result:{deviation_title:"Targeting scope expanded",deviation_explanation:["1. The 'When to apply' condition from Variant you are creating broadens the targeting scope by including an additional advertiser, KYKY, which is absent in the 'When to apply' condition from Existing variant, potentially increasing the volume of applicable learning instances.","2. The 'When to apply' condition from Variant you are creating introduces a disjunctive logical relationship that is not present in the 'When to apply' condition from Existing variant.","3. The 'When NOT to apply' section from Variant you are creating lacks any exclusion logic, maintaining consistency with the 'When NOT to apply' section from Existing variant."],evaluation_outputs:{name:"labelling_criteria",output_value:"50% Conflict",metadata:{label_color:"#B91C1C"}},cognitive_decisioning:{decisioning_factors:["1. The 'When to apply' condition from Variant you are creating includes 'Audacy or KYKY' whereas the 'When to apply' condition from Existing variant is restricted to 'Audacy'","2. The 'When NOT to apply' section from Variant you are creating and the 'When NOT to apply' section from Existing variant both specify 'No Exemptions' resulting in an N/A classification for that component.","3. As the 'When NOT to apply' component is N/A, the final aggregated classification relies entirely on the 'When to apply' result, which identifies a partial targeting overlap"],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null}}},overall_comparison:{next:{0:"learning_description_behavior",1:"conditions-uuid12"},skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"aggregated",execution_mode:"per_node",criterion_set_id:"behavior_compare"},comparison_inputs:{existing_variant:{title:"Existing learning",content:null,additional_attributes:null},new_variant:{title:"Learning You 're Creating",content:null,additional_attributes:null}},mapping_rationale:null,decision_scope_title:"Is the learning 's behaviour matching?",decision_scope_description:"Checking if the behaviour of the learning you are trying to create is conflicting with the existing learning",evaluation_result:{deviation_title:"Operational Scope Divergence",deviation_explanation:["1. The cumulative impact of the behavioral and conditional differences in the Variant you are creating results in a more restrictive separation interval and a broader targeting scope compared to the Existing variant.","2. The Behavior from Variant you are creating increases the separation interval to 10 minutes, whereas the Existing variant requires only 5 minutes, creating a more restrictive operational constraint.","3. The Conditions from Variant you are creating expands the targeting scope by including an additional advertiser, KYKY, which is absent in the Existing variant, thereby altering the applicability of the learning."],evaluation_outputs:{name:"labelling_criteria",output_value:"25% Conflict",metadata:{label_color:"#B91C1C"}},cognitive_decisioning:{decisioning_factors:["1. The Behavior evaluation from Variant you are creating identifies a numerical threshold difference in separation intervals, which is classified as a complete divergence","2. The Conditions evaluation from Variant you are creating identifies a partial targeting overlap due to the inclusion of an additional advertiser, resulting in a moderate conflict classification","3. The final classification reflects the synthesis of the behavioral divergence and the conditional expansion, balancing the restrictive operational change with the broader targeting scope defined in the Variant you are creating."],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null}}},when_to_apply:{next:null,skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"independent",execution_mode:"per_node",criterion_set_id:"behavior_in_when_to_apply"},comparison_inputs:{existing_variant:{title:"When to apply",content:"When the advertiser is Audacy",additional_attributes:null},new_variant:{title:"When to apply",content:"When the advertiser is Audacy or KYKY",additional_attributes:null}},mapping_rationale:null,evaluation_result:{deviation_title:"Targeting scope expanded",deviation_explanation:["1. The 'When to apply' condition from Variant you are creating broadens the targeting scope by including an additional advertiser, KYKY, which is absent in the 'When to apply' condition from Existing variant.","2. The 'When to apply' condition from Variant you are creating introduces a disjunctive logical relationship that is not present in the 'When to apply' condition from Existing variant."],evaluation_outputs:{name:"labelling_criteria",output_value:"50% Conflict",metadata:{label_color:"#B91C1C"}},cognitive_decisioning:{decisioning_factors:["1. The 'When to apply' condition from Variant you are creating includes 'Audacy or KYKY', whereas the 'When to apply' condition from Existing variant is restricted to 'Audacy'.","2. The inclusion of an additional entity in the Variant you are creating creates a partial overlap in targeting logic, justifying a 50% Conflict classification as per the criteria."],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null},deviations:{0:{existing_variant:"Audacy",new_variant:"Audacy or KYKY",deviation_summary:""}}}},when_not_to_apply:{next:null,skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"independent",execution_mode:"per_node",criterion_set_id:"behavior_in_when_not_to_apply"},comparison_inputs:{existing_variant:{title:"When NOT to apply",content:"No Exemptions",additional_attributes:null},new_variant:{title:"When NOT to apply",content:"No Exemptions",additional_attributes:null}},mapping_rationale:null,evaluation_result:{deviation_title:"No Exclusion Conditions",deviation_explanation:["1. The 'When NOT to apply' section from Variant you are creating defines no exclusion conditions, which aligns with the operational standard of the 'When NOT to apply' section from Existing variant.","2. Both variants lack specific exclusion logic, resulting in an N/A classification as per the evaluation criteria."],evaluation_outputs:{name:"labelling_criteria",output_value:"N/A"},cognitive_decisioning:{decisioning_factors:["1. The 'When NOT to apply' section from Variant you are creating explicitly states 'No Exemptions'","2. The 'When NOT to apply' section from Existing variant also states 'No Exemptions'","3. Since neither variant defines active exclusion conditions, the criteria mandate an N/A result"],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null},deviations:{}}}},documents:{existing_variant:{role:"reference",title:"Existing variant | tier1",metadata:{file_name:null},mime_type:null,source_uri:null},new_variant:{role:"source",title:"Variant you are creating | tier1",metadata:{file_name:null},mime_type:null,source_uri:null}},base_root_id:"overall_comparison",input_index_map:{0:"new_variant",1:"existing_variant"},evaluation_criteria:{"criteria-uuid1":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the overall behavior of both learnings. Always assign the output_label as 'Conflict'. Use 100% Conflict when both learnings express exactly the same behavior and meaning. Use 50% Conflict when the learnings partially overlap in behavior, scope, or meaning. Use 0% Conflict when the learnings represent different behaviors with no meaningful overlap. Intermediate percentages may be used to represent the degree of overlap between 0% and 100%.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"default_criteria"},"criteria-uuid2":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare only the rule-defining properties that determine the behavior of the learning, such as thresholds, limits, numerical values, conditions, or any property that directly governs execution of the rule. Always assign the output_label as 'Conflict'. If all rule-defining properties match exactly, assign 100% Conflict. If any rule-defining property differs, assign 0% Conflict. No intermediate percentages should be used for this comparison. The evaluation should focus exclusively on rule-defining properties and not on general semantic similarity.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"behaviour_in_learning_description"},"criteria-uuid3":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the 'When to apply' conditions. Always assign the output_label as 'Conflict'. Use 100% Conflict when all conditions, entities, entity types, and logical relationships match exactly. Use 50% Conflict when there is partial overlap between the conditions. Use 0% Conflict when the conditions are completely different or have no meaningful overlap. If one condition is global in scope and the other is specific in scope, the result must be treated as 0% Conflict. Intermediate percentages may be used to represent the degree of overlap between 0% and 100%.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"behavior_in_when_to_apply"},"criteria-uuid4":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the 'When NOT to apply' conditions. Always assign the output_label as 'Conflict'. Use 100% Conflict when all exclusion conditions, entities, entity types, and logical relationships match exactly. Use 50% Conflict when there is partial overlap between exclusion conditions. Use 0% Conflict when exclusion conditions are completely different or have no meaningful overlap. Intermediate percentages may be used to represent the degree of overlap between 0% and 100%.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"},{metadata:{label_color:"#475569"},description:"Assign the output_label as 'N/A' when exclusion conditions are not defined in one or both learnings. When N/A is assigned, no output_percentage should be provided. The result should contain only the label 'N/A'.",output_label:"N/A",output_template:"{output_percentage} {output_label}",output_percentage:""}]},criteria_set_id:"behavior_in_when_not_to_apply"},"criteria-uuid5":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the combined conditions from both 'When to apply' and 'When NOT to apply'. Always assign the output_label as 'Conflict'. The final output_percentage must be calculated using weighted averaging where behavior_in_when_to_apply contributes 80% (0.8 weightage) and behavior_in_when_not_to_apply contributes 20% (0.2 weightage). If When NOT to apply is labelled as N/A, the comparison should rely entirely on the When to apply result. The percentage should not be independently determined and must be derived from the weighted child comparison results.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"conditions_compare"},"criteria-uuid6":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the overall learning behavior by combining the learning behavior description comparison and the conditions comparison. Always assign the output_label as 'Conflict'. The final output_percentage must be calculated using weighted averaging where behaviour_in_learning_description contributes 50% (0.5 weightage) and conditions_compare contributes 50% (0.5 weightage). The percentage should not be determined independently and must be derived from the child comparison results. Exact matches in both components should result in 100% Conflict, while complete differences in both components should result in 0% Conflict. All intermediate values should be derived from the weighted average of the two components.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"behavior_compare"}},final_score:"59% Conflict",rule_id:"5edd213f-4621-4c25-941d-d6a0532705a7"}}]],exports.getVariantInfo=function(t){return e.__awaiter(void 0,void 0,void 0,function(){var i;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,n.default.post("https://devllmstudio.creativeworkspace.ai/instant_learning/give-variant-info",t)];case 1:return[2,e.sent().data];case 2:throw i=e.sent(),console.error("Error getting variant info:",i),i;case 3:return[2]}})})};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib");require("react/jsx-runtime"),require("@mui/material"),require("lucide-react"),require("react"),require("uuid"),require("@mui/material/Tooltip"),require("react-markdown"),require("rehype-raw");var t=require("axios");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("@e-llm-studio/streaming-response"),require("@e-llm-studio/watch-me-work"),require("./_components/ChatComponents/ChatHeader.js"),require("remark-gfm"),require("./_components/MarkdownComponents/MarkdownElements.js"),require("./_components/CitationLink.js"),require("@e-llm-studio/citation"),require("./_components/templates/TemplatesMap/templatesMap.js"),require("./store/CitationsContext.js"),require("@viswa-test/test-citation");var n=i(t);exports.dummyDat=[[{intent_output:{nodes:{title:{next:null,skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"independent",execution_mode:"per_node",criterion_set_id:"intent_in_learning_title"},comparison_inputs:{existing_variant:{title:"Title",content:"Order Separation",additional_attributes:null},new_variant:{title:"Title",content:"Order Separation",additional_attributes:null}},mapping_rationale:null,evaluation_result:{deviation_title:"No Deviation Found",deviation_explanation:["1. Both base section and compare section are semantically identical — no deviations were found."],evaluation_outputs:{name:"labelling_criteria",output_value:"100% Conflict",metadata:{label_color:"#B91C1C"}},cognitive_decisioning:{decisioning_factors:["1. Both base section and compare section are exactly the same — no semantic deviation exists between them."],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null},deviations:{}}},learning_description_intent:{next:null,skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"independent",execution_mode:"per_node",criterion_set_id:"intent_in_learning_description"},comparison_inputs:{existing_variant:{title:"Description",content:"Maintains a minimum separation of 15 minutes between ads with the same order number.",additional_attributes:null},new_variant:{title:"Description",content:"Maintains a minimum separation of 10 minutes between ads with the same order number.",additional_attributes:null}},mapping_rationale:null,evaluation_result:{deviation_title:"Separation Interval Reduced",deviation_explanation:["1. The Description from Variant you are creating reduces the required separation interval between ads with the same order number to 10 minutes, which is a less restrictive enforcement than the 15-minute standard in the Existing variant.","2. The Variant you are creating lacks the 15-minute minimum separation threshold required by the Existing variant, thereby narrowing the buffer period between identical order ads."],evaluation_outputs:{name:"labelling_criteria",output_value:"90% Conflict",metadata:{label_color:"#B91C1C"}},cognitive_decisioning:{decisioning_factors:["1. The Description from Variant you are creating specifies a 10-minute separation interval while the Description from Existing variant mandates a 15-minute interval","2. Both entities share the same underlying intent of maintaining separation between ads with the same order number, but the rule-defining numerical threshold differs, triggering the 90% Conflict criteria"],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null},deviations:{0:{existing_variant:"15 minutes",new_variant:"10 minutes",deviation_summary:""}}}},overall_comparison:{next:{0:"title",1:"learning_description_intent"},skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"aggregated",execution_mode:"per_node",criterion_set_id:"intent_overall_compare"},comparison_inputs:{existing_variant:{title:"Existing learning",content:null,additional_attributes:null},new_variant:{title:"Learning You 're Creating",content:null,additional_attributes:null}},mapping_rationale:null,decision_scope_title:"Is the learning's intent matching?",decision_scope_description:"Checking if the intent of the learning you are creating is conflicting with the the existing learning.",evaluation_result:{deviation_title:"Separation Interval Reduced",deviation_explanation:["1. The reduction of the separation interval in the Description from Variant you are creating to 10 minutes creates a less restrictive enforcement compared to the 15-minute standard in the Description from Existing variant, potentially increasing ad frequency.","2. The Description from Variant you are creating lacks the 15-minute minimum separation threshold mandated by the Description from Existing variant, thereby narrowing the buffer period between ads with the same order number."],evaluation_outputs:{name:"labelling_criteria",output_value:"1% Conflict",metadata:{label_color:"#B91C1C"}},cognitive_decisioning:{decisioning_factors:["1. The Title from Variant you are creating and the Title from Existing variant are semantically identical ([Title from Variant you are contributing to the overall intent alignment.","2. The Description from Variant you are creating specifies a 10-minute interval while the Description from Existing variant mandates a 15-minute interval ([Description from Variant you are which represents the primary behavioral divergence.","3. The aggregated evaluation reflects the high degree of alignment in the title and the specific numerical threshold difference in the description, resulting in the final conflict classification ([Description from Variant you are"],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null}}}},documents:{existing_variant:{role:"reference",title:"Existing variant | tier1",metadata:{file_name:null},mime_type:null,source_uri:null},new_variant:{role:"source",title:"Variant you are creating | tier1",metadata:{file_name:null},mime_type:null,source_uri:null}},base_root_id:"overall_comparison",input_index_map:{0:"new_variant",1:"existing_variant"},evaluation_criteria:{"criteria-uuid1":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the overall intent by combining the results from learning title comparison and learning description comparison. Always assign the output_label as 'Conflict'. The final output_percentage must be calculated using weighted averaging where intent_in_learning_title contributes 20% (0.2 weightage) and intent_in_learning_description contributes 80% (0.8 weightage). The percentage should not be determined independently and must be derived from the child comparison results. A higher weighted score indicates greater intent overlap, while a lower weighted score indicates less overlap. Use the computed weighted average as the final Conflict percentage.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"intent_overall_compare"},"criteria-uuid2":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the learning titles semantically. Always assign the output_label as 'Conflict'. Use 100% Conflict when both titles convey exactly the same meaning and intent. Use 50% Conflict when the titles partially overlap in meaning but are not exact matches. Use 0% Conflict when the titles represent different meanings with no meaningful overlap. Intermediate percentages may be used to represent the degree of overlap between 0% and 100%.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"intent_in_learning_title"},"criteria-uuid3":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the tiers. Always assign the output_label as 'Conflict'. Use 100% Conflict when the tiers are exactly the same. Use 50% Conflict when both are of different tiers. Use 0% Conflict when the tiers are completely different.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"match_in_tier"},"criteria-uuid4":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the learning descriptions primarily based on rule-defining properties such as thresholds, limits, numerical values, conditions, or any property that directly defines the behavior of the rule. Always assign the output_label as 'Conflict'. If both learnings contain rule-defining properties and all such properties match exactly, assign 100% Conflict. If both learnings represent the same underlying intent but one or more rule-defining properties differ, assign exactly 90% Conflict. If no rule-defining properties exist in either learning, determine the Conflict percentage based on semantic similarity of the descriptions. Intermediate percentages may be used only when evaluating semantic similarity in cases where rule-defining properties do not exist.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"intent_in_learning_description"}}}},{behaviour_output:{nodes:{learning_description_behavior:{next:null,skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"independent",execution_mode:"per_node",criterion_set_id:"behaviour_in_learning_description"},comparison_inputs:{existing_variant:{title:"Behavior",content:"Maintains a minimum separation of 15 minutes between ads with the same order number.",additional_attributes:null},new_variant:{title:"Behavior",content:"Maintains a minimum separation of 10 minutes between ads with the same order number.",additional_attributes:null}},mapping_rationale:null,evaluation_result:{deviation_title:"Separation duration reduced",deviation_explanation:["1. The Behavior from Variant you are creating reduces the mandatory separation interval between ads with the same order number, which weakens the enforcement standard compared to the Existing variant.","2. The Variant you are creating specifies a 10-minute separation threshold, whereas the Existing variant requires a more restrictive 15-minute separation threshold."],evaluation_outputs:{name:"labelling_criteria",output_value:"0% Conflict"},cognitive_decisioning:{decisioning_factors:["1. The Behavior from Variant you are creating defines a 10-minute separation threshold while the Behavior from Existing variant defines a 15-minute threshold","2. As per the criteria, any difference in rule-defining properties such as numerical thresholds results in 0% Conflict"],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null},deviations:{0:{existing_variant:"15 minutes",new_variant:"10 minutes",deviation_summary:""}}}},"conditions-uuid12":{next:{0:"when_to_apply",1:"when_not_to_apply"},skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"aggregated",execution_mode:"per_node",criterion_set_id:"conditions_compare"},comparison_inputs:{existing_variant:{title:"Conditions",content:null,additional_attributes:null},new_variant:{title:"Conditions",content:null,additional_attributes:null}},mapping_rationale:null,evaluation_result:{deviation_title:"Targeting scope expanded",deviation_explanation:["1. The expanded targeting scope in the Conditions from Variant you are creating increases the operational reach by including an additional advertiser, Audacy, which is not present in the Conditions from Existing variant.","2. The Conditions from Variant you are creating relaxes the restrictive targeting logic found in the Conditions from Existing variant by permitting application for both Audacy and KYKY instead of limiting it solely to KYKY."],evaluation_outputs:{name:"labelling_criteria",output_value:"50% Conflict",metadata:{label_color:"#B91C1C"}},cognitive_decisioning:{decisioning_factors:["1. The 'When to apply' evaluation confirms that the Conditions from Variant you are creating broadens the targeting scope compared to the Conditions from Existing variant, resulting in a 50% Conflict classification.","2. The 'When NOT to apply' evaluation indicates that both the Conditions from Variant you are creating and the Conditions from Existing variant define no exemptions, leading to an N/A classification that defaults the aggregated result to the 'When to apply' outcome."],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null}}},overall_comparison:{next:{0:"learning_description_behavior",1:"conditions-uuid12"},skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"aggregated",execution_mode:"per_node",criterion_set_id:"behavior_compare"},comparison_inputs:{existing_variant:{title:"Existing learning",content:null,additional_attributes:null},new_variant:{title:"Learning You 're Creating",content:null,additional_attributes:null}},mapping_rationale:null,decision_scope_title:"Is the learning 's behaviour matching?",decision_scope_description:"Checking if the behaviour of the learning you are trying to create is conflicting with the existing learning",evaluation_result:{deviation_title:"Operational scope altered",deviation_explanation:["1. The cumulative impact of the reduced separation interval and expanded targeting scope in the Learning You're Creating results in a less restrictive operational workflow compared to the Existing learning.","2. The Behavior from Learning You're Creating shortens the mandatory ad separation duration, while the Conditions from Learning You're Creating broadens the targeting scope to include additional advertisers not present in the Existing learning."],evaluation_outputs:{name:"labelling_criteria",output_value:"25% Conflict",metadata:{label_color:"#B91C1C"}},cognitive_decisioning:{decisioning_factors:["1. The Behavior from Learning You're Creating defines a 10-minute separation threshold while the Behavior from Existing learning defines a 15-minute threshold, which the child evaluation classifies as a 0% Conflict","2. The Conditions from Learning You're Creating broadens the targeting scope to include additional advertisers, which the child evaluation classifies as a 50% Conflict","3. The final classification reflects the synthesis of these two findings, where the behavioral reduction and targeting expansion collectively result in a 25% Conflict."],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null}}},when_to_apply:{next:null,skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"independent",execution_mode:"per_node",criterion_set_id:"behavior_in_when_to_apply"},comparison_inputs:{existing_variant:{title:"When to apply",content:"When the advertiser is KYKY",additional_attributes:null},new_variant:{title:"When to apply",content:"When the advertiser is Audacy or KYKY",additional_attributes:null}},mapping_rationale:null,evaluation_result:{deviation_title:"Targeting scope expanded",deviation_explanation:["1. The 'When to apply' condition from the Variant you are creating broadens the targeting scope by including an additional advertiser, Audacy, which is absent in the 'When to apply' condition from the Existing variant.","2. The Variant you are creating lacks the restrictive targeting logic present in the Existing variant, as it permits application for both Audacy and KYKY rather than limiting it solely to KYKY."],evaluation_outputs:{name:"labelling_criteria",output_value:"50% Conflict",metadata:{label_color:"#B91C1C"}},cognitive_decisioning:{decisioning_factors:["1. The 'When to apply' condition from the Variant you are creating includes 'Audacy or KYKY', whereas the 'When to apply' condition from the Existing variant is restricted to 'KYKY'.","2. Because the Variant you are creating includes the advertiser from the Existing variant but adds an additional one, there is a partial overlap in targeting logic, justifying a 50% Conflict classification as per the criteria."],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null},deviations:{0:{existing_variant:"When the advertiser is KYKY",new_variant:"When the advertiser is Audacy or KYKY",deviation_summary:""}}}},when_not_to_apply:{next:null,skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"independent",execution_mode:"per_node",criterion_set_id:"behavior_in_when_not_to_apply"},comparison_inputs:{existing_variant:{title:"When NOT to apply",content:"No Exemptions",additional_attributes:null},new_variant:{title:"When NOT to apply",content:"No Exemptions",additional_attributes:null}},mapping_rationale:null,evaluation_result:{deviation_title:"No Exclusion Conditions",deviation_explanation:["1. The 'When NOT to apply' section from Variant you are creating defines no exclusion conditions, which aligns with the operational standard of the 'When NOT to apply' section from Existing variant.","2. Both variants lack specific exclusion logic, resulting in an N/A classification as per the evaluation criteria."],evaluation_outputs:{name:"labelling_criteria",output_value:"N/A"},cognitive_decisioning:{decisioning_factors:["1. The 'When NOT to apply' section from Variant you are creating explicitly states 'No Exemptions'","2. The 'When NOT to apply' section from Existing variant also states 'No Exemptions'","3. Since neither variant defines active exclusion conditions, the criteria mandate an N/A result"],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null},deviations:{}}}},documents:{existing_variant:{role:"reference",title:"Existing variant | tier1",metadata:{file_name:null},mime_type:null,source_uri:null},new_variant:{role:"source",title:"Variant you are creating | tier1",metadata:{file_name:null},mime_type:null,source_uri:null}},base_root_id:"overall_comparison",input_index_map:{0:"new_variant",1:"existing_variant"},evaluation_criteria:{"criteria-uuid1":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the overall behavior of both learnings. Always assign the output_label as 'Conflict'. Use 100% Conflict when both learnings express exactly the same behavior and meaning. Use 50% Conflict when the learnings partially overlap in behavior, scope, or meaning. Use 0% Conflict when the learnings represent different behaviors with no meaningful overlap. Intermediate percentages may be used to represent the degree of overlap between 0% and 100%.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"default_criteria"},"criteria-uuid2":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare only the rule-defining properties that determine the behavior of the learning, such as thresholds, limits, numerical values, conditions, or any property that directly governs execution of the rule. Always assign the output_label as 'Conflict'. If all rule-defining properties match exactly, assign 100% Conflict. If any rule-defining property differs, assign 0% Conflict. No intermediate percentages should be used for this comparison. The evaluation should focus exclusively on rule-defining properties and not on general semantic similarity.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"behaviour_in_learning_description"},"criteria-uuid3":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the 'When to apply' conditions. Always assign the output_label as 'Conflict'. Use 100% Conflict when all conditions, entities, entity types, and logical relationships match exactly. Use 50% Conflict when there is partial overlap between the conditions. Use 0% Conflict when the conditions are completely different or have no meaningful overlap. If one condition is global in scope and the other is specific in scope, the result must be treated as 0% Conflict. Intermediate percentages may be used to represent the degree of overlap between 0% and 100%.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"behavior_in_when_to_apply"},"criteria-uuid4":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the 'When NOT to apply' conditions. Always assign the output_label as 'Conflict'. Use 100% Conflict when all exclusion conditions, entities, entity types, and logical relationships match exactly. Use 50% Conflict when there is partial overlap between exclusion conditions. Use 0% Conflict when exclusion conditions are completely different or have no meaningful overlap. Intermediate percentages may be used to represent the degree of overlap between 0% and 100%.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"},{metadata:{label_color:"#475569"},description:"Assign the output_label as 'N/A' when exclusion conditions are not defined in one or both learnings. When N/A is assigned, no output_percentage should be provided. The result should contain only the label 'N/A'.",output_label:"N/A",output_template:"{output_percentage} {output_label}",output_percentage:""}]},criteria_set_id:"behavior_in_when_not_to_apply"},"criteria-uuid5":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the combined conditions from both 'When to apply' and 'When NOT to apply'. Always assign the output_label as 'Conflict'. The final output_percentage must be calculated using weighted averaging where behavior_in_when_to_apply contributes 80% (0.8 weightage) and behavior_in_when_not_to_apply contributes 20% (0.2 weightage). If When NOT to apply is labelled as N/A, the comparison should rely entirely on the When to apply result. The percentage should not be independently determined and must be derived from the weighted child comparison results.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"conditions_compare"},"criteria-uuid6":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the overall learning behavior by combining the learning behavior description comparison and the conditions comparison. Always assign the output_label as 'Conflict'. The final output_percentage must be calculated using weighted averaging where behaviour_in_learning_description contributes 50% (0.5 weightage) and conditions_compare contributes 50% (0.5 weightage). The percentage should not be determined independently and must be derived from the child comparison results. Exact matches in both components should result in 100% Conflict, while complete differences in both components should result in 0% Conflict. All intermediate values should be derived from the weighted average of the two components.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"behavior_compare"}},final_score:"59% Conflict",rule_id:"2873566e-9232-4c3a-bfc9-17f1483162e2"}}],[{intent_output:{nodes:{title:{next:null,skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"independent",execution_mode:"per_node",criterion_set_id:"intent_in_learning_title"},comparison_inputs:{existing_variant:{title:"Title",content:"Order Separation",additional_attributes:null},new_variant:{title:"Title",content:"Order Separation",additional_attributes:null}},mapping_rationale:null,evaluation_result:{deviation_title:"No Deviation Found",deviation_explanation:["1. Both base section and compare section are semantically identical — no deviations were found."],evaluation_outputs:{name:"labelling_criteria",output_value:"100% Conflict",metadata:{label_color:"#B91C1C"}},cognitive_decisioning:{decisioning_factors:["1. Both base section and compare section are exactly the same — no semantic deviation exists between them."],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null},deviations:{}}},learning_description_intent:{next:null,skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"independent",execution_mode:"per_node",criterion_set_id:"intent_in_learning_description"},comparison_inputs:{existing_variant:{title:"Description",content:"Maintains a minimum separation of 5 minutes between ads with the same order number.",additional_attributes:null},new_variant:{title:"Description",content:"Maintains a minimum separation of 10 minutes between ads with the same order number.",additional_attributes:null}},mapping_rationale:null,evaluation_result:{deviation_title:"Separation Duration Reduced",deviation_explanation:["1. The Description from Variant you are creating reduces the required separation interval between ads with the same order number to 5 minutes, which is a more permissive operational threshold than the 10-minute standard in the Existing variant.","2. The Variant you are creating lacks the stricter 10-minute separation enforcement required by the Existing variant, thereby narrowing the buffer period for ad delivery.","3. This change in the threshold directly alters the behavioral enforcement of the rule, resulting in a deviation from the established operational standard."],evaluation_outputs:{name:"labelling_criteria",output_value:"90% Conflict",metadata:{label_color:"#B91C1C"}},cognitive_decisioning:{decisioning_factors:["1. The Description from Variant you are creating specifies a 5-minute separation interval while the Description from Existing variant mandates a 10-minute interval","2. Both entities share the same underlying intent of maintaining separation between ads with the same order number, but the rule-defining numerical threshold differs","3. Per the criteria, when intent matches but rule-defining properties differ, the classification must be exactly 90% Conflict"],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null},deviations:{0:{existing_variant:"5 minutes",new_variant:"10 minutes",deviation_summary:""}}}},overall_comparison:{next:{0:"title",1:"learning_description_intent"},skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"aggregated",execution_mode:"per_node",criterion_set_id:"intent_overall_compare"},comparison_inputs:{existing_variant:{title:"Existing learning",content:null,additional_attributes:null},new_variant:{title:"Learning You 're Creating",content:null,additional_attributes:null}},mapping_rationale:null,decision_scope_title:"Is the learning's intent matching?",decision_scope_description:"Checking if the intent of the learning you are creating is conflicting with the the existing learning.",evaluation_result:{deviation_title:"Separation Duration Reduced",deviation_explanation:["1. The Description from Variant you are creating reduces the required separation interval between ads with the same order number to 5 minutes, which is a more permissive operational threshold than the 10-minute standard in the Existing variant.","2. The Description from Variant you are creating lacks the stricter 10-minute separation enforcement required by the Existing variant, thereby narrowing the buffer period for ad delivery.","3. This change in the threshold directly alters the behavioral enforcement of the rule, resulting in a deviation from the established operational standard."],evaluation_outputs:{name:"labelling_criteria",output_value:"92% Conflict",metadata:{label_color:"#B91C1C"}},cognitive_decisioning:{decisioning_factors:["1. The Title from Variant you are creating and the Title from Existing variant are semantically identical, confirming full alignment in the learning's primary identifier ([Title from Variant you are","2. The Description from Variant you are creating introduces a 5-minute separation threshold, whereas the Description from Existing variant mandates a 10-minute interval, representing a clear divergence in operational enforcement ([Description from Variant you are [Description from Existing","3. The aggregated evaluation reflects the high degree of alignment in the learning title alongside the specific numerical divergence in the description, resulting in the final conflict classification."],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null}}}},documents:{existing_variant:{role:"reference",title:"Existing variant | tier1",metadata:{file_name:null},mime_type:null,source_uri:null},new_variant:{role:"source",title:"Variant you are creating | tier1",metadata:{file_name:null},mime_type:null,source_uri:null}},base_root_id:"overall_comparison",input_index_map:{0:"new_variant",1:"existing_variant"},evaluation_criteria:{"criteria-uuid1":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the overall intent by combining the results from learning title comparison and learning description comparison. Always assign the output_label as 'Conflict'. The final output_percentage must be calculated using weighted averaging where intent_in_learning_title contributes 20% (0.2 weightage) and intent_in_learning_description contributes 80% (0.8 weightage). The percentage should not be determined independently and must be derived from the child comparison results. A higher weighted score indicates greater intent overlap, while a lower weighted score indicates less overlap. Use the computed weighted average as the final Conflict percentage.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"intent_overall_compare"},"criteria-uuid2":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the learning titles semantically. Always assign the output_label as 'Conflict'. Use 100% Conflict when both titles convey exactly the same meaning and intent. Use 50% Conflict when the titles partially overlap in meaning but are not exact matches. Use 0% Conflict when the titles represent different meanings with no meaningful overlap. Intermediate percentages may be used to represent the degree of overlap between 0% and 100%.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"intent_in_learning_title"},"criteria-uuid3":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the tiers. Always assign the output_label as 'Conflict'. Use 100% Conflict when the tiers are exactly the same. Use 50% Conflict when both are of different tiers. Use 0% Conflict when the tiers are completely different.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"match_in_tier"},"criteria-uuid4":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the learning descriptions primarily based on rule-defining properties such as thresholds, limits, numerical values, conditions, or any property that directly defines the behavior of the rule. Always assign the output_label as 'Conflict'. If both learnings contain rule-defining properties and all such properties match exactly, assign 100% Conflict. If both learnings represent the same underlying intent but one or more rule-defining properties differ, assign exactly 90% Conflict. If no rule-defining properties exist in either learning, determine the Conflict percentage based on semantic similarity of the descriptions. Intermediate percentages may be used only when evaluating semantic similarity in cases where rule-defining properties do not exist.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"intent_in_learning_description"}}}},{behaviour_output:{nodes:{learning_description_behavior:{next:null,skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"independent",execution_mode:"per_node",criterion_set_id:"behaviour_in_learning_description"},comparison_inputs:{existing_variant:{title:"Behavior",content:"Maintains a minimum separation of 5 minutes between ads with the same order number.",additional_attributes:null},new_variant:{title:"Behavior",content:"Maintains a minimum separation of 10 minutes between ads with the same order number.",additional_attributes:null}},mapping_rationale:null,evaluation_result:{deviation_title:"Separation Duration Reduced",deviation_explanation:["1. The Variant you are creating enforces a 10-minute separation interval, which broadens the separation enforcement compared to the Existing variant's 5-minute requirement.","2. The Variant you are creating lacks the 5-minute threshold defined in the Existing variant, resulting in a more restrictive operational behavior."],evaluation_outputs:{name:"labelling_criteria",output_value:"0% Conflict"},cognitive_decisioning:{decisioning_factors:["1. The Behavior from Variant you are creating specifies a 10-minute separation interval whereas the Behavior from Existing variant specifies a 5-minute interval","2. As per the criteria, any difference in rule-defining properties such as numerical thresholds results in 0% Conflict"],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null},deviations:{0:{existing_variant:"5 minutes",new_variant:"10 minutes",deviation_summary:""}}}},"conditions-uuid12":{next:{0:"when_to_apply",1:"when_not_to_apply"},skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"aggregated",execution_mode:"per_node",criterion_set_id:"conditions_compare"},comparison_inputs:{existing_variant:{title:"Conditions",content:null,additional_attributes:null},new_variant:{title:"Conditions",content:null,additional_attributes:null}},mapping_rationale:null,evaluation_result:{deviation_title:"Targeting scope expanded",deviation_explanation:["1. The 'When to apply' condition from Variant you are creating broadens the targeting scope by including an additional advertiser, KYKY, which is absent in the 'When to apply' condition from Existing variant, potentially increasing the volume of applicable learning instances.","2. The 'When to apply' condition from Variant you are creating introduces a disjunctive logical relationship that is not present in the 'When to apply' condition from Existing variant.","3. The 'When NOT to apply' section from Variant you are creating lacks any exclusion logic, maintaining consistency with the 'When NOT to apply' section from Existing variant."],evaluation_outputs:{name:"labelling_criteria",output_value:"50% Conflict",metadata:{label_color:"#B91C1C"}},cognitive_decisioning:{decisioning_factors:["1. The 'When to apply' condition from Variant you are creating includes 'Audacy or KYKY' whereas the 'When to apply' condition from Existing variant is restricted to 'Audacy'","2. The 'When NOT to apply' section from Variant you are creating and the 'When NOT to apply' section from Existing variant both specify 'No Exemptions' resulting in an N/A classification for that component.","3. As the 'When NOT to apply' component is N/A, the final aggregated classification relies entirely on the 'When to apply' result, which identifies a partial targeting overlap"],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null}}},overall_comparison:{next:{0:"learning_description_behavior",1:"conditions-uuid12"},skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"aggregated",execution_mode:"per_node",criterion_set_id:"behavior_compare"},comparison_inputs:{existing_variant:{title:"Existing learning",content:null,additional_attributes:null},new_variant:{title:"Learning You 're Creating",content:null,additional_attributes:null}},mapping_rationale:null,decision_scope_title:"Is the learning 's behaviour matching?",decision_scope_description:"Checking if the behaviour of the learning you are trying to create is conflicting with the existing learning",evaluation_result:{deviation_title:"Operational Scope Divergence",deviation_explanation:["1. The cumulative impact of the behavioral and conditional differences in the Variant you are creating results in a more restrictive separation interval and a broader targeting scope compared to the Existing variant.","2. The Behavior from Variant you are creating increases the separation interval to 10 minutes, whereas the Existing variant requires only 5 minutes, creating a more restrictive operational constraint.","3. The Conditions from Variant you are creating expands the targeting scope by including an additional advertiser, KYKY, which is absent in the Existing variant, thereby altering the applicability of the learning."],evaluation_outputs:{name:"labelling_criteria",output_value:"25% Conflict",metadata:{label_color:"#B91C1C"}},cognitive_decisioning:{decisioning_factors:["1. The Behavior evaluation from Variant you are creating identifies a numerical threshold difference in separation intervals, which is classified as a complete divergence","2. The Conditions evaluation from Variant you are creating identifies a partial targeting overlap due to the inclusion of an additional advertiser, resulting in a moderate conflict classification","3. The final classification reflects the synthesis of the behavioral divergence and the conditional expansion, balancing the restrictive operational change with the broader targeting scope defined in the Variant you are creating."],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null}}},when_to_apply:{next:null,skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"independent",execution_mode:"per_node",criterion_set_id:"behavior_in_when_to_apply"},comparison_inputs:{existing_variant:{title:"When to apply",content:"When the advertiser is Audacy",additional_attributes:null},new_variant:{title:"When to apply",content:"When the advertiser is Audacy or KYKY",additional_attributes:null}},mapping_rationale:null,evaluation_result:{deviation_title:"Targeting scope expanded",deviation_explanation:["1. The 'When to apply' condition from Variant you are creating broadens the targeting scope by including an additional advertiser, KYKY, which is absent in the 'When to apply' condition from Existing variant.","2. The 'When to apply' condition from Variant you are creating introduces a disjunctive logical relationship that is not present in the 'When to apply' condition from Existing variant."],evaluation_outputs:{name:"labelling_criteria",output_value:"50% Conflict",metadata:{label_color:"#B91C1C"}},cognitive_decisioning:{decisioning_factors:["1. The 'When to apply' condition from Variant you are creating includes 'Audacy or KYKY', whereas the 'When to apply' condition from Existing variant is restricted to 'Audacy'.","2. The inclusion of an additional entity in the Variant you are creating creates a partial overlap in targeting logic, justifying a 50% Conflict classification as per the criteria."],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null},deviations:{0:{existing_variant:"Audacy",new_variant:"Audacy or KYKY",deviation_summary:""}}}},when_not_to_apply:{next:null,skip_node:!1,display_node:!0,comparison_config:{mode:"context_aware",type:"independent",execution_mode:"per_node",criterion_set_id:"behavior_in_when_not_to_apply"},comparison_inputs:{existing_variant:{title:"When NOT to apply",content:"No Exemptions",additional_attributes:null},new_variant:{title:"When NOT to apply",content:"No Exemptions",additional_attributes:null}},mapping_rationale:null,evaluation_result:{deviation_title:"No Exclusion Conditions",deviation_explanation:["1. The 'When NOT to apply' section from Variant you are creating defines no exclusion conditions, which aligns with the operational standard of the 'When NOT to apply' section from Existing variant.","2. Both variants lack specific exclusion logic, resulting in an N/A classification as per the evaluation criteria."],evaluation_outputs:{name:"labelling_criteria",output_value:"N/A"},cognitive_decisioning:{decisioning_factors:["1. The 'When NOT to apply' section from Variant you are creating explicitly states 'No Exemptions'","2. The 'When NOT to apply' section from Existing variant also states 'No Exemptions'","3. Since neither variant defines active exclusion conditions, the criteria mandate an N/A result"],gaps_in_decision:["1. No gaps found."],decision_strength:100,citations:null},deviations:{}}}},documents:{existing_variant:{role:"reference",title:"Existing variant | tier1",metadata:{file_name:null},mime_type:null,source_uri:null},new_variant:{role:"source",title:"Variant you are creating | tier1",metadata:{file_name:null},mime_type:null,source_uri:null}},base_root_id:"overall_comparison",input_index_map:{0:"new_variant",1:"existing_variant"},evaluation_criteria:{"criteria-uuid1":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the overall behavior of both learnings. Always assign the output_label as 'Conflict'. Use 100% Conflict when both learnings express exactly the same behavior and meaning. Use 50% Conflict when the learnings partially overlap in behavior, scope, or meaning. Use 0% Conflict when the learnings represent different behaviors with no meaningful overlap. Intermediate percentages may be used to represent the degree of overlap between 0% and 100%.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"default_criteria"},"criteria-uuid2":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare only the rule-defining properties that determine the behavior of the learning, such as thresholds, limits, numerical values, conditions, or any property that directly governs execution of the rule. Always assign the output_label as 'Conflict'. If all rule-defining properties match exactly, assign 100% Conflict. If any rule-defining property differs, assign 0% Conflict. No intermediate percentages should be used for this comparison. The evaluation should focus exclusively on rule-defining properties and not on general semantic similarity.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"behaviour_in_learning_description"},"criteria-uuid3":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the 'When to apply' conditions. Always assign the output_label as 'Conflict'. Use 100% Conflict when all conditions, entities, entity types, and logical relationships match exactly. Use 50% Conflict when there is partial overlap between the conditions. Use 0% Conflict when the conditions are completely different or have no meaningful overlap. If one condition is global in scope and the other is specific in scope, the result must be treated as 0% Conflict. Intermediate percentages may be used to represent the degree of overlap between 0% and 100%.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"behavior_in_when_to_apply"},"criteria-uuid4":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the 'When NOT to apply' conditions. Always assign the output_label as 'Conflict'. Use 100% Conflict when all exclusion conditions, entities, entity types, and logical relationships match exactly. Use 50% Conflict when there is partial overlap between exclusion conditions. Use 0% Conflict when exclusion conditions are completely different or have no meaningful overlap. Intermediate percentages may be used to represent the degree of overlap between 0% and 100%.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"},{metadata:{label_color:"#475569"},description:"Assign the output_label as 'N/A' when exclusion conditions are not defined in one or both learnings. When N/A is assigned, no output_percentage should be provided. The result should contain only the label 'N/A'.",output_label:"N/A",output_template:"{output_percentage} {output_label}",output_percentage:""}]},criteria_set_id:"behavior_in_when_not_to_apply"},"criteria-uuid5":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the combined conditions from both 'When to apply' and 'When NOT to apply'. Always assign the output_label as 'Conflict'. The final output_percentage must be calculated using weighted averaging where behavior_in_when_to_apply contributes 80% (0.8 weightage) and behavior_in_when_not_to_apply contributes 20% (0.2 weightage). If When NOT to apply is labelled as N/A, the comparison should rely entirely on the When to apply result. The percentage should not be independently determined and must be derived from the weighted child comparison results.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"conditions_compare"},"criteria-uuid6":{criterion:{name:"labelling_criteria",data_type:"array",measuring_unit:"category",criteria_properties:[{metadata:{label_color:"#B91C1C"},description:"Compare the overall learning behavior by combining the learning behavior description comparison and the conditions comparison. Always assign the output_label as 'Conflict'. The final output_percentage must be calculated using weighted averaging where behaviour_in_learning_description contributes 50% (0.5 weightage) and conditions_compare contributes 50% (0.5 weightage). The percentage should not be determined independently and must be derived from the child comparison results. Exact matches in both components should result in 100% Conflict, while complete differences in both components should result in 0% Conflict. All intermediate values should be derived from the weighted average of the two components.",output_label:"Conflict",output_template:"{output_percentage} {output_label}",output_percentage:"1-100%"}]},criteria_set_id:"behavior_compare"}},final_score:"59% Conflict",rule_id:"5edd213f-4621-4c25-941d-d6a0532705a7"}}]],exports.getVariantInfo=function(t){return e.__awaiter(void 0,void 0,void 0,function(){var i;return e.__generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,n.default.post("https://devllmstudio.creativeworkspace.ai/instant_learning/give-variant-info",t)];case 1:return[2,e.sent().data];case 2:throw i=e.sent(),console.error("Error getting variant info:",i),i;case 3:return[2]}})})};
|
|
2
2
|
//# sourceMappingURL=ILOTJTest.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),a=require("lucide-react"),i=require("@mui/material"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),s=require("react/jsx-runtime"),a=require("lucide-react"),i=require("@mui/material"),t=require("../InstantLearning.module.css.js"),n=require("./ILPopup.styles.js"),l=require("./templates/TemplatesMap/templatesMap.js");exports.default=function(o){var r=o.customSections,d=o.showCustomSections,c=void 0===d||d,u=o.onSave,g=o.formHeader,m=o.onClose,p=o.validateCustom,v=o.template,x=void 0===v?l.TemplateList.CreateRule:v,f=o.templateProps,h=o.isLoading,_=o.saveButtonConfig,b=void 0===_?{label:"Save Learning",loadingLabel:"Saving Learning..."}:_,j=o.isAiStreaming,y=void 0!==j&&j,S=o.showSaveWithoutValidation,C=o.saveWithoutValBtnConfig,L=void 0===C?{label:"Save w/o validation",loadingLabel:"Saving w/o validation..."}:C,q=o.onSaveWithoutValidation,w=o.saveButtonColor,N=x?l.TemplateMap[x]:null,k=!p||p();return s.jsxs(s.Fragment,{children:[s.jsx("style",{children:n.componentStyles}),s.jsxs("div",e.__assign({className:"il-popup-container ".concat(t.default.customFont)},{children:[s.jsxs("div",e.__assign({className:"form-header"},{children:[s.jsx(i.Typography,e.__assign({sx:{fontSize:"1.125rem",fontWeight:500,lineHeight:"1.82rem",fontFamily:'"Plus Jakarta Sans", sans-serif'}},{children:g})),s.jsx("div",e.__assign({onClick:m,style:{cursor:"pointer"}},{children:s.jsx(a.X,{})}))]})),s.jsx("div",e.__assign({style:{flexGrow:1,display:"flex",flexDirection:"column",width:"100%",padding:"20px 24px",overflowY:"auto",borderBottom:"1px solid #E7E7E9"}},{children:s.jsxs("div",e.__assign({className:"sections-space"},{children:[N&&s.jsx(N,e.__assign({},f)),c&&r]}))})),s.jsxs("div",e.__assign({className:"save-button-container"},{children:[S&&s.jsxs("button",e.__assign({className:"save-button-secondary",onClick:function(){q&&k&&q()},disabled:h||!k||y},{children:[s.jsx(a.TriangleAlert,{size:16,style:{marginRight:"4px"}}),h?L.loadingLabel:L.label]})),s.jsx("button",e.__assign({className:"save-button",onClick:function(){!p||p()?(u(),console.log("Form Data to Save:")):console.error("Please fill all required fields before saving the learning.")},disabled:h||!k||y,style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",maxWidth:"fit-content",backgroundColor:w,borderColor:w}},{children:h?b.loadingLabel:b.label}))]}))]}))]})};
|
|
2
2
|
//# sourceMappingURL=ILPopup.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t,r=require("../TrafficManager/CreateRule.js");exports.TemplateList=void 0,(t=exports.TemplateList||(exports.TemplateList={})).BaseTemplate="BASE_TEMPLATE",t.TrafficManager="TRAFFIC_MANAGER",t.testing="TESTING",t.CreateRule="CREATE_RULE",t.WorkflowComposer="WORKFLOW_COMPOSER",t.CreateCategory="CREATE_CATEGORY";var a=((e={})[exports.TemplateList.CreateRule]=r.CreateRule,e);exports.TemplateMap=a;
|
|
2
2
|
//# sourceMappingURL=templatesMap.js.map
|