<?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: prabhat kumar</title>
    <description>The latest articles on DEV Community by prabhat kumar (@kprabhat905).</description>
    <link>https://dev.to/kprabhat905</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3677819%2Fbe96d025-9da3-40b5-90ba-cacf6f48cb10.png</url>
      <title>DEV Community: prabhat kumar</title>
      <link>https://dev.to/kprabhat905</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kprabhat905"/>
    <language>en</language>
    <item>
      <title>🤖 Agents: From LLMs to Systems That _Act_</title>
      <dc:creator>prabhat kumar</dc:creator>
      <pubDate>Thu, 25 Dec 2025 06:25:14 +0000</pubDate>
      <link>https://dev.to/kprabhat905/agents-from-llms-to-systems-that-act-c22</link>
      <guid>https://dev.to/kprabhat905/agents-from-llms-to-systems-that-act-c22</guid>
      <description>&lt;p&gt;Most people think of LLMs as “smart chatbots.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Agents are different.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Agents combine &lt;strong&gt;language models + tools + control flow&lt;/strong&gt; to create systems that can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Reason about a task&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Decide &lt;em&gt;which tool&lt;/em&gt; to use&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Act on the world&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Observe results&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Iterate until a goal is reached&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is what makes AI &lt;strong&gt;agentic&lt;/strong&gt;, not just conversational.&lt;/p&gt;




&lt;h3&gt;
  
  
  🧠 Mental Model
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;Input → Model → (Tool?) → Model → Output&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Under the hood, it’s a loop:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Reason → Act → Observe → Reason → … → Finish&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;An agent runs &lt;strong&gt;until a stop condition is met&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Final answer emitted, or&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Iteration limit reached&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  🏗️ &lt;code&gt;createAgent()&lt;/code&gt; in LangChain
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;createAgent()&lt;/code&gt; provides a &lt;strong&gt;production-ready agent runtime&lt;/strong&gt; built on &lt;strong&gt;LangGraph&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Graph-based execution (not ad-hoc)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Each step is a node (model, tool, middleware)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Explicit, debuggable transitions&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Safety via recursion limits and state tracking&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;This isn’t a demo abstraction — it’s infrastructure.&lt;/strong&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  🔧 Core Building Blocks of an Agent
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;1️⃣ Model (Reasoning Engine)&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Decides what to do next&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Static or dynamically selected at runtime&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;2️⃣ Tools (Actions)&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Enable agents to fetch data, call APIs, execute logic, and chain actions&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Sequential, retried, or dynamic calls&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;3️⃣ System Prompt (Policy Layer)&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Defines role, constraints, stopping behavior, and safety rules&lt;br&gt;&lt;br&gt;
→ &lt;strong&gt;Most production agent bugs are prevented here&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4️⃣ State &amp;amp; Memory&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Message history&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Optional structured state&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Enables multi-step workflows and long-running sessions&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5️⃣ Middleware (Control Plane)&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Guardrails, routing, error handling&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Logging, observability, and control&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is how agents become &lt;strong&gt;enterprise-ready&lt;/strong&gt;.&lt;/p&gt;




&lt;h3&gt;
  
  
  🔁 ReAct Isn’t a Buzzword — It’s a Pattern
&lt;/h3&gt;

&lt;p&gt;Agents follow &lt;strong&gt;ReAct&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Reason&lt;/strong&gt; → decide&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Act&lt;/strong&gt; → call tool&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Observe&lt;/strong&gt; → read result&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Repeat until done&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This enables adaptation, recovery, and non-trivial task solving.&lt;/p&gt;




&lt;h3&gt;
  
  
  🚨 A Hard-Earned Lesson
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;If an agent can call tools, it should not handle user-facing “talking”.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;In production, separate:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Execution agents&lt;/strong&gt; (reasoning + tools)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Presentation layers&lt;/strong&gt; (formatting, tone, UX)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This avoids loops, parsing failures, and fragile behavior.&lt;/p&gt;




&lt;h3&gt;
  
  
  🧩 Why This Matters
&lt;/h3&gt;

&lt;p&gt;Agents move us from:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;“AI answers questions.”&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;to “AI completes wor.k”&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;From copilots → &lt;strong&gt;autonomous workflows&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Frameworks like LangChain + LangGraph help build them &lt;strong&gt;safely&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;If you’re building AI backends, developer tools, workflow automation, or autonomous systems, you’re already building agents.&lt;/p&gt;

</description>
      <category>langgraph</category>
      <category>langchain</category>
      <category>agenticai</category>
      <category>aiengineering</category>
    </item>
  </channel>
</rss>
