{"id":948,"date":"2025-01-22T10:50:52","date_gmt":"2025-01-22T09:50:52","guid":{"rendered":"https:\/\/metrics.blogg.gu.se\/?p=948"},"modified":"2025-01-14T12:13:24","modified_gmt":"2025-01-14T11:13:24","slug":"agents-agents-better-agents","status":"publish","type":"post","link":"https:\/\/metrics.blogg.gu.se\/?p=948","title":{"rendered":"Agents, agents, better agents&#8230;"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/metrics.blogg.gu.se\/files\/2025\/01\/ai-generated-8860464_1920.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/metrics.blogg.gu.se\/files\/2025\/01\/ai-generated-8860464_1920-1024x1024.jpg\" alt=\"\" class=\"wp-image-949\" srcset=\"https:\/\/metrics.blogg.gu.se\/files\/2025\/01\/ai-generated-8860464_1920-1024x1024.jpg 1024w, https:\/\/metrics.blogg.gu.se\/files\/2025\/01\/ai-generated-8860464_1920-300x300.jpg 300w, https:\/\/metrics.blogg.gu.se\/files\/2025\/01\/ai-generated-8860464_1920-150x150.jpg 150w, https:\/\/metrics.blogg.gu.se\/files\/2025\/01\/ai-generated-8860464_1920-768x768.jpg 768w, https:\/\/metrics.blogg.gu.se\/files\/2025\/01\/ai-generated-8860464_1920-1536x1536.jpg 1536w, https:\/\/metrics.blogg.gu.se\/files\/2025\/01\/ai-generated-8860464_1920-1200x1200.jpg 1200w, https:\/\/metrics.blogg.gu.se\/files\/2025\/01\/ai-generated-8860464_1920-1320x1320.jpg 1320w, https:\/\/metrics.blogg.gu.se\/files\/2025\/01\/ai-generated-8860464_1920.jpg 1920w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><\/figure>\n\n\n\n<p>Image by <a href=\"https:\/\/pixabay.com\/users\/aberrantrealities-38952538\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=8860464\">Aberrant Realities<\/a> from <a href=\"https:\/\/pixabay.com\/\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=8860464\">Pixabay<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/huggingface.co\/blog\/smolagents\">Introducing smolagents: simple agents that write actions in code.<\/a><\/p>\n\n\n\n<p class=\"has-drop-cap\">In the work with generative AI, there is a constant temptation to let the AI take over and do most of the jobs. There are even ways to do that in software engineering, for example by linking the code generation with testing. <\/p>\n\n\n\n<p>In this HuggingFace blog, the authors provide a description of an autonomous agent framework that can automate a lot of tasks. They provide a very nice description of the levels at which these agents operate, here is the table, quoted directly from the blog: <\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Agency Level<\/th><th>Description<\/th><th>How that&#8217;s called<\/th><th>Example Pattern<\/th><\/tr><\/thead><tbody><tr><td>\u2606\u2606\u2606<\/td><td>LLM output has no impact on program flow<\/td><td>Simple processor<\/td><td><code>process_llm_output(llm_response)<\/code><\/td><\/tr><tr><td>\u2605\u2606\u2606<\/td><td>LLM output determines basic control flow<\/td><td>Router<\/td><td><code>if llm_decision(): path_a() else: path_b()<\/code><\/td><\/tr><tr><td>\u2605\u2605\u2606<\/td><td>LLM output determines function execution<\/td><td>Tool call<\/td><td><code>run_function(llm_chosen_tool, llm_chosen_args)<\/code><\/td><\/tr><tr><td>\u2605\u2605\u2605<\/td><td>LLM output controls iteration and program continuation<\/td><td>Multi-step Agent<\/td><td><code>while llm_should_continue(): execute_next_step()<\/code><\/td><\/tr><tr><td>\u2605\u2605\u2605<\/td><td>One agentic workflow can start another agentic workflow<\/td><td>Multi-Agent<\/td><td><code>if llm_trigger(): execute_agent()<\/code><\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">Source: HuggingFace<\/figcaption><\/figure>\n\n\n\n<p>I like the model and I&#8217;ve definitely done level one and two, maybe parts of level three. With this framework, you can do level three very easily, so I recommend to take a look at that.<\/p>\n\n\n\n<p>Maybe, this will be the topic of the next Hackathon we do at Software Center, who knows&#8230; there is one coming up on March 20th.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Image by Aberrant Realities from Pixabay Introducing smolagents: simple agents that write actions in code. In the work with generative AI, there is a constant temptation to let the AI take over and do most of the jobs. There are even ways to do that in software engineering, for example by linking the code generation &hellip; <a href=\"https:\/\/metrics.blogg.gu.se\/?p=948\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Agents, agents, better agents&#8230;&#8221;<\/span><\/a><\/p>\n","protected":false},"author":68,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/metrics.blogg.gu.se\/index.php?rest_route=\/wp\/v2\/posts\/948"}],"collection":[{"href":"https:\/\/metrics.blogg.gu.se\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/metrics.blogg.gu.se\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/metrics.blogg.gu.se\/index.php?rest_route=\/wp\/v2\/users\/68"}],"replies":[{"embeddable":true,"href":"https:\/\/metrics.blogg.gu.se\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=948"}],"version-history":[{"count":1,"href":"https:\/\/metrics.blogg.gu.se\/index.php?rest_route=\/wp\/v2\/posts\/948\/revisions"}],"predecessor-version":[{"id":950,"href":"https:\/\/metrics.blogg.gu.se\/index.php?rest_route=\/wp\/v2\/posts\/948\/revisions\/950"}],"wp:attachment":[{"href":"https:\/\/metrics.blogg.gu.se\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=948"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/metrics.blogg.gu.se\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=948"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/metrics.blogg.gu.se\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=948"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}