<?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 Minal Saleem on Medium]]></title>
        <description><![CDATA[Stories by Minal Saleem on Medium]]></description>
        <link>https://medium.com/@minalsaleem?source=rss-8fe53f5572c1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Minal Saleem on Medium</title>
            <link>https://medium.com/@minalsaleem?source=rss-8fe53f5572c1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 05:22:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@minalsaleem/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[Function Calling And Tool Calling]]></title>
            <link>https://medium.com/@minalsaleem/function-calling-and-tool-calling-5f16a5db5018?source=rss-8fe53f5572c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f16a5db5018</guid>
            <dc:creator><![CDATA[Minal Saleem]]></dc:creator>
            <pubDate>Wed, 11 Jun 2025 23:28:06 GMT</pubDate>
            <atom:updated>2025-06-11T23:28:06.257Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction :</h3><p>At their core, both function calling and tool calling extend the capabilities of Large Language Models (LLMs) beyond text generation. They allow LLMs to interact with external systems, perform actions, and access real-time data not included in their training.</p><p>The LLM itself doesn’t execute code instead, it determines when a function or tool should be used based on the prompt, then passes the necessary instructions and arguments to your application. The application executes the call, returns the result, and the LLM uses it to generate a more accurate and informed response.</p><h3>Function Calling</h3><p>Function calling allows Large Language Models (LLMs) to interface with your code or external services, enabling them to fetch real-time data and perform actions. Originally introduced by OpenAI, this feature bridges natural language understanding with structured code execution.</p><h4>What It Is :</h4><p>You define functions in your code, for example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/381/1*t6-84tR4mtb5cFN5SKekBQ.png" /></figure><p>These function definitions, along with their names, purposes, and expected parameters, are shared with the model using a JSON schema during an API call.</p><h4>How It Works :</h4><p>When the LLM receives a user prompt, it evaluates whether any of the provided functions can help fulfill the request. If so, it outputs a structured JSON response that specifies the function name and the arguments it deems appropriate.</p><p>Example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/328/1*LKh7louo8Jr7_69vcou7eA.png" /></figure><h4>Your Role :</h4><p>Your application receives this JSON output, parses it, and executes the actual function. Once the function result is available, it’s sent back to the LLM, which then uses it to craft a relevant, informed natural language response.</p><p>Think of it like the LLM saying:<br><em> “ To answer this, I need to call </em><strong><em>get_current_weather</em></strong><em> with </em><strong><em>location = ‘Karachi’</em></strong><em> and </em><strong><em>unit = ‘celsius’</em></strong><em>. ’’</em></p><h4>Function Schema Structure</h4><p>Each function is defined via a JSON schema within the tools parameter of an API request. The schema includes:</p><p><em>name: </em>The function’s name (e.g. <em>get_current_weather</em>)</p><p><em>description:</em><strong><em> </em></strong>When and how the function should be used</p><p><em>parameters: </em>JSON schema detailing the input arguments</p><h3>Tool Calling :</h3><p>Tool calling is the modern and expanded approach introduced by OpenAI, especially within its <em>Agents SDK</em> and <em>Assistants API</em>. Unlike function calling which focuses only on executing predefined functions, tool calling allows AI agents to interact with a variety of external capabilities to accomplish complex tasks.</p><h4>What It Is :</h4><p>In tool calling, a <em>tool</em> is any external capability that an AI agent can use. It goes beyond traditional functions to include:</p><ul><li><strong>Function Tools</strong>: These are user-defined Python functions. With the Agents SDK, any Python function can be turned into a tool. The SDK auto-generates the required schema from the function’s arguments and docstrings.</li><li><strong>Hosted Tools</strong>: Ready-to-use tools provided by OpenAI, such as:</li><li>Web search</li><li>File search</li><li>Code interpreter<br> These run on OpenAI’s infrastructure and require no backend implementation.</li><li><strong>Agents as Tools</strong>: A powerful feature in the Agents SDK where one AI agent can be used as a tool by another agent. This enables advanced, multi-agent workflows where tasks can be delegated to specialized sub-agents.</li></ul><h4>How It Works :</h4><p>The <em>Agents SDK</em> orchestrates tool usage through a structured agent loop:</p><ol><li>The LLM processes the user prompt.</li><li>It determines if a tool is needed.</li><li>If yes, it generates a<strong><em> </em></strong><em>tool call</em>.</li><li>Tools with an execute function are run automatically.</li><li>The result is passed back to the model.</li><li>This cycle continues as needed until a final response is formulated.</li></ol><p>This enables seamless, multi-step workflows where tools and model responses are tightly integrated.</p><h4>Your Role :</h4><p>Your responsibilities vary based on the tool type:</p><ul><li>For <em>function tools</em>, define the Python functions you want to expose.</li><li>For <em>hosted tools</em> or <em>agent tools</em>, enable and configure them using the SDK.<br> The SDK handles execution, tool orchestration, and response management for you.</li></ul><h4>Think of It As :</h4><p>The LLM reasoning:</p><p><em>“ To solve this, should I use the web search tool, call get_current_weather , or delegate to the ‘customer_support’ agent tool? ”</em></p><h4>Tool Definition Structure :</h4><p>Each tool consists of three core properties:</p><p><em>description: </em>Optional. Helps the model understand when to use the tool.</p><p><em>parameters:</em> A Zod or JSON schema that defines and validates input arguments.</p><p><em>execute:</em> Optional. An async function called when the LLM initiates the tool call.</p><p>Tools are passed through the tools parameter using <em>generateText</em> or <em>streamText</em> .</p><h3><strong>Key Differences :</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*XtMWbtX0DiQPN29BPlzVew.png" /><figcaption>Key Differences</figcaption></figure><h3>When to Use Which?</h3><h4>Function Calling :</h4><ul><li>Quick, simple integrations where you want full manual control.</li><li>One-off tasks (e.g. weather lookup, calculator).</li><li>Apps with 1–2 local functions.</li><li>When you need raw JSON outputs for custom parsing.</li><li>Direct GPT-to-function communication without automation.</li></ul><h4>Tool Calling :</h4><ul><li>Complex agents needing automated multi-step workflows.</li><li>Coding assistants, data analyzers, or research agents.</li><li>Scaling with many tools/APIs/files.</li><li>Agent loops with memory/state (e.g. chat history).</li><li>Parallel or sequential tool execution (e.g. “ search web -&gt; analyze -&gt; summarize”).</li></ul><h3>Conclusion :</h3><p><strong>Function Calling</strong> is ideal for straightforward tasks where the model calls a single function and you handle the rest.<br><strong>Tool Calling </strong>powered by the Agents SDK, takes this to the next level enabling models to autonomously execute multi-step workflows using a variety of tools, including APIs, web searches, hosted services, and even other AI agents. The SDK manages execution, schema generation, and integration, allowing developers to focus on defining logic while the model orchestrates the flow.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f16a5db5018" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LLMs Explained: How AI Understands and Generates Language]]></title>
            <link>https://medium.com/@minalsaleem/llms-explained-how-ai-understands-and-generates-language-e7efac1a147f?source=rss-8fe53f5572c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7efac1a147f</guid>
            <dc:creator><![CDATA[Minal Saleem]]></dc:creator>
            <pubDate>Thu, 05 Jun 2025 20:11:03 GMT</pubDate>
            <atom:updated>2025-06-05T20:11:03.049Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*za_BzFCQup5PF_QCcvVCOg.png" /><figcaption>LLM</figcaption></figure><h3>1. Introduction :</h3><h4>What are LLMs in simple terms?</h4><p>Have you ever chatted with an AI that sounds remarkably human, writes compelling stories, or even helps you debug code? If so, you’re likely interacting with a Large Language Model (LLM). In simple terms, LLMs are incredibly powerful computer programs trained on massive amounts of text data, enabling them to understand, generate, and manipulate human language with astonishing fluency.</p><h4>Why are they important in today’s AI landscape?</h4><p>They’ve rapidly become a cornerstone of today’s AI landscape, revolutionizing how we interact with technology and process information. Think of household names like <strong>ChatGPT</strong>, <strong>Gemini</strong>, and <strong>Claude</strong> — these are prime examples of LLMs that have captured the public imagination and demonstrated the immense potential of this technology.</p><h3>2. What is a Large Language Model (LLM)?</h3><h4>Definition of LLM :</h4><p>An LLM is a deep learning model trained to understand and generate human-like language. It’s “large” because of the sheer volume of data it’s trained on and the number of parameters it possesses (often billions, or even trillions).</p><p><strong><em>LLM = (Lots of text) + (Pattern learning) + (Word prediction “magic”)</em></strong></p><h4>How do LLMs work at a high level ?</h4><p>At a high level, LLMs work by identifying patterns and relationships within the vast datasets they’ve processed. When you give an LLM a prompt, it uses its learned knowledge to predict the most probable sequence of words to generate a coherent and contextually relevant response.</p><h4>Difference between traditional NLP and LLMs :</h4><ul><li><strong>Traditional NLP:</strong> Rule-based or statistical models (e.g., keyword matching, sentiment analysis).</li><li><strong>LLMs: </strong>Use deep learning and self-attention mechanisms (Transformers) for more natural, context-aware responses.</li></ul><h3>3. A Brief History of LLMs :</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y9V8vXMmsXXmTQaLdNDT9A.png" /><figcaption>History of LLMs</figcaption></figure><p>Evolution of NLP → Transformers → Modern LLMs</p><ul><li><strong>Early NLP (1950s-2000s): </strong>Rule-based systems like ELIZA, statistical models.</li><li><strong>Deep Learning Era (2010s):</strong> Recurrent Neural Networks (RNNs), LSTMs improved text processing.</li><li><strong>Transformers (2017): </strong>Google’s “Attention Is All You Need” paper introduced the Transformer architecture, revolutionizing NLP.</li><li><strong>GPT-1 (2018):</strong> First Generative Pre-trained Transformer by OpenAI.</li><li><strong>BERT (2018):</strong> (Bidirectional Encoder Representations from Transformers) by Google demonstrated powerful understanding of context.</li><li><strong>GPT-3 (2020):</strong> 175B parameters, enabling few-shot learning.</li><li><strong>GPT-4 (2023):</strong> Even more powerful, multimodal capabilities.</li><li><strong>T5 and LLaMA: </strong>Google’s and Meta’s advanced models for multiple tasks.</li><li><strong>Claude by Anthropic and Gemini by Google DeepMind (2023+):</strong> Designed for safety and reasoning.</li></ul><h3>4. How Do LLMs Work?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*eBN0AeI9TnnZEcUvQUYeUg.png" /><figcaption>How LLMs work</figcaption></figure><h4>Tokenization :</h4><p>First, input text is broken down into smaller units called “tokens.” These can be words, parts of words, or even punctuation marks. This allows the model to process and understand the text.</p><h4>Training :</h4><p>The model learns from huge datasets that include text, code, and other media. It learns patterns by predicting the next token in a sequence.</p><h4>Use of Transformers and Attention mechanism :</h4><p>Transformers use attention mechanisms to focus on the most relevant parts of the input, making models more accurate.</p><h4>Fine-tuning and In-context learning (prompting) :</h4><ul><li><strong>Fine-tuning:</strong> Adjusting models for specific tasks.</li><li><strong>In-context Learning (Prompting):</strong> Giving examples in prompts to guide responses.</li></ul><h3>5. Popular LLMs :</h3><p>Here are some of the most well-known LLMs and their creators:</p><ul><li><strong>OpenAI:</strong> GPT-4, ChatGPT (used in Microsoft Copilot and other tools)</li><li><strong>Google DeepMind:</strong> Gemini (integrated into Bard)</li><li><strong>Anthropic:</strong> Claude (known for safety and long-context reasoning)</li><li><strong>Meta:</strong> LLaMA models (open-source models for research and development)</li><li><strong>xAI (Elon Musk’s team):</strong> Grok</li><li><strong>Mistral and Cohere:</strong> Focused on efficient and open-source models</li></ul><h3>6. Applications of LLMs :</h3><p>LLMs are incredibly versatile. Some key applications include:</p><ul><li><strong>Chatbots and Virtual Assistants:</strong> Powering customer service, personal assistants, and interactive educational tools.</li><li><strong>Code generation:</strong> Assisting developers by writing, debugging, and explaining code snippets.</li><li><strong>Text summarization:</strong> Condensing lengthy documents, articles, or conversations into concise summaries.</li><li><strong>Translation:</strong> Breaking down language barriers by accurately translating text between different languages.</li><li><strong>Creative writing:</strong> Generating stories, poems, scripts, and marketing copy.</li><li>Beyond these, LLMs are finding increasing use in specialized fields like <strong>legal document review</strong>, <strong>medical diagnostics support</strong>, and <strong>personalized educational content creation</strong>.</li></ul><h3>7. Benefits of LLMs :</h3><ul><li><strong>Automation of tasks:</strong> Freeing up human time from repetitive and time-consuming language-based tasks.</li><li><strong>Accessibility improvements:</strong> Making information and complex tools more accessible to a wider audience, regardless of technical expertise.</li><li><strong>Boosting productivity:</strong> Accelerating workflows for writers, developers, researchers, and many other professionals.</li><li><strong>Democratizing AI tools:</strong> Lowering the barrier to entry for developing AI-powered applications, allowing more individuals and businesses to leverage advanced AI capabilities.</li></ul><h3>8. Challenges and Limitations :</h3><p>Despite their power, LLMs aren’t perfect:</p><ul><li><strong>Hallucination (false or misleading output):</strong> LLMs can sometimes generate information that sounds plausible but is factually incorrect or nonsensical.</li><li><strong>Bias and fairness:</strong> Since they are trained on internet data, LLMs may reflect societal or cultural biases.</li><li><strong>Data privacy concerns:</strong> The sheer volume of data used in training raises questions about the privacy of individuals whose data might have been included.</li><li><strong>Computational cost and environmental impact:</strong> Training and running large models consumes massive compute and energy.</li></ul><h3>9. Ethics and Responsible Use :</h3><p>As LLMs grow more capable, responsible use is critical:</p><ul><li><strong>Importance of transparency and explainability:</strong> Users should know when they’re talking to an AI and how it works.</li><li><strong>Misuse and misinformation:</strong> LLMs can generate fake news, impersonate people, or spread harmful content.</li><li><strong>Guardrails and AI alignment:</strong> AI alignment and safety techniques (like RLHF and Constitutional AI) help steer models toward ethical behavior.</li></ul><h3>10. The Future of LLMs :</h3><p>The future of LLMs is dynamic and holds exciting possibilities:</p><ul><li><strong>Smaller, faster, more efficient models:</strong> Lightweight models like Mistral and Phi are emerging for edge devices.</li><li><strong>Open-source LLMs:</strong> Communities are building powerful models that anyone can use.</li><li><strong>Integration with multimodal AI:</strong> The ability to process and generate text, images, audio, and video, unlocking entirely new applications and experiences.</li><li><strong>Human-AI collaboration:</strong> Instead of replacing humans, LLMs are increasingly seen as powerful collaborators, augmenting human capabilities and creativity.</li></ul><h3>11. Conclusion :</h3><p>Large Language Models represent a transformative leap in artificial intelligence. Their ability to understand and generate human language has opened doors to unprecedented levels of automation, productivity, and accessibility. While their capabilities are impressive, their responsible development and use will determine how beneficial they are to society.</p><p>As we look ahead, LLMs offer a glimpse into a world where technology enhances human potential, not replaces it.</p><p>The journey has just begun, and the potential of LLMs is truly boundless.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7efac1a147f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OpenAI Agents SDK]]></title>
            <link>https://medium.com/@minalsaleem/openai-agents-sdk-be783bb471a1?source=rss-8fe53f5572c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/be783bb471a1</guid>
            <category><![CDATA[openai-agents-sdk]]></category>
            <dc:creator><![CDATA[Minal Saleem]]></dc:creator>
            <pubDate>Sat, 31 May 2025 22:29:35 GMT</pubDate>
            <atom:updated>2025-05-31T22:29:35.795Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CBKEv8o3qw5J4Tb77TVmoQ.jpeg" /></figure><h3>What is an Agent?</h3><p>An <strong>AI agent</strong> is like a smart assistant that:</p><ul><li>Understands goals or instructions from a user</li><li>Decides what actions to take (e.g., calling APIs, using tools, reading docs)</li><li>Executes a sequence of steps to achieve the task</li></ul><p><strong>Agents = LLMs + Tools + Memory + Logic</strong></p><p>They’re not just chatbots they can <strong>think, decide, and act</strong> across tasks using plugins, APIs, and real-world data.</p><h3>What is an SDK?</h3><p><strong>SDK</strong> stands for <strong>Software Development Kit</strong>. It’s a <strong>toolbox for developers</strong> that includes:</p><ul><li><strong>Libraries</strong> (pre-written code to simplify tasks)</li><li><strong>APIs</strong> (interfaces to interact with services like OpenAI’s models)</li><li><strong>Documentation</strong> (guides, tutorials)</li><li><strong>Tools</strong> (debuggers, emulators)</li></ul><h3>What is OpenAI Agent SDK?</h3><p>The <strong>OpenAI Agent SDK</strong> (also referred to as the <strong>OpenAI Assistants API</strong>) is a <strong>framework</strong> that allows developers to build AI-powered agents (assistants) capable of:</p><ul><li>Performing tasks</li><li>Interacting with tools, APIs, and environments</li><li>Operating in a goal-oriented and autonomous way</li></ul><h3>Difference Between ChatGPT API and Agent SDK</h3><ul><li>The <strong>Chat API</strong> is stateless (each call is independent).</li><li>The <strong>Assistants API</strong> (Agent SDK) is stateful, supports tools, and manages conversation history.</li></ul><h3>Guardrails</h3><p>Guardrails are <strong>safety rules</strong> that ensure the AI behaves <strong>correctly and safely</strong>.</p><h3>Two Types of Guardrails:</h3><ol><li><strong>Input Guardrails: </strong>Run on user input to block harmful or invalid content.</li><li><strong>Output Guardrails: </strong>Run on agent output to prevent false, biased, or harmful results.</li></ol><p>Think of guardrails as <strong>seatbelts for AI</strong> , they don’t stop the ride, but they keep it safe!</p><h3>Handoffs</h3><p><strong>Handoff</strong> means <strong>one agent passes a task to another agent</strong> better suited for that specific job.</p><p>Handoffs are represented as tools to the <strong>LLM</strong>.</p><h3><strong>Creating a handoff :</strong></h3><p>All agents have a <strong>handoffs</strong> param, which can either take an <em>Agent</em> directly, or a <strong>handoff</strong> object that customizes the Handoff.</p><p>The SDK gives you a built-in tool called <strong>handoff( )</strong> to create handoffs.</p><ul><li>You use it to <em>set up the </em><strong>handoff </strong><em>rules, </em>like:</li><li><strong>Who</strong><em> </em>should take over</li><li><strong>What</strong> info to send</li><li><strong>When </strong>the handoff should happen (based on user input or other logic)</li></ul><h3>Runner</h3><p><strong>Runner</strong> is a <strong>high-level tool</strong> that runs your team of agents and manages the task execution.</p><h3>How it works:</h3><ol><li>Starts with one agent and some user input (like a user question).</li><li>Agent checks: “Can I answer this myself?”</li><li>If the agent gives the final output,<br>i.e. the agent produces something of type <strong>agent.output_type</strong> , the loop terminates.</li><li>If it decides to hand off the task to another agent, run the loop again, with the new agent.</li><li>If tools need to be used (like searching the internet or doing calculations),</li></ol><ul><li>The tools run first,</li><li>Then the same agent tries again.</li></ul><p>6. But if something goes wrong, 2 types of errors can happen:</p><ul><li>Too many steps? → <strong>MaxTurnsExceeded</strong> error</li><li>A safety rule was broken? → ️<strong>GuardrailTripwireTriggered </strong>error</li></ul><p><em>Only the </em><strong>first agent</strong><em> checks the input guardrails.</em></p><h3>Why is the Agent Class a Dataclass?</h3><p>OpenAI uses dataclass for the Agent class because it mainly <strong>holds data</strong> like:</p><ul><li>Name</li><li>Instructions</li><li>Model</li><li>Tools</li><li>Other configuration</li></ul><h3>Benefits of Dataclasses:</h3><ol><li><strong>Immutability:</strong> Can be made immutable with frozen=True</li><li><strong>Reduce Boilerplate: </strong>Auto-generates __init__, __repr__, etc.</li><li><strong>Type Hinting</strong>: Works well with static type checking</li><li><strong>Automatic Initialization: </strong>No need for manual constructors</li><li><strong>Immutability: </strong>Can be made immutable with frozen=True</li><li><strong>Clear Structure: </strong>Cleaner and more readable</li><li><strong>Serialization: </strong>Easy to convert to JSON using asdict()</li><li><strong>Type Hinting: </strong>Works well with static type checking</li></ol><h3>What is the Role of instructions?</h3><p>In OpenAI’s Agents SDK (Assistants API), the system prompt (initial instructions guiding the AI’s behavior) is typically defined in the instructions field of the Agent/ Assisstant class.</p><h3>Two Options:</h3><ol><li><strong>str (Static System Prompt)</strong> For fixed prompts</li><li><strong>callable (Dynamic System Prompt)</strong> For dynamic prompts based on context</li></ol><p>The callable function takes in:</p><ul><li>RunContextWrapper[TContext]</li><li>The current Agent[TContext]</li></ul><p>And returns a <strong>dynamic string</strong>.</p><h3>Why is run() in Runner a Classmethod?</h3><ul><li>You don’t need to create an instance of Runner</li><li>It directly uses the <strong>Agent instance</strong> passed to it</li><li>The method takes in the <strong>user prompt</strong> and manages the <strong>conversation loop</strong></li></ul><h3>What is the Purpose of the Runner Class?</h3><p>The <strong>Runner class</strong> is the <strong>core engine</strong> of the OpenAI Agent SDK.</p><h3>Responsibilities:</h3><ol><li>Execute agent logic</li><li>Providing Different Execution Modes</li><li>Enabling Observability and Debugging (Tracing)</li><li>Maintain conversational state</li><li>Encapsulating Run Configuration</li></ol><h3>What Are Generics in Python? (e.g., TContext)</h3><p>Generics in Python allow you to write <strong>type-safe and reusable code</strong>. They are used with type hints and help catch errors before runtime.</p><h3>Why Use TContext?</h3><ul><li>Makes agent logic <strong>context-agnostic</strong></li><li>Allows defining <strong>custom state</strong> per agent</li><li>Helps with <strong>handoffs</strong> and multi-agent coordination</li><li>Ensures <strong>type safety</strong> in IDEs and static checkers like MyPy</li></ul><p>TContext is a generic type that allows each agent to use its own type of<strong> </strong>context while keeping the code safe<strong>, </strong>flexible<strong>, </strong>and clear.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be783bb471a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Generative AI Explained in Simple Terms]]></title>
            <link>https://medium.com/@minalsaleem/generative-ai-explained-in-simple-terms-a5709ca27d58?source=rss-8fe53f5572c1------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5709ca27d58</guid>
            <category><![CDATA[generative-ai]]></category>
            <dc:creator><![CDATA[Minal Saleem]]></dc:creator>
            <pubDate>Sat, 17 May 2025 08:18:04 GMT</pubDate>
            <atom:updated>2025-05-17T08:18:04.258Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is Generative AI?</h3><p>Generative AI is a type of artificial intelligence that can create new content — like text, images, music, or even videos — based on the data it has been trained on. Think of it as a super-smart assistant that can write essays, generate artwork, compose songs, or even help design new products.</p><p>Popular examples include:</p><ul><li>ChatGPT (for text)</li><li>DALL·E &amp; Midjourney (for images)</li><li>Sora (for videos)</li></ul><h3>How Does Generative AI Work?</h3><p>Generative AI learns from massive amounts of data — books, images, code, and more — using neural networks (a system inspired by the human brain). It identifies patterns and then uses them to generate new, original content.</p><p>There are two main parts:</p><ol><li>Encoder — Understands the input (like a text prompt).</li><li>Decoder — Creates the output (like an image or a response).</li></ol><h3>Types of Generative AI Models</h3><ul><li>LLMs (Large Language Models) — Like ChatGPT, they generate human-like text.</li><li>Diffusion Models — Used for creating realistic images (e.g., Stable Diffusion).</li><li>GANs (Generative Adversarial Networks) — Two AI models compete to create better fake images.</li></ul><h3>Where is Generative AI Used?</h3><p>Generative AI is transforming many industries:</p><ul><li>Marketing — Writing ads, creating logos, and personalizing campaigns.</li><li>Healthcare — Helping in drug discovery and medical research.</li><li>Entertainment — Making music, scripts, and video game assets.</li><li>Business — Automating reports, coding, and customer service.</li></ul><h3>Benefits of Generative AI</h3><p>Saves Time — Automates repetitive tasks like writing or designing.<br>Boosts Creativity — Helps brainstorm ideas and generate content.<br>Improves Efficiency — Can analyze data faster than humans.</p><h3>Challenges &amp; Risks</h3><p>Accuracy Issues — Sometimes generates incorrect or misleading info (called “hallucinations”).<br>Bias &amp; Ethics — Can reflect biases in training data.<br>Copyright Concerns — Who owns AI-generated content?</p><h3>The Future of Generative AI</h3><p>Generative AI is still evolving. While it’s powerful, it’s not perfect. Businesses and individuals should use it wisely — combining AI creativity with human oversight.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5709ca27d58" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>