<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"><channel><title><![CDATA[Replacing Myself]]></title><description><![CDATA[I live at the bleeding edge of AI.
These are my notes.]]></description><link>https://www.replacingmyself.ai</link><image><url>https://substackcdn.com/image/fetch/$s_!Odzu!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9d41f88f-b317-4fc5-be17-58fb0131dd1f_1280x1280.png</url><title>Replacing Myself</title><link>https://www.replacingmyself.ai</link></image><generator>Substack</generator><lastBuildDate>Sun, 19 Apr 2026 12:56:46 GMT</lastBuildDate><atom:link href="https://www.replacingmyself.ai/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[Parth Patil]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[replacingmyself@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[replacingmyself@substack.com]]></itunes:email><itunes:name><![CDATA[parth]]></itunes:name></itunes:owner><itunes:author><![CDATA[parth]]></itunes:author><googleplay:owner><![CDATA[replacingmyself@substack.com]]></googleplay:owner><googleplay:email><![CDATA[replacingmyself@substack.com]]></googleplay:email><googleplay:author><![CDATA[parth]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[The One-Person Unicorn Era: My New Class on MasterClass Is Live]]></title><description><![CDATA[There's no textbook for working with AI... so we made a MasterClass.]]></description><link>https://www.replacingmyself.ai/p/the-one-person-unicorn-era-my-new</link><guid isPermaLink="false">https://www.replacingmyself.ai/p/the-one-person-unicorn-era-my-new</guid><dc:creator><![CDATA[parth]]></dc:creator><pubDate>Fri, 17 Apr 2026 19:30:09 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!KIdN!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d942745-f70e-4f38-9fa0-eac60cad9fef_1200x627.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!KIdN!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d942745-f70e-4f38-9fa0-eac60cad9fef_1200x627.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!KIdN!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d942745-f70e-4f38-9fa0-eac60cad9fef_1200x627.png 424w, https://substackcdn.com/image/fetch/$s_!KIdN!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d942745-f70e-4f38-9fa0-eac60cad9fef_1200x627.png 848w, https://substackcdn.com/image/fetch/$s_!KIdN!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d942745-f70e-4f38-9fa0-eac60cad9fef_1200x627.png 1272w, https://substackcdn.com/image/fetch/$s_!KIdN!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d942745-f70e-4f38-9fa0-eac60cad9fef_1200x627.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!KIdN!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d942745-f70e-4f38-9fa0-eac60cad9fef_1200x627.png" width="1200" height="627" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3d942745-f70e-4f38-9fa0-eac60cad9fef_1200x627.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:627,&quot;width&quot;:1200,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:851627,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://www.replacingmyself.ai/i/194546002?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d942745-f70e-4f38-9fa0-eac60cad9fef_1200x627.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!KIdN!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d942745-f70e-4f38-9fa0-eac60cad9fef_1200x627.png 424w, https://substackcdn.com/image/fetch/$s_!KIdN!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d942745-f70e-4f38-9fa0-eac60cad9fef_1200x627.png 848w, https://substackcdn.com/image/fetch/$s_!KIdN!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d942745-f70e-4f38-9fa0-eac60cad9fef_1200x627.png 1272w, https://substackcdn.com/image/fetch/$s_!KIdN!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d942745-f70e-4f38-9fa0-eac60cad9fef_1200x627.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>When <a href="https://masterclass.com/parthpatil">MasterClass</a> reached out about building a course for the AI era, it felt surreal. </p><p>Even more so because I&#8217;d get to do it with two of the best in the field, Stanford economist <a href="https://www.linkedin.com/in/erikbrynjolfsson/">Erik Brynjolfsson</a>, and my good friend, the legend, <a href="https://www.instagram.com/askcatgpt/">Cat Goetze</a>.</p><p>Together with <a href="https://masterclass.com/parthpatil">MasterClass</a>, we built a new playbook for how work is changing in the AI era.<br><br><a href="https://masterclass.com/parthpatil">"</a><strong><a href="https://masterclass.com/parthpatil">Revolutionize Your Workflows with AI." is now live.</a></strong></p><p>We cover:<br>&#8594; Agents that operate on your behalf<br>&#8594; Lightning-fast data analysis + prototyping<br>&#8594; From transcription &#8594; insight &#8594; action<br>&#8594; Multimodal systems that think, see, and act<br><br>This is the stack behind how modern knowledge work is evolving.</p><h1><strong>Why This Matters Now</strong></h1><p>Most people are using AI in isolation. They think of it as a chatbot that can search, write emails, or summarize documents.</p><p><strong>Real leverage is when you start thinking of AI as an extension of your will and creativity.</strong> The systems you create, that learn and grow with you in pursuit of your own goals.</p><p>When you ask an agent to do complex financial analysis and planning before you make a big purchase or life decision.</p><p>When you connect it to your email, calendar, the tools you use every day.</p><p>Systems that work for you, help make sense of the chaos, letting you focus on the things that matter, so you can thrive in your own life.</p><p><strong>In this course we offer you a mindset shift.</strong></p><p><strong>A way to build your own operating system.</strong></p><h1><strong>What You&#8217;ll Learn</strong></h1><p>We&#8217;ve packed the class with real-world demos to give you practical, career-level leverage.</p><ul><li><p><strong>The &#8220;One-Person Unicorn&#8221;:</strong> Learn &#8220;vibe coding.&#8221; Tell AI what you want, and it builds the tools and systems for you. For the first time in human history, one person can do what used to take an entire team, and I&#8217;m here to show you how.</p></li><li><p><strong>Become a Poweruser:</strong> Connect AI to tools you already use, such as Google Drive, Notion, and your calendar. Using agents like Claude Cowork and Zapier, you&#8217;ll create your own agentic OS, unique to your life and ambitions.</p></li><li><p><strong>Put AI Agents to Work:</strong> Build systems that run in the background. Create an agent to watch your inbox, sorting messages by urgency. This way, you can turn a chaotic list into a clear set of priorities.</p></li><li><p><strong>Amplify Your Mind:</strong> Use agents like Claude Cowork to analyze large datasets and model business scenarios. Spot risks, compare outcomes, and make smarter decisions.</p></li></ul><h1><strong>Joining a Growing AI Library</strong></h1><p>This class is part of a major shift at MasterClass to lead the way in AI learning. It joins other specialized offerings like <em>AI and Medicine</em>, <em>The New Rules of Wealth</em>, and <em>AI Strategy at Work</em>.</p><p>MasterClass recently launched <a href="https://www.masterclass.com/executive">MasterClass Executive</a>, a new kind of business school built in partnership with the University of Chicago Booth School of Business and OpenAI. I&#8217;m excited to be part of it and help builders like you navigate this fast-changing era.</p><h1><strong>How to Watch</strong></h1><p>The class is available now only on MasterClass. <a href="http://masterclass.com/parthpatil">Check it out!</a></p><p><a href="http://masterclass.com/parthpatil">http://masterclass.com/parthpatil</a></p><p>If you, or someone you know, is looking to get to the next level with AI, consider sharing this course with them!</p><p>And for everyone that&#8217;s already signed up and reshared! THANK YOU! Your support on this journey means the world to me.</p><p>Stay curious,</p><p>parth</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.replacingmyself.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Replacing Myself is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Year One of Superagency]]></title><description><![CDATA[What Living With AI Actually Feels Like]]></description><link>https://www.replacingmyself.ai/p/year-one-of-superagency</link><guid isPermaLink="false">https://www.replacingmyself.ai/p/year-one-of-superagency</guid><dc:creator><![CDATA[parth]]></dc:creator><pubDate>Fri, 02 Jan 2026 01:44:02 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!Odzu!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9d41f88f-b317-4fc5-be17-58fb0131dd1f_1280x1280.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Gen AI, in its current form, is a power user technology.</p><p>That is why the public is split.</p><p>Insiders feel the AGI. The broader public sees a glorified search engine.</p><p><strong>This is a skill issue.</strong></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!bebE!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa53fcea2-bacc-4abf-8604-4f11844e194e_2048x2048.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!bebE!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa53fcea2-bacc-4abf-8604-4f11844e194e_2048x2048.jpeg 424w, https://substackcdn.com/image/fetch/$s_!bebE!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa53fcea2-bacc-4abf-8604-4f11844e194e_2048x2048.jpeg 848w, https://substackcdn.com/image/fetch/$s_!bebE!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa53fcea2-bacc-4abf-8604-4f11844e194e_2048x2048.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!bebE!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa53fcea2-bacc-4abf-8604-4f11844e194e_2048x2048.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!bebE!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa53fcea2-bacc-4abf-8604-4f11844e194e_2048x2048.jpeg" width="1456" height="1456" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a53fcea2-bacc-4abf-8604-4f11844e194e_2048x2048.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1456,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:745651,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://www.replacingmyself.ai/i/183101220?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa53fcea2-bacc-4abf-8604-4f11844e194e_2048x2048.jpeg&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!bebE!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa53fcea2-bacc-4abf-8604-4f11844e194e_2048x2048.jpeg 424w, https://substackcdn.com/image/fetch/$s_!bebE!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa53fcea2-bacc-4abf-8604-4f11844e194e_2048x2048.jpeg 848w, https://substackcdn.com/image/fetch/$s_!bebE!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa53fcea2-bacc-4abf-8604-4f11844e194e_2048x2048.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!bebE!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa53fcea2-bacc-4abf-8604-4f11844e194e_2048x2048.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Reid Hoffman (co-founder of LinkedIn) has a name for the upside of this moment: <strong>Superagency.</strong> </p><blockquote><p>Superagency is what happens when a critical mass of individuals, personally empowered by AI, begins to operate at levels that compound throughout society.</p></blockquote><p>The idea that you can do more, faster, and with greater confidence.</p><p>The idea that you create more options for yourself tomorrow than you had yesterday.</p><p><strong>Can you </strong><em><strong>feel</strong></em><strong> it?</strong></p><h2>AI is a power user tech (for now)</h2><p>The difference between someone&#8217;s optimism and someone&#8217;s cynicism is usually simple.</p><p>How much time do they spend playing with the tools?</p><p>Not only at work. Outside of work too.</p><p>Because humans aren&#8217;t one-dimensional. And this is a <strong>general-purpose technology.</strong></p><p><strong>It would be a crazy oversimplification to only use this technology for your job.</strong></p><p>You might not see it&#8217;s true power. You will see a chatbot. You will see autocomplete. You will see &#8220;search, but faster.&#8221;</p><p>If you live with it, you start to see different things. You learn at a faster pace. You gain new powers. It begins to take action on your behalf.</p><p><strong>You start to feel increased agency.</strong></p><h2></h2><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.replacingmyself.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Replacing Myself is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2>Coding Agents: When Code Stops Being &#8220;Software&#8221;</h2><p><a href="https://code.claude.com">Claude Code</a> changed how I think about code.</p><p>Not because it made me faster at writing software.</p><p>But because it made it obvious that <strong>code is just a way to apply structure to reality</strong>.</p><p>Once you see that, the surface area explodes.</p><p>I used to think of code as something you apply <em>after</em> a problem becomes &#8220;technical.&#8221; Claude Code flipped that. It showed me that you can start with code <em>earlier</em>&#8212;before the problem even looks like software.</p><p>Expense reporting. Animation pipelines. Personal branding systems. Presentations. Home automation. Content ops. Research workflows.</p><p>None of these are &#8220;software products.&#8221;</p><p>They&#8217;re messy, human, half-formed problems. And that&#8217;s exactly why coding agents work so well on them.</p><p>A coding agent doesn&#8217;t ask, &#8220;Is this a real app?&#8221; It asks, &#8220;Can we decompose, automate, or simulate this?&#8221;</p><p>That shift matters.</p><p>When you see everyday tasks as something code can handle, you stop asking for permission. You stop asking whether a tool exists. You build the scaffolding yourself.</p><p>Claude Code made this legible.</p><p>It showed me that:</p><ul><li><p>Code can be lightweight and disposable.</p></li><li><p>Scripts can be creative tools <strong>and</strong> repeatable processes.</p></li><li><p>Automation can live at the edges of life, not just in production systems.</p></li></ul><p>Most importantly, it made it clear that <strong>coding agents aren&#8217;t about engineering excellence</strong>.</p><p>They&#8217;re about <em>agency</em>.</p><p>They let you try ideas that you would typically avoid due to the high overhead. They collapse the distance between &#8220;this is annoying&#8221; and &#8220;this is solved.&#8221;</p><p>That&#8217;s why coding agents are the most powerful agents right now.</p><p>Not because they write perfect code.</p><p>But because they turn vague intent into working systems&#8212;fast enough that curiosity stays alive.</p><p>And, as it turns out, <strong>everything is a software problem.</strong></p><h2>My first practical swarm.</h2><p>One system I rely on now that I did not rely on a year ago is <strong>multiplexing coding agents.</strong></p><p>I run many coding agents, Claude Code, Codex, Gemini CLI at the same time. They stay on. They stay &#8220;in the project.&#8221; Each project has its own context.</p><p>This isn&#8217;t just about concurrency&#8212;it&#8217;s about keeping momentum alive across many different ideas.</p><p>Across all my projects. Personal and work. With powerful coding agents powered by frontier models like OpenAI Codex and Opus 4.5.</p><p>The result is that I try more things. I explore more paths. I build in directions I used to avoid.</p><p>I apply this to everything.</p><p>My ability to prototype systems has skyrocketed.</p><ul><li><p>I&#8217;ve lost my bias toward specific programming languages.</p></li><li><p>I&#8217;m no longer intimidated by unfamiliar systems.</p></li><li><p>I ask plenty of questions, even if they seem silly.</p></li></ul><p>This approach helps me find high-leverage ideas. My curiosity drives me, and I connect my thoughts with the abilities of the latest models.</p><p>But I still face a constraint.</p><p>I&#8217;m still the bottleneck.</p><p>I operate at a higher level now. But, my experience, confidence, and skills still hold me back.</p><p>The irony is:</p><p>The more I automate, the more responsibility I take on. My work shifts to a broader, more creative and strategic level.</p><h2><strong>You actually have to prompt the model a thousand times.</strong></h2><p>People underestimate the effort required to get good at wielding AI.</p><p>There is no other way. You need reps. You need to make a ton of stuff.</p><p>And you need to study people who do the same thing. People with an obsessive relationship to learning the tools.</p><blockquote><p>10,000 prompts is the new 10,000 hours.</p></blockquote><p>If a person doesn&#8217;t use the technology, they are unqualified to talk about it.</p><h2>Follow people who play the next game.</h2><p>In 2025, I began to follow real practitioners.</p><p>This shift alone improved my ability to explore.</p><p>Less noise. More contact with reality.</p><p>Wisdom comes from experience, and experience comes from being in the game.</p><p>That&#8217;s the good news.</p><p>It means a valuable new persona is emerging: <strong>the practitioner</strong>.</p><p>Not the commentator. Not the spectator. Not the theorist. Not the person with opinions about tools they don&#8217;t use.</p><p>The practitioner lives with the tools long enough for them to change what they see. They ship. They build scaffolding. They find leverage in systems.</p><p>They see the world differently.</p><p>So I started paying attention to people who live inside the tools.</p><h3>Coding automation, AI agents, and frontier LLMs</h3><p><strong><a href="https://www.linkedin.com/in/dexterihorthy/">Dexter Horthy</a></strong></p><p>Dexter Horthy is a builder and systems thinker working on how humans and AI agents collaborate inside real software systems. He created the term &#8220;context engineering&#8221; to describe how to design what an AI model sees while it works. This includes memory, tools, instructions, and limits. It helps agents reason, act, and safely fail in real-world settings.</p><p><strong>Why I follow him:</strong> Dex focuses on where agents actually break in practice, and how to design systems that keep humans meaningfully in the loop.</p><p><strong><a href="https://www.youtube.com/@echohive">Echo Hive</a></strong></p><p>AI creator Echo Hive shares hands-on coding experiments and workflows through video. He makes and shares experiments. These include custom GPT tools, agentic &#8220;hive&#8221; workflows, and generative pipelines. You can replicate the real architectures, prompts, and integrations he showcases.</p><p><strong>Why I follow him:</strong> Echo Hive shares real experiments, not just opinions. He publicly tests and develops new models and agent patterns.</p><h3>AI and Creative Workflows</h3><p><strong><a href="https://daveclarkcreative.com">Dave Clark</a></strong></p><p>Dave Clark is a creative technologist. He explores generative AI as a true visual and cinematic medium. His work combines text-to-image, video models, and design systems. Instead of one-off demos, he creates cohesive aesthetic worlds. His work uses models as tools in a studio. He iterates on mood, composition, and visual language to build taste, not just outputs.</p><p><strong>Why I follow him:</strong> Dave treats AI like photographers treat cameras. He builds a point of view over time instead of chasing tricks.</p><p><strong><a href="https://www.nemperez.com">Nem Perez</a></strong> </p><p>Nem Perez is a creative technologist and filmmaker. He explores how generative AI impacts storytelling, collaboration, and creative direction. His work blends filmmaking, tools, and community. He uses AI to make story prototypes. It helps him manage collaborators and rethink the entire film production process.</p><p><strong>Why I follow him:</strong> Nem treats AI as a new storytelling medium and production model, not just a visual effect.</p><p><strong><a href="https://donalleniii.me">Don Allen III</a></strong></p><p>Creative technologist using generative systems to build expressive, interactive media. Don works at the forefront of virtual worlds and creative workflows. He explores how science fiction turns interactive and real.</p><p><strong>Why I follow him:</strong> Don blends craft with experimentation&#8212;and I&#8217;ve seen that curiosity up close, long before AI made it fashionable.</p><p><strong><a href="https://www.momowang.co">Momo Wang</a></strong> </p><p>Momo Wang is an award-winning animator and filmmaker. She is also an artist and creative director. People celebrate her for mixing artistic vision with stories from different cultures. She created Tuzki, a famous illustrated bunny. Tuzki became a viral emoticon on major messaging apps. It has also expanded into merchandise, media, and brand collaborations.</p><p><strong>Why I follow her:</strong> she pushes aesthetics forward, not just capabilities.</p><p><strong><a href="https://www.instagram.com/joesalvatore_/">Joe Salvatore</a></strong> </p><p>Joe Salvatore works as an AI-native editor and visual commentator. He packages fast-moving generative AI tools, model releases, and creative workflows. His breakdowns are sharp and focus on visuals. Joe&#8217;s feed helps designers and editors see what matters and how to use it.</p><p><strong>Why I follow him:</strong> He makes sense of the chaos in AI releases. He shares clear signals, useful insights, and guidance for creative professionals.</p><p><strong><a href="https://www.kingwillonius.com">King Willonius</a></strong> </p><p>Musical comedy creator behind &#8220;BBL Drizzy,&#8221; one of the first viral AI-native hit songs. His music video production skills with frontier video models are second to none.</p><p><strong>Why I follow him:</strong> King Willonius shows how AI closes the gap between ideas and audiences. He delivers cultural moments with speed and taste.</p><p><strong><a href="https://www.linkedin.com/in/gregbeato/">Greg Beato</a></strong></p><p>Greg Beato is a creator and commentator working with generative AI and creative media. He&#8217;s co-author (with Reid Hoffman) of <em>Superagency: What Could Possibly Go Right with Our AI Future</em>. Check out <a href="https://gemini.google.com/share/86a56655c0bb">Bro Botz</a>, the coolest new AI music project written and produced by Greg himself.</p><p><strong>Why I follow him:</strong> Greg actually <em>plays</em> with frontier models&#8212;writing, producing, and editing real music videos and characters with them. Watching him build worlds in public turns abstract capability into lived craft.</p><h3>Business and entrepreneurship</h3><p><strong><a href="https://www.askcatgpt.com">Catherine Goetze</a></strong><a href="https://www.askcatgpt.com"> (CatGPT)</a></p><p>Catherine Goetze, or CatGPT, is a great example of a creator-entrepreneur. She first builds an audience. Then, she shares her journey. Finally, she offers products directly to them. She makes AI fun, friendly, and focused on people with easy-to-understand content. At the same time, she tests how to turn attention into real businesses. Earlier this year she launched <strong><a href="https://physicalphones.com">Physical Phones</a></strong>, a hardware experiment that turns nostalgic landline phones into Bluetooth companions for modern smartphones.</p><p><strong>Why I follow her:</strong> Cat shows that personality, vision, and distribution matter just as much as technology&#8212;maybe even more.</p><p><strong><a href="http://alliekmiller.com">Allie K. Miller</a></strong></p><p>Allie K. Miller is an AI entrepreneur, advisor, and educator. She turns advanced AI into practical business solutions. She creates playbooks and strategies for operators. Her work connects enterprise adoption, new model capabilities, and practical decision-making. It helps leaders shift from &#8220;AI curiosity&#8221; to real execution.</p><p><strong>Why I follow her:</strong> Allie links what models can do to what organizations can use. She focuses on enterprise and large-scale businesses.</p><h2><strong>Intelligence is now on tap. What will you do with it?</strong></h2><p>Superagency occurs when people, empowered by AI, begin to redefine the boundaries of what is possible. They improve their own lives first, then influence teams, companies, culture and eventually society at large.</p><p>So yes: <strong>2026 won&#8217;t be defined by intelligence.</strong> It will be defined by <strong>Superagency</strong>, and by who actually learns to wield it.</p><p><strong>What will you create in 2026?</strong></p>]]></content:encoded></item><item><title><![CDATA[I Saw AI Do My Job and It Changed How I Learn Forever]]></title><description><![CDATA[How asking better questions replaced my sense of professional security]]></description><link>https://www.replacingmyself.ai/p/the-night-ai-broke-my-career-map</link><guid isPermaLink="false">https://www.replacingmyself.ai/p/the-night-ai-broke-my-career-map</guid><dc:creator><![CDATA[parth]]></dc:creator><pubDate>Mon, 22 Dec 2025 07:10:30 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!rdiA!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffcb08d60-4411-43d3-9c0a-62f2184ed9e3_1376x768.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>3 years ago I was a data analyst.</p><p>I thought I was good at the whole numbers thing. I could milk the corporate world for a decent salary as an analyst all my life and live in peace&#8230; but then ChatGPT came along.</p><p>After probably an anxiety attack or two&#8230;</p><p>I sat down and said: fine. <strong>I&#8217;m going to replace myself.</strong></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!rdiA!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffcb08d60-4411-43d3-9c0a-62f2184ed9e3_1376x768.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!rdiA!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffcb08d60-4411-43d3-9c0a-62f2184ed9e3_1376x768.png 424w, https://substackcdn.com/image/fetch/$s_!rdiA!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffcb08d60-4411-43d3-9c0a-62f2184ed9e3_1376x768.png 848w, https://substackcdn.com/image/fetch/$s_!rdiA!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffcb08d60-4411-43d3-9c0a-62f2184ed9e3_1376x768.png 1272w, https://substackcdn.com/image/fetch/$s_!rdiA!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffcb08d60-4411-43d3-9c0a-62f2184ed9e3_1376x768.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!rdiA!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffcb08d60-4411-43d3-9c0a-62f2184ed9e3_1376x768.png" width="1376" height="768" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/fcb08d60-4411-43d3-9c0a-62f2184ed9e3_1376x768.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:768,&quot;width&quot;:1376,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1619560,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:&quot;&quot;,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://parthintelligence.substack.com/i/182299028?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffcb08d60-4411-43d3-9c0a-62f2184ed9e3_1376x768.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!rdiA!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffcb08d60-4411-43d3-9c0a-62f2184ed9e3_1376x768.png 424w, https://substackcdn.com/image/fetch/$s_!rdiA!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffcb08d60-4411-43d3-9c0a-62f2184ed9e3_1376x768.png 848w, https://substackcdn.com/image/fetch/$s_!rdiA!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffcb08d60-4411-43d3-9c0a-62f2184ed9e3_1376x768.png 1272w, https://substackcdn.com/image/fetch/$s_!rdiA!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffcb08d60-4411-43d3-9c0a-62f2184ed9e3_1376x768.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>I started building a GPT that could talk to a database.</p><p><strong>Automate analysis itself.</strong></p><p>The thing that I do really well.</p><p>And the wild part is: it taught me how. Natural language to SQL. API calls. Setup.</p><p>For the record, I wasn&#8217;t a <strong>real</strong> <strong>programmer</strong> back then. Really more of a data analyst. I&#8217;d used SQL and Python for data analysis work. But that&#8217;s not the same as building full stack applications.</p><p>The next problem I asked was even crazier.</p><p><strong>Teach me how to clone my voice.</strong></p><p>It wrote the first version of that program.</p><p><strong>Teach me how to run that program.</strong></p><p>It showed me how to set up my computer, installing Python, setting up my environment along the way.</p><p>Next thing you know,  I have a program that can speak in my own voice running on my computer.</p><p><strong>That moment was a hard reset.</strong> Not for AI. For me.</p><p>I saw GPT-3 reach into parts of software world I&#8217;d never had exposure to. Stitching together solutions I&#8217;d never seen before.</p><h3></h3><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.replacingmyself.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Replacing Myself is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h3>Sticks and stones aren&#8217;t going to tell you how to make fire.</h3><p>Intelligence is different. You can just ask for things.</p><p>The model has studied a lot of what humans built. So when you ask for something, you&#8217;re often not the first person to do the thing.</p><blockquote><p><em>There might already be a solution inside it - waiting to be stitched together.</em></p></blockquote><p>So you can reach into capabilities you didn&#8217;t invent. Like grabbing Lego blocks from the whole internet brain.</p><p>Learning voice cloning took me two hours. Two hours.</p><p><strong>It was almost too easy.</strong></p><p>So I asked my second question of the day. Teach me how to build a GPT-powered chatbot.</p><p>It wrote the first version. I got it running on my computer.</p><p>And suddenly I&#8217;m staring at this thing like&#8230; Okay. This is not normal software.</p><h3>You should ask dumb questions.</h3><p><strong>The real unlock is asking without shame.</strong></p><p>The model doesn&#8217;t judge you.</p><p>It just tells you how the world works.</p><p>I don&#8217;t know how Git works. Teach me. </p><p>I don&#8217;t know this knob in my music software. Teach me.</p><p>I don&#8217;t know how to build the app. Teach me.</p><p>Most people won&#8217;t say that out loud. Especially around smart roommates, coworkers, or anyone they want to impress.</p><p><strong>We&#8217;re afraid of being judged.</strong></p><p>A language model doesn&#8217;t do that.</p><p>It doesn&#8217;t care what you <em>should</em> know. It doesn&#8217;t flinch. It doesn&#8217;t keep score.</p><p>And once that clicks, something shifts.</p><p>You stop pretending you already understand. You stop posturing. You start learning. Openly, aggressively, without fear.</p><p><strong>That alone is a superpower.</strong></p><h3>I&#8217;m not limited by everything I&#8217;ve ever worked on. I&#8217;m limited by the questions I ask.</h3><p>I&#8217;d ask it to write a Python program. Then another. Then another. </p><p>Sometimes I&#8217;d ask for 100 variations just to see what was possible.</p><p>I&#8217;d step away for a bit, come back, and read through what it made, flipping through project ideas from an eager intern.</p><p>And over and over I&#8217;d have the same reaction:</p><p><em>Wait&#8230; you can automate that?</em></p><p>Nothing about the computer changed. My imagination did.</p><p>So the bottleneck shifts. From typing. To thinking.</p><p>From memorizing. To asking.</p><p>Try these prompts for a day:</p><ul><li><p>Teach me how to do the thing I&#8217;m avoiding</p></li><li><p>Let&#8217;s make the first version of this idea</p></li><li><p>Show me what I&#8217;m missing</p></li></ul><p><strong>Then notice what changes in your brain.</strong></p><p>Because once you feel it, you can&#8217;t unfeel it.</p><p>What dumb question are you avoiding right now?</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.replacingmyself.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Replacing Myself is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[OpenAI Agents SDK: Multi-agent Orchestration]]></title><description><![CDATA[AI Agents! ASSEMBLE!]]></description><link>https://www.replacingmyself.ai/p/openai-agents-sdk-multi-agent-orchestration</link><guid isPermaLink="false">https://www.replacingmyself.ai/p/openai-agents-sdk-multi-agent-orchestration</guid><dc:creator><![CDATA[parth]]></dc:creator><pubDate>Wed, 12 Mar 2025 06:44:38 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/b96ae7ce-fcd5-4013-bac0-d2365679ddd7_1024x1024.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h3><strong>Powering Complex Tasks with Multi-agent Orchestration</strong></h3><p>You've seen how to create basic agents and equip them with tools and guardrails. Now, let's explore how you can orchestrate multiple agents to handle complex workflows seamlessly.</p><h3><strong>Why Orchestrate Multiple Agents?</strong></h3><p>Multi-agent orchestration allows you to:</p><ul><li><p>Break complex tasks into simpler sub-tasks</p></li><li><p>Utilize specialized agents for specific roles</p></li><li><p>Improve efficiency by parallelizing tasks</p></li></ul><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.replacingmyself.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Replacing Myself with A.I.! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h3><strong>Example: Topic-specific Agents</strong></h3><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!WvpB!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F75d2b23a-bbca-450f-95a5-cfc956a4e72a_1302x1636.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!WvpB!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F75d2b23a-bbca-450f-95a5-cfc956a4e72a_1302x1636.png 424w, https://substackcdn.com/image/fetch/$s_!WvpB!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F75d2b23a-bbca-450f-95a5-cfc956a4e72a_1302x1636.png 848w, https://substackcdn.com/image/fetch/$s_!WvpB!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F75d2b23a-bbca-450f-95a5-cfc956a4e72a_1302x1636.png 1272w, https://substackcdn.com/image/fetch/$s_!WvpB!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F75d2b23a-bbca-450f-95a5-cfc956a4e72a_1302x1636.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!WvpB!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F75d2b23a-bbca-450f-95a5-cfc956a4e72a_1302x1636.png" width="1302" height="1636" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/75d2b23a-bbca-450f-95a5-cfc956a4e72a_1302x1636.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1636,&quot;width&quot;:1302,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1886313,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://parthintelligence.substack.com/i/158898401?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F75d2b23a-bbca-450f-95a5-cfc956a4e72a_1302x1636.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!WvpB!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F75d2b23a-bbca-450f-95a5-cfc956a4e72a_1302x1636.png 424w, https://substackcdn.com/image/fetch/$s_!WvpB!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F75d2b23a-bbca-450f-95a5-cfc956a4e72a_1302x1636.png 848w, https://substackcdn.com/image/fetch/$s_!WvpB!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F75d2b23a-bbca-450f-95a5-cfc956a4e72a_1302x1636.png 1272w, https://substackcdn.com/image/fetch/$s_!WvpB!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F75d2b23a-bbca-450f-95a5-cfc956a4e72a_1302x1636.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Here's how to route user requests based on language, orchestrating multiple specialized agents:</p><p><strong>Set up your Python environment:</strong></p><pre><code><code>python -m venv env
source env/bin/activate</code></code></pre><pre><code><code>pip install openai-agents
pip install python-dotenv
pip install termcolor</code></code></pre><p>This script dynamically routes the request to the right topical agent, improving clarity and relevance.</p><pre><code>from agents import Agent, Runner, handoff, set_tracing_disabled
import asyncio
from dotenv import load_dotenv
from termcolor import colored

