<?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:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Shreya on Medium]]></title>
        <description><![CDATA[Stories by Shreya on Medium]]></description>
        <link>https://medium.com/@shreya3_84754?source=rss-55ca17c424d7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*FfDQAXhtYxH3eoMumkWtfg.jpeg</url>
            <title>Stories by Shreya on Medium</title>
            <link>https://medium.com/@shreya3_84754?source=rss-55ca17c424d7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 07:25:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shreya3_84754/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building AI Agents as a Beginner — What I Learned Before Writing a Single Line of Code]]></title>
            <link>https://medium.com/@shreya3_84754/building-ai-agents-as-a-beginner-what-i-learned-before-writing-a-single-line-of-code-27d4348525a4?source=rss-55ca17c424d7------2</link>
            <guid isPermaLink="false">https://medium.com/p/27d4348525a4</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[openai]]></category>
            <dc:creator><![CDATA[Shreya]]></dc:creator>
            <pubDate>Sat, 14 Feb 2026 11:13:49 GMT</pubDate>
            <atom:updated>2026-02-14T11:13:49.735Z</atom:updated>
            <content:encoded><![CDATA[<p>Before building an AI agent from scratch as a beginner, there are certain concepts that must be understood and implemented clearly in your mind.</p><p>When I started, I made the mistake of jumping directly into SDKs and tools.</p><p>I thought:</p><blockquote><em>“Let me just start coding. I’ll understand along the way.”</em></blockquote><p>That approach made everything more confusing.</p><p>Before touching any AI Agent SDK, I realized there are a few core terms and ideas that need to be crystal clear.</p><h3>What Is the Use of AI Agents?</h3><p>At its core, an AI agent:</p><ul><li>Understands the user’s query or assigned task</li><li>Analyzes what needs to be done</li><li>Decides the appropriate action</li><li>Takes that action on behalf of the user</li></ul><p>Unlike a simple chatbot that only generates text, an AI agent <strong>acts</strong>. It doesn’t just respond it performs.</p><h3>How Does an AI Agent Actually Work?</h3><p>When I first tried to understand how an AI agent actually works, I kept looking for something very complex, some hidden architecture or advanced algorithm. But as a beginner, what finally made it click for me was realizing that most agents revolve around two very important ideas: <strong>memory and planning</strong>.</p><blockquote>Memory allows the agent to remember what has already happened. It stores past interactions, previous instructions, and contextual information so that it doesn’t treat every message like it’s the first one.</blockquote><blockquote>Planning, on the other hand, is what makes the agent proactive instead of reactive. Once it understands the user’s goal, it doesn’t just respond immediately but it thinks about what needs to be done. It eventually breaks the task into smaller steps, decides what should happen next, and determines whether any tools need to be used.</blockquote><p>When I combined these two ideas in my mind memory for context and planning for actionI finally understood what makes an AI system behave like an agent. It’s not just generating words. It’s remembering, reasoning, and deciding what to do next.</p><h3>The First Real Problem I Faced: Documentation</h3><p>One of the biggest challenges I faced as a beginner was understanding the documentation for AI Agent SDKs. There is so much information available that it becomes overwhelming. I didn’t know: Where to start, What to ignore, What was essential and What was advanced?</p><p>So here’s the approach that actually helped me.</p><ol><li>Find Your Objective First: Before reading any documentation, ask yourself:<br> • What is the main purpose of my agent?<br> • What problem is it solving?<br> • How does it contribute to a business or real-world use case?</li></ol><p>Without a clear objective, reading documentation becomes random and confusing.</p><p>2. Don’t Depend Fully on ChatGPT: This might sound surprising but as a beginner, relying completely on LLMs to explain SDK agents can sometimes misguide you. LLMs can explain concepts theoretically but they cannot replace hands-on understanding of official documentation. When I depended only on AI explanations, I understood things superficially but not deeply. As a beginner, you need:<br> • Core conceptual clarity<br> • Real implementation details<br> • Understanding of actual SDK structures</p><p>3. Read Official Documentation: The best source of truth is always the official documentation like <a href="https://developers.openai.com/api/docs/guides/agents-sdk/">OpenAI Agents SDK documentation</a></p><p>A method that worked for me was:<br> • Use a documentation-focused AI assistant (one that answers strictly from documentation)<br> • Ask very specific questions<br> • Clear your doubts step by step<br> • Test small examples side by side</p><p>4. Make Your Own Notes: This was extremely important. While reading documentation, I started writing my own simplified notes:<br> • In plain language<br> • In a way I personally understood<br> • With small code snippets<br> • With diagrams</p><p>Making your own documentation forces you to process the information deeply.</p><p>Now that I started understanding the core idea behind agents, the next thing that came accross me was the different <em>types</em> of agents.</p><p>In simple terms, there are two broad ways an AI agent system can be structured: you either use a single agent to handle everything, or you distribute responsibilities across multiple specialized agents.</p><blockquote>A single-agent system is exactly what it sounds like , one agent that manages the entire workflow. It understands the user’s request, plans the steps, decides whether to use tools, executes actions, and generates the final response.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*dqpCzEKRf7ZkiaWKkbTKog.png" /></figure><p>However, I learned that single agents have limitations. When tasks become very long, involve multiple stages, or require heavy contextual reasoning, a single agent can start to struggle. As the context grows, the chances of hallucination or losing track of earlier steps increase.</p><blockquote>This is where multi-agent systems come in. Instead of forcing one agent to do everything, responsibilities are divided among multiple agents, each designed for a specific role. For example, one agent might act as a planner that breaks a complex goal into smaller, manageable steps. Another agent might take on the role of a researcher, gathering relevant information.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*l8p2wW_O6_G_KYZwGDdjsw.png" /></figure><p>Before building an AI agent from scratch being a beginner, there are some concepts that needs to be understood and implemented before you start with the AI agents using SDK tools.</p><h3>Open AI Agents SDK</h3><p>The OpenAI Agents SDK is an official framework for building agentic AI applications — where LLMs can:</p><ul><li>Execute multi-step tasks autonomously</li><li>Use <strong>tools</strong> (APIs, functions, search, computation, etc.)</li><li>Delegate work between agents (handoffs)</li><li>Enforce constraints via <strong>guardrails</strong></li><li>Track execution with built-in <strong>tracing</strong> and observability</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lkkcoZf-I4oCSe7CqTpNzw.png" /></figure><blockquote>Agents SDK = LLM + Tools + Memory + Control Loop</blockquote><p>The main components of the Agents SDK were shown in the flow diagram above, Let me explain them the way I understood them as a beginner.</p><ol><li>Handsoff:- The word itself is quite self-explanatory it simply means transferring a task from one agent to another that is better suited to handle it. Instead of one agent trying to solve everything, the task is handed over to a more specialized agent. For example customer support app might have agents that each specifically handle tasks like order status, refunds, FAQs, etc.</li></ol><p>2. Gaurdrails:- Think of guardrails as the bouncers or security filters of an. AI system. They make sure the conversation stays on track, stays safe, and doesn’t waste resources. Guardrails act as a middleman between the user and that smart brain of the AI.</p><p>3. Tracing:- If guardrails are the bouncers at the door, <strong>tracing</strong> is the security camera footage of everything that happens inside the building. When you run an agent, the SDK automatically bookmarks these key events in the trace:</p><ul><li><strong>LLM Generations:</strong> Exactly what prompt was sent and what the model said back (including how many tokens were used).</li><li><strong>Tool Calls:</strong> Which function the agent decided to use and what data that function returned.</li><li><strong>Handoffs:</strong> If “Agent A” decided the task was too complex and passed it to “Agent B.”</li><li><strong>Guardrails:</strong> Whether a guardrail was triggered and why it blocked (or allowed) the request.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PEkoaP_RQjuzvoh4jNuUvA.png" /></figure><p>In simple terms, the flow works like this:</p><ol><li>The user sends a request.</li><li>Guardrails check the input.</li><li>The main agent processes or delegates the task.</li><li>Output is validated again.</li><li>Every step is logged for monitoring and improvement.</li><li>A safe and accurate response is returned to the user.</li></ol><p>When I zoomed out and looked at the complete flow, I finally understood how everything connects.</p><p>This diagram represents what really happens behind the scenes when you give an AI agent a request using the OpenAI Agents SDK. From the outside, it looks simple — you type something, and you get a response. But internally, a lot more is happening.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cRe8zACpndZ6hJBdT9mOYg.png" /></figure><p>When a user enters a prompt, the system first tries to understand what’s being asked and extract the important details. It then decides whether it can simply generate a response using an LLM (like a local model or ChatGPT) or if it needs to take action by calling an external tool — such as an API. If the task is more complex, the agent can break it down and handle it step by step within its internal loop. Before sending anything back, the system runs checks to make sure the response is safe, accurate, and properly formatted. Only after everything looks good does it return the final answer. In short, the diagram captures how a modern AI agent doesn’t just reply it understands, decides, acts, verifies, and then responds thoughtfully.</p><h3>What’s Next?</h3><p>In this article, I focused only on understanding , basic concepts, architecture and the flow. The mistakes I made while trying to grasp it all. In the next article, I’m going to take this understanding and turn it into something practical.</p><p>I’ll walk through how I built my own AI agent from scratch using the OpenAI Agents SDK as a complete beginner. I’ll share the project structure, the challenges I faced during implementation.</p><p>Because understanding agents is one thing.</p><p>Building one yourself from zero is where the real learning begins.</p><p>And that’s the journey I’ll share next.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27d4348525a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>