<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>AutoGen &#8211; iAIFeed</title>
	<atom:link href="https://www.iaifeed.com/tag/autogen/feed" rel="self" type="application/rss+xml" />
	<link>https://www.iaifeed.com</link>
	<description>iAIFeed</description>
	<lastBuildDate>Sat, 14 Nov 2026 01:23:58 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.5</generator>

<image>
	<url>https://www.iaifeed.com/wp-content/uploads/2026/07/cropped-iaifeed1-80x80.png</url>
	<title>AutoGen &#8211; iAIFeed</title>
	<link>https://www.iaifeed.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Build a Two-Agent Team With Microsoft AutoGen</title>
		<link>https://www.iaifeed.com/how-to-build-a-two-agent-team-with-microsoft-autogen</link>
					<comments>https://www.iaifeed.com/how-to-build-a-two-agent-team-with-microsoft-autogen#respond</comments>
		
		<dc:creator><![CDATA[iamltlb]]></dc:creator>
		<pubDate>Fri, 13 Nov 2026 12:48:41 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[AutoGen]]></category>
		<guid isPermaLink="false">https://www.iaifeed.com/how-to-build-a-two-agent-team-with-microsoft-autogen</guid>

					<description><![CDATA[Define an assistant and a reviewer, wire them into a round-robin group chat, and cap the turns. A minimal working AutoGen 0.4 setup that does not loop forever.]]></description>
										<content:encoded><![CDATA[<p>A minimal two-agent AutoGen team is about 25 lines: define a model client, create an assistant and a reviewer agent, put both in a RoundRobinGroupChat, and run it with a max_turns limit. Without a turn cap and a termination condition, the two agents will politely thank each other until you hit the token budget.</p>
<p><a href="https://www.iaifeed.com/ai-tool/autogen">AutoGen</a> is Microsoft Research&#8217;s framework for multi-agent conversation. Version 0.4 was a substantial rewrite: the old <code>ConversableAgent</code> API from most tutorials still works but is now the legacy path, and the new <code>autogen-agentchat</code> package is what new code should use.</p>
<h2 id="what-problem-does-autogen-actually-solve">What problem does AutoGen actually solve?</h2>
<p>It gives you a way to run several LLM agents in a controlled conversation, where each agent has its own role and tools, and a manager decides who speaks next.</p>
<p>The practical value is review. One agent drafts, another critiques, the loop runs until a quality bar or a turn limit is hit. This produces better output than one prompt asking a model to check its own work, because the critic agent has a different system prompt and no investment in the draft.</p>
<p>Where it does not help: simple single-shot tasks. Two agents talking costs roughly twice the tokens and twice the latency for a task one good prompt completes.</p>
<h2 id="how-do-you-install-the-current-version">How do you install the current version?</h2>
<p>Install the new packages, not the old autogen package. The split matters — old tutorials will have you pip installing something that resolves to the legacy codebase.</p>
<ol>
<li><code>pip install autogen-agentchat autogen-ext[openai]</code></li>
<li>Set <code>OPENAI_API_KEY</code> in your environment</li>
<li>Import from <code>autogen_agentchat.agents</code> and <code>autogen_agentchat.teams</code></li>
</ol>
<p>If you are on Azure OpenAI, use the Azure client from <code>autogen_ext.models.azure</code> instead of the plain OpenAI one. The model client interface is the same after that point.</p>
<h2 id="how-do-you-define-the-two-agents">How do you define the two agents?</h2>
<p>The system prompt is the entire design. Two agents with vague prompts behave like one agent with a vague prompt, only slower and more expensive.</p>
<p>A pair that works for writing tasks:</p>
<ul>
<li><strong>Writer</strong> — &#8220;You draft marketing copy. Output only the draft, no preamble, no explanation of your choices.&#8221;</li>
<li><strong>Reviewer</strong> — &#8220;You critique drafts against a rubric: clarity, specificity, and whether every claim has a number or a named source. Reply with at most three issues and a verdict of APPROVE or REVISE.&#8221;</li>
</ul>
<p>The &#8220;at most three issues&#8221; constraint is doing real work. Unbounded critique produces an endless list of nitpicks, and the writer agent spends its turns addressing style rather than substance.</p>
<p>The APPROVE / REVISE verdict is what makes termination possible.</p>
<h2 id="how-do-you-stop-the-conversation">How do you stop the conversation?</h2>
<p>Two mechanisms, and you want both.</p>
<p>A <code>MaxMessageTermination</code> caps the total messages — set it to 6 for a two-agent review loop. That is a safety net.</p>
<p>A text-based termination watches for the verdict string, <code>TextMentionTermination("APPROVE")</code>. That is the normal exit.</p>
<p>Combine them with an <code>|</code> operator so either one ends the run. Without the text condition the loop always burns all six turns; without the count condition a reviewer that never approves runs until you kill the process.</p>
<p>A third option, <code>HandoffTermination</code>, is useful when a human needs to step in. It pauses the run and returns state you can resume later, which is the pattern for approval workflows.</p>
<h2 id="what-does-the-run-cost">What does the run cost?</h2>
<p>Roughly the sum of every message in the conversation, not just the final answer. A six-turn review loop with a 2,000-token draft and a 500-token critique per turn lands around 15,000-25,000 input tokens because each turn resends history.</p>
<p>At GPT-4o-mini pricing that is fractions of a cent. At a frontier model it is a few cents per run. Multiply by a batch of 500 documents and the difference between a sensible model choice and a careless one is real money.</p>
<p>Use a cheap model for the reviewer and a stronger one for the writer. The reviewer&#8217;s job is structured critique; it does not need the best reasoning.</p>
<h2 id="where-does-a-two-agent-setup-break-down">Where does a two-agent setup break down?</h2>
<p>Agreement loops. Two agents with similar prompts converge on the same wrong answer and both approve it. The critic needs a distinctly different instruction, ideally a rubric the writer cannot see.</p>
<p>Tool access is the other trap. Give the writer a file-write tool without a sandbox and it will happily overwrite things. Run AutoGen in a container when tools touch the filesystem.</p>
<p>And observability. Two agents produce interleaved messages that are hard to read after the fact. Log every message with the speaker name to a file; debugging a bad run from console output alone is miserable.</p>
<h2 id="who-should-use-autogen">Who should use AutoGen?</h2>
<p>Engineering teams building agent pipelines with code-level control: document processing at volume, code review bots, research workflows with tool use. People comfortable reading framework source when the docs thin out.</p>
<p>Not for non-developers. If you want agents without Python, a no-code platform is the right choice and will get you further in a week. Skip AutoGen entirely if your task is one prompt deep — a single call with a good system prompt beats a two-agent loop on cost, latency and debuggability.</p>
<h2 id="quick-summary">Quick Summary</h2>
<ul>
<li>Install <code>autogen-agentchat</code> plus <code>autogen-ext</code>; the 0.4+ API replaces the old ConversableAgent pattern.</li>
<li>Two agents work: a writer with a terse prompt, a reviewer with a rubric and a verdict.</li>
<li>Always combine a max-turn cap with a text termination.</li>
<li>Cost scales with total conversation length, roughly 15,000-25,000 tokens per six-turn review.</li>
<li>Use a cheap model for the critic, a stronger one for the writer.</li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://www.iaifeed.com/how-to-build-a-two-agent-team-with-microsoft-autogen/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Build Multi-Agent Applications with AutoGen</title>
		<link>https://www.iaifeed.com/how-to-build-multi-agent-applications-with-autogen</link>
					<comments>https://www.iaifeed.com/how-to-build-multi-agent-applications-with-autogen#respond</comments>
		
		<dc:creator><![CDATA[iamltlb]]></dc:creator>
		<pubDate>Mon, 14 Sep 2026 12:42:06 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[AutoGen]]></category>
		<guid isPermaLink="false">https://www.iaifeed.com/how-to-build-multi-agent-applications-with-autogen</guid>

					<description><![CDATA[Learn how to install AutoGen, define specialized agents, register tools, orchestrate group chats, add human-in-the-loop controls, and deploy reliable multi-agent workflows.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><a href="https://www.iaifeed.com/ai-tool/autogen">AutoGen</a> is an open source framework from Microsoft for building multi-agent AI applications where several agents converse with each other to solve tasks. Instead of writing one giant prompt, you define specialized agents such as a planner, a coder, and a critic, and let them collaborate. This tutorial shows you how to go from an empty folder to a working multi-agent workflow with <a href="https://www.iaifeed.com/ai-tool/autogen">AutoGen</a>, including tool use and human input.</p>



<h2 class="wp-block-heading">What You Need Before You Start</h2>



<p class="wp-block-paragraph">You need Python 3.9 or newer, an API key for a model provider, and a basic understanding of Python functions. A terminal and a code editor are enough; no special hardware is required because the heavy model work happens through the API. It also helps to describe the task you want to automate as a sequence of roles, since that maps directly onto how <a href="https://www.iaifeed.com/ai-tool/autogen">AutoGen</a> structures conversations.</p>



<h2 class="wp-block-heading">Step 1: Install AutoGen and Set Your Keys</h2>



<p class="wp-block-paragraph">Create a virtual environment, then install the <a href="https://www.iaifeed.com/ai-tool/autogen">AutoGen</a> package with pip. Store your model API key in an environment variable rather than hard coding it. Keeping credentials out of source code is a basic security practice and keeps your project portable across machines.</p>



<h2 class="wp-block-heading">Step 2: Define Your First Agents</h2>



<p class="wp-block-paragraph">Start with a single assistant agent plus a user proxy agent. The assistant agent holds the system message that describes its persona and capabilities. The user proxy agent represents you: it can execute code, provide input, or terminate the loop. Configuring the system message carefully is the single biggest lever on output quality in <a href="https://www.iaifeed.com/ai-tool/autogen">AutoGen</a>, so be explicit about the role, the constraints, and the expected output format.</p>



<h2 class="wp-block-heading">Step 3: Register Tools and Functions</h2>



<p class="wp-block-paragraph">Give your agents real capabilities by registering Python functions as tools. For example, expose a function that queries your database, a function that fetches a URL, or a function that writes a file. <a href="https://www.iaifeed.com/ai-tool/autogen">AutoGen</a> will let the agent decide when to call the function based on the conversation. Document each function with clear type hints and docstrings, because the agent uses that description to decide when the tool is relevant.</p>



<h2 class="wp-block-heading">Step 4: Orchestrate a Multi-Agent Conversation</h2>



<p class="wp-block-paragraph">Now add a third agent whose job is to review the work of the others. A common pattern is a group chat with a manager that decides which agent speaks next. You might have a planner break the task into steps, a coder implement them, and a critic verify the result. Define when the conversation should stop, either by a termination message or a maximum turn count, so that agents do not loop forever.</p>



<h2 class="wp-block-heading">Step 5: Add Human-in-the-Loop Controls</h2>



<p class="wp-block-paragraph">Production systems should not run unattended without guardrails. Configure the user proxy agent to request approval before executing code or calling sensitive tools. This lets a human review the agent plan at critical moments while still automating the repetitive parts. For <a href="https://www.iaifeed.com/ai-tool/autogen">AutoGen</a>, you can switch between fully autonomous and approval required modes depending on how much risk the task carries.</p>



<h2 class="wp-block-heading">Step 6: Test, Log, and Deploy</h2>



<p class="wp-block-paragraph">Run your workflow on a handful of representative tasks and log every message so you can inspect the agent reasoning. Look for wasted turns, repeated tool calls, and unclear handoffs. Once the workflow is stable, wrap it behind a simple API or CLI and add retries around model calls. Because <a href="https://www.iaifeed.com/ai-tool/autogen">AutoGen</a> agents are just Python objects, you can unit test individual agents before testing the whole team.</p>



<h2 class="wp-block-heading">Conclusion</h2>



<p class="wp-block-paragraph"><a href="https://www.iaifeed.com/ai-tool/autogen">AutoGen</a> turns multi-step reasoning tasks into maintainable software by giving each responsibility to a dedicated agent. Install the framework, define clear roles, register tools, orchestrate a group chat, keep humans in the loop for risky steps, and monitor the conversation. With these habits, you can build reliable agent teams that automate work far beyond a single prompt.</p>



<p class="wp-block-paragraph"><em>Explore the tool page for more details: <a href="https://www.iaifeed.com/ai-tool/autogen">AutoGen</a></em></p>


]]></content:encoded>
					
					<wfw:commentRss>https://www.iaifeed.com/how-to-build-multi-agent-applications-with-autogen/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
