<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: leo-wang</title>
    <description>The latest articles on DEV Community by leo-wang (@leo_c8398753453de189bcd).</description>
    <link>https://dev.to/leo_c8398753453de189bcd</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3642854%2F45d28576-2034-44f6-8e21-20327fcdf4c8.png</url>
      <title>DEV Community: leo-wang</title>
      <link>https://dev.to/leo_c8398753453de189bcd</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/leo_c8398753453de189bcd"/>
    <language>en</language>
    <item>
      <title>What Actually Happens During a Single LLM Call?</title>
      <dc:creator>leo-wang</dc:creator>
      <pubDate>Tue, 04 Aug 2026 06:45:26 +0000</pubDate>
      <link>https://dev.to/leo_c8398753453de189bcd/what-actually-happens-during-a-single-llm-call-5007</link>
      <guid>https://dev.to/leo_c8398753453de189bcd/what-actually-happens-during-a-single-llm-call-5007</guid>
      <description>&lt;p&gt;The first time I called the OpenAI API with bare &lt;code&gt;curl&lt;/code&gt;, I stared at the JSON response for about thirty seconds. &lt;em&gt;That's it?&lt;/em&gt; A POST request, a &lt;code&gt;messages&lt;/code&gt; array, back comes a string of text. LangChain wraps it in seven or eight layers and the tutorials make it sound mystical — but at the very bottom it's just an ordinary HTTP request, so ordinary it can't get any more ordinary.&lt;/p&gt;

&lt;p&gt;Here's the conclusion that reshaped how I build agents: a so-called "Agent" is, in essence, just an ordinary backend program that calls a stateless LLM API in a loop. Its complexity doesn't live in the model — it lives in how your code manages the &lt;code&gt;messages&lt;/code&gt; array. That's why the engineering effort in a production-grade Agent lands overwhelmingly on the memory, orchestration, security, and evaluation layers, not the model layer (which is actually the simplest).&lt;/p&gt;

&lt;p&gt;My take: if you can treat every LLM call as an unreliable remote service — timeouts, retries, jitter, cost accounting — you've already outpaced most teams still chasing "magic prompt" tricks. The model layer is the part nobody should be afraid of.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Full article&lt;/strong&gt; → &lt;a href="https://leo76868.substack.com/p/what-actually-happens-during-a-single" rel="noopener noreferrer"&gt;https://leo76868.substack.com/p/what-actually-happens-during-a-single&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Production-Grade AI Agents&lt;/em&gt; — by Leo Wang · &lt;a href="https://x.com/VM1ISesPfr64145" rel="noopener noreferrer"&gt;Follow on X&lt;/a&gt; · &lt;a href="https://substack.com/@leo76868" rel="noopener noreferrer"&gt;Subscribe&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>llm</category>
      <category>python</category>
    </item>
    <item>
      <title>You Think You're Building AI Agents — You're Just Running a Demo</title>
      <dc:creator>leo-wang</dc:creator>
      <pubDate>Mon, 03 Aug 2026 09:16:22 +0000</pubDate>
      <link>https://dev.to/leo_c8398753453de189bcd/you-think-youre-building-ai-agents-youre-just-running-a-demo-3f8o</link>
      <guid>https://dev.to/leo_c8398753453de189bcd/you-think-youre-building-ai-agents-youre-just-running-a-demo-3f8o</guid>
      <description>&lt;p&gt;Last year a friend's company shipped an internal "smart customer service Agent." Two weeks to a demo. The boss asked it questions, it answered every one. Applause. Ship it.&lt;/p&gt;

&lt;p&gt;Day three in production, it fell apart — rate-limit meltdowns, a leaked expense record, a prompt injection that dumped the system prompt, ¥47,000 in tokens burned in a month, and a fabricated approval chain that seized up finance.&lt;/p&gt;

&lt;p&gt;The code looked exactly like the tutorials. RAG? Checked. Function Calling? Checked. The problem: &lt;strong&gt;it was only ever a demo.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Most agent tutorials cover the three &lt;em&gt;least&lt;/em&gt; important layers — the model, the tools, the basic loop. Production-grade agents live in the layers nobody teaches: error handling under load, cost blowup, data permissions, prompt injection, observability, and evaluation.&lt;/p&gt;

&lt;p&gt;My take: learning frameworks is already late. Learning the &lt;em&gt;engineering system&lt;/em&gt; — how to wrap an unstable probabilistic model into something safe to ship — is right on time. That half-life is measured in years, not months. That's what this series is about.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Full article&lt;/strong&gt; — the 7-layer production skeleton + the full post-mortem → &lt;a href="https://leo76868.substack.com/p/you-think-youre-building-ai-agents" rel="noopener noreferrer"&gt;https://leo76868.substack.com/p/you-think-youre-building-ai-agents&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Production-Grade AI Agents&lt;/em&gt; — by Leo Wang · &lt;a href="https://x.com/VM1ISesPfr64145" rel="noopener noreferrer"&gt;Follow on X&lt;/a&gt; · &lt;a href="https://substack.com/@leo76868" rel="noopener noreferrer"&gt;Subscribe&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
