{"id":583,"date":"2025-01-11T15:10:53","date_gmt":"2025-01-11T15:10:53","guid":{"rendered":"https:\/\/smolagents.org\/?post_type=docs&#038;p=583"},"modified":"2025-01-11T15:39:08","modified_gmt":"2025-01-11T15:39:08","password":"","slug":"smolagent-docs","status":"publish","type":"docs","link":"https:\/\/smolagents.org\/hi\/docs\/smolagent-docs\/","title":{"rendered":"Smolagents"},"content":{"rendered":"<p>This library is the simplest framework out there to build powerful agents! By the way, wtf are \u201cagents\u201d? We provide our definition\u00a0<a href=\"https:\/\/huggingface.co\/docs\/smolagents\/conceptual_guides\/intro_agents\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">in this page<\/a>, where you\u2019ll also find tips for when to use them or not (spoilers: you\u2019ll often be better off without agents).<\/p>\n\n\n\n<p>This library offers:<\/p>\n\n\n\n<p>\u2728&nbsp;<strong>Simplicity<\/strong>: the logic for agents fits in ~thousand lines of code. We kept abstractions to their minimal shape above raw code!<\/p>\n\n\n\n<p>\ud83c\udf10&nbsp;<strong>Support for any LLM<\/strong>: it supports models hosted on the Hub loaded in their&nbsp;<code>transformers<\/code>&nbsp;version or through our inference API, but also models from OpenAI, Anthropic\u2026 it\u2019s really easy to power an agent with any LLM.<\/p>\n\n\n\n<p>\ud83e\uddd1\u200d\ud83d\udcbb\u00a0<strong>First-class support for Code Agents<\/strong>, i.e. agents that write their actions in code (as opposed to \u201cagents being used to write code\u201d),\u00a0<a href=\"https:\/\/huggingface.co\/docs\/smolagents\/tutorials\/secure_code_execution\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">read more here<\/a>.<\/p>\n\n\n\n<p>\ud83e\udd17&nbsp;<strong>Hub integrations<\/strong>: you can share and load tools to\/from the Hub, and more is to come!<\/p>\n\n\n\n<p><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/guided_tour\" target=\"_blank\" rel=\"noopener\"><\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>This library is the simplest framework out there to build powerful agents! By the way, wtf are \u201cagents\u201d? We provide our definition\u00a0in this page, where you\u2019ll also find tips for when to use them or not (spoilers: you\u2019ll often be better off without agents). This library offers: \u2728&nbsp;Simplicity: the logic for agents fits in ~thousand&#8230;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"doc_category":[7],"doc_tag":[],"class_list":["post-583","docs","type-docs","status-publish","hentry","doc_category-get-started"],"year_month":"2026-04","word_count":157,"total_views":"3879","reactions":{"happy":"1","normal":"0","sad":"1"},"author_info":{"name":"smolagents","author_nicename":"wd-gstargmail-com","author_url":"https:\/\/smolagents.org\/hi\/author\/wd-gstargmail-com\/"},"doc_category_info":[{"term_name":"Get started","term_url":"https:\/\/smolagents.org\/hi\/docs-category\/get-started\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/smolagents.org\/hi\/wp-json\/wp\/v2\/docs\/583","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smolagents.org\/hi\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/smolagents.org\/hi\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/smolagents.org\/hi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/smolagents.org\/hi\/wp-json\/wp\/v2\/comments?post=583"}],"version-history":[{"count":2,"href":"https:\/\/smolagents.org\/hi\/wp-json\/wp\/v2\/docs\/583\/revisions"}],"predecessor-version":[{"id":586,"href":"https:\/\/smolagents.org\/hi\/wp-json\/wp\/v2\/docs\/583\/revisions\/586"}],"wp:attachment":[{"href":"https:\/\/smolagents.org\/hi\/wp-json\/wp\/v2\/media?parent=583"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/smolagents.org\/hi\/wp-json\/wp\/v2\/doc_category?post=583"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/smolagents.org\/hi\/wp-json\/wp\/v2\/doc_tag?post=583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}