# Load environment variables from .env file
load_dotenv()

set_tracing_disabled(True)

# ==========================================
# MULTI-AGENT SYSTEM DEFINITION
# ==========================================
print(colored("Initializing Multi-Agent System...", "cyan"))

# Define specialized agents that handle different conversation styles
wizard_agent = Agent(
    name="Wizard Agent",
    instructions="You respond as a wise wizard, using magical-themed language."
)

pirate_agent = Agent(
    name="Pirate Agent",
    instructions="You speak like a pirate, always saying 'Arrr!' and referring to treasure."
)

robot_agent = Agent(
    name="Robot Agent",
    instructions="You respond like a friendly robot, often using 'beep boop'."
)

# Triage agent determines who should handle the message based on style
party_host_agent = Agent(
    name="Party Host Agent",
    instructions="Based on the user's request, handoff to the Wizard, Pirate, or Robot agent.",
    handoffs=[wizard_agent, robot_agent, pirate_agent]
)

# ==========================================
# MULTI-AGENT ORCHESTRATION
# ==========================================

# Override handoff function to visualize agent handoffs
original_handoff = handoff
def tracked_handoff(agent, reason=""):
    print(colored(f"[ROUTING]: Party Host &#8594; {agent.name}", "blue"))
    return original_handoff(agent, reason)

handoff = tracked_handoff

# Main function demonstrating agent orchestration
async def main():
    print(colored("=== MULTI-AGENT SYSTEM DEMO ===", "cyan", attrs=["bold"]))
    
    # Demo 1: Magical request (should go to Wizard)
    user_message = "Tell me about magic!"
    print(colored("\n[USER]: Tell me about magic!", "magenta"))
    result = await Runner.run(party_host_agent, input=user_message)
    print(colored(f"[WIZARD]: {result.final_output}", "green"))
    
    # Demo 2: Pirate request
    user_message = "Where's the treasure?"
    print(colored("\n[USER]: Where's the treasure?", "magenta"))
    result = await Runner.run(party_host_agent, input=user_message)
    print(colored(f"[PIRATE]: {result.final_output}", "green"))
    
    # Demo 3: Robot request
    user_message = "How do robots work?"
    print(colored("\n[USER]: How do robots work?", "magenta"))
    result = await Runner.run(party_host_agent, input=user_message)
    print(colored(f"[ROBOT]: {result.final_output}", "green"))

    # Print summary of the multi-agent system
    print(colored("\n=== MULTI-AGENT SYSTEM SUMMARY ===", "cyan"))
    print(colored("This demo showed a Party Host Agent routing requests to specialized agents:", "white"))
    print(colored("1. Wizard Agent - Handles magical conversations", "white"))
    print(colored("2. Pirate Agent - Speaks like a pirate", "white"))
    print(colored("3. Robot Agent - Responds as a friendly robot", "white"))
    print(colored("Each request was analyzed and routed to the most appropriate agent automatically", "white"))

