Skip to content

Instantly share code, notes, and snippets.

@haileyok
Created July 20, 2025 08:00
Show Gist options
  • Save haileyok/2cedea63d59a109abccbb38159ea9824 to your computer and use it in GitHub Desktop.
Save haileyok/2cedea63d59a109abccbb38159ea9824 to your computer and use it in GitHub Desktop.
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="40497184-ca50-4998-af8a-2bafdaf7bcab",e._sentryDebugIdIdentifier="sentry-dbid-40497184-ca50-4998-af8a-2bafdaf7bcab")}catch(e){}}();var _sentryModuleMetadataGlobal="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_sentryModuleMetadataGlobal._sentryModuleMetadata=_sentryModuleMetadataGlobal._sentryModuleMetadata||{},_sentryModuleMetadataGlobal._sentryModuleMetadata[new _sentryModuleMetadataGlobal.Error().stack]=Object.assign({},_sentryModuleMetadataGlobal._sentryModuleMetadata[new _sentryModuleMetadataGlobal.Error().stack],{"_sentryBundlerPluginAppKey:letta-web-ui":!0}),(()=>{var e={29297:e=>{"use strict";e.exports=function(e){function t(e,t,a,n){function r(t){"function"!=typeof self.postMessage?e.ports[0].postMessage(t):self.postMessage(t)}a?("undefined"!=typeof console&&"error"in console&&console.error("Worker caught an error:",a),r([t,{message:a.message}])):r([t,null,n])}self.addEventListener("message",function(a){var n=a.data;if(Array.isArray(n)&&2===n.length){var r,o,s,l,d,f=n[0],u=n[1];"function"!=typeof e?t(a,f,Error("Please pass a function into register().")):(r=a,o=e,s=f,(d=function(e,t){try{return{res:e(t)}}catch(e){return{err:e}}}(o,u)).err?t(r,s,d.err):(l=d.res)&&("object"==typeof l||"function"==typeof l)&&"function"==typeof l.then?d.res.then(function(e){t(r,s,null,e)},function(e){t(r,s,e)}):t(r,s,null,d.res))}})}}},t={};function a(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={exports:{}},s=!0;try{e[n](o,o.exports,a),s=!1}finally{s&&delete t[n]}return o.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=a(29297);a.n(e)()(async e=>{let{cursor:t,agentId:a,limit:n,headers:r,url:o=""}=e,s=new URLSearchParams;t&&s.append("before",t),s.append("limit",n.toString()),s.append("use_assistant_message","false");let l=self.location.href.replace("blob:",""),d=new URL(o||l);return d.pathname="/v1/agents/".concat(a,"/messages"),d.search=s.toString(),fetch(d,{headers:r}).then(e=>e.json())})})(),_N_E={}})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment