{"id":333697,"date":"2025-12-07T21:40:38","date_gmt":"2025-12-07T21:40:38","guid":{"rendered":"https:\/\/peraltafinancing.com\/analytics\/create-an-agent-that-learns-from-interactions-using-autogen\/"},"modified":"2025-12-07T21:40:38","modified_gmt":"2025-12-07T21:40:38","slug":"create-an-agent-that-learns-from-interactions-using-autogen","status":"publish","type":"post","link":"https:\/\/fivemor.com\/?p=333697","title":{"rendered":"Create an Agent that Learns from Interactions using AutoGen"},"content":{"rendered":"<p> <br \/>\n<\/p>\n<div id=\"article-start\">\n<p>Imagine a chatbot makes a joke, and the user gives it a negative feedback. The same agent is far funnier on the said topic a week later. This is what we mean by agent\u2019s live adaptation. Most chat agents as of now are static programs in nature. They don\u2019t really learn from user feedback during runtime. But, we can implement the critical ability of running time learning using an advanced system. This tutorial provides a description of how to perform continuous learning using the AutoGen teachability capability. We will also give a runtime demo and good ways to achieve successful agent adaptation.\u00a0<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-what-is-autogen\">What is AutoGen?<\/h2>\n<p>AutoGen is a powerful framework to create complex AI workflows. It is excellent in its ability to orchestrate conversations between several autonomous agents. This multi-agent framework gives each of their agent\u2019s different roles. Agents collaborate towards complex and multi-step task solutions.\u00a0<\/p>\n<p>The system uses composable conversation patterns, and the user determines the agents and their communication protocol. This design does not have the same limitations associated with single prompt AI. AutoGen supports various types of agents like AssistantAgent and UserProxyAgent. In this setting, teachable <a href=\"https:\/\/www.analyticsvidhya.com\/blog\/2024\/10\/what-are-ai-agents\/\" target=\"_blank\" rel=\"noreferrer noopener\">AI agents<\/a> can be invented in an ideal environment. The framework is extensible, making it a good fit to provide new capabilities, including learning. <\/p>\n<p><em>Read more: <a href=\"https:\/\/www.analyticsvidhya.com\/blog\/2023\/11\/launching-into-autogen-exploring-the-basics-of-a-multi-agent-framework\/\" target=\"_blank\" rel=\"noreferrer noopener\">Build Multi-Agent Frameworks using AutoGen<\/a><\/em><\/p>\n<h2 class=\"wp-block-heading\" id=\"h-what-learn-from-interactions-means\">What \u201cLearn from Interactions\u201d Means?<\/h2>\n<p>An agent learns from interactions in terms of changing its future behavior. This change is the outcome of experiences that occurred during a live conversation. In offline fine-tuning, the model trains on a massive, fixed dataset and needs a long time to finish. Here, you focus on making local, immediate, high-impact corrections.<\/p>\n<p>Teachable AI agents need to alter their responses right once. They can learn to fix a fact or change a persona and then quickly change their tone, preference, or strategy for a task. This depends on the ability of the agent to store context. The ability to learn from the feedback generated by the users is closely bound with the utility of the system. <\/p>\n<h2 class=\"wp-block-heading\" id=\"h-key-concept-teachability-capability\">Key Concept: Teachability Capability<\/h2>\n<p>Within this multi-agent framework, the teachability capability can be used to provide the foundation of an adaptable agent. This is a utility that can be used to store and retrieve knowledge gained in a conversation. AutoGen teachability capability does the heavy lifting to create the mechanism for persistent learning.\u00a0<\/p>\n<p>This ability works by vectorizing conversation snippets and user corrections and storing this in a local vector database. As such, this database represents a persistent agent of memory. Then for any new question coming, the agent simply checks its memory, retrieves relevant past lessons\/corrections and injects them into its current prompt and lets the model instantly adapt its response. This is an on-demand adaptation with no API call or updating model weights. Through this process, authentically adaptive and responsive agents are produced.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-architecture-and-components\">Architecture and Components<\/h2>\n<p>The architecture for our learnable agent is still very simple and consists of regular components found in the AutoGen toolkit; two main agents and a single core capability.\u00a0<\/p>\n<p>The <code>UserProxyAgent<\/code> and the <code>AssistantAgent<\/code> are the discussion participants. The AssistantAgent comes with a particular person- the comedian, for example. AutoGen teachability capability is an attachment that is directly attached to the AssistantAgent. It includes the logic to store and retrieve lessons. With this configuration, the agent has a practical persistent agent memory store.\u00a0<\/p>\n<p>The key components include:\u00a0\u00a0\u00a0<\/p>\n<ul class=\"wp-block-list\">\n<li><strong>AssistantAgent:<\/strong> The primary working agent that has a persona. The query is processed, and the response is generated.\u00a0\u00a0<\/li>\n<li><strong>UserProxyAgent:<\/strong> This is the Conversational Interface. It offers user input and code execution mechanisms.\u00a0\u00a0<\/li>\n<li><strong>Teachability Capability:<\/strong> This module oversees the learning cycle. It adds conversation segments to the persistent agent\u2019s memory after each conversation.\u00a0\u00a0\u00a0<\/li>\n<\/ul>\n<p>This simple yet powerful set up gives the foundation to advanced teachable AI agents.\u00a0<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-step-by-step-implementation-walkthrough\">Step-by-step Implementation Walkthrough<\/h2>\n<p>We use the code provided in the <a href=\"https:\/\/www.analyticsvidhya.com\/blog\/2021\/05\/introduction-to-python-programming-beginners-guide\/\" target=\"_blank\" rel=\"noreferrer noopener\">Python<\/a> notebooks to implement our learnable comedian. This hands-on process clearly demonstrates the configuration. We first install required dependencies of AutoGen and teachable components of AutoGen.\u00a0<\/p>\n<pre class=\"wp-block-code\"><code>!pip install autogen ag2[teachable]\u00a0<\/code><\/pre>\n<p>Next, we define the configuration followed by the agents.\u00a0<\/p>\n<p><strong>Define Configuration and Agent Setup<\/strong>\u00a0<\/p>\n<p>First, we define the large language model configuration list. It contains the model and API key of the agent. The <code>AssistantAgent<\/code> is our comedian, who has a certain persona defined.\u00a0<\/p>\n<pre class=\"wp-block-code\"><code># Define the configuration list with environment variables\u00a0\n\nconfig_list = [\u00a0\n\n\u00a0\u00a0\u00a0{\u00a0\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"model\": \"gpt-4o-mini\",\u00a0\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"api_key\": userdata.get('OPENAI_KEY')\u00a0\n\n\u00a0\u00a0\u00a0}\u00a0\n\n]\u00a0\n\n# Create an instance of AssistantAgent for a comedian\u00a0\n\ncomedian = AssistantAgent(\u00a0\n\n\u00a0\u00a0\u00a0name=\"comedian\",\u00a0\n\n\u00a0\u00a0\u00a0system_message=\"You are a professional comedian. You can tell jokes and entertain people.\",\u00a0\n\n\u00a0\u00a0\u00a0llm_config={\"config_list\": config_list}\u00a0\n\n)<\/code><\/pre>\n<p><strong>Attach the Teachability Capability<\/strong>\u00a0<\/p>\n<p>This step introduces the AutoGen teachability capability. We instantiate <code>Teachability<\/code> and attach it to the comedian agent. The <code>path_to_db_dir<\/code> sets up the local storage for the persistent agent memory. We set <em>reset_db=False<\/em> so that the agent retains knowledge across runs.\u00a0<\/p>\n<pre class=\"wp-block-code\"><code>from autogen.agentchat.contrib.capabilities.teachability import Teachability\u00a0\n\n# Create an instance of Teachability\u00a0\n\nteachability = Teachability(\u00a0\n\n\u00a0\u00a0\u00a0reset_db=False,\u00a0\n\n\u00a0\u00a0\u00a0path_to_db_dir=\".\/comedian_assistant_experience\",\u00a0\n\n\u00a0\u00a0\u00a0llm_config={\"config_list\": config_list}\u00a0\n\n)\u00a0\n\n# Add the Teachability capability to the comedian agent\u00a0\n\nteachability.add_to_agent(comedian)<\/code><\/pre>\n<p><strong>Initiate the Chat Loop<\/strong>\u00a0<\/p>\n<p>We create the <code>UserProxyAgent<\/code>, which will handle the interface. Now, we begin a chat to test the teachable AI agents, PK. The chat loop records the input, output, and all user feedback. This process allows the agent to immediately learn from user feedback\u00a0\u00a0<\/p>\n<pre class=\"wp-block-code\"><code># Create an instance of UserProxyAgent\u00a0\n\nuser_proxy = UserProxyAgent(\u00a0\n\n\u00a0\u00a0\u00a0name=\"user_proxy\",\u00a0\n\n\u00a0\u00a0\u00a0code_execution_config={\"work_dir\": \"coding\", \"use_docker\": False}\u00a0\n\n)\u00a0\n\n# Initiate a chat between the user_proxy and the comedian agent\u00a0\n\nuser_proxy.initiate_chat(\u00a0\n\n\u00a0\u00a0\u00a0comedian,\u00a0\n\n\u00a0\u00a0\u00a0message=\"Tell me a joke about cats and ninjas.\"\u00a0\n\n)<\/code><\/pre>\n<p>The notebook\u2019s output clearly demonstrates the learning process. The agent starts with a conventional attempt.\u00a0<\/p>\n<ul class=\"wp-block-list\">\n<li><strong>Initial Joke:<\/strong> <em>\u201cWhy did the cat become a ninja? Because it wanted to master the art of purring silently!\u201d<\/em>\u00a0<\/li>\n<li><strong>User Feedback (First Correction):<\/strong> bad joke\u00a0<\/li>\n<\/ul>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1600\" height=\"403\" src=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/11\/image4-7.webp\" alt=\"Initial feedback loop\" class=\"wp-image-246319\" srcset=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/11\/image4-7.webp 1600w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/11\/image4-7-300x76.webp 300w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/11\/image4-7-768x193.webp 768w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/11\/image4-7-1536x387.webp 1536w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/11\/image4-7-150x38.webp 150w\" sizes=\"(max-width: 1600px) 100vw, 1600px\"\/><\/figure>\n<\/div>\n<ul class=\"wp-block-list\">\n<li><strong>Agent\u2019s Second Attempt:<\/strong> <em>\u201cWhy don\u2019t cats ever make good ninjas? Because they always leave a paw-sitive trail behind! How\u2019s that?\u201d<\/em>\u00a0<\/li>\n<li><strong>User Feedback (Second Correction):<\/strong> What is this? A child would laugh on this Joke.<\/li>\n<\/ul>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1600\" height=\"296\" src=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/11\/image5-7.webp\" alt=\"Secondary feedback loop\" class=\"wp-image-246320\" srcset=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/11\/image5-7.webp 1600w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/11\/image5-7-300x56.webp 300w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/11\/image5-7-768x142.webp 768w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/11\/image5-7-1536x284.webp 1536w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/11\/image5-7-150x28.webp 150w\" sizes=\"auto, (max-width: 1600px) 100vw, 1600px\"\/><\/figure>\n<\/div>\n<p>The agent attempts to make a third joke that is more descriptive and relatable. It has captured every explicit piece of user input and stored the dislikes in its memory for future use. Based on that memory, it will try to avoid such jokes in later conversations. The system is dynamic and adapts to the humor profile of the user in real-time. The capability to learn immediately from feedback from users is what distinguishes this agent as a dynamic agent.<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1600\" height=\"573\" src=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/11\/image6-3.webp\" alt=\"Final response\" class=\"wp-image-246318\" srcset=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/11\/image6-3.webp 1600w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/11\/image6-3-300x107.webp 300w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/11\/image6-3-768x275.webp 768w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/11\/image6-3-1536x550.webp 1536w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/11\/image6-3-150x54.webp 150w\" sizes=\"auto, (max-width: 1600px) 100vw, 1600px\"\/><\/figure>\n<\/div>\n<h2 class=\"wp-block-heading\" id=\"h-evaluation-how-to-measure-learning\">Evaluation: How to Measure Learning<\/h2>\n<p>A successful teachable agent generates measurable improvements in performance. The utility and accuracy of adaptation must be the subjects of evaluation. We use short-term and long-term measures for assessment.\u00a0<\/p>\n<p>Short-term measures provide immediate success. They are measurements of appropriateness of response after correction. They assess whether an agent did what was stipulated in the direct feedback instruction. Long term metrics measure knowledge of retention. They measure the decrease in the repetition of mistakes in many sessions. <a href=\"https:\/\/www.analyticsvidhya.com\/blog\/2021\/03\/a-b-testing-measurement-frameworks%E2%80%8A-%E2%80%8Aevery-data-scientist-should-know\/\" target=\"_blank\" rel=\"noreferrer noopener\">A\/B testing<\/a> might be used to compare the performance of teachable <a href=\"https:\/\/www.analyticsvidhya.com\/blog\/2024\/10\/what-are-ai-agents\/\" target=\"_blank\" rel=\"noreferrer noopener\">AI agents<\/a> with non-teachable baselines. Safety monitoring is of great importance at the same time. We need to make sure that we don\u2019t have any unsafe or biased outputs from the agent that is learning from user interactions.\u00a0<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-best-practices-and-practical-tips\">Best Practices and Practical Tips<\/h2>\n<p>A design consideration for any learning loop must emphasize stability. PK teachable AI agents need to integrate carefully with existing systems.<\/p>\n<ul class=\"wp-block-list\">\n<li><strong>Validation<\/strong>: A human-in-the-loop system or confidence thresholds should always validate user-provided corrections to keep the agent from adopting bad information.<\/li>\n<li><strong>Audit logs:<\/strong> Maintain extensive logs of all the updates to memory. These enable not only rollbacks but also forensic investigations into failures in learning.\u00a0<\/li>\n<li><strong>Privacy: <\/strong>Anonymize user interactions before storing them in the persistent agent\u2019s memory. Set up clear guidelines on the erasure of data to meet privacy regulations.\u00a0<\/li>\n<li><strong>Granularity:<\/strong> When possible, restrict changes to small memory updates; avoid full model <a href=\"https:\/\/www.analyticsvidhya.com\/blog\/2023\/08\/fine-tuning-large-language-models\/\" target=\"_blank\" rel=\"noreferrer noopener\">fine-tuning<\/a>.<\/li>\n<\/ul>\n<h2 class=\"wp-block-heading\" id=\"h-common-pitfalls-and-how-to-avoid-them\">Common Pitfalls and How to Avoid Them<\/h2>\n<p>The implementation of the AutoGen teachability capability holds a number of risks. Active mitigation by the developers is required against these common pitfalls.\u00a0<\/p>\n<ul class=\"wp-block-list\">\n<li><strong><a href=\"https:\/\/www.analyticsvidhya.com\/blog\/2020\/02\/underfitting-overfitting-best-fitting-machine-learning\/\" target=\"_blank\" rel=\"noreferrer noopener\">Overfitting<\/a><\/strong>: An agent may be overfitting a particular user\u2019s unique preferences or quirks. Mitigation involves weighting the memory based on source diversity.\u00a0<\/li>\n<li><strong>Adversarial Learning: <\/strong>Toxic or wrong information may be input by malicious users. This we avoid through layers of moderation and filtering before the memory persistence.\u00a0<\/li>\n<li><strong>Objective Evaluation:<\/strong> Without objective evaluation of improvements, actual improvements will not be achieved. Always use a small, fixed test set of past mistakes to measure retention. That shows the agent really improved its performance.<\/li>\n<\/ul>\n<h2 class=\"wp-block-heading\" id=\"h-extensions-and-advanced-ideas\">Extensions and Advanced Ideas<\/h2>\n<p>The basic teachable agent is a foundation for more complex systems. The multi-agent framework supports sophisticated learning architecture.\u00a0<\/p>\n<p>One advanced concept is the hybrid approach, where fast, transient memory combines with scheduled offline model <a href=\"https:\/\/www.analyticsvidhya.com\/blog\/2023\/08\/fine-tuning-large-language-models\/\" target=\"_blank\" rel=\"noreferrer noopener\">fine-tuning<\/a>. This achieves the best of both worlds: immediate reaction and deep, long-term improvement.<\/p>\n<p>Another avenue that can be taken involves multi-agent learning. In this scenario, agents teach each other in a collaborative environment. An agent shares corrections with a whole group of workers. This idea expands the core concept beyond one single agent.<\/p>\n<p>Finally, integrate the AutoGen Teachability capability with a <a href=\"https:\/\/www.analyticsvidhya.com\/blog\/2023\/09\/retrieval-augmented-generation-rag-in-ai\/\" target=\"_blank\" rel=\"noreferrer noopener\">Retrieval-Augmented Generation<\/a>, or RAG system. An agent stores corrections alongside external source snippets. This allows a powerful combination of personal experience and external knowledge.\u00a0<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2>\n<p>Teachable AI agents accomplish a much different type of utility for an AI system. AutoGen capability for teachability gives a simple strong approach for adaptive behaviour. The agent may be able to achieve success in learning from user feedback such improvement in a persona through the underpinning of a system based on persistent agent memory within a scalable multi-agent framework. Follow this: A notebook provided to get you started: You need to clone the code, define a new persona, and see how your agent adapts. Build sophisticated and adaptive agents now.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-frequently-asked-questions\">Frequently Asked Questions<\/h2>\n<div class=\"schema-faq wp-block-yoast-faq-block\">\n<div class=\"schema-faq-section\" id=\"faq-question-1763371663517\"><strong class=\"schema-faq-question\">Q1. What is the main function of the Teachability capability?\u00a0<\/strong> <\/p>\n<p class=\"schema-faq-answer\">A. The capability stores the conversation history and user corrections in the persistent agent memory. It retrieves lessons in order to modify its future responses.\u00a0<\/p>\n<\/p><\/div>\n<div class=\"schema-faq-section\" id=\"faq-question-1763371678701\"><strong class=\"schema-faq-question\">Q2. How is this different from fine-tuning LLMs traditionally?\u00a0<\/strong> <\/p>\n<p class=\"schema-faq-answer\">A. Fine-tuning changes model weights offline on large datasets, while teachability refers to instantaneous runtime adaptation based on a single user interaction.\u00a0<\/p>\n<\/p><\/div>\n<div class=\"schema-faq-section\" id=\"faq-question-1763371686646\"><strong class=\"schema-faq-question\">Q3. Does the Teachability capability work only with the UserProxyAgent?\u00a0\u00a0<\/strong> <\/p>\n<p class=\"schema-faq-answer\">A. No, it attaches to any AssistantAgent. It works in conjunction with a UserProxyAgent that provides the conversation interface.\u00a0\u00a0<\/p>\n<\/p><\/div>\n<div class=\"schema-faq-section\" id=\"faq-question-1763371691566\"><strong class=\"schema-faq-question\">Q4. What model is required for the feature of a teachable agent?\u00a0\u00a0<\/strong> <\/p>\n<p class=\"schema-faq-answer\">A. The core functionality works with any model, but the memory persistence relies on vector embedding models. The notebook uses gpt-4o-mini.\u00a0\u00a0<\/p>\n<\/p><\/div>\n<div class=\"schema-faq-section\" id=\"faq-question-1763371698144\"><strong class=\"schema-faq-question\">Q5. How can I prevent my teachable agent from learning any bad habits?\u00a0\u00a0<\/strong> <\/p>\n<p class=\"schema-faq-answer\">A. Implement layers of moderation and\/or validation logic; this will filter out incorrect or adversarial user feedback before the memory store accepts it.\u00a0<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"border-top py-3 author-info my-4\">\n<div class=\"author-card d-flex align-items-center\">\n<div class=\"flex-shrink-0 overflow-hidden\">\n                                    <a href=\"https:\/\/www.analyticsvidhya.com\/blog\/author\/harsh9480979\/\" class=\"text-decoration-none active-avatar\"><br \/>\n                                                                       <img decoding=\"async\" src=\"https:\/\/av-eks-lekhak.s3.amazonaws.com\/media\/lekhak-profile-images\/converted_image_0fBqNLi.webp\" width=\"48\" height=\"48\" alt=\"Harsh Mishra\" loading=\"lazy\" class=\"rounded-circle\"\/><\/p>\n<p>                                <\/a>\n                                <\/div>\n<\/p><\/div>\n<p>Harsh Mishra is an AI\/ML Engineer who spends more time talking to Large Language Models than actual humans. Passionate about GenAI, NLP, and making machines smarter (so they don\u2019t replace him just yet). When not optimizing models, he\u2019s probably optimizing his coffee intake. \ud83d\ude80\u2615<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<p><h4 class=\"fs-24 text-dark\">Login to continue reading and enjoy expert-curated content.<\/h4>\n<p>                        <button class=\"btn btn-primary mx-auto d-table\" data-bs-toggle=\"modal\" data-bs-target=\"#loginModal\" id=\"readMoreBtn\">Keep Reading for Free<\/button>\n                    <\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>Imagine a chatbot makes a joke, and the user gives it a negative feedback. The same agent is far funnier on the said topic a week later. This is what we mean by agent\u2019s live adaptation. Most chat agents as of now are static programs in nature. They don\u2019t really learn from user feedback during [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":333698,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12033],"tags":[3038,72128,7957,43510,14884],"dealstore":[],"offerexpiration":[],"class_list":["post-333697","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-analytics","tag-agent","tag-autogen","tag-create","tag-interactions","tag-learns"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Create an Agent that Learns from Interactions using AutoGen - Som2ny Network<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fivemor.com\/?p=333697\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create an Agent that Learns from Interactions using AutoGen - Som2ny Network\" \/>\n<meta property=\"og:description\" content=\"Imagine a chatbot makes a joke, and the user gives it a negative feedback. The same agent is far funnier on the said topic a week later. This is what we mean by agent\u2019s live adaptation. Most chat agents as of now are static programs in nature. They don\u2019t really learn from user feedback during [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fivemor.com\/?p=333697\" \/>\n<meta property=\"og:site_name\" content=\"Som2ny Network\" \/>\n<meta property=\"article:published_time\" content=\"2025-12-07T21:40:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/12\/Create-an-Agent-that-can-Learn-from-Interactions-using-AutoGen-1.webp.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"872\" \/>\n\t<meta property=\"og:image:height\" content=\"473\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fivemor.com\/?p=333697#article\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/?p=333697\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\"},\"headline\":\"Create an Agent that Learns from Interactions using AutoGen\",\"datePublished\":\"2025-12-07T21:40:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=333697\"},\"wordCount\":1768,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=333697#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/12\/Create-an-Agent-that-can-Learn-from-Interactions-using-AutoGen-1.webp.webp\",\"keywords\":[\"Agent\",\"AutoGen\",\"create\",\"Interactions\",\"learns\"],\"articleSection\":[\"Analytics\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fivemor.com\/?p=333697#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fivemor.com\/?p=333697\",\"url\":\"https:\/\/fivemor.com\/?p=333697\",\"name\":\"Create an Agent that Learns from Interactions using AutoGen - Som2ny Network\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=333697#primaryimage\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=333697#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/12\/Create-an-Agent-that-can-Learn-from-Interactions-using-AutoGen-1.webp.webp\",\"datePublished\":\"2025-12-07T21:40:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/fivemor.com\/?p=333697#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fivemor.com\/?p=333697\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/?p=333697#primaryimage\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/12\/Create-an-Agent-that-can-Learn-from-Interactions-using-AutoGen-1.webp.webp\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/12\/Create-an-Agent-that-can-Learn-from-Interactions-using-AutoGen-1.webp.webp\",\"width\":872,\"height\":473},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fivemor.com\/?p=333697#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/fivemor.com\/?bp_activities=1\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create an Agent that Learns from Interactions using AutoGen\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fivemor.com\/#website\",\"url\":\"https:\/\/fivemor.com\/\",\"name\":\"Som2ny Network\",\"description\":\"Daily Deals\",\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fivemor.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/fivemor.com\/#organization\",\"name\":\"Som2ny Network\",\"url\":\"https:\/\/fivemor.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png\",\"width\":300,\"height\":86,\"caption\":\"Som2ny Network\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/fivemor.com\"],\"url\":\"https:\/\/fivemor.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create an Agent that Learns from Interactions using AutoGen - Som2ny Network","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/fivemor.com\/?p=333697","og_locale":"en_US","og_type":"article","og_title":"Create an Agent that Learns from Interactions using AutoGen - Som2ny Network","og_description":"Imagine a chatbot makes a joke, and the user gives it a negative feedback. The same agent is far funnier on the said topic a week later. This is what we mean by agent\u2019s live adaptation. Most chat agents as of now are static programs in nature. They don\u2019t really learn from user feedback during [&hellip;]","og_url":"https:\/\/fivemor.com\/?p=333697","og_site_name":"Som2ny Network","article_published_time":"2025-12-07T21:40:38+00:00","og_image":[{"width":872,"height":473,"url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/12\/Create-an-Agent-that-can-Learn-from-Interactions-using-AutoGen-1.webp.webp","type":"image\/webp"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fivemor.com\/?p=333697#article","isPartOf":{"@id":"https:\/\/fivemor.com\/?p=333697"},"author":{"name":"admin","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371"},"headline":"Create an Agent that Learns from Interactions using AutoGen","datePublished":"2025-12-07T21:40:38+00:00","mainEntityOfPage":{"@id":"https:\/\/fivemor.com\/?p=333697"},"wordCount":1768,"commentCount":1,"publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"image":{"@id":"https:\/\/fivemor.com\/?p=333697#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/12\/Create-an-Agent-that-can-Learn-from-Interactions-using-AutoGen-1.webp.webp","keywords":["Agent","AutoGen","create","Interactions","learns"],"articleSection":["Analytics"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fivemor.com\/?p=333697#respond"]}]},{"@type":"WebPage","@id":"https:\/\/fivemor.com\/?p=333697","url":"https:\/\/fivemor.com\/?p=333697","name":"Create an Agent that Learns from Interactions using AutoGen - Som2ny Network","isPartOf":{"@id":"https:\/\/fivemor.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/fivemor.com\/?p=333697#primaryimage"},"image":{"@id":"https:\/\/fivemor.com\/?p=333697#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/12\/Create-an-Agent-that-can-Learn-from-Interactions-using-AutoGen-1.webp.webp","datePublished":"2025-12-07T21:40:38+00:00","breadcrumb":{"@id":"https:\/\/fivemor.com\/?p=333697#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fivemor.com\/?p=333697"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/?p=333697#primaryimage","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/12\/Create-an-Agent-that-can-Learn-from-Interactions-using-AutoGen-1.webp.webp","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/12\/Create-an-Agent-that-can-Learn-from-Interactions-using-AutoGen-1.webp.webp","width":872,"height":473},{"@type":"BreadcrumbList","@id":"https:\/\/fivemor.com\/?p=333697#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/fivemor.com\/?bp_activities=1"},{"@type":"ListItem","position":2,"name":"Create an Agent that Learns from Interactions using AutoGen"}]},{"@type":"WebSite","@id":"https:\/\/fivemor.com\/#website","url":"https:\/\/fivemor.com\/","name":"Som2ny Network","description":"Daily Deals","publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fivemor.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/fivemor.com\/#organization","name":"Som2ny Network","url":"https:\/\/fivemor.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/#\/schema\/logo\/image\/","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png","width":300,"height":86,"caption":"Som2ny Network"},"image":{"@id":"https:\/\/fivemor.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png","caption":"admin"},"sameAs":["https:\/\/fivemor.com"],"url":"https:\/\/fivemor.com\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/333697","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=333697"}],"version-history":[{"count":0,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/333697\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/media\/333698"}],"wp:attachment":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=333697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=333697"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=333697"},{"taxonomy":"dealstore","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdealstore&post=333697"},{"taxonomy":"offerexpiration","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fofferexpiration&post=333697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}