"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),e=require("react"),u=e.createContext(void 0);function m({apiUrl:t,assistantId:o,identity:n,children:r}){const[s,i]=e.useState(o),a=e.useMemo(()=>({apiUrl:t,assistantId:s,setAssistantId:i,identity:n}),[t,s,n]);return c.jsx(u.Provider,{value:a,children:r})}function d(){const t=e.useContext(u);if(!t)throw new Error("useChatRuntime must be used within a ChatRuntimeProvider");return t}exports.ChatRuntimeProvider=m;exports.useChatRuntime=d;
//# sourceMappingURL=ChatRuntime.cjs.js.map
