import{c as f,a as j,j as r,_ as p,F,z as M}from"./main-tangy-colts-beg.js";import{q as _}from"./_applist-tangy-colts-beg-36.js";import{M as i}from"./index-tangy-colts-beg-123.js";import{S as E}from"./index-tangy-colts-beg-430.js";import"./index-tangy-colts-beg-650.js";import{A as L}from"./appheade-tangy-colts-beg-249.js";import"./lodash-tangy-colts-beg-516.js";import"./index-tangy-colts-beg-837.js";import"./index-tangy-colts-beg-131.js";import"./index-tangy-colts-beg-472.js";import"./index-tangy-colts-beg-4.js";import"./usedebou-tangy-colts-beg-721.js";import"./import-tangy-colts-beg-35.js";import"./index-tangy-colts-beg-987.js";import"./usebreak-tangy-colts-beg-501.js";import"./index-tangy-colts-beg-596.js";import"./index-tangy-colts-beg-216.js";import"./utilscss-tangy-colts-beg-788.js";import"./index-tangy-colts-beg-827.js";import"./index-tangy-colts-beg-73.js";import"./index-tangy-colts-beg-916.js";import"./exporthe-tangy-colts-beg-840.js";import"./index-tangy-colts-beg-660.js";import"./dropdown-tangy-colts-beg-845.js";import"./index.es-tangy-colts-beg-4.js";import"./paginati-tangy-colts-beg-302.js";import"./index-tangy-colts-beg-26.js";import"./index-tangy-colts-beg-245.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const S=[{type:"string",value:"10"}];function pt({nodeId:e}){var m,n,c,h,l,u,g,A,b,x,C,y;const[t,T]=f(_(e)),s=(o,v)=>{T(P=>M(P,a=>{var I;a.states||(a.states={components:[]}),(I=a.states)!=null&&I.aiAgent||(a.states.aiAgent={maxIterations:S,prompt:[],promptSource:"prompt",systemPrompt:[]}),a.states.aiAgent[o]=v}))};return j(F,{children:[r(L,{appColor:t.appColor,appIcon:t.appIcon,appTitle:t.appTitle,machineLabel:t.machineLabel}),r(E,{defaultValue:"prompt",label:"Source for Prompt",onChange:o=>s("promptSource",o),options:[{label:p("Define Prompt"),value:"prompt"}],placeholder:"Source for Prompt",style:{width:"100%"},value:((n=(m=t==null?void 0:t.states)==null?void 0:m.aiAgent)==null?void 0:n.promptSource)||"prompt"}),(!((h=(c=t==null?void 0:t.states)==null?void 0:c.aiAgent)!=null&&h.promptSource)||((u=(l=t==null?void 0:t.states)==null?void 0:l.aiAgent)==null?void 0:u.promptSource)==="prompt")&&r(i,{className:"!min-h-14",helperText:p("Enter the main instruction or question you want your AI Agent to use for generating responses. You can use variables from previous steps or conversation."),label:"Prompt",onChange:o=>s("prompt",o),value:(A=(g=t==null?void 0:t.states)==null?void 0:g.aiAgent)==null?void 0:A.prompt}),r(i,{className:"!min-h-24",helperText:p("Provides additional rules, context, or background information for the AI Agent. For example, use this field to specify the agent’s role, style, or important restrictions."),label:"System Prompt",onChange:o=>s("systemPrompt",o),value:(x=(b=t==null?void 0:t.states)==null?void 0:b.aiAgent)==null?void 0:x.systemPrompt}),r(i,{label:"Max Iterations",onChange:o=>s("maxIterations",o),placeholder:"10",value:((y=(C=t==null?void 0:t.states)==null?void 0:C.aiAgent)==null?void 0:y.maxIterations)||S})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};export{pt as default};