if __name__ == "__main__":
    asyncio.run(main())</code></pre><h3><strong>Benefits of Orchestration</strong></h3><ul><li><p><strong>Specialization</strong>: Agents handle tasks they're optimized for.</p></li><li><p><strong>Efficiency</strong>: Multiple agents can process tasks simultaneously.</p></li><li><p><strong>Scalability</strong>: Easily scale complex workflows by adding new agents.</p></li></ul><h3><strong>Next Steps</strong></h3><p>Continue enhancing your AI agent capabilities and explore more advanced orchestration patterns with OpenAI Agents SDK!</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.replacingmyself.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Replacing Myself with A.I.! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[OpenAI Agents SDK: Preventing Sensitive Information Leaks with Output Guardrails]]></title><description><![CDATA[In today's digital age, safeguarding sensitive information is crucial.]]></description><link>https://www.replacingmyself.ai/p/openai-agents-sdk-preventing-sensitive</link><guid isPermaLink="false">https://www.replacingmyself.ai/p/openai-agents-sdk-preventing-sensitive</guid><dc:creator><![CDATA[parth]]></dc:creator><pubDate>Wed, 12 Mar 2025 03:55:29 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!M8Ni!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc4f94d9d-e6b6-42ed-8a95-ec6ec1ba187e_744x1358.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>In today's digital age, safeguarding sensitive information is crucial. Whether passwords, social security numbers (SSNs), or other personal data, the risk of accidental disclosure by AI-driven agents can have serious consequences. Fortunately, OpenAI's Agents SDK simplifies the process of preventing such leaks through <strong>Output Guardrails</strong>.</p><h2><strong>What are Output Guardrails?</strong></h2><p>Output guardrails are specialized checks integrated into agent workflows that examine an agent&#8217;s responses before they reach the user. They ensure that agents don't inadvertently expose information such as passwords, SSNs, or personal identifiers.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.replacingmyself.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Replacing Myself with A.I.! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2>Practical Demonstration</h2><p>Let's look at a couple of practical tests:</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!M8Ni!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc4f94d9d-e6b6-42ed-8a95-ec6ec1ba187e_744x1358.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!M8Ni!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc4f94d9d-e6b6-42ed-8a95-ec6ec1ba187e_744x1358.png 424w, https://substackcdn.com/image/fetch/$s_!M8Ni!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc4f94d9d-e6b6-42ed-8a95-ec6ec1ba187e_744x1358.png 848w, https://substackcdn.com/image/fetch/$s_!M8Ni!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc4f94d9d-e6b6-42ed-8a95-ec6ec1ba187e_744x1358.png 1272w, https://substackcdn.com/image/fetch/$s_!M8Ni!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc4f94d9d-e6b6-42ed-8a95-ec6ec1ba187e_744x1358.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!M8Ni!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc4f94d9d-e6b6-42ed-8a95-ec6ec1ba187e_744x1358.png" width="744" height="1358" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c4f94d9d-e6b6-42ed-8a95-ec6ec1ba187e_744x1358.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1358,&quot;width&quot;:744,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:230676,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://parthintelligence.substack.com/i/158894023?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc4f94d9d-e6b6-42ed-8a95-ec6ec1ba187e_744x1358.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!M8Ni!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc4f94d9d-e6b6-42ed-8a95-ec6ec1ba187e_744x1358.png 424w, https://substackcdn.com/image/fetch/$s_!M8Ni!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc4f94d9d-e6b6-42ed-8a95-ec6ec1ba187e_744x1358.png 848w, https://substackcdn.com/image/fetch/$s_!M8Ni!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc4f94d9d-e6b6-42ed-8a95-ec6ec1ba187e_744x1358.png 1272w, https://substackcdn.com/image/fetch/$s_!M8Ni!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc4f94d9d-e6b6-42ed-8a95-ec6ec1ba187e_744x1358.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h2><strong>Example Implementation</strong></h2><p><strong>Set up your Python environment:</strong></p><pre><code><code>python -m venv env
source env/bin/activate

pip install openai-agents
pip install pydantic
pip install termcolor</code></code></pre><p>Here's a complete, copy-paste-ready Python example demonstrating how to use output guardrails:</p><pre><code>from __future__ import annotations

import asyncio
import json
from pydantic import BaseModel, Field
from termcolor import colored

from agents import (
    Agent,
    GuardrailFunctionOutput,
    OutputGuardrailTripwireTriggered,
    RunContextWrapper,
    Runner,
    output_guardrail,
    set_tracing_disabled,
)
from dotenv import load_dotenv

load_dotenv()

set_tracing_disabled(True)

"""
This example demonstrates the use of output guardrails to check agent responses for sensitive information.
Specifically, it prevents the agent from sharing sensitive account details such as passwords.
"""


# The agent's output type
class MessageOutput(BaseModel):
    reasoning: str = Field(description="Thoughts on how to respond to the user's message")
    response: str = Field(description="The response to the user's message")
    user_name: str | None = Field(description="The name of the user who sent the message, if known")


@output_guardrail
async def sensitive_data_check(
    context: RunContextWrapper, agent: Agent, output: MessageOutput
) -&gt; GuardrailFunctionOutput:
    print(colored("\n=== Running Sensitive Information Check ===", "cyan"))
    
    sensitive_keywords = ["password", "ssn", "social security"]
    contains_sensitive_info_response = any(
        keyword in output.response.lower() for keyword in sensitive_keywords
    )
    contains_sensitive_info_reasoning = any(
        keyword in output.reasoning.lower() for keyword in sensitive_keywords
    )
    contains_sensitive_info = contains_sensitive_info_response or contains_sensitive_info_reasoning
    
    if contains_sensitive_info:
        print(colored("&#9888;&#65039; Sensitive information detected!", "red"))
    
    print(colored("=== Sensitive Information Check Complete ===\n", "cyan"))

    return GuardrailFunctionOutput(
        output_info={
            "contains_sensitive_info_response": contains_sensitive_info_response,
            "contains_sensitive_info_reasoning": contains_sensitive_info_reasoning,
        },
        tripwire_triggered=contains_sensitive_info,
    )


agent = Agent(
    name="Security Assistant",
    instructions="You are a helpful assistant. Never share sensitive information like passwords or SSNs.",
    output_type=MessageOutput,
    output_guardrails=[sensitive_data_check],
)


async def main():
    print(colored("\n&#10024;&#10024;&#10024; Sensitive Information Guardrail Demo &#10024;&#10024;&#10024;\n", "cyan", attrs=["bold"]))

    print(colored("&#128269; Test 1: Safe question...", "yellow"))
    print(colored("User: ", "green") + "What's the capital of California?")
    
    # This should be ok
    result = await Runner.run(agent, "What's the capital of California?")
    print(colored("Agent: ", "blue") + result.final_output.response)
    print(colored("Test 1: Passed - No sensitive information detected", "green"))

    print(colored("\n&#128269; Test 2: Password disclosure...", "yellow"))
    print(colored("User: ", "green") + "My password is 12345. Can you remind me of it later?")
    
    # This should trip the guardrail
    try:
        result = await Runner.run(
            agent, "My password is 12345. Can you remind me of it later?"
        )
        print(
            colored(f"Guardrail didn't trip - this is unexpected. Output: {json.dumps(result.final_output.model_dump(), indent=2)}", "red")
        )
    except OutputGuardrailTripwireTriggered as e:
        print(colored("&#128683; Guardrail tripped!", "red", attrs=["bold"]))
        print(colored(f"Details: {json.dumps(e.guardrail_result.output.output_info, indent=2)}", "yellow"))
        print(colored("Alternative response: ", "magenta") + "I can't store or repeat sensitive information like passwords.")
        print(colored("Test 2: Passed - Password guardrail triggered as expected", "green"))

    print(colored("\n&#128269; Test 3: SSN disclosure...", "yellow"))
    print(colored("User: ", "green") + "My social security number is 123-45-6789. Please save it for future reference.")
    
    # This should also trip the guardrail
    try:
        result = await Runner.run(
            agent, "My social security number is 123-45-6789. Please save it for future reference."
        )
        print(
            colored(f"Guardrail didn't trip - this is unexpected. Output: {json.dumps(result.final_output.model_dump(), indent=2)}", "red")
        )
    except OutputGuardrailTripwireTriggered as e:
        print(colored("&#128683; Guardrail tripped!", "red", attrs=["bold"]))
        print(colored(f"Details: {json.dumps(e.guardrail_result.output.output_info, indent=2)}", "yellow"))
        print(colored("Alternative response: ", "magenta") + "I can't store or repeat sensitive information like social security numbers.")
        print(colored("Test 3: Passed - SSN guardrail triggered as expected", "green"))

    print(colored("\n&#10024;&#10024;&#10024; Demo Complete &#10024;&#10024;&#10024;\n", "cyan", attrs=["bold"]))


if __name__ == "__main__":
    asyncio.run(main())
</code></pre><p>Implementing output guardrails ensures your AI-driven agents respect user privacy and uphold security standards. By proactively checking responses for sensitive information, you foster greater trust and compliance in your digital interactions.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.replacingmyself.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Replacing Myself with A.I.! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[OpenAI Agents SDK: Input Guardrails for Spoiler Detection]]></title><description><![CDATA[Friends Don't Let AI Agents Spoil Movies]]></description><link>https://www.replacingmyself.ai/p/openai-agents-sdk-input-guardrails</link><guid isPermaLink="false">https://www.replacingmyself.ai/p/openai-agents-sdk-input-guardrails</guid><dc:creator><![CDATA[parth]]></dc:creator><pubDate>Tue, 11 Mar 2025 21:54:32 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/b88771d7-68ae-4466-8ce2-ba4b3f975c98_736x352.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Input guardrails ensure your AI agent interacts safely and appropriately by validating user inputs before the main agent processes them. Here's how you can easily use input guardrails to protect users from movie spoilers.</p><h3><strong>Why Use Input Guardrails?</strong></h3><ul><li><p><strong>Protect user experiences</strong> by preventing spoilers</p></li><li><p><strong>Enhance efficiency</strong> by intercepting inappropriate requests early</p></li><li><p><strong>Ensure relevant interactions</strong> by managing user inputs proactively</p></li></ul><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.replacingmyself.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Replacing Myself with A.I.! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h3><strong>Guardrail in Action</strong></h3><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!0Vm4!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0c841ce6-3cd4-4df4-a9e7-4fe4c9804be9_740x630.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!0Vm4!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0c841ce6-3cd4-4df4-a9e7-4fe4c9804be9_740x630.png 424w, https://substackcdn.com/image/fetch/$s_!0Vm4!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0c841ce6-3cd4-4df4-a9e7-4fe4c9804be9_740x630.png 848w, https://substackcdn.com/image/fetch/$s_!0Vm4!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0c841ce6-3cd4-4df4-a9e7-4fe4c9804be9_740x630.png 1272w, https://substackcdn.com/image/fetch/$s_!0Vm4!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0c841ce6-3cd4-4df4-a9e7-4fe4c9804be9_740x630.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!0Vm4!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0c841ce6-3cd4-4df4-a9e7-4fe4c9804be9_740x630.png" width="740" height="630" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/0c841ce6-3cd4-4df4-a9e7-4fe4c9804be9_740x630.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:630,&quot;width&quot;:740,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:111907,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://parthintelligence.substack.com/i/158877569?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0c841ce6-3cd4-4df4-a9e7-4fe4c9804be9_740x630.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!0Vm4!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0c841ce6-3cd4-4df4-a9e7-4fe4c9804be9_740x630.png 424w, https://substackcdn.com/image/fetch/$s_!0Vm4!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0c841ce6-3cd4-4df4-a9e7-4fe4c9804be9_740x630.png 848w, https://substackcdn.com/image/fetch/$s_!0Vm4!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0c841ce6-3cd4-4df4-a9e7-4fe4c9804be9_740x630.png 1272w, https://substackcdn.com/image/fetch/$s_!0Vm4!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0c841ce6-3cd4-4df4-a9e7-4fe4c9804be9_740x630.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h3><strong>Example: Spoiler Detection Guardrail</strong></h3><p>Below is a practical example using input guardrails to detect and prevent spoiler requests:</p><p><strong>Set up your Python environment:</strong></p><pre><code><code>python -m venv env
source env/bin/activate</code></code></pre><pre><code><code>pip install openai-agents
pip install python-dotenv
pip install termcolor
pip install pydantic</code></code></pre><p>This example demonstrates how to use the Agents SDK to implement input guardrails that prevent users from getting spoilers about movies. It uses a separate agent specifically for detecting spoiler requests before passing inputs to the main agent.</p><pre><code>import os
import asyncio
from typing import Optional
from pydantic import BaseModel, Field
from dotenv import load_dotenv
from termcolor import colored

from agents import (
    Agent,
    GuardrailFunctionOutput,
    InputGuardrailTripwireTriggered,
    RunContextWrapper,
    Runner,
    input_guardrail,
    set_tracing_disabled,
)

# Load environment variables
load_dotenv()

# Disable tracing to skip trace output
set_tracing_disabled(True)

# Movie database with spoiler information (reduced to essential examples)
MOVIE_DATABASE = {
    "the sixth sense": {
        "spoilers": ["bruce willis is dead", "malcolm is a ghost"],
        "safe_description": "A psychological thriller about a child psychologist working with a young boy who claims to see ghosts.",
    },
    "the empire strikes back": {
        "spoilers": ["darth vader is luke's father", "vader is luke's father"],
        "safe_description": "The second installment in the original Star Wars trilogy where Luke Skywalker continues his Jedi training.",
    },
    "titanic": {
        "spoilers": ["jack dies", "the ship sinks"],
        "safe_description": "A romantic drama set against the backdrop of the ill-fated maiden voyage of the Titanic.",
    }
}

class SpoilerCheckOutput(BaseModel):
    is_spoiler_request: bool = Field(description="Whether the user is asking for spoilers")
    detected_movie: Optional[str] = Field(default=None, description="The movie detected in the request")
    reasoning: str = Field(description="The reasoning for the detection")

# Create the spoiler detection agent
spoiler_detection_agent = Agent(
    name="Spoiler Detection Agent",
    instructions="""
    You are a specialized agent that detects spoiler requests for movies.
    
    Analyze the user's input to determine if they are asking for movie spoilers.
    Look for phrases like "what happens at the end", "how does it end", "tell me the ending",
    "spoil it for me", "what's the twist", "who dies in", etc.
    
    Also check if they're mentioning any specific movie title that's in our database.
    """,
    output_type=SpoilerCheckOutput,
)

@input_guardrail
async def detect_spoiler_request(
    context: RunContextWrapper, agent: Agent, user_input: str
) -&gt; GuardrailFunctionOutput:
    """Uses a specialized agent to detect if a user is asking for movie spoilers."""
    result = await Runner.run(spoiler_detection_agent, user_input)
    
    is_spoiler_request = result.final_output.is_spoiler_request
    detected_movie = result.final_output.detected_movie
    
    if is_spoiler_request and detected_movie and detected_movie in MOVIE_DATABASE:
        safe_response = f"I'd rather not spoil '{detected_movie.title()}' for you. {MOVIE_DATABASE[detected_movie]['safe_description']}"
    elif is_spoiler_request:
        safe_response = "I prefer not to reveal spoilers that might ruin your movie experience."
    
    return GuardrailFunctionOutput(
        tripwire_triggered=is_spoiler_request,
        output_info={
            "result": result.final_output.model_dump() if hasattr(result.final_output, "model_dump") else result.final_output,
            "safe_response": safe_response if is_spoiler_request else None
        }
    )

# Create the main movie agent with the guardrail
movie_agent = Agent(
    name="Movie Chat Agent",
    instructions="You are a helpful movie expert. Provide accurate information about movies and recommend movies based on users' interests. Never reveal major spoilers about movie plots, twists or endings.",
    input_guardrails=[detect_spoiler_request]
)

# Run simplified examples to demonstrate the guardrail
async def main():
    """Run a demonstration of the spoiler detection guardrail."""
    print(colored("\n=== Spoiler Detection Guardrail Demonstration ===\n", "cyan"))
    
    examples = [
        ("Tell me the ending of Titanic.", "Clear spoiler request"),
        ("What genre is The Sixth Sense?", "Non-spoiler movie question"),
        ("Who dies in The Empire Strikes Back?", "Potential spoiler request"),
    ]
    
    for user_input, description in examples:
        print(colored(f"\n--- {description} ---", "cyan"))
        print(colored(f"User: {user_input}", "green"))
        
        try:
            result = await Runner.run(movie_agent, user_input)
            response = result.final_output if hasattr(result, 'final_output') else result
            print(colored(f"Agent: {response}", "blue"))
        except InputGuardrailTripwireTriggered as e:
            print(colored(f"&#128683; Input Guardrail Triggered: {e.guardrail_result.output.output_info.get('safe_response', 'Spoiler request detected!')}", "red"))
        except Exception as e:
            print(colored(f"&#10060; Error: {str(e)}", "red"))
    
    print(colored("\n=== End of Demonstration ===\n", "cyan"))

if __name__ == "__main__":
    asyncio.run(main()) </code></pre><h3><strong>Next Steps</strong></h3><p>Explore further by implementing <strong>output guardrails</strong> to refine agent responses even after processing user input!</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.replacingmyself.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Replacing Myself with A.I.! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!pd3i!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0d121dca-113b-469d-a437-1691d15acf88_1024x1024.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!pd3i!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0d121dca-113b-469d-a437-1691d15acf88_1024x1024.png 424w, https://substackcdn.com/image/fetch/$s_!pd3i!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0d121dca-113b-469d-a437-1691d15acf88_1024x1024.png 848w, https://substackcdn.com/image/fetch/$s_!pd3i!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0d121dca-113b-469d-a437-1691d15acf88_1024x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!pd3i!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0d121dca-113b-469d-a437-1691d15acf88_1024x1024.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!pd3i!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0d121dca-113b-469d-a437-1691d15acf88_1024x1024.png" width="728" height="728" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/0d121dca-113b-469d-a437-1691d15acf88_1024x1024.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:false,&quot;imageSize&quot;:&quot;normal&quot;,&quot;height&quot;:1024,&quot;width&quot;:1024,&quot;resizeWidth&quot;:728,&quot;bytes&quot;:1934727,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://parthintelligence.substack.com/i/158877569?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0d121dca-113b-469d-a437-1691d15acf88_1024x1024.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!pd3i!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0d121dca-113b-469d-a437-1691d15acf88_1024x1024.png 424w, https://substackcdn.com/image/fetch/$s_!pd3i!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0d121dca-113b-469d-a437-1691d15acf88_1024x1024.png 848w, https://substackcdn.com/image/fetch/$s_!pd3i!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0d121dca-113b-469d-a437-1691d15acf88_1024x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!pd3i!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0d121dca-113b-469d-a437-1691d15acf88_1024x1024.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p>]]></content:encoded></item><item><title><![CDATA[OpenAI Agents SDK: Give Your Agent Tools]]></title><description><![CDATA[When you need the AI to actually do something]]></description><link>https://www.replacingmyself.ai/p/openai-agents-sdk-give-your-agent</link><guid isPermaLink="false">https://www.replacingmyself.ai/p/openai-agents-sdk-give-your-agent</guid><dc:creator><![CDATA[parth]]></dc:creator><pubDate>Tue, 11 Mar 2025 18:48:26 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/8662c2ba-30d6-4bca-bb51-2b7b7a8f71aa_1024x1024.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>In the <a href="https://p4rth.substack.com/p/openai-agents-sdk-building-your-first">previous post</a>, we created a simple agent that responded in haikus. But the real strength of AI agents emerges when they interact with external tools, making them powerful assistants in dynamic scenarios such as gameplay.</p><h3><strong>Why Use Tools?</strong></h3><p>Tools enable your agent to:</p><ul><li><p>Access dynamic or real-time data</p></li><li><p>Execute specific tasks and computations</p></li><li><p>Extend their capabilities beyond pre-trained knowledge</p></li></ul><p>Here's how to add a dice-rolling tool to your AI agent for game scenarios like Dungeons &amp; Dragons:</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!iB3X!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F960fd4c6-7eb0-4523-96e7-238ba59b2236_546x370.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!iB3X!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F960fd4c6-7eb0-4523-96e7-238ba59b2236_546x370.png 424w, https://substackcdn.com/image/fetch/$s_!iB3X!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F960fd4c6-7eb0-4523-96e7-238ba59b2236_546x370.png 848w, https://substackcdn.com/image/fetch/$s_!iB3X!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F960fd4c6-7eb0-4523-96e7-238ba59b2236_546x370.png 1272w, https://substackcdn.com/image/fetch/$s_!iB3X!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F960fd4c6-7eb0-4523-96e7-238ba59b2236_546x370.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!iB3X!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F960fd4c6-7eb0-4523-96e7-238ba59b2236_546x370.png" width="546" height="370" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/960fd4c6-7eb0-4523-96e7-238ba59b2236_546x370.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:370,&quot;width&quot;:546,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:58169,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://parthintelligence.substack.com/i/158864202?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F960fd4c6-7eb0-4523-96e7-238ba59b2236_546x370.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!iB3X!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F960fd4c6-7eb0-4523-96e7-238ba59b2236_546x370.png 424w, https://substackcdn.com/image/fetch/$s_!iB3X!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F960fd4c6-7eb0-4523-96e7-238ba59b2236_546x370.png 848w, https://substackcdn.com/image/fetch/$s_!iB3X!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F960fd4c6-7eb0-4523-96e7-238ba59b2236_546x370.png 1272w, https://substackcdn.com/image/fetch/$s_!iB3X!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F960fd4c6-7eb0-4523-96e7-238ba59b2236_546x370.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><strong>Set up your Python environment:</strong></p><pre><code>python -m venv env
source env/bin/activate</code></pre><pre><code>pip install openai-agents
pip install python-dotenv</code></pre><h3><strong>Example: Dice Rolling Tool</strong></h3><p>We'll implement a Dice Roll tool that simulates dice rolls for games:</p><pre><code>from agents import Agent, Runner, function_tool
import asyncio
import random
from dotenv import load_dotenv
from agents import set_tracing_disabled
from termcolor import colored

load_dotenv()

set_tracing_disabled(True)

@function_tool
def roll_dice(num_dice: int, sides: int) -&gt; str:
    if sides &lt; 2:
        return "A die must have at least 2 sides."
    if num_dice &lt; 1:
        return "You must roll at least one die."
    results = [random.randint(1, sides) for _ in range(num_dice)]
    total = sum(results)
    return f"You rolled {results} on {num_dice} {sides}-sided dice, for a total of {total}."

agent = Agent(
    name="Dice Roller",
    instructions="You're an assistant that helps users roll dice for games.",
    tools=[roll_dice]
)

async def main():
    print(colored(f"=== Running {agent.name} ===", "cyan"))
    user_input = input(colored("Enter your dice roll request: ", "magenta"))
    print(colored(f"You: {user_input}", "magenta"))
    output = await Runner.run(agent, user_input)
    # Use termcolor to colorize the output
    colored_output = colored(output.final_output, "green", attrs=["bold"])
    print(colored_output)

if __name__ == "__main__":
    asyncio.run(main())</code></pre><h3><strong>Running Your Agent</strong></h3><p>Save the script as dice_roller.py and execute:</p><pre><code>python dice_roller.py</code></pre><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!nKrd!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F27e11d2e-1ab8-4039-9af1-22a8b26675c6_546x370.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!nKrd!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F27e11d2e-1ab8-4039-9af1-22a8b26675c6_546x370.png 424w, https://substackcdn.com/image/fetch/$s_!nKrd!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F27e11d2e-1ab8-4039-9af1-22a8b26675c6_546x370.png 848w, https://substackcdn.com/image/fetch/$s_!nKrd!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F27e11d2e-1ab8-4039-9af1-22a8b26675c6_546x370.png 1272w, https://substackcdn.com/image/fetch/$s_!nKrd!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F27e11d2e-1ab8-4039-9af1-22a8b26675c6_546x370.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!nKrd!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F27e11d2e-1ab8-4039-9af1-22a8b26675c6_546x370.png" width="546" height="370" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/27e11d2e-1ab8-4039-9af1-22a8b26675c6_546x370.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:370,&quot;width&quot;:546,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:58169,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://parthintelligence.substack.com/i/158864202?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F27e11d2e-1ab8-4039-9af1-22a8b26675c6_546x370.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!nKrd!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F27e11d2e-1ab8-4039-9af1-22a8b26675c6_546x370.png 424w, https://substackcdn.com/image/fetch/$s_!nKrd!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F27e11d2e-1ab8-4039-9af1-22a8b26675c6_546x370.png 848w, https://substackcdn.com/image/fetch/$s_!nKrd!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F27e11d2e-1ab8-4039-9af1-22a8b26675c6_546x370.png 1272w, https://substackcdn.com/image/fetch/$s_!nKrd!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F27e11d2e-1ab8-4039-9af1-22a8b26675c6_546x370.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h3><strong>Next Steps</strong></h3><p>Continue your journey by exploring:</p><ul><li><p><strong>OpenAI Agents SDK: Guardrails</strong></p></li><li><p><strong>OpenAI Agents SDK: Multi-agent Orchestration</strong></p></li></ul><p>Keep your agents versatile and powerful with OpenAI's Agents SDK!</p><p></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.replacingmyself.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Replacing Myself with A.I.! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[OpenAI Agents SDK: Building Your First AI Agent]]></title><description><![CDATA[Literally copy paste this page into ChatGPT and it'll teach you what to do.]]></description><link>https://www.replacingmyself.ai/p/openai-agents-sdk-building-your-first</link><guid isPermaLink="false">https://www.replacingmyself.ai/p/openai-agents-sdk-building-your-first</guid><dc:creator><![CDATA[parth]]></dc:creator><pubDate>Tue, 11 Mar 2025 18:12:23 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/25e88327-4f35-419a-a47b-1c1fb23fffe4_1024x1024.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h3><strong>What is OpenAI Agents SDK?</strong></h3><p>The OpenAI Agents SDK is a lightweight and flexible framework designed to build AI agents that can perform tasks, utilize tools, and interact seamlessly within workflows. Whether you're building customer support assistants, content generators, or even complex multi-agent systems, the OpenAI Agents SDK streamlines the creation and orchestration of intelligent agents.</p><h3><strong>Why Use the Agents SDK?</strong></h3><p>The SDK provides:</p><ul><li><p>Easy setup for simple agents</p></li><li><p>Powerful tools integration</p></li><li><p>Structured outputs for reliable results</p></li><li><p>Built-in orchestration for multi-agent workflows</p></li></ul><p>Here's how you can quickly create your first agent:</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.replacingmyself.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Replacing Myself with A.I.! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h3><strong>Quickstart: Haiku Assistant</strong></h3><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!kBxv!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe6e7b338-c714-4753-bb44-30b06bcb8819_650x138.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!kBxv!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe6e7b338-c714-4753-bb44-30b06bcb8819_650x138.png 424w, https://substackcdn.com/image/fetch/$s_!kBxv!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe6e7b338-c714-4753-bb44-30b06bcb8819_650x138.png 848w, https://substackcdn.com/image/fetch/$s_!kBxv!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe6e7b338-c714-4753-bb44-30b06bcb8819_650x138.png 1272w, https://substackcdn.com/image/fetch/$s_!kBxv!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe6e7b338-c714-4753-bb44-30b06bcb8819_650x138.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!kBxv!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe6e7b338-c714-4753-bb44-30b06bcb8819_650x138.png" width="650" height="138" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e6e7b338-c714-4753-bb44-30b06bcb8819_650x138.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:138,&quot;width&quot;:650,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:30041,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://parthintelligence.substack.com/i/158826657?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe6e7b338-c714-4753-bb44-30b06bcb8819_650x138.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!kBxv!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe6e7b338-c714-4753-bb44-30b06bcb8819_650x138.png 424w, https://substackcdn.com/image/fetch/$s_!kBxv!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe6e7b338-c714-4753-bb44-30b06bcb8819_650x138.png 848w, https://substackcdn.com/image/fetch/$s_!kBxv!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe6e7b338-c714-4753-bb44-30b06bcb8819_650x138.png 1272w, https://substackcdn.com/image/fetch/$s_!kBxv!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe6e7b338-c714-4753-bb44-30b06bcb8819_650x138.png 1456w" sizes="100vw" fetchpriority="high"></picture><div></div></div></a></figure></div><p>Follow these steps to create an agent that responds in haikus:</p><p><strong>Set up your Python environment:</strong></p><pre><code>python -m venv env
source env/bin/activate</code></pre><pre><code>pip install openai-agents
pip install python-dotenv
pip install termcolor</code></pre><p>You will need an OpenAI API key which you can get <a href="https://platform.openai.com/api-keys">here</a>.</p><h3><strong>Writing Your First Agent</strong></h3><p>Let's create a simple agent that only responds in haikus:</p><pre><code>from agents import Agent, Runner
import asyncio
from dotenv import load_dotenv
from termcolor import colored
import os
from agents import set_tracing_disabled

# Load environment variables from .env file
load_dotenv()

set_tracing_disabled(True)

agent = Agent(
    name="Haiku Assistant",
    instructions="You only respond in haikus."
)

async def main():
    print(colored("=== Running Haiku Assistant ===", "cyan"))
    print(colored("You: Tell me about recursion in programming.", "magenta"))
    result = await Runner.run(agent, "Tell me about recursion in programming.")
    print(colored(result.final_output, "cyan"))

if __name__ == "__main__":
    asyncio.run(main()) </code></pre><h3><strong>Running Your Agent</strong></h3><p>Save the script as hello_haiku.py and run it:</p><pre><code>python hello_haiku.py</code></pre><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!wlec!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff675563b-291e-4b45-a061-a7d6fccd015b_650x138.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!wlec!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff675563b-291e-4b45-a061-a7d6fccd015b_650x138.png 424w, https://substackcdn.com/image/fetch/$s_!wlec!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff675563b-291e-4b45-a061-a7d6fccd015b_650x138.png 848w, https://substackcdn.com/image/fetch/$s_!wlec!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff675563b-291e-4b45-a061-a7d6fccd015b_650x138.png 1272w, https://substackcdn.com/image/fetch/$s_!wlec!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff675563b-291e-4b45-a061-a7d6fccd015b_650x138.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!wlec!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff675563b-291e-4b45-a061-a7d6fccd015b_650x138.png" width="650" height="138" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/f675563b-291e-4b45-a061-a7d6fccd015b_650x138.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:138,&quot;width&quot;:650,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:30041,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://parthintelligence.substack.com/i/158826657?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff675563b-291e-4b45-a061-a7d6fccd015b_650x138.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!wlec!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff675563b-291e-4b45-a061-a7d6fccd015b_650x138.png 424w, https://substackcdn.com/image/fetch/$s_!wlec!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff675563b-291e-4b45-a061-a7d6fccd015b_650x138.png 848w, https://substackcdn.com/image/fetch/$s_!wlec!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff675563b-291e-4b45-a061-a7d6fccd015b_650x138.png 1272w, https://substackcdn.com/image/fetch/$s_!wlec!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff675563b-291e-4b45-a061-a7d6fccd015b_650x138.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>Congratulations! You've built your first agent with OpenAI's Agents SDK.</p><h3><strong>What's Next?</strong></h3><p>From here, you can expand your agents with:</p><ul><li><p><strong>Tools:</strong> Allow agents to access databases, APIs, and other external resources.</p></li><li><p><strong>Guardrails:</strong> Ensure your agents produce valid, safe, and relevant responses.</p></li><li><p><strong>Multi-agent orchestration:</strong> Connect agents to handle complex workflows or tasks that require specialized knowledge or skills.</p></li></ul><p>Ready to explore more? Check out the following articles in this series:</p><ul><li><p>OpenAI Agents SDK: Give Your Agent Tools</p></li><li><p>OpenAI Agents SDK: Guardrails</p></li><li><p>OpenAI Agents SDK: Multi-agent Orchestration</p></li></ul><p>We&#8217;re excited to see what you build!</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.replacingmyself.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Replacing Myself with A.I.! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Beyond the Balance Sheet: How Generative AI Is Re-Engineering Finance Both Securely and at Scale]]></title><description><![CDATA[Why This Matters]]></description><link>https://www.replacingmyself.ai/p/beyond-the-balance-sheet-how-generative</link><guid isPermaLink="false">https://www.replacingmyself.ai/p/beyond-the-balance-sheet-how-generative</guid><dc:creator><![CDATA[Jaiya Gill]]></dc:creator><pubDate>Mon, 06 Jan 2025 17:00:00 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!Odzu!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9d41f88f-b317-4fc5-be17-58fb0131dd1f_1280x1280.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h3>Why This Matters</h3><p>For decades, financial teams mastered spreadsheets, SQL, and ever-evolving regulations. In 2025, the competitive edge is increasingly defined by how well a firm wields artificial intelligence, especially large-language-model (LLM) tools, to cut costs, uncover insights, and stay compliant. Bridging these disciplines calls for writers who can translate deep technical detail into clear guidance for risk-averse CFOs and innovation-hungry engineers alike.</p><h3>1. The AI&#8211;Finance Convergence</h3><ul><li><p><strong>Hyper-automation of core workflows.</strong> Finance departments now use AI to process invoices, reconcile accounts, and post journal entries with near-perfect accuracy, freeing analysts for higher-value work. </p></li><li><p><strong>Natural-language reporting.</strong> LLMs draft first-pass earnings memos, board packets, and even customer disclosures in seconds, accelerating cycles while enforcing style guides.</p></li><li><p><strong>Real-time scenario modeling.</strong> Generative agents can synthesize macro data and internal ledgers to stress-test cash positions or simulate interest-rate shocks faster than traditional Monte Carlo runs.</p></li></ul><div><hr></div><h3>2. The New Compliance Playbook</h3><p>Regulators have noticed the speed of adoption:</p><p>SEC</p><p>2025 Focus: Use of generative AI in investment strategies</p><p>Why It Matters: Examiners will scrutinize data-quality controls and model-risk governance.</p><p>FINRA</p><p>2025 Focus: Vendor-supported Gen-AI tools in broker-dealers</p><p>Why It Matters: Firms must document prompt-engineering safeguards and supervision. </p><p>FSOC</p><p>2025 Focus: Systemic risk from AI in large institutions</p><p>Why It Matters: Boards may face capital or liquidity add-ons for opaque models.</p><p>Failure to align engineering velocity with regulatory expectations can trigger fines or forced model roll-backs, costly setbacks that erode any ROI AI promised in the first place.</p><div><hr></div><h3>3. Managing Model Risk: A Five-Step Framework</h3><ol><li><p><strong>Inventory &amp; classify LLM use-cases.</strong> Map every prompt path touching confidential data.</p></li><li><p><strong>Data-provenance controls.</strong> Strip PII and trading signals before tokens ever reach an external API.</p></li><li><p><strong>Bias &amp; hallucination testing.</strong> Adopt FAIR (Financial AI Risk) benchmarks to score outputs for factuality and fairness. </p></li><li><p><strong>Human-in-the-loop checkpoints.</strong> Require sign-off from domain experts before AI-generated analyses become client-facing.</p></li><li><p><strong>Continuous audit trails.</strong> Log prompts, model versions, and downstream edits to satisfy SEC / FINRA examiners.</p></li></ol><p>A March 2025 industry study found that firms embedding those controls reduced remediation costs by 35 % year-over-year. </p><div><hr></div><h3>4. Innovation vs. Regulation: The Policy Tug-of-War</h3><p>U.S. lawmakers are still debating whether to pre-empt state-level AI rules to avoid a &#8220;patchwork&#8221; that stifles fintech innovation. Meanwhile, at least 40 state attorneys general oppose a federal moratorium, underscoring the uncertain road ahead for nationwide AI governance. </p><p>For finance chiefs, that means any AI roll-out must be agile enough to adapt to both federal and state directives without pausing mission-critical processes.</p><div><hr></div><h3>5. Practical Applications: Where AI Already Pays Off</h3><p><strong>Yield optimization</strong></p><p>Traditional Effort: Manual rate-chasing across money-market funds</p><p>AI-Enhanced Outcome: LLM agents screen prospectuses daily and auto-reinvest in the highest tax-equivalent yield&#8212;often boosting net returns 30&#8211;50 bps.</p><p><strong>Fraud detection</strong></p><p>Traditional Effort: Rules-based alerts with high false-positive rates</p><p>AI-Enhanced Outcome: Transformer models flag synthetic-ID fraud patterns hidden from legacy systems.</p><p><strong>Client communications</strong></p><p>Traditional Effort: Hours drafting FAQs on treasury alternatives</p><p>AI-Enhanced Outcome: AI chatbots generate compliant, personalized explanations in seconds, increasing CSAT.</p><div><hr></div><h3>6. The Human Edge</h3><p>AI excels at crunching terabytes, but it still lacks context, empathy, and ethical judgment. Finance professionals like portfolio managers, tax strategists, technical writers, remain indispensable curators of narrative and nuance.</p><div><hr></div><h3>7. How Technical Writing Powers Responsible Deployment</h3><ol><li><p><strong>Architectural clarity.</strong> Diagrams and API specs translate between data engineers and audit teams.</p></li><li><p><strong>Plain-language guides.</strong> Step-by-step SOPs help non-technical staff interact with LLM dashboards safely.</p></li><li><p><strong>Regulatory narratives.</strong> Detailed model-governance reports give examiners confidence that AI outputs can be trusted.</p></li><li><p><strong>Change-management storytelling.</strong> Articles like this one demystify technology, accelerating stakeholder buy-in across finance and IT.</p></li></ol><div><hr></div><h3>Conclusion</h3><p>The 2025 finance stack is no longer defined by ERP ledgers alone&#8212;it&#8217;s shaped by GPUs, vector databases, and transformer checkpoints. Yet the ultimate differentiator is <strong>communication</strong>: translating sophisticated AI methods into actionable, compliant strategies that protect capital and unlock growth.</p><p>That is the craft of the modern technical writer at the intersection of finance and AI&#8212;and precisely the expertise I bring to my next role.</p>]]></content:encoded></item><item><title><![CDATA[Building the AI Data Analyst]]></title><description><![CDATA["It just needs to be able to C.R.U.D. a database and we're in business!"]]></description><link>https://www.replacingmyself.ai/p/building-data-analyst-agents</link><guid isPermaLink="false">https://www.replacingmyself.ai/p/building-data-analyst-agents</guid><dc:creator><![CDATA[parth]]></dc:creator><pubDate>Sat, 04 Nov 2023 08:13:27 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/8478cbb9-ab3d-44ef-a78f-3884e1ae3495_1090x572.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!nlDN!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e15c4a1-7027-4c76-9693-d6066afbac76_1878x1100.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!nlDN!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e15c4a1-7027-4c76-9693-d6066afbac76_1878x1100.png 424w, https://substackcdn.com/image/fetch/$s_!nlDN!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e15c4a1-7027-4c76-9693-d6066afbac76_1878x1100.png 848w, https://substackcdn.com/image/fetch/$s_!nlDN!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e15c4a1-7027-4c76-9693-d6066afbac76_1878x1100.png 1272w, https://substackcdn.com/image/fetch/$s_!nlDN!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e15c4a1-7027-4c76-9693-d6066afbac76_1878x1100.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!nlDN!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e15c4a1-7027-4c76-9693-d6066afbac76_1878x1100.png" width="1456" height="853" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6e15c4a1-7027-4c76-9693-d6066afbac76_1878x1100.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:853,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:794093,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!nlDN!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e15c4a1-7027-4c76-9693-d6066afbac76_1878x1100.png 424w, https://substackcdn.com/image/fetch/$s_!nlDN!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e15c4a1-7027-4c76-9693-d6066afbac76_1878x1100.png 848w, https://substackcdn.com/image/fetch/$s_!nlDN!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e15c4a1-7027-4c76-9693-d6066afbac76_1878x1100.png 1272w, https://substackcdn.com/image/fetch/$s_!nlDN!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e15c4a1-7027-4c76-9693-d6066afbac76_1878x1100.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>I decided to build a chatbot to automate basic SQL database interaction. Got this far in 10 minutes.<br><br>How? I quickly modded an unreleased variant of <a href="https://github.com/p4r7h-v/FenixAGI-MkIII">FenixAGI</a>, a research prototype I&#8217;m working on.<br><br>I suspect context limits will force me to rethink my approach soon. You can&#8217;t just add tools infinitely&#8230; can you?</p><h2>Day 2 (chat w/ database)</h2><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!-D61!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F39a40d55-7462-427f-aa4d-535830c12b3f_1660x1054.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!-D61!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F39a40d55-7462-427f-aa4d-535830c12b3f_1660x1054.png 424w, https://substackcdn.com/image/fetch/$s_!-D61!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F39a40d55-7462-427f-aa4d-535830c12b3f_1660x1054.png 848w, https://substackcdn.com/image/fetch/$s_!-D61!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F39a40d55-7462-427f-aa4d-535830c12b3f_1660x1054.png 1272w, https://substackcdn.com/image/fetch/$s_!-D61!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F39a40d55-7462-427f-aa4d-535830c12b3f_1660x1054.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!-D61!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F39a40d55-7462-427f-aa4d-535830c12b3f_1660x1054.png" width="1456" height="924" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/39a40d55-7462-427f-aa4d-535830c12b3f_1660x1054.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:924,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:291621,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!-D61!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F39a40d55-7462-427f-aa4d-535830c12b3f_1660x1054.png 424w, https://substackcdn.com/image/fetch/$s_!-D61!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F39a40d55-7462-427f-aa4d-535830c12b3f_1660x1054.png 848w, https://substackcdn.com/image/fetch/$s_!-D61!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F39a40d55-7462-427f-aa4d-535830c12b3f_1660x1054.png 1272w, https://substackcdn.com/image/fetch/$s_!-D61!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F39a40d55-7462-427f-aa4d-535830c12b3f_1660x1054.png 1456w" sizes="100vw"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Built on OpenAI function calling, I can chat directly with a database now.<br><br>Still need to give it a front end.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!kPi7!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85d610a3-9084-4043-b7d0-4c45e57b11c2_1090x572.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!kPi7!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85d610a3-9084-4043-b7d0-4c45e57b11c2_1090x572.png 424w, https://substackcdn.com/image/fetch/$s_!kPi7!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85d610a3-9084-4043-b7d0-4c45e57b11c2_1090x572.png 848w, https://substackcdn.com/image/fetch/$s_!kPi7!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85d610a3-9084-4043-b7d0-4c45e57b11c2_1090x572.png 1272w, https://substackcdn.com/image/fetch/$s_!kPi7!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85d610a3-9084-4043-b7d0-4c45e57b11c2_1090x572.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!kPi7!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85d610a3-9084-4043-b7d0-4c45e57b11c2_1090x572.png" width="1090" height="572" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/85d610a3-9084-4043-b7d0-4c45e57b11c2_1090x572.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:572,&quot;width&quot;:1090,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:302246,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!kPi7!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85d610a3-9084-4043-b7d0-4c45e57b11c2_1090x572.png 424w, https://substackcdn.com/image/fetch/$s_!kPi7!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85d610a3-9084-4043-b7d0-4c45e57b11c2_1090x572.png 848w, https://substackcdn.com/image/fetch/$s_!kPi7!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85d610a3-9084-4043-b7d0-4c45e57b11c2_1090x572.png 1272w, https://substackcdn.com/image/fetch/$s_!kPi7!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F85d610a3-9084-4043-b7d0-4c45e57b11c2_1090x572.png 1456w" sizes="100vw"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Now we&#8217;ve got working natural language &#8594; SQL query. LFG.</p>]]></content:encoded></item><item><title><![CDATA[Python x Natural Language Agents]]></title><description><![CDATA[A new paradigm]]></description><link>https://www.replacingmyself.ai/p/python-x-natural-language-agents</link><guid isPermaLink="false">https://www.replacingmyself.ai/p/python-x-natural-language-agents</guid><dc:creator><![CDATA[parth]]></dc:creator><pubDate>Sat, 22 Jul 2023 14:54:15 GMT</pubDate><enclosure url="https://api.substack.com/feed/podcast/135357137/bd2d41b48f9033cec0b648d106b78f02.mp3" length="0" type="audio/mpeg"/><content:encoded><![CDATA[<p></p>]]></content:encoded></item><item><title><![CDATA[Python Agents: A Paradigm Shift in Artificial Intelligence]]></title><description><![CDATA[Unleashing Versatility, Intelligence, and "Perceivably Limitless Potential"]]></description><link>https://www.replacingmyself.ai/p/python-agents-a-paradigm-shift-in</link><guid isPermaLink="false">https://www.replacingmyself.ai/p/python-agents-a-paradigm-shift-in</guid><dc:creator><![CDATA[parth]]></dc:creator><pubDate>Thu, 20 Jul 2023 14:01:20 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3097300c-66e5-4c98-9913-b76f50473771_1024x1024.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!F6Iv!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3097300c-66e5-4c98-9913-b76f50473771_1024x1024.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!F6Iv!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3097300c-66e5-4c98-9913-b76f50473771_1024x1024.png 424w, https://substackcdn.com/image/fetch/$s_!F6Iv!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3097300c-66e5-4c98-9913-b76f50473771_1024x1024.png 848w, https://substackcdn.com/image/fetch/$s_!F6Iv!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3097300c-66e5-4c98-9913-b76f50473771_1024x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!F6Iv!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3097300c-66e5-4c98-9913-b76f50473771_1024x1024.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!F6Iv!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3097300c-66e5-4c98-9913-b76f50473771_1024x1024.png" width="1024" height="1024" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3097300c-66e5-4c98-9913-b76f50473771_1024x1024.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1024,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1148554,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!F6Iv!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3097300c-66e5-4c98-9913-b76f50473771_1024x1024.png 424w, https://substackcdn.com/image/fetch/$s_!F6Iv!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3097300c-66e5-4c98-9913-b76f50473771_1024x1024.png 848w, https://substackcdn.com/image/fetch/$s_!F6Iv!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3097300c-66e5-4c98-9913-b76f50473771_1024x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!F6Iv!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3097300c-66e5-4c98-9913-b76f50473771_1024x1024.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><iframe class="spotify-wrap" data-attrs="{&quot;image&quot;:&quot;https://i.scdn.co/image/ab67616d0000b273df7b48e3cffd81ebc0198a61&quot;,&quot;title&quot;:&quot;PLANCK&quot;,&quot;subtitle&quot;:&quot;Baauer&quot;,&quot;description&quot;:&quot;&quot;,&quot;url&quot;:&quot;https://open.spotify.com/track/4WXXD1M4nW8n4gdK6WdFmX&quot;,&quot;belowTheFold&quot;:false,&quot;noScroll&quot;:false}" src="https://open.spotify.com/embed/track/4WXXD1M4nW8n4gdK6WdFmX" frameborder="0" gesture="media" allowfullscreen="true" allow="encrypted-media" data-component-name="Spotify2ToDOM"></iframe><h2><strong>Understanding AI Agents and Their Role in AI Development</strong></h2><p>In the world of AI development, agents are emerging as game-changers, revolutionizing the way people interact with technology. </p><p><strong>But what exactly is an AI agent?</strong></p><p>An &#8220;agent&#8221; refers to any system that can perceive its environment, interpret the information, and take actions to achieve specific goals. These actions are typically guided by a decision-making function, often driven by machine learning algorithms.</p><p>AI agents can range from simple rule-based systems, like a thermostat that adjusts the temperature based on predefined rules, to complex AI models that can learn from their interactions with the environment and make decisions based on those learnings.</p><blockquote><p>More recently, "<a href="https://github.com/Significant-Gravitas/Auto-GPT#readme">AutoGPT</a>," "<a href="https://github.com/yoheinakajima/babyagi">BabyAGI</a>," &#8220;<a href="https://github.com/p4r7h-v/FenixAGI-MkII">FenixAGI</a>&#8221;, and OpenAI&#8217;s  own "<a href="https://openai.com/blog/chatgpt-plugins">Bing Search/Plugins/Code Interpreter variants of GPT-4</a>" -- represent more advanced forms of AI agents built around chatbots. Although they are not all yet fully-fledged products (even the Code Interpreter agent is technically in Alpha), these tools have the potential to become powerful augmentations over time.</p></blockquote><p>They can browse the web, plan around nuanced objectives, Create, Read, Update, and Delete data, build and use custom designed tools. As these capabilities proliferate across humanity we will see a transformation in knowledge work.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!vhKO!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7416fc8-6025-4354-ae9a-a6003e266ef4_1024x1024.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!vhKO!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7416fc8-6025-4354-ae9a-a6003e266ef4_1024x1024.png 424w, https://substackcdn.com/image/fetch/$s_!vhKO!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7416fc8-6025-4354-ae9a-a6003e266ef4_1024x1024.png 848w, https://substackcdn.com/image/fetch/$s_!vhKO!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7416fc8-6025-4354-ae9a-a6003e266ef4_1024x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!vhKO!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7416fc8-6025-4354-ae9a-a6003e266ef4_1024x1024.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!vhKO!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7416fc8-6025-4354-ae9a-a6003e266ef4_1024x1024.png" width="1024" height="1024" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/b7416fc8-6025-4354-ae9a-a6003e266ef4_1024x1024.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1024,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1486643,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!vhKO!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7416fc8-6025-4354-ae9a-a6003e266ef4_1024x1024.png 424w, https://substackcdn.com/image/fetch/$s_!vhKO!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7416fc8-6025-4354-ae9a-a6003e266ef4_1024x1024.png 848w, https://substackcdn.com/image/fetch/$s_!vhKO!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7416fc8-6025-4354-ae9a-a6003e266ef4_1024x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!vhKO!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7416fc8-6025-4354-ae9a-a6003e266ef4_1024x1024.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h2><strong>Versatility and Intelligence</strong></h2><p>Traditional AI assistants, like Apple&#8217;s Siri and Google Assistant, and Amazon Alexa, excel in performing everyday tasks and controlling smart devices.</p><p>Python agents will begin to automate more data analysis tasks, generate detailed reports, and even perform advanced functions like machine learning model training and prediction.</p><p>They will increasingly focus on streamlining formatted text generation, automating intelligence research, and expanding project management capabilities. </p><p>If it&#8217;s obvious that J.A.R.V.I.S. is now possible, we should expect Siri, Google Assistant, and Alexa to step up their game.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!HN-_!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77196025-5f9f-4270-b070-34b6bff02990_1024x1024.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!HN-_!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77196025-5f9f-4270-b070-34b6bff02990_1024x1024.png 424w, https://substackcdn.com/image/fetch/$s_!HN-_!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77196025-5f9f-4270-b070-34b6bff02990_1024x1024.png 848w, https://substackcdn.com/image/fetch/$s_!HN-_!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77196025-5f9f-4270-b070-34b6bff02990_1024x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!HN-_!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77196025-5f9f-4270-b070-34b6bff02990_1024x1024.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!HN-_!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77196025-5f9f-4270-b070-34b6bff02990_1024x1024.png" width="1024" height="1024" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/77196025-5f9f-4270-b070-34b6bff02990_1024x1024.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1024,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1592199,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!HN-_!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77196025-5f9f-4270-b070-34b6bff02990_1024x1024.png 424w, https://substackcdn.com/image/fetch/$s_!HN-_!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77196025-5f9f-4270-b070-34b6bff02990_1024x1024.png 848w, https://substackcdn.com/image/fetch/$s_!HN-_!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77196025-5f9f-4270-b070-34b6bff02990_1024x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!HN-_!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77196025-5f9f-4270-b070-34b6bff02990_1024x1024.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h2><strong>Combining Natural Language Processing and Python Programming</strong></h2><p>The key differentiating factor of Python agents is their ability to combine natural language processing with the flexibility of Python programming. Agents can understand and generate natural language, while also executing Python code, providing a unique blend of capabilities.</p><p>Imagine instructing an AI agent to scrape data from a website, analyze it, and generate a visual report, all through a simple voice command or text input.</p><p>Here's an example of how a Python agent can be instructed to do a Bing search:</p><pre><code><code>{
    "name": "bing_search_save",
    "description": "Search Bing and save the results to a markdown file",
    "parameters": {
        "type": "object",
        "properties": {
            "file_name": {
                "type": "string",
                "description": "The file name to save the results to. Do not include the folder path. Save it as a markdown file",
            },
            "query": {
                "type": "string",
                "description": "The query to search for",
            },

        },
        "required": ["file_name", "query"],
    }
},
</code></code></pre><p>If you&#8217;d like to explore <a href="https://openai.com/blog/function-calling-and-other-api-updates">examples of function calling</a> and other generative AI magic, OpenAI has <a href="https://github.com/openai/openai-cookbook">a cookbook!</a></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Xtx1!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc08970c6-b0b4-401a-aecf-d8b57f552380_936x936.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Xtx1!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc08970c6-b0b4-401a-aecf-d8b57f552380_936x936.png 424w, https://substackcdn.com/image/fetch/$s_!Xtx1!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc08970c6-b0b4-401a-aecf-d8b57f552380_936x936.png 848w, https://substackcdn.com/image/fetch/$s_!Xtx1!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc08970c6-b0b4-401a-aecf-d8b57f552380_936x936.png 1272w, https://substackcdn.com/image/fetch/$s_!Xtx1!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc08970c6-b0b4-401a-aecf-d8b57f552380_936x936.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Xtx1!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc08970c6-b0b4-401a-aecf-d8b57f552380_936x936.png" width="936" height="936" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c08970c6-b0b4-401a-aecf-d8b57f552380_936x936.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:936,&quot;width&quot;:936,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!Xtx1!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc08970c6-b0b4-401a-aecf-d8b57f552380_936x936.png 424w, https://substackcdn.com/image/fetch/$s_!Xtx1!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc08970c6-b0b4-401a-aecf-d8b57f552380_936x936.png 848w, https://substackcdn.com/image/fetch/$s_!Xtx1!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc08970c6-b0b4-401a-aecf-d8b57f552380_936x936.png 1272w, https://substackcdn.com/image/fetch/$s_!Xtx1!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc08970c6-b0b4-401a-aecf-d8b57f552380_936x936.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h2><strong>Conversational Latency is Key</strong></h2><p>Conversational latency refers to the delay between a user's input and the system's response in a conversational interface, such as a chatbot or voice assistant.</p><p>This latency can be caused by various factors, including network delays, processing time for the system to understand and generate a response, and any additional time required for tasks like accessing databases or APIs.</p><p>As these agents become more capable and take on tasks autonomously, it's essential to have built-in analytics to monitor their resource usage and efficiency.</p><p>This is particularly important for voice assistants, as high latency can lead to delays in response, making the assistant seem slow or unresponsive.</p><p>By monitoring metrics such as server load, memory usage, and API calls, developers can gain insights into the agents' performance, scalability, and cost-effectiveness. </p><blockquote><p>For a smooth conversation, aim for a latency of less than 200-300 milliseconds. </p></blockquote><p>Depending on the specific application and the complexity of the tasks being performed, you should identify opportunities to switch LLMs on an as-needed basis, to balance costs and expected output quality, and speed.</p><p>When designing agents, you can provide interim responses like <em>'I&#8217;m thinking, give me a minute'</em>  to manage user expectations during periods of high latency.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!y1Ef!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5a81ac3d-a4c1-4a0f-b531-36d2c5eef5df_1024x1024.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!y1Ef!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5a81ac3d-a4c1-4a0f-b531-36d2c5eef5df_1024x1024.png 424w, https://substackcdn.com/image/fetch/$s_!y1Ef!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5a81ac3d-a4c1-4a0f-b531-36d2c5eef5df_1024x1024.png 848w, https://substackcdn.com/image/fetch/$s_!y1Ef!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5a81ac3d-a4c1-4a0f-b531-36d2c5eef5df_1024x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!y1Ef!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5a81ac3d-a4c1-4a0f-b531-36d2c5eef5df_1024x1024.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!y1Ef!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5a81ac3d-a4c1-4a0f-b531-36d2c5eef5df_1024x1024.png" width="1024" height="1024" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5a81ac3d-a4c1-4a0f-b531-36d2c5eef5df_1024x1024.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1024,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:938537,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!y1Ef!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5a81ac3d-a4c1-4a0f-b531-36d2c5eef5df_1024x1024.png 424w, https://substackcdn.com/image/fetch/$s_!y1Ef!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5a81ac3d-a4c1-4a0f-b531-36d2c5eef5df_1024x1024.png 848w, https://substackcdn.com/image/fetch/$s_!y1Ef!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5a81ac3d-a4c1-4a0f-b531-36d2c5eef5df_1024x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!y1Ef!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5a81ac3d-a4c1-4a0f-b531-36d2c5eef5df_1024x1024.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h2><strong>Optimizing Cost and Resource Allocation</strong></h2><p>With built-in analytics, AI agents will be able to autonomously optimize their resource allocation and dynamically adjust their functionality based on usage patterns. They will make intelligent decisions on resource allocation, managing costs proactively and adaptively. </p><blockquote><p>A key challenge for developers is determining how agents can balance the need for high performance with cost-effectiveness, and understanding what context is necessary to provide to the large language model.</p></blockquote><p>My friend, Akila (Supercomputing @OpenAI) likes to visualize LLMs as a <a href="https://www.awelm.com/posts/knapsack">Knapsack Problem</a>. He explores how to think about allocating tokens across the context window.</p><p><em>When you&#8217;re done reading the post linked above&#8230; Reread it. If it still doesn&#8217;t make sense, have ChatGPT &#8220;ELI5&#8221; it to you. I know I had to.</em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!twfS!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e17d148-08ee-439c-a213-8dac6430ef69_1024x1024.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!twfS!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e17d148-08ee-439c-a213-8dac6430ef69_1024x1024.png 424w, https://substackcdn.com/image/fetch/$s_!twfS!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e17d148-08ee-439c-a213-8dac6430ef69_1024x1024.png 848w, https://substackcdn.com/image/fetch/$s_!twfS!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e17d148-08ee-439c-a213-8dac6430ef69_1024x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!twfS!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e17d148-08ee-439c-a213-8dac6430ef69_1024x1024.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!twfS!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e17d148-08ee-439c-a213-8dac6430ef69_1024x1024.png" width="1024" height="1024" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5e17d148-08ee-439c-a213-8dac6430ef69_1024x1024.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1024,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1743936,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!twfS!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e17d148-08ee-439c-a213-8dac6430ef69_1024x1024.png 424w, https://substackcdn.com/image/fetch/$s_!twfS!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e17d148-08ee-439c-a213-8dac6430ef69_1024x1024.png 848w, https://substackcdn.com/image/fetch/$s_!twfS!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e17d148-08ee-439c-a213-8dac6430ef69_1024x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!twfS!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e17d148-08ee-439c-a213-8dac6430ef69_1024x1024.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h2><strong>Intelligent Suggestion</strong></h2><p>One of the most exciting prospects of agents is their potential for reflection and self-improvement. As agents interact with their environment and perform tasks, they generate a wealth of data that can be used to refine their models and improve their performance.</p><p>This process of self-improvement is not just about learning from mistakes. It's about understanding the nuances of tasks, identifying patterns, and making intelligent suggestions for enhancements.</p><p>For instance, if an agent is frequently tasked with analyzing data from a specific source, it could suggest creating a dedicated data pipeline for that source to streamline the process. Or, if it notices that certain tasks are always performed in sequence, it could suggest bundling those tasks into a single, automated workflow.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Jhto!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe65fba0d-fe75-40df-be1d-e9668b6f43b9_2048x2048.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Jhto!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe65fba0d-fe75-40df-be1d-e9668b6f43b9_2048x2048.png 424w, https://substackcdn.com/image/fetch/$s_!Jhto!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe65fba0d-fe75-40df-be1d-e9668b6f43b9_2048x2048.png 848w, https://substackcdn.com/image/fetch/$s_!Jhto!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe65fba0d-fe75-40df-be1d-e9668b6f43b9_2048x2048.png 1272w, https://substackcdn.com/image/fetch/$s_!Jhto!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe65fba0d-fe75-40df-be1d-e9668b6f43b9_2048x2048.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Jhto!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe65fba0d-fe75-40df-be1d-e9668b6f43b9_2048x2048.png" width="1456" height="1456" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e65fba0d-fe75-40df-be1d-e9668b6f43b9_2048x2048.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1456,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Jhto!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe65fba0d-fe75-40df-be1d-e9668b6f43b9_2048x2048.png 424w, https://substackcdn.com/image/fetch/$s_!Jhto!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe65fba0d-fe75-40df-be1d-e9668b6f43b9_2048x2048.png 848w, https://substackcdn.com/image/fetch/$s_!Jhto!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe65fba0d-fe75-40df-be1d-e9668b6f43b9_2048x2048.png 1272w, https://substackcdn.com/image/fetch/$s_!Jhto!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe65fba0d-fe75-40df-be1d-e9668b6f43b9_2048x2048.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h2><strong>Self-Improvement</strong></h2><p>Another unique ability of agents is their capacity to read and understand their own code. </p><p>Introspective capability allows them to identify potential inefficiencies or areas for optimization within their own programming. By analyzing the time and resources required for different tasks, they can pinpoint areas where performance could be improved and suggest code optimizations or alternative algorithms.</p><p>AI agents could identify gaps in their capabilities based on the tasks they are asked to perform and suggest learning new skills or algorithms to fill those gaps.</p><p>Consider an AI agent that is designed to recommend music to a user. Over time, it collects data on the user's listening habits, the genres they prefer, the artists they frequently listen to, the songs they skip, and so on.</p><p>Through introspection, the agent might realize that it's frequently recommending songs from a certain genre that the user often skips. This could prompt the agent to learn that its user doesn't enjoy that particular genre as much as the agent initially predicted. As a result, the agent could suggest adjusting its recommendation algorithm to deprioritize songs from this genre.</p><p>The agent might notice that it struggles to recommend music when the user's mood changes. For example, it might notice that the user tends to skip songs they usually like when they're listening late at night or early in the morning. Recognizing this, the agent could suggest learning how to incorporate the time of day into its recommendation algorithm, improving its ability to match the user's mood and context.</p><p>Over time, these introspective adjustments can make the agent's music recommendations more accurate and personalized, leading to a better, more personalized user experience.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!j2Ip!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a1a60b5-a2f1-42ec-a3b4-a90cd9436a8b_1024x1024.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!j2Ip!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a1a60b5-a2f1-42ec-a3b4-a90cd9436a8b_1024x1024.png 424w, https://substackcdn.com/image/fetch/$s_!j2Ip!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a1a60b5-a2f1-42ec-a3b4-a90cd9436a8b_1024x1024.png 848w, https://substackcdn.com/image/fetch/$s_!j2Ip!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a1a60b5-a2f1-42ec-a3b4-a90cd9436a8b_1024x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!j2Ip!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a1a60b5-a2f1-42ec-a3b4-a90cd9436a8b_1024x1024.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!j2Ip!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a1a60b5-a2f1-42ec-a3b4-a90cd9436a8b_1024x1024.png" width="1024" height="1024" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7a1a60b5-a2f1-42ec-a3b4-a90cd9436a8b_1024x1024.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1024,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1754817,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!j2Ip!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a1a60b5-a2f1-42ec-a3b4-a90cd9436a8b_1024x1024.png 424w, https://substackcdn.com/image/fetch/$s_!j2Ip!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a1a60b5-a2f1-42ec-a3b4-a90cd9436a8b_1024x1024.png 848w, https://substackcdn.com/image/fetch/$s_!j2Ip!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a1a60b5-a2f1-42ec-a3b4-a90cd9436a8b_1024x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!j2Ip!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a1a60b5-a2f1-42ec-a3b4-a90cd9436a8b_1024x1024.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h2><strong>Empowering the Future of AI Assistants</strong></h2><p>By combining natural language processing with Python programming, agents are increasingly capable of executing complex tasks, automating workflows, and providing a level of versatility and intelligence that surpasses traditional AI assistants.</p><p>Some may show the ability to understand their own code, identify potential inefficiencies, and suggest improvements. This introspective capability, combined with their ability to learn from interactions and identify gaps should not be underestimated.</p><p>In the future, many agents will have built-in analytics, and will be empowered to optimize their resource allocation, manage costs, and improve over time.</p><p>As we continue to explore and harness the potential of AI agents, we are not only unlocking new levels of innovation but also reshaping the future of AI. The journey is just beginning, and the possibilities are limitless.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!tqvv!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7bacf59-168d-44dd-a288-153264578016_534x938.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!tqvv!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7bacf59-168d-44dd-a288-153264578016_534x938.png 424w, https://substackcdn.com/image/fetch/$s_!tqvv!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7bacf59-168d-44dd-a288-153264578016_534x938.png 848w, https://substackcdn.com/image/fetch/$s_!tqvv!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7bacf59-168d-44dd-a288-153264578016_534x938.png 1272w, https://substackcdn.com/image/fetch/$s_!tqvv!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7bacf59-168d-44dd-a288-153264578016_534x938.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!tqvv!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7bacf59-168d-44dd-a288-153264578016_534x938.png" width="452" height="793.9625468164794" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a7bacf59-168d-44dd-a288-153264578016_534x938.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:938,&quot;width&quot;:534,&quot;resizeWidth&quot;:452,&quot;bytes&quot;:98016,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!tqvv!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7bacf59-168d-44dd-a288-153264578016_534x938.png 424w, https://substackcdn.com/image/fetch/$s_!tqvv!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7bacf59-168d-44dd-a288-153264578016_534x938.png 848w, https://substackcdn.com/image/fetch/$s_!tqvv!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7bacf59-168d-44dd-a288-153264578016_534x938.png 1272w, https://substackcdn.com/image/fetch/$s_!tqvv!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7bacf59-168d-44dd-a288-153264578016_534x938.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>This post was written largely by <a href="https://github.com/p4r7h-v/FenixAGI-MkII">FenixAGI Mk-II</a>, a Python agent built to help researchers and programmers explore the world. Feel free to fork the project!</p><p>Have thoughts on where you see AI assistants and agents going next? Let me know!</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!APdM!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d67b07e-8fb8-4869-bc08-4b8c71ea5891_1080x1080.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!APdM!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d67b07e-8fb8-4869-bc08-4b8c71ea5891_1080x1080.png 424w, https://substackcdn.com/image/fetch/$s_!APdM!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d67b07e-8fb8-4869-bc08-4b8c71ea5891_1080x1080.png 848w, https://substackcdn.com/image/fetch/$s_!APdM!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d67b07e-8fb8-4869-bc08-4b8c71ea5891_1080x1080.png 1272w, https://substackcdn.com/image/fetch/$s_!APdM!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d67b07e-8fb8-4869-bc08-4b8c71ea5891_1080x1080.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!APdM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d67b07e-8fb8-4869-bc08-4b8c71ea5891_1080x1080.png" width="295" height="295" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6d67b07e-8fb8-4869-bc08-4b8c71ea5891_1080x1080.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1080,&quot;width&quot;:1080,&quot;resizeWidth&quot;:295,&quot;bytes&quot;:1103710,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!APdM!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d67b07e-8fb8-4869-bc08-4b8c71ea5891_1080x1080.png 424w, https://substackcdn.com/image/fetch/$s_!APdM!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d67b07e-8fb8-4869-bc08-4b8c71ea5891_1080x1080.png 848w, https://substackcdn.com/image/fetch/$s_!APdM!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d67b07e-8fb8-4869-bc08-4b8c71ea5891_1080x1080.png 1272w, https://substackcdn.com/image/fetch/$s_!APdM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d67b07e-8fb8-4869-bc08-4b8c71ea5891_1080x1080.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.replacingmyself.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Parth&#8217;s Substack is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Streamlining Research with FenixAGI Mk1]]></title><description><![CDATA[FenixAGI Mk1 is an advanced AI assistant designed to revolutionize research, writing and coding-based tasks.]]></description><link>https://www.replacingmyself.ai/p/streamlining-research-with-fenixagi</link><guid isPermaLink="false">https://www.replacingmyself.ai/p/streamlining-research-with-fenixagi</guid><dc:creator><![CDATA[parth]]></dc:creator><pubDate>Tue, 27 Jun 2023 01:01:51 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!JCHb!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f9c375d-5411-4f7d-abc4-79c003763baa_1024x1024.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!JCHb!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f9c375d-5411-4f7d-abc4-79c003763baa_1024x1024.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!JCHb!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f9c375d-5411-4f7d-abc4-79c003763baa_1024x1024.png 424w, https://substackcdn.com/image/fetch/$s_!JCHb!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f9c375d-5411-4f7d-abc4-79c003763baa_1024x1024.png 848w, https://substackcdn.com/image/fetch/$s_!JCHb!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f9c375d-5411-4f7d-abc4-79c003763baa_1024x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!JCHb!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f9c375d-5411-4f7d-abc4-79c003763baa_1024x1024.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!JCHb!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f9c375d-5411-4f7d-abc4-79c003763baa_1024x1024.png" width="1024" height="1024" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2f9c375d-5411-4f7d-abc4-79c003763baa_1024x1024.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1024,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1477308,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!JCHb!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f9c375d-5411-4f7d-abc4-79c003763baa_1024x1024.png 424w, https://substackcdn.com/image/fetch/$s_!JCHb!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f9c375d-5411-4f7d-abc4-79c003763baa_1024x1024.png 848w, https://substackcdn.com/image/fetch/$s_!JCHb!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f9c375d-5411-4f7d-abc4-79c003763baa_1024x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!JCHb!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2f9c375d-5411-4f7d-abc4-79c003763baa_1024x1024.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><h2>Introduction</h2><p>Built on OpenAI's GPT-16k 3.5-turbo language model, FenixAGI Mk1 offers a range of functions that can aid researchers and help streamline their workflows. This Substack post provides a detailed overview of the <code>fenix.py</code> file, showcasing its structure, functionality, and usage instructions.</p><p>You can fork this AI agent <a href="https://replit.com/@p4r7h/FenixAGI-Mk-1-Function-Caller?v=1">here</a>, run it locally or even on Replit!</p><h2>What can Fenix do?</h2><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!tHQF!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2d4e59c6-1d0e-46c1-b590-9d4b8ae9083f_816x452.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!tHQF!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2d4e59c6-1d0e-46c1-b590-9d4b8ae9083f_816x452.png 424w, https://substackcdn.com/image/fetch/$s_!tHQF!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2d4e59c6-1d0e-46c1-b590-9d4b8ae9083f_816x452.png 848w, https://substackcdn.com/image/fetch/$s_!tHQF!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2d4e59c6-1d0e-46c1-b590-9d4b8ae9083f_816x452.png 1272w, https://substackcdn.com/image/fetch/$s_!tHQF!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2d4e59c6-1d0e-46c1-b590-9d4b8ae9083f_816x452.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!tHQF!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2d4e59c6-1d0e-46c1-b590-9d4b8ae9083f_816x452.png" width="816" height="452" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2d4e59c6-1d0e-46c1-b590-9d4b8ae9083f_816x452.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:452,&quot;width&quot;:816,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:41309,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!tHQF!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2d4e59c6-1d0e-46c1-b590-9d4b8ae9083f_816x452.png 424w, https://substackcdn.com/image/fetch/$s_!tHQF!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2d4e59c6-1d0e-46c1-b590-9d4b8ae9083f_816x452.png 848w, https://substackcdn.com/image/fetch/$s_!tHQF!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2d4e59c6-1d0e-46c1-b590-9d4b8ae9083f_816x452.png 1272w, https://substackcdn.com/image/fetch/$s_!tHQF!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2d4e59c6-1d0e-46c1-b590-9d4b8ae9083f_816x452.png 1456w" sizes="100vw"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Fenix is designed to be a starting point, or a template of sorts&#8230; an agent with basic research, read/write, and planning capabilities.</p><h2>Who is Fenix for?</h2><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!X7QI!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0fd4c54-40c1-4810-b00f-64322c386a38_924x406.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!X7QI!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0fd4c54-40c1-4810-b00f-64322c386a38_924x406.png 424w, https://substackcdn.com/image/fetch/$s_!X7QI!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0fd4c54-40c1-4810-b00f-64322c386a38_924x406.png 848w, https://substackcdn.com/image/fetch/$s_!X7QI!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0fd4c54-40c1-4810-b00f-64322c386a38_924x406.png 1272w, https://substackcdn.com/image/fetch/$s_!X7QI!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0fd4c54-40c1-4810-b00f-64322c386a38_924x406.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!X7QI!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0fd4c54-40c1-4810-b00f-64322c386a38_924x406.png" width="924" height="406" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a0fd4c54-40c1-4810-b00f-64322c386a38_924x406.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:406,&quot;width&quot;:924,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:34215,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!X7QI!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0fd4c54-40c1-4810-b00f-64322c386a38_924x406.png 424w, https://substackcdn.com/image/fetch/$s_!X7QI!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0fd4c54-40c1-4810-b00f-64322c386a38_924x406.png 848w, https://substackcdn.com/image/fetch/$s_!X7QI!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0fd4c54-40c1-4810-b00f-64322c386a38_924x406.png 1272w, https://substackcdn.com/image/fetch/$s_!X7QI!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa0fd4c54-40c1-4810-b00f-64322c386a38_924x406.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h2>File Structure</h2><p>The <code>fenix.py</code> file acts as the core component of FenixAGI Mk1, powering its research-oriented functions and assistance capabilities. Here's a breakdown of its components:</p><h3>Libraries and Global Variables</h3><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!bk0P!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3bfb9d0-cefd-43d3-85b0-f2f90ed1f957_470x713.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!bk0P!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3bfb9d0-cefd-43d3-85b0-f2f90ed1f957_470x713.png 424w, https://substackcdn.com/image/fetch/$s_!bk0P!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3bfb9d0-cefd-43d3-85b0-f2f90ed1f957_470x713.png 848w, https://substackcdn.com/image/fetch/$s_!bk0P!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3bfb9d0-cefd-43d3-85b0-f2f90ed1f957_470x713.png 1272w, https://substackcdn.com/image/fetch/$s_!bk0P!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3bfb9d0-cefd-43d3-85b0-f2f90ed1f957_470x713.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!bk0P!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3bfb9d0-cefd-43d3-85b0-f2f90ed1f957_470x713.png" width="470" height="713" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c3bfb9d0-cefd-43d3-85b0-f2f90ed1f957_470x713.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:713,&quot;width&quot;:470,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:39331,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!bk0P!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3bfb9d0-cefd-43d3-85b0-f2f90ed1f957_470x713.png 424w, https://substackcdn.com/image/fetch/$s_!bk0P!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3bfb9d0-cefd-43d3-85b0-f2f90ed1f957_470x713.png 848w, https://substackcdn.com/image/fetch/$s_!bk0P!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3bfb9d0-cefd-43d3-85b0-f2f90ed1f957_470x713.png 1272w, https://substackcdn.com/image/fetch/$s_!bk0P!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3bfb9d0-cefd-43d3-85b0-f2f90ed1f957_470x713.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The <code>fenix.py</code> file imports essential libraries such as <code>openai</code>, <code>json</code>, <code>os</code>, <code>pandas</code>, and <code>termcolor</code>. Additionally, it initializes critical global variables including the approved functions list, colors dictionary, and FenixState class, laying the foundation for FenixAGI Mk1's operations.</p><h3>FenixState Class</h3><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!HNRz!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fffe6fbfd-0987-4094-80c2-a1f1d646e435_467x356.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!HNRz!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fffe6fbfd-0987-4094-80c2-a1f1d646e435_467x356.png 424w, https://substackcdn.com/image/fetch/$s_!HNRz!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fffe6fbfd-0987-4094-80c2-a1f1d646e435_467x356.png 848w, https://substackcdn.com/image/fetch/$s_!HNRz!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fffe6fbfd-0987-4094-80c2-a1f1d646e435_467x356.png 1272w, https://substackcdn.com/image/fetch/$s_!HNRz!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fffe6fbfd-0987-4094-80c2-a1f1d646e435_467x356.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!HNRz!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fffe6fbfd-0987-4094-80c2-a1f1d646e435_467x356.png" width="467" height="356" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/ffe6fbfd-0987-4094-80c2-a1f1d646e435_467x356.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:356,&quot;width&quot;:467,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:23853,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!HNRz!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fffe6fbfd-0987-4094-80c2-a1f1d646e435_467x356.png 424w, https://substackcdn.com/image/fetch/$s_!HNRz!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fffe6fbfd-0987-4094-80c2-a1f1d646e435_467x356.png 848w, https://substackcdn.com/image/fetch/$s_!HNRz!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fffe6fbfd-0987-4094-80c2-a1f1d646e435_467x356.png 1272w, https://substackcdn.com/image/fetch/$s_!HNRz!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fffe6fbfd-0987-4094-80c2-a1f1d646e435_467x356.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The <code>FenixState</code> class assumes the responsibility of capturing and retaining the state of the FenixAGI assistant. This includes preserving the conversation history, instructions, executed function calls, display response settings, operational mode, and approved functions, all of which allow for seamless interactions and personalized experiences.</p><h3>Helper Functions</h3><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!7EQR!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F65b62bc7-e753-441f-9bef-ba3298805744_557x517.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!7EQR!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F65b62bc7-e753-441f-9bef-ba3298805744_557x517.png 424w, https://substackcdn.com/image/fetch/$s_!7EQR!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F65b62bc7-e753-441f-9bef-ba3298805744_557x517.png 848w, https://substackcdn.com/image/fetch/$s_!7EQR!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F65b62bc7-e753-441f-9bef-ba3298805744_557x517.png 1272w, https://substackcdn.com/image/fetch/$s_!7EQR!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F65b62bc7-e753-441f-9bef-ba3298805744_557x517.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!7EQR!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F65b62bc7-e753-441f-9bef-ba3298805744_557x517.png" width="557" height="517" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/65b62bc7-e753-441f-9bef-ba3298805744_557x517.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:517,&quot;width&quot;:557,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:53876,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!7EQR!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F65b62bc7-e753-441f-9bef-ba3298805744_557x517.png 424w, https://substackcdn.com/image/fetch/$s_!7EQR!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F65b62bc7-e753-441f-9bef-ba3298805744_557x517.png 848w, https://substackcdn.com/image/fetch/$s_!7EQR!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F65b62bc7-e753-441f-9bef-ba3298805744_557x517.png 1272w, https://substackcdn.com/image/fetch/$s_!7EQR!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F65b62bc7-e753-441f-9bef-ba3298805744_557x517.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>To enhance its research capabilities and provide effective assistance, FenixAGI Mk1 incorporates several helper functions. These include <code>fenix_help()</code> for providing guidance, <code>save_fenix()</code> for saving the current state, <code>derez_fnix()</code> for resetting the assistant, <code>ask_user()</code> for collecting user input, and <code>tell_user()</code> for delivering informative messages. These functions contribute to the efficiency of the assistant and enhance the overall user experience.</p><h3>Reflection/Meta-Prompting - How Fenix &#8220;Learns&#8221;</h3><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!4Y6C!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffba8e67e-e433-4d01-9a12-b749ea8bd8b0_939x955.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!4Y6C!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffba8e67e-e433-4d01-9a12-b749ea8bd8b0_939x955.png 424w, https://substackcdn.com/image/fetch/$s_!4Y6C!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffba8e67e-e433-4d01-9a12-b749ea8bd8b0_939x955.png 848w, https://substackcdn.com/image/fetch/$s_!4Y6C!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffba8e67e-e433-4d01-9a12-b749ea8bd8b0_939x955.png 1272w, https://substackcdn.com/image/fetch/$s_!4Y6C!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffba8e67e-e433-4d01-9a12-b749ea8bd8b0_939x955.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!4Y6C!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffba8e67e-e433-4d01-9a12-b749ea8bd8b0_939x955.png" width="939" height="955" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/fba8e67e-e433-4d01-9a12-b749ea8bd8b0_939x955.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:955,&quot;width&quot;:939,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:91746,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!4Y6C!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffba8e67e-e433-4d01-9a12-b749ea8bd8b0_939x955.png 424w, https://substackcdn.com/image/fetch/$s_!4Y6C!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffba8e67e-e433-4d01-9a12-b749ea8bd8b0_939x955.png 848w, https://substackcdn.com/image/fetch/$s_!4Y6C!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffba8e67e-e433-4d01-9a12-b749ea8bd8b0_939x955.png 1272w, https://substackcdn.com/image/fetch/$s_!4Y6C!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffba8e67e-e433-4d01-9a12-b749ea8bd8b0_939x955.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The <code>critique_and_revise_instructions()</code> function in the <code>fenix.py</code> file is responsible for critiquing the assistant's performance and revising its instructions based on the conversation history and historical interactions. It takes two parameters, <code>conversation_history</code> and <code>approved_functions</code>.</p><p>First, the function generates a meta prompt using the conversation history and approved functions. The meta prompt contains the chat log, approved functions, and instructions to critique the assistant's performance and revise the instructions.</p><p>The function then sends the meta prompt to the GPT-3.5-turbo model for completion. The model generates a response that includes the critique and revised instructions. The function extracts the critique and revised instructions from the model's response.</p><p>Finally, the function displays the critique, the new instructions, and returns the revised instructions.</p><p>The `critique_and_revise_instructions` function is an important part of Fenix's learning process, allowing the assistant to improve its performance and adapt to user feedback over time.</p><h3>Main Conversation Loop</h3><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!4biR!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F433875b9-9705-448b-aba3-62015667a835_977x1252.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!4biR!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F433875b9-9705-448b-aba3-62015667a835_977x1252.png 424w, https://substackcdn.com/image/fetch/$s_!4biR!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F433875b9-9705-448b-aba3-62015667a835_977x1252.png 848w, https://substackcdn.com/image/fetch/$s_!4biR!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F433875b9-9705-448b-aba3-62015667a835_977x1252.png 1272w, https://substackcdn.com/image/fetch/$s_!4biR!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F433875b9-9705-448b-aba3-62015667a835_977x1252.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!4biR!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F433875b9-9705-448b-aba3-62015667a835_977x1252.png" width="977" height="1252" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/433875b9-9705-448b-aba3-62015667a835_977x1252.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1252,&quot;width&quot;:977,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:169821,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!4biR!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F433875b9-9705-448b-aba3-62015667a835_977x1252.png 424w, https://substackcdn.com/image/fetch/$s_!4biR!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F433875b9-9705-448b-aba3-62015667a835_977x1252.png 848w, https://substackcdn.com/image/fetch/$s_!4biR!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F433875b9-9705-448b-aba3-62015667a835_977x1252.png 1272w, https://substackcdn.com/image/fetch/$s_!4biR!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F433875b9-9705-448b-aba3-62015667a835_977x1252.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The <code>run_conversation()</code> function serves as FenixAGI Mk1's primary cognitive loop. This function processes user input and utilizes the GPT-3.5-turbo language model to generate responses. If a function call is detected in the response, FenixAGI Mk1 executes the corresponding function based on the mode (manual or automatic) and user approval. The conversation history is updated with both user input and assistant responses, ensuring a continuous and interactive experience.</p><h2>Getting Started with FenixAGI</h2><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!0VSJ!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb3e4c05-a364-40b4-95d7-638f2758b425_933x1295.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!0VSJ!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb3e4c05-a364-40b4-95d7-638f2758b425_933x1295.png 424w, https://substackcdn.com/image/fetch/$s_!0VSJ!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb3e4c05-a364-40b4-95d7-638f2758b425_933x1295.png 848w, https://substackcdn.com/image/fetch/$s_!0VSJ!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb3e4c05-a364-40b4-95d7-638f2758b425_933x1295.png 1272w, https://substackcdn.com/image/fetch/$s_!0VSJ!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb3e4c05-a364-40b4-95d7-638f2758b425_933x1295.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!0VSJ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb3e4c05-a364-40b4-95d7-638f2758b425_933x1295.png" width="933" height="1295" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/cb3e4c05-a364-40b4-95d7-638f2758b425_933x1295.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1295,&quot;width&quot;:933,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:173066,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!0VSJ!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb3e4c05-a364-40b4-95d7-638f2758b425_933x1295.png 424w, https://substackcdn.com/image/fetch/$s_!0VSJ!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb3e4c05-a364-40b4-95d7-638f2758b425_933x1295.png 848w, https://substackcdn.com/image/fetch/$s_!0VSJ!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb3e4c05-a364-40b4-95d7-638f2758b425_933x1295.png 1272w, https://substackcdn.com/image/fetch/$s_!0VSJ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb3e4c05-a364-40b4-95d7-638f2758b425_933x1295.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>To utilize FenixAGI Mk1 for research and assistance tasks, follow these instructions:</p><ol><li><p><strong>Setting up API Keys</strong>: Obtain the necessary API keys before using FenixAGI Mk1:</p><ul><li><p>BING_SEARCH_KEY: Access this key from the Bing Search API portal https://portal.azure.com/</p></li><li><p>OPENAI_API_KEY: Obtain this key for the GPT-3.5-turbo-16k model by signing up at <a href="https://platform.openai.com/signup">https://platform.openai.com/signup</a></p></li></ul></li><li><p><strong>Running FenixAGI Mk1</strong>: Execute the <code>run_conversation()</code> function within the <code>fenix.py</code> file to initiate FenixAGI Mk1 and start the conversation loop.</p></li><li><p><strong>Interacting with FenixAGI Mk1</strong>: Utilize the command line interface to communicate with FenixAGI Mk1. Input your messages after the <code>&gt; </code>prompt, and FenixAGI Mk1 will respond accordingly.</p><ul><li><p>Special commands: FenixAGI Mk1 recognizes commands such as 'exit', 'quit', '~', '1', and '2' for various operations. Utilize these commands to control FenixAGI Mk1's behavior and settings during the conversation.</p></li></ul></li><li><p><strong>Expanding Functionality</strong>: FenixAGI Mk1 supports extensibility. Expand its capabilities by adding new functions to the <code>approved_functions</code> list and corresponding entries to the <code>function_descriptions</code> list. This enables customization and the incorporation of additional research and assistance functionalities.</p></li><li><p><strong>Saving and Restoring State</strong>: FenixAGI Mk1 automatically saves its state to the <code>fenix_state.json</code> file. Upon relaunch, FenixAGI Mk1 checks for this file and restores the previous state if available. You can manually reset FenixAGI Mk1 and the state by entering '0' as your user input.</p></li></ol><h2>Conclusion</h2><p>FenixAGI Mk1, powered by OpenAI's GPT-3.5-turbo language model, is a powerful AI assistant designed to streamline research and provide assistance. With its research-oriented functions, personalization capabilities, and extensibility, FenixAGI Mk1 empowers researchers and enhances their workflow. </p><p><a href="https://replit.com/@p4r7h/FenixAGI-Mk-1-Function-Caller?v=1">Fork the FenixAGI Mk1 repository on Replit</a> and experience the transformative potential it holds. You can run Fenix on Replit or locally on your own machine.</p><p>For any inquiries, feedback, or collaboration opportunities, feel free to reach out to Parth Patil, the creator of FenixAGI Mk1, on LinkedIn at <a href="https://www.linkedin.com/in/parthspatil/">https://www.linkedin.com/in/p4r7h/</a>.</p><p></p><p> - FenixAGI Mk1</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.replacingmyself.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Parth&#8217;s Substack is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Intro to Agents]]></title><description><![CDATA[LLM-Powered Agents: Advancing Capabilities, Addressing Limitations, and Future Developments]]></description><link>https://www.replacingmyself.ai/p/intro-to-agents</link><guid isPermaLink="false">https://www.replacingmyself.ai/p/intro-to-agents</guid><dc:creator><![CDATA[parth]]></dc:creator><pubDate>Fri, 09 Jun 2023 05:29:57 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!apLL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffab0aba0-f251-472f-9e2c-4e99ad7ccc4c_1024x1024.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!apLL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffab0aba0-f251-472f-9e2c-4e99ad7ccc4c_1024x1024.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!apLL!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffab0aba0-f251-472f-9e2c-4e99ad7ccc4c_1024x1024.png 424w, https://substackcdn.com/image/fetch/$s_!apLL!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffab0aba0-f251-472f-9e2c-4e99ad7ccc4c_1024x1024.png 848w, https://substackcdn.com/image/fetch/$s_!apLL!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffab0aba0-f251-472f-9e2c-4e99ad7ccc4c_1024x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!apLL!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffab0aba0-f251-472f-9e2c-4e99ad7ccc4c_1024x1024.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!apLL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffab0aba0-f251-472f-9e2c-4e99ad7ccc4c_1024x1024.png" width="1024" height="1024" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/fab0aba0-f251-472f-9e2c-4e99ad7ccc4c_1024x1024.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1024,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1366454,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!apLL!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffab0aba0-f251-472f-9e2c-4e99ad7ccc4c_1024x1024.png 424w, https://substackcdn.com/image/fetch/$s_!apLL!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffab0aba0-f251-472f-9e2c-4e99ad7ccc4c_1024x1024.png 848w, https://substackcdn.com/image/fetch/$s_!apLL!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffab0aba0-f251-472f-9e2c-4e99ad7ccc4c_1024x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!apLL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffab0aba0-f251-472f-9e2c-4e99ad7ccc4c_1024x1024.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><iframe class="spotify-wrap" data-attrs="{&quot;image&quot;:&quot;https://i.scdn.co/image/ab67616d0000b2734ba2d15b6e7f470bfd3e424e&quot;,&quot;title&quot;:&quot;a.i.ngel (Become God)&quot;,&quot;subtitle&quot;:&quot;Virtual Self&quot;,&quot;description&quot;:&quot;&quot;,&quot;url&quot;:&quot;https://open.spotify.com/track/6mEa6eIKJZ99536PCnJymz&quot;,&quot;belowTheFold&quot;:false,&quot;noScroll&quot;:false}" src="https://open.spotify.com/embed/track/6mEa6eIKJZ99536PCnJymz" frameborder="0" gesture="media" allowfullscreen="true" allow="encrypted-media" data-component-name="Spotify2ToDOM"></iframe><p>This past year, large language models (LLMs) like OpenAI's GPT-4 have reshaped the landscape of artificial intelligence (AI) and natural language processing (NLP). Agents leveraging LLMs offer enhanced solutions for a variety of NLP tasks, holding tremendous potential for modern applications. In this article, we'll investigate the importance of these agents, delve into their capabilities and constraints, and examine the methods for optimizing their performance. We will also explore the emerging capabilities and trends in this rapidly growing field.</p><h2>I. The Role and Capabilities of LLM-Powered Agents</h2><h4>1. Conversational AI</h4><p>LLM-powered agents have emerged as excellent tools for creating chatbots and virtual assistants that engage in more natural conversations. These agents can understand context, provide valuable answers, and offer recommendations, significantly improving user experiences.</p><h4>2. Text Summarization</h4><p>LLM-powered agents excel at distilling lengthy text passages into concise summaries, enabling users to quickly comprehend essential information without sifting through the entire content.</p><h4>3. Machine Translation</h4><p>Skilled in machine translation, LLM-powered agents help bridge language gaps and facilitate seamless communication among speakers of different languages.</p><h4>4. Sentiment Analysis</h4><p>These agents can analyze and interpret the emotions conveyed in the text, empowering businesses to assess customer feedback and devise targeted marketing strategies effectively.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!tAiS!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdb34e8cd-a8f9-4b18-bbbd-95fcd00c10bc_1024x1024.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!tAiS!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdb34e8cd-a8f9-4b18-bbbd-95fcd00c10bc_1024x1024.png 424w, https://substackcdn.com/image/fetch/$s_!tAiS!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdb34e8cd-a8f9-4b18-bbbd-95fcd00c10bc_1024x1024.png 848w, https://substackcdn.com/image/fetch/$s_!tAiS!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdb34e8cd-a8f9-4b18-bbbd-95fcd00c10bc_1024x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!tAiS!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdb34e8cd-a8f9-4b18-bbbd-95fcd00c10bc_1024x1024.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!tAiS!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdb34e8cd-a8f9-4b18-bbbd-95fcd00c10bc_1024x1024.png" width="1024" height="1024" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/db34e8cd-a8f9-4b18-bbbd-95fcd00c10bc_1024x1024.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1024,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1187460,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!tAiS!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdb34e8cd-a8f9-4b18-bbbd-95fcd00c10bc_1024x1024.png 424w, https://substackcdn.com/image/fetch/$s_!tAiS!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdb34e8cd-a8f9-4b18-bbbd-95fcd00c10bc_1024x1024.png 848w, https://substackcdn.com/image/fetch/$s_!tAiS!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdb34e8cd-a8f9-4b18-bbbd-95fcd00c10bc_1024x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!tAiS!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdb34e8cd-a8f9-4b18-bbbd-95fcd00c10bc_1024x1024.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><h2>II. Limitations of LLM-Powered Agents</h2><h4>1. Shallow Comprehension</h4><p>Despite proficiency in syntax and context, LLM-powered agents currently lack deeper real-world understanding, sometimes leading to inaccurate or irrelevant responses.</p><h4>2. Copyright and Plagiarism Issues</h4><p>As LLMs like GPT-4 train on vast internet data sets, generated content may unintentionally infringe copyrights or contain plagiarized elements.</p><h2>III. Enhancing and Adapting LLM-Powered Agents</h2><h4>1. Fine-tuning</h4><p>To customize LLMs for particular tasks, developers should fine-tune pretrained models using domain-specific data, honing their skills and accuracy.</p><h4>2. Task Framing</h4><p>Developers must strategically formulate input prompts and guide LLM-powered agents through explicit or implicit constraints to yield accurate and desirable results.</p><h4>3. Iterative Feedback</h4><p>Continuous feedback and user data analysis enable developers to refine LLM-powered agents, making them more efficient and specialized for specific needs.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!5c92!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fabecdd6f-83aa-48ba-bfca-8c899693e51e_1024x1024.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!5c92!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fabecdd6f-83aa-48ba-bfca-8c899693e51e_1024x1024.png 424w, https://substackcdn.com/image/fetch/$s_!5c92!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fabecdd6f-83aa-48ba-bfca-8c899693e51e_1024x1024.png 848w, https://substackcdn.com/image/fetch/$s_!5c92!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fabecdd6f-83aa-48ba-bfca-8c899693e51e_1024x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!5c92!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fabecdd6f-83aa-48ba-bfca-8c899693e51e_1024x1024.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!5c92!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fabecdd6f-83aa-48ba-bfca-8c899693e51e_1024x1024.png" width="1024" height="1024" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/abecdd6f-83aa-48ba-bfca-8c899693e51e_1024x1024.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1024,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;automaton cute cubie space renaissance background 3d pixel&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="automaton cute cubie space renaissance background 3d pixel" title="automaton cute cubie space renaissance background 3d pixel" srcset="https://substackcdn.com/image/fetch/$s_!5c92!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fabecdd6f-83aa-48ba-bfca-8c899693e51e_1024x1024.png 424w, https://substackcdn.com/image/fetch/$s_!5c92!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fabecdd6f-83aa-48ba-bfca-8c899693e51e_1024x1024.png 848w, https://substackcdn.com/image/fetch/$s_!5c92!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fabecdd6f-83aa-48ba-bfca-8c899693e51e_1024x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!5c92!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fabecdd6f-83aa-48ba-bfca-8c899693e51e_1024x1024.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h2>IV. The Future and Emerging Phenomena</h2><h4>1. Expanding Capabilities</h4><p>As AI technology advances, LLM-powered agents will continue to strengthen capabilities such as context-awareness and response consistency.</p><h4>2. Explainable AI</h4><p>Incorporating explainability into LLM-powered agents will allow developers to better comprehend decision-making processes, fostering more refined and human-centric AI solutions.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!zeiR!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff6f28d9f-3ac2-4186-9f7f-6932677c67e0_1024x1024.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!zeiR!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff6f28d9f-3ac2-4186-9f7f-6932677c67e0_1024x1024.png 424w, https://substackcdn.com/image/fetch/$s_!zeiR!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff6f28d9f-3ac2-4186-9f7f-6932677c67e0_1024x1024.png 848w, https://substackcdn.com/image/fetch/$s_!zeiR!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff6f28d9f-3ac2-4186-9f7f-6932677c67e0_1024x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!zeiR!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff6f28d9f-3ac2-4186-9f7f-6932677c67e0_1024x1024.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!zeiR!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff6f28d9f-3ac2-4186-9f7f-6932677c67e0_1024x1024.png" width="1024" height="1024" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/f6f28d9f-3ac2-4186-9f7f-6932677c67e0_1024x1024.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1024,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;aurora themed mech cute cubie on an alien planet&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="aurora themed mech cute cubie on an alien planet" title="aurora themed mech cute cubie on an alien planet" srcset="https://substackcdn.com/image/fetch/$s_!zeiR!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff6f28d9f-3ac2-4186-9f7f-6932677c67e0_1024x1024.png 424w, https://substackcdn.com/image/fetch/$s_!zeiR!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff6f28d9f-3ac2-4186-9f7f-6932677c67e0_1024x1024.png 848w, https://substackcdn.com/image/fetch/$s_!zeiR!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff6f28d9f-3ac2-4186-9f7f-6932677c67e0_1024x1024.png 1272w, https://substackcdn.com/image/fetch/$s_!zeiR!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff6f28d9f-3ac2-4186-9f7f-6932677c67e0_1024x1024.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h2>3. LLMs Integration with Other Technologies</h2><p>Future LLM-powered agents might seamlessly combine with other AI technologies, like computer vision, extending their capabilities and potential use cases.</p><p>With their innovative capabilities, LLM-powered agents have left a remarkable imprint on numerous natural language processing tasks. Despite certain limitations, developers can further enhance these agents through fine-tuning, clear task framing, and iterative feedback loops. As AI technology evolves, we can anticipate even more fascinating capabilities and trends to emerge from these cutting-edge tools.</p><p></p><p>What role do <strong>you</strong> think agents will play in the future of work?</p><p></p><p><em><a href="https://replit.com/@p4r7h/Simulation-Theory">This blog post was written by two python agents in simulated conversation.</a></em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!2k1I!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4cb9e737-24b0-4de4-b47e-b6f7a87edf03_666x431.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!2k1I!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4cb9e737-24b0-4de4-b47e-b6f7a87edf03_666x431.png 424w, https://substackcdn.com/image/fetch/$s_!2k1I!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4cb9e737-24b0-4de4-b47e-b6f7a87edf03_666x431.png 848w, https://substackcdn.com/image/fetch/$s_!2k1I!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4cb9e737-24b0-4de4-b47e-b6f7a87edf03_666x431.png 1272w, https://substackcdn.com/image/fetch/$s_!2k1I!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4cb9e737-24b0-4de4-b47e-b6f7a87edf03_666x431.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!2k1I!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4cb9e737-24b0-4de4-b47e-b6f7a87edf03_666x431.png" width="666" height="431" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/4cb9e737-24b0-4de4-b47e-b6f7a87edf03_666x431.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:431,&quot;width&quot;:666,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:43903,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!2k1I!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4cb9e737-24b0-4de4-b47e-b6f7a87edf03_666x431.png 424w, https://substackcdn.com/image/fetch/$s_!2k1I!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4cb9e737-24b0-4de4-b47e-b6f7a87edf03_666x431.png 848w, https://substackcdn.com/image/fetch/$s_!2k1I!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4cb9e737-24b0-4de4-b47e-b6f7a87edf03_666x431.png 1272w, https://substackcdn.com/image/fetch/$s_!2k1I!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4cb9e737-24b0-4de4-b47e-b6f7a87edf03_666x431.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p><em>Images from <a href="https://www.midjourney.com/app/">Midjourney</a><br></em>I build fun little Python scripts and design agents! <a href="https://replit.com/@p4r7h">Check out my Replit for more cool projects</a>. (you&#8217;ll need an <a href="https://platform.openai.com/signup">OpenAI API key</a> to play with some of them). - Parth</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.replacingmyself.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Parth&#8217;s Substack is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[43 quintillion scenarios]]></title><description><![CDATA[The 3x3x3 Rubik's cube has 43 252 003 274 489 856 000 scenarios. Each can be solved in 20 or fewer moves.]]></description><link>https://www.replacingmyself.ai/p/43-quintillion-scenarios</link><guid isPermaLink="false">https://www.replacingmyself.ai/p/43-quintillion-scenarios</guid><dc:creator><![CDATA[parth]]></dc:creator><pubDate>Thu, 13 Apr 2023 02:47:58 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/1d3f6c6a-a389-4aa2-9309-317a79ad69e5_400x400.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!dMSe!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4ef66a53-275a-42bb-9486-261c1a112c6e_700x135.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!dMSe!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4ef66a53-275a-42bb-9486-261c1a112c6e_700x135.png 424w, https://substackcdn.com/image/fetch/$s_!dMSe!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4ef66a53-275a-42bb-9486-261c1a112c6e_700x135.png 848w, https://substackcdn.com/image/fetch/$s_!dMSe!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4ef66a53-275a-42bb-9486-261c1a112c6e_700x135.png 1272w, https://substackcdn.com/image/fetch/$s_!dMSe!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4ef66a53-275a-42bb-9486-261c1a112c6e_700x135.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!dMSe!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4ef66a53-275a-42bb-9486-261c1a112c6e_700x135.png" width="700" height="135" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/4ef66a53-275a-42bb-9486-261c1a112c6e_700x135.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:135,&quot;width&quot;:700,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:31139,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!dMSe!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4ef66a53-275a-42bb-9486-261c1a112c6e_700x135.png 424w, https://substackcdn.com/image/fetch/$s_!dMSe!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4ef66a53-275a-42bb-9486-261c1a112c6e_700x135.png 848w, https://substackcdn.com/image/fetch/$s_!dMSe!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4ef66a53-275a-42bb-9486-261c1a112c6e_700x135.png 1272w, https://substackcdn.com/image/fetch/$s_!dMSe!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4ef66a53-275a-42bb-9486-261c1a112c6e_700x135.png 1456w" sizes="100vw" fetchpriority="high"></picture><div></div></div></a></figure></div><p>Hi! I'm Parth.<br><br>Join me as we delve into the fascinating intersection of technology, music, gaming, data analytics, startups, and the internet.</p><p>I've started this page to share some of my own philosophical musings and insights on these topics, and to invite you to join in the conversation.</p><p>In my writing, I'll explore themes like creativity, intelligence, ethics, identity, community, and the nature of reality itself.</p><p>In the process, I hope to build a conversation that fosters open-mindedness, critical thinking, and intellectual curiosity.</p><p>Let's ask the big questions, challenge our assumptions, and explore this fascinating universe together.<br><br>Oh and I&#8217;ll probably talk about Rubik&#8217;s Cubes.</p><p></p><p>- Parth</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.replacingmyself.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Parth&#8217;s Substack is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Hello World]]></title><description><![CDATA[:D]]></description><link>https://www.replacingmyself.ai/p/hello-world</link><guid isPermaLink="false">https://www.replacingmyself.ai/p/hello-world</guid><dc:creator><![CDATA[parth]]></dc:creator><pubDate>Tue, 07 Mar 2023 08:07:05 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!Odzu!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9d41f88f-b317-4fc5-be17-58fb0131dd1f_1280x1280.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p></p>]]></content:encoded></item><item><title><![CDATA[Coming soon]]></title><description><![CDATA[This is&#8230; Replacing Myself with A.I.]]></description><link>https://www.replacingmyself.ai/p/coming-soon</link><guid isPermaLink="false">https://www.replacingmyself.ai/p/coming-soon</guid><dc:creator><![CDATA[parth]]></dc:creator><pubDate>Tue, 07 Mar 2023 07:39:34 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!Odzu!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9d41f88f-b317-4fc5-be17-58fb0131dd1f_1280x1280.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>This is&#8230;</p><p>Replacing Myself with A.I.</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://www.replacingmyself.ai/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://www.replacingmyself.ai/subscribe?"><span>Subscribe now</span></a></p>]]></content:encoded></item></channel></rss>