<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Huggingface on Programmer.ie: Modern AI programming</title>
		<link>http://programmer.ie/tags/huggingface/</link>
		<description>Recent content in Huggingface on Programmer.ie: Modern AI programming</description>
		<generator>Hugo</generator>
		<language>en-US</language>
		
		
		
		
			<lastBuildDate>Sat, 21 Nov 2026 00:00:00 +0000</lastBuildDate>
		
			<atom:link href="http://programmer.ie/tags/huggingface/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Smolagents: A Long List of Example Usage</title>
				<link>http://programmer.ie/post/smolagents/</link>
				<pubDate>Tue, 11 Feb 2025 08:04:09 +0000</pubDate>
				<guid>http://programmer.ie/post/smolagents/</guid>
				<description>&lt;h2 id=&#34;summary&#34;&gt;Summary&lt;/h2&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://huggingface.co/docs/smolagents/en/index&#34;&gt;smolagents&lt;/a&gt; is Hugging Face&amp;rsquo;s open-source library for building agents in a few lines of Python. It&amp;rsquo;s the agent framework I use on this blog.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;What is an agent?&lt;/strong&gt; A program where an LLM decides what happens next. You give it a task and a set of tools. It works in a loop: think, call a tool, look at the result, and repeat until it has an answer.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;When should you use an agent?&lt;/strong&gt; When the path to the answer &lt;strong&gt;isn&amp;rsquo;t known in advance&lt;/strong&gt;. For example: &amp;ldquo;research this topic&amp;rdquo;, &amp;ldquo;fix this failing test&amp;rdquo;, &amp;ldquo;answer a question that may need three searches or may need none&amp;rdquo;. If you can write the steps down as a fixed pipeline, write the pipeline. It will be cheaper, faster and easier to debug than an agent.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
