{"id":587,"date":"2025-01-11T15:16:14","date_gmt":"2025-01-11T15:16:14","guid":{"rendered":"https:\/\/smolagents.org\/?post_type=docs&#038;p=587"},"modified":"2025-01-11T15:16:16","modified_gmt":"2025-01-11T15:16:16","password":"","slug":"agents-guided-tour","status":"publish","type":"docs","link":"https:\/\/smolagents.org\/ko\/docs\/agents-guided-tour\/","title":{"rendered":"\uc0c1\ub2f4\uc6d0 - \uac00\uc774\ub4dc \ud22c\uc5b4"},"content":{"rendered":"<p>\uc774 \uac00\uc774\ub4dc\uc5d0\uc11c\ub294 \uc5d0\uc774\uc804\ud2b8\ub97c \uad6c\ucd95\ud558\ub294 \ubc29\ubc95, \uc2e4\ud589\ud558\ub294 \ubc29\ubc95, \uc0ac\uc6a9 \uc0ac\ub840\uc5d0 \ub354 \uc798 \uc791\ub3d9\ud558\ub3c4\ub85d \uc0ac\uc6a9\uc790 \uc9c0\uc815\ud558\ub294 \ubc29\ubc95\uc744 \ubc30\uc6c1\ub2c8\ub2e4.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/guided_tour#building-your-agent\" target=\"_blank\" rel=\"noopener\"><\/a>\uc5d0\uc774\uc804\ud2b8 \uad6c\ucd95\ud558\uae30<\/h3>\n\n\n\n<p>\ucd5c\uc18c \uc5d0\uc774\uc804\ud2b8\ub97c \ucd08\uae30\ud654\ud558\ub824\uba74 \ucd5c\uc18c\ud55c \uc774 \ub450 \uac00\uc9c0 \uc778\uc218\uac00 \ud544\uc694\ud569\ub2c8\ub2e4:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>\ubaa8\ub378<\/code>\uc5d0\uc774\uc804\ud2b8\ub97c \uad6c\ub3d9\ud558\uae30 \uc704\ud55c \ud14d\uc2a4\ud2b8 \uc0dd\uc131 \ubaa8\ub378 - \uc5d0\uc774\uc804\ud2b8\ub294 \ub2e8\uc21c\ud55c LLM\uacfc\ub294 \ub2ec\ub9ac LLM\uc744 \uc5d4\uc9c4\uc73c\ub85c \uc0ac\uc6a9\ud558\ub294 \uc2dc\uc2a4\ud15c\uc785\ub2c8\ub2e4. \uc774\ub7ec\ud55c \uc635\uc158 \uc911 \ud558\ub098\ub97c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/v1.2.2\/en\/reference\/agents#smolagents.TransformersModel\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\ud2b8\ub79c\uc2a4\ud3ec\uba38 \ubaa8\ub378<\/a>\u00a0\ub294 \ubbf8\ub9ac \ucd08\uae30\ud654\ub41c\u00a0<code>\ud2b8\ub79c\uc2a4\ud3ec\uba38<\/code>\u00a0\ud30c\uc774\ud504\ub77c\uc778\uc744 \uc0ac\uc6a9\ud558\uc5ec \ub85c\uceec \uba38\uc2e0\uc5d0\uc11c \ucd94\ub860\uc744 \uc2e4\ud589\ud569\ub2c8\ub2e4.\u00a0<code>\ud2b8\ub79c\uc2a4\ud3ec\uba38<\/code>.<\/li>\n\n\n\n<li><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/v1.2.2\/en\/reference\/agents#smolagents.HfApiModel\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">HfApiModel<\/a>\u00a0\ud65c\uc6a9\u00a0<code>huggingface_hub.InferenceClient<\/code>\u00a0\ub0b4\ubd80\ub97c \ub4e4\uc5ec\ub2e4\ubcf4\uc138\uc694.<\/li>\n\n\n\n<li><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/v1.2.2\/en\/reference\/agents#smolagents.LiteLLMModel\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">LiteLLMModel<\/a>\u00a0\ub97c \ud1b5\ud574 100\uac1c \uc774\uc0c1\uc758 \ub2e4\uc591\ud55c \ubaa8\ub378\uc744 \ud638\ucd9c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\u00a0<a href=\"https:\/\/docs.litellm.ai\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">LiteLLM<\/a>!<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><code>\ub3c4\uad6c<\/code>\uc758 \ubaa9\ub85d\u00a0<code>\ub3c4\uad6c<\/code>\u00a0\uc0c1\ub2f4\uc6d0\uc774 \uc791\uc5c5\uc744 \ud574\uacb0\ud558\ub294 \ub370 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ube48 \ubaa9\ub85d\uc77c \uc218\ub3c4 \uc788\uc2b5\ub2c8\ub2e4. \uae30\ubcf8 \ub3c4\uad6c \uc0c1\uc790\ub97c \ucd94\uac00\ud560 \uc218\ub3c4 \uc788\uc2b5\ub2c8\ub2e4.\u00a0<code>\ub3c4\uad6c<\/code>\u00a0\ubaa9\ub85d\uc758 \uc120\ud0dd\uc801 \uc778\uc218\ub97c \uc815\uc758\ud558\uc5ec\u00a0<code>add_base_tools=true<\/code>.<\/li>\n<\/ul>\n\n\n\n<p>\uc774 \ub450 \uac00\uc9c0 \uc778\uc218\uac00 \uc788\uc73c\uba74\u00a0<code>\ub3c4\uad6c<\/code>\u00a0\uadf8\ub9ac\uace0\u00a0<code>\ubaa8\ub378<\/code>\ub97c \ud074\ub9ad\ud55c \ud6c4 \uc5d0\uc774\uc804\ud2b8\ub97c \uc0dd\uc131\ud558\uace0 \uc2e4\ud589\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c \uc911 \ud558\ub098\ub97c \ud1b5\ud574 \uc6d0\ud558\ub294 LLM\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\u00a0<a href=\"https:\/\/huggingface.co\/docs\/api-inference\/en\/index\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\ud5c8\uae45 \ud398\uc774\uc2a4 API<\/a>,\u00a0<a href=\"https:\/\/github.com\/huggingface\/transformers\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\ud2b8\ub79c\uc2a4\ud3ec\uba38<\/a>,\u00a0<a href=\"https:\/\/ollama.com\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">ollama<\/a>\ub610\ub294\u00a0<a href=\"https:\/\/www.litellm.ai\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">LiteLLM<\/a>.<\/p>\n\n\n\n<p>\ud5c8\uae45 \ud398\uc774\uc2a4 API<\/p>\n\n\n\n<p>\ub85c\uceec \ubcc0\uc555\uae30 \ubaa8\ub378<\/p>\n\n\n\n<p>OpenAI \ub610\ub294 \uc778\uacf5 \uc9c0\ub2a5 API<\/p>\n\n\n\n<p>Ollama<\/p>\n\n\n\n<p>\ud5c8\uae45 \ud398\uc774\uc2a4 API\ub294 \ud1a0\ud070 \uc5c6\uc774 \ubb34\ub8cc\ub85c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc9c0\ub9cc \uc18d\ub3c4 \uc81c\ud55c\uc774 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<p>PRO \uacc4\uc815\uc73c\ub85c \uac8c\uc774\ud2b8\ud615 \ubaa8\ub378\uc5d0 \uc561\uc138\uc2a4\ud558\uac70\ub098 \uc694\uae08 \ud55c\ub3c4\ub97c \ub192\uc774\ub824\uba74 \ud658\uacbd \ubcc0\uc218\ub97c \uc124\uc815\ud574\uc57c \ud569\ub2c8\ub2e4.&nbsp;<code>HF_TOKEN<\/code>&nbsp;\ub610\ub294 \ud1b5\uacfc&nbsp;<code>\ud1a0\ud070<\/code>&nbsp;\ubcc0\uc218\ub97c \ucd08\uae30\ud654\ud560 \ub54c&nbsp;<code>HfApiModel<\/code>.<\/p>\n\n\n\n<p>\ubcf5\uc0ac\ub428<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">smolagent\uc5d0\uc11c CodeAgent, HfApiModel\uc744 \uac00\uc838\uc635\ub2c8\ub2e4.\n\nmodel_id = \"meta-llama\/Llama-3.3-70B-Instruct\"\n\nmodel = HfApiModel(model_id=model_id, token=\"\")\n\uc5d0\uc774\uc804\ud2b8 = \ucf54\ub4dc\uc5d0\uc774\uc804\ud2b8(\ub3c4\uad6c=[], \ubaa8\ub378=\ubaa8\ub378, add_base_tools=True)\n\nagent.run(\n    \"\ud53c\ubcf4\ub098\uce58 \uc218\uc5f4\uc758 118\ubc88\uc9f8 \uc22b\uc790\ub97c \uc54c\ub824\uc8fc\uc2dc\uaca0\uc2b5\ub2c8\uae4c?\",\n)<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/guided_tour#codeagent-and-toolcallingagent\" target=\"_blank\" rel=\"noopener\"><\/a>\ucf54\ub4dc \uc5d0\uc774\uc804\ud2b8 \ubc0f \ub3c4\uad6c \ud638\ucd9c \uc5d0\uc774\uc804\ud2b8<\/h4>\n\n\n\n<p>\uadf8\ub9ac\uace0\u00a0<a href=\"https:\/\/huggingface.co\/docs\/smolagents\/v1.2.2\/en\/reference\/agents#smolagents.CodeAgent\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\ucf54\ub4dc \uc5d0\uc774\uc804\ud2b8<\/a>\u00a0\uae30\ubcf8 \uc5d0\uc774\uc804\ud2b8\uc785\ub2c8\ub2e4. \uac01 \ub2e8\uacc4\uc5d0\uc11c \ud30c\uc774\uc36c \ucf54\ub4dc \uc2a4\ub2c8\ud3ab\uc744 \uc791\uc131\ud558\uace0 \uc2e4\ud589\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\uae30\ubcf8\uc801\uc73c\ub85c \uc2e4\ud589\uc740 \ub85c\uceec \ud658\uacbd\uc5d0\uc11c \uc774\ub8e8\uc5b4\uc9d1\ub2c8\ub2e4. \ud638\ucd9c\ud560 \uc218 \uc788\ub294 \ud568\uc218\ub294 \uc81c\uacf5\ud55c \ub3c4\uad6c(\ud2b9\ud788 Hugging Face\uc758 \ub3c4\uad6c\ub9cc \uc788\ub294 \uacbd\uc6b0)\uc640 \ub2e4\uc74c\uacfc \uac19\uc774 \ubbf8\ub9ac \uc815\uc758\ub41c \uc548\uc804\ud55c \ud568\uc218 \uc9d1\ud569\ubfd0\uc774\ubbc0\ub85c \uc548\uc804\ud574\uc57c \ud569\ub2c8\ub2e4.&nbsp;<code>\uc778\uc1c4<\/code>&nbsp;\ub610\ub294&nbsp;<code>\uc218\ud559<\/code>&nbsp;\ubaa8\ub4c8\uc744 \uc0ac\uc6a9\ud558\ubbc0\ub85c \uc2e4\ud589\ud560 \uc218 \uc788\ub294 \ud56d\ubaa9\uc774 \uc774\ubbf8 \uc81c\ud55c\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\ud30c\uc774\uc36c \uc778\ud130\ud504\ub9ac\ud130\ub294 \uae30\ubcf8\uc801\uc73c\ub85c \ud5c8\uc6a9 \ubaa9\ub85d \uc774\uc678\uc758 \uac00\uc838\uc624\uae30\ub97c \ud5c8\uc6a9\ud558\uc9c0 \uc54a\uc73c\ubbc0\ub85c \uac00\uc7a5 \uba85\ubc31\ud55c \uacf5\uaca9\uc740 \ubaa8\ub450 \ubb38\uc81c\uac00 \ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. \uc778\uc218\uc758 \ubb38\uc790\uc5f4 \ubaa9\ub85d\uc73c\ub85c \uc2b9\uc778\ub41c \ubaa8\ub4c8\uc744 \uc804\ub2ec\ud558\uc5ec \ucd94\uac00 \uac00\uc838\uc624\uae30\ub97c \uc2b9\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\u00a0<code>\ucd94\uac00_\uc2b9\uc778\ub41c_\uc218\uc785<\/code>\u00a0\ucd08\uae30\ud654 \uc2dc\u00a0<a href=\"https:\/\/huggingface.co\/docs\/smolagents\/v1.2.2\/en\/reference\/agents#smolagents.CodeAgent\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\ucf54\ub4dc \uc5d0\uc774\uc804\ud2b8<\/a>:<\/p>\n\n\n\n<p>\ubcf5\uc0ac\ub428<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">model = HfApiModel()\nagent = CodeAgent(tools=[], model=model, additional_authorized_imports=['requests', 'bs4'])\nagent.run(\"URL 'https:\/\/huggingface.co\/blog'\uc758 \ud398\uc774\uc9c0 \uc81c\ubaa9\uc744 \uc54c\ub824\uc8fc\uc2dc\uaca0\uc2b5\ub2c8\uae4c?\")<\/pre>\n\n\n\n<p>LLM\uc740 \uc784\uc758\uc758 \ucf54\ub4dc\ub97c \uc0dd\uc131\ud558\uc5ec \uc2e4\ud589\ud560 \uc218 \uc788\uc73c\ubbc0\ub85c \uc548\uc804\ud558\uc9c0 \uc54a\uc740 \uc784\ud3ec\ud2b8\ub97c \ucd94\uac00\ud558\uc9c0 \ub9c8\uc138\uc694!<\/p>\n\n\n\n<p>\ubd88\ubc95\uc801\uc778 \uc791\uc5c5\uc744 \uc218\ud589\ud558\ub824\ub294 \ucf54\ub4dc\uac00 \uc788\uac70\ub098 \uc5d0\uc774\uc804\ud2b8\uac00 \uc0dd\uc131\ud55c \ucf54\ub4dc\uc5d0 \uc77c\ubc18\uc801\uc778 Python \uc624\ub958\uac00 \uc788\ub294 \uacbd\uc6b0 \uc2e4\ud589\uc774 \uc911\uc9c0\ub429\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\ub2e4\uc74c\uc744 \uc0ac\uc6a9\ud560 \uc218\ub3c4 \uc788\uc2b5\ub2c8\ub2e4.\u00a0<a href=\"https:\/\/e2b.dev\/docs#what-is-e2-b\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">E2B \ucf54\ub4dc \uc2e4\ud589\uae30<\/a>\u00a0\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub85c\uceec \ud30c\uc774\uc36c \uc778\ud130\ud504\ub9ac\ud130 \ub300\uc2e0\u00a0<a href=\"https:\/\/e2b.dev\/dashboard?tab=keys\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\uc124\uc815\uc744\u00a0<code>E2B_API_KEY<\/code>\u00a0\ud658\uacbd \ubcc0\uc218<\/a>\u00a0\ub97c \uc804\ub2ec\ud55c \ub2e4\uc74c\u00a0<code>use_e2b_executor=true<\/code>\u00a0\uc0c1\ub2f4\uc6d0 \ucd08\uae30\ud654 \uc2dc<\/p>\n\n\n\n<p>\ucf54\ub4dc \uc2e4\ud589\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uae30\u00a0<a href=\"https:\/\/huggingface.co\/docs\/smolagents\/tutorials\/secure_code_execution\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c<\/a>.<\/p>\n\n\n\n<p>\ub610\ud55c \ub110\ub9ac \uc0ac\uc6a9\ub418\ub294 \ub3d9\uc791\uc744 JSON\uacfc \uc720\uc0ac\ud55c \ube14\ub86d\uc73c\ub85c \uc791\uc131\ud558\ub294 \ubc29\ubc95\ub3c4 \uc9c0\uc6d0\ud569\ub2c8\ub2e4.\u00a0<a href=\"https:\/\/huggingface.co\/docs\/smolagents\/v1.2.2\/en\/reference\/agents#smolagents.ToolCallingAgent\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\ub3c4\uad6c \ud638\ucd9c \uc5d0\uc774\uc804\ud2b8<\/a>\uc640 \ub9e4\uc6b0 \uc720\uc0ac\ud55c \ubc29\uc2dd\uc73c\ub85c \uc791\ub3d9\ud569\ub2c8\ub2e4.\u00a0<a href=\"https:\/\/huggingface.co\/docs\/smolagents\/v1.2.2\/en\/reference\/agents#smolagents.CodeAgent\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\ucf54\ub4dc \uc5d0\uc774\uc804\ud2b8<\/a>\ubb3c\ub860\u00a0<code>\ucd94\uac00_\uc2b9\uc778\ub41c_\uc218\uc785<\/code>\u00a0\ucf54\ub4dc\ub97c \uc2e4\ud589\ud558\uc9c0 \uc54a\uae30 \ub54c\ubb38\uc785\ub2c8\ub2e4:<\/p>\n\n\n\n<p>\ubcf5\uc0ac\ub428<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">smolagent\uc5d0\uc11c \ub3c4\uad6c \ud638\ucd9c \uc5d0\uc774\uc804\ud2b8\ub97c \uac00\uc838\uc635\ub2c8\ub2e4.\n\nagent = \ub3c4\uad6c \ud638\ucd9c \uc5d0\uc774\uc804\ud2b8(\ub3c4\uad6c=[], \ubaa8\ub378=\ubaa8\ub378)\nagent.run(\"URL 'https:\/\/huggingface.co\/blog'\uc758 \ud398\uc774\uc9c0 \uc81c\ubaa9\uc744 \uc54c\ub824\uc8fc\uc2dc\uaca0\uc2b5\ub2c8\uae4c?\")<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/guided_tour#inspecting-an-agent-run\" target=\"_blank\" rel=\"noopener\"><\/a>\uc0c1\ub2f4\uc6d0 \uc2e4\ud589 \uac80\uc0ac\ud558\uae30<\/h3>\n\n\n\n<p>\ub2e4\uc74c\uc740 \uc2e4\ud589 \ud6c4 \uc5b4\ub5a4 \uc77c\uc774 \ubc1c\uc0dd\ud588\ub294\uc9c0 \uac80\uc0ac\ud558\ub294 \ub370 \uc720\uc6a9\ud55c \uba87 \uac00\uc9c0 \uc18d\uc131\uc785\ub2c8\ub2e4:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>\uc5d0\uc774\uc804\ud2b8 \ub85c\uadf8<\/code>\u00a0\ub294 \uc5d0\uc774\uc804\ud2b8\uc758 \uc138\ubd84\ud654\ub41c \ub85c\uadf8\ub97c \uc800\uc7a5\ud569\ub2c8\ub2e4. \uc5d0\uc774\uc804\ud2b8\uac00 \uc2e4\ud589\ub418\ub294 \ubaa8\ub4e0 \ub2e8\uacc4\uc5d0\uc11c \ubaa8\ub4e0 \uac83\uc774 \ub515\uc154\ub108\ub9ac\uc5d0 \uc800\uc7a5\ub41c \ub2e4\uc74c \ub2e4\uc74c\uc5d0 \ucd94\uac00\ub429\ub2c8\ub2e4.\u00a0<code>\uc5d0\uc774\uc804\ud2b8 \ub85c\uadf8<\/code>.<\/li>\n\n\n\n<li>\uc2e4\ud589 \uc911\u00a0<code>\uc5d0\uc774\uc804\ud2b8.\uc4f0\uae30_\ub0b4\ubd80_\uba54\ubaa8\ub9ac_\ub85c\ubd80\ud130_\ub85c\uadf8()<\/code>\u00a0\ub294 LLM\uc774 \ubcfc \uc218 \uc788\ub3c4\ub85d \uc0c1\ub2f4\uc6d0 \ub85c\uadf8\uc758 \ub0b4\ubd80 \uba54\ubaa8\ub9ac\ub97c \ucc44\ud305 \uba54\uc2dc\uc9c0 \ubaa9\ub85d\uc73c\ub85c \ub9cc\ub4ed\ub2c8\ub2e4. \uc774 \ubc29\ubc95\uc740 \ub85c\uadf8\uc758 \uac01 \ub2e8\uacc4\ub97c \uc0b4\ud3b4\ubcf4\uace0 \uad00\uc2ec \uc788\ub294 \uac83\ub9cc \uba54\uc2dc\uc9c0\ub85c \uc800\uc7a5\ud569\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4 \uc2dc\uc2a4\ud15c \ud504\ub86c\ud504\ud2b8\uc640 \uc791\uc5c5\uc744 \ubcc4\ub3c4\uc758 \uba54\uc2dc\uc9c0\ub85c \uc800\uc7a5\ud55c \ub2e4\uc74c \uac01 \ub2e8\uacc4\ub9c8\ub2e4 LLM \ucd9c\ub825\uc744 \uba54\uc2dc\uc9c0\ub85c, \ud234 \ud638\ucd9c \ucd9c\ub825\uc744 \ub2e4\ub978 \uba54\uc2dc\uc9c0\ub85c \uc800\uc7a5\ud569\ub2c8\ub2e4. \uc5b4\ub5a4 \uc77c\uc774 \uc77c\uc5b4\ub0ac\ub294\uc9c0 \ub354 \ub192\uc740 \uc218\uc900\uc758 \ubcf4\uae30\ub97c \uc6d0\ud560 \ub54c \uc774 \ubc29\ubc95\uc744 \uc0ac\uc6a9\ud558\uc9c0\ub9cc \ubaa8\ub4e0 \ub85c\uadf8\uac00 \uc774 \ubc29\ubc95\uc73c\ub85c \uae30\ub85d\ub418\ub294 \uac83\uc740 \uc544\ub2d9\ub2c8\ub2e4.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/guided_tour#tools\" target=\"_blank\" rel=\"noopener\"><\/a>\ub3c4\uad6c<\/h2>\n\n\n\n<p>\ub3c4\uad6c\ub294 \uc5d0\uc774\uc804\ud2b8\uac00 \uc0ac\uc6a9\ud558\ub294 \uc6d0\uc790 \ud568\uc218\uc785\ub2c8\ub2e4. LLM\uc5d0\uc11c \uc0ac\uc6a9\ud558\ub824\uba74 API\ub97c \uad6c\uc131\ud558\ub294 \uba87 \uac00\uc9c0 \uc18d\uc131\uc774 \ud544\uc694\ud558\uba70, \uc774 \uc18d\uc131\uc740 \uc774 \ub3c4\uad6c\ub97c \ud638\ucd9c\ud558\ub294 \ubc29\ubc95\uc744 LLM\uc5d0 \uc124\uba85\ud558\ub294 \ub370 \uc0ac\uc6a9\ub429\ub2c8\ub2e4:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\uc774\ub984<\/li>\n\n\n\n<li>\uc124\uba85<\/li>\n\n\n\n<li>\uc785\ub825 \uc720\ud615 \ubc0f \uc124\uba85<\/li>\n\n\n\n<li>\ucd9c\ub825 \uc720\ud615<\/li>\n<\/ul>\n\n\n\n<p>\uc608\ub97c \ub4e4\uc5b4 \ub2e4\uc74c\uc744 \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\u00a0<a href=\"https:\/\/huggingface.co\/docs\/smolagents\/v1.2.2\/en\/reference\/tools#smolagents.PythonInterpreterTool\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\ud30c\uc774\uc36c \uc778\ud130\ud504\ub9ac\ud130 \ub3c4\uad6c<\/a>\uc774\ub984, \uc124\uba85, \uc785\ub825 \uc124\uba85, \ucd9c\ub825 \uc720\ud615, \uadf8\ub9ac\uace0\u00a0<code>\uc55e\uc73c\ub85c<\/code>\u00a0\uba54\uc11c\ub4dc\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc791\uc5c5\uc744 \uc218\ud589\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\uc0c1\ub2f4\uc6d0\uc774 \ucd08\uae30\ud654\ub418\uba74 \ub3c4\uad6c \uc18d\uc131\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc0c1\ub2f4\uc6d0\uc758 \uc2dc\uc2a4\ud15c \ud504\ub86c\ud504\ud2b8\uc5d0 \uad6c\uc6cc\uc9c0\ub294 \ub3c4\uad6c \uc124\uba85\uc744 \uc0dd\uc131\ud569\ub2c8\ub2e4. \uc774\ub97c \ud1b5\ud574 \uc0c1\ub2f4\uc6d0\uc740 \uc5b4\ub5a4 \ub3c4\uad6c\ub97c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294\uc9c0, \uadf8\ub9ac\uace0 \uadf8 \uc774\uc720\ub97c \uc54c \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/guided_tour#default-toolbox\" target=\"_blank\" rel=\"noopener\"><\/a>\uae30\ubcf8 \ub3c4\uad6c \uc0c1\uc790<\/h3>\n\n\n\n<p>\ud2b8\ub79c\uc2a4\ud3ec\uba38\uc5d0\ub294 \uc0c1\ub2f4\uc6d0\uc5d0\uac8c \uad8c\ud55c\uc744 \ubd80\uc5ec\ud558\uae30 \uc704\ud55c \uae30\ubcf8 \ub3c4\uad6c \uc0c1\uc790\uac00 \uc81c\uacf5\ub418\uba70, \ucd08\uae30\ud654 \uc2dc \uc778\uc218\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc0c1\ub2f4\uc6d0\uc5d0\uac8c \ucd94\uac00\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.&nbsp;<code>add_base_tools = True<\/code>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\ub355\ub355\uace0 \uc6f9 \uac80\uc0c9*<\/strong>: DuckDuckGo \ube0c\ub77c\uc6b0\uc800\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc6f9 \uac80\uc0c9\uc744 \uc218\ud589\ud569\ub2c8\ub2e4.<\/li>\n\n\n\n<li><strong>Python \ucf54\ub4dc \uc778\ud130\ud504\ub9ac\ud130<\/strong>\ub294 \uc548\uc804\ud55c \ud658\uacbd\uc5d0\uc11c LLM\uc73c\ub85c \uc0dd\uc131\ub41c Python \ucf54\ub4dc\ub97c \uc2e4\ud589\ud569\ub2c8\ub2e4. \uc774 \ub3c4\uad6c\ub294 \ub2e4\uc74c\uc5d0\ub9cc \ucd94\uac00\ub429\ub2c8\ub2e4.\u00a0<a href=\"https:\/\/huggingface.co\/docs\/smolagents\/v1.2.2\/en\/reference\/agents#smolagents.ToolCallingAgent\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\ub3c4\uad6c \ud638\ucd9c \uc5d0\uc774\uc804\ud2b8<\/a>\u00a0\ub85c \ucd08\uae30\ud654\ud558\uba74\u00a0<code>add_base_tools=true<\/code>\ucf54\ub4dc \uae30\ubc18 \uc5d0\uc774\uc804\ud2b8\ub294 \uc774\ubbf8 \uae30\ubcf8\uc801\uc73c\ub85c Python \ucf54\ub4dc\ub97c \uc2e4\ud589\ud560 \uc218 \uc788\uae30 \ub54c\ubb38\uc785\ub2c8\ub2e4.<\/li>\n\n\n\n<li><strong>\ud2b8\ub79c\uc2a4\ud06c\ub9bd\ud130<\/strong>\uc624\ub514\uc624\ub97c \ud14d\uc2a4\ud2b8\ub85c \ubcc0\ud658\ud558\ub294 Whisper-Turbo \uae30\ubc18\uc758 \uc74c\uc131-\ud14d\uc2a4\ud2b8 \ud30c\uc774\ud504\ub77c\uc778\uc785\ub2c8\ub2e4.<\/li>\n<\/ul>\n\n\n\n<p>\uc778\uc218\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub3c4\uad6c\ub97c \ud638\ucd9c\ud558\uc5ec \uc218\ub3d9\uc73c\ub85c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\ubcf5\uc0ac\ub428<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">smolagent\uc5d0\uc11c DuckDuckGoSearchTool\uc744 \uac00\uc838\uc635\ub2c8\ub2e4.\n\nsearch_tool = DuckDuckGoSearchTool()\nprint(search_tool(\"\ud604\uc7ac \ub7ec\uc2dc\uc544\uc758 \ub300\ud1b5\ub839\uc740 \ub204\uad6c\uc778\uac00\uc694?\"))<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/guided_tour#create-a-new-tool\" target=\"_blank\" rel=\"noopener\"><\/a>\uc0c8 \ub3c4\uad6c \ub9cc\ub4e4\uae30<\/h3>\n\n\n\n<p>\ud5c8\uae45 \ud398\uc774\uc2a4\uc758 \uae30\ubcf8 \ub3c4\uad6c\uc5d0\uc11c \ub2e4\ub8e8\uc9c0 \uc54a\ub294 \uc0ac\uc6a9 \uc0ac\ub840\uc5d0 \ub300\ud574 \uc790\uc2e0\ub9cc\uc758 \ub3c4\uad6c\ub97c \ub9cc\ub4e4 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4 \ud5c8\ube0c\uc5d0\uc11c \ud2b9\uc815 \uc791\uc5c5\uc5d0 \ub300\ud574 \uac00\uc7a5 \ub9ce\uc774 \ub2e4\uc6b4\ub85c\ub4dc\ub41c \ubaa8\ub378\uc744 \ubc18\ud658\ud558\ub294 \ub3c4\uad6c\ub97c \ub9cc\ub4e4\uc5b4 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\uc544\ub798 \ucf54\ub4dc\ubd80\ud130 \uc2dc\uc791\ud558\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\ubcf5\uc0ac\ub428<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">huggingface_hub\uc5d0\uc11c list_models \uac00\uc838\uc624\uae30\n\ntask = \"text-classification\"\n\nmost_downloaded_model = next(iter(list_models(filter=task, sort=\"downloads\", direction=-1)))\nprint(most_downloaded_model.id)<\/pre>\n\n\n\n<p>\uc774 \ucf54\ub4dc\ub97c \ud568\uc218\ub85c \ub798\ud551\ud558\uace0\u00a0<code>\ub3c4\uad6c<\/code>\u00a0\ub370\ucf54\ub808\uc774\ud130\ub85c \uc815\uc758\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4: \uc774 \ub3c4\uad6c\ub97c \ube4c\ub4dc\ud558\ub294 \uc720\uc77c\ud55c \ubc29\ubc95\uc740 \uc544\ub2d9\ub2c8\ub2e4.\u00a0<a href=\"https:\/\/huggingface.co\/docs\/smolagents\/v1.2.2\/en\/reference\/tools#smolagents.Tool\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\ub3c4\uad6c<\/a>\ub97c \uc0ac\uc6a9\ud558\uba74 \ubb34\uac70\uc6b4 \ud074\ub798\uc2a4 \uc18d\uc131\uc744 \ucd08\uae30\ud654\ud560 \uc218 \uc788\ub294 \ub4f1 \ub354 \ub9ce\uc740 \uc720\uc5f0\uc131\uc744 \uc5bb\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\ub450 \uc635\uc158 \ubaa8\ub450\uc5d0 \ub300\ud574 \uc5b4\ub5bb\uac8c \uc791\ub3d9\ud558\ub294\uc9c0 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4:<\/p>\n\n\n\n<p>\ub3c4\uad6c\ub85c \ud568\uc218 \uafb8\ubbf8\uae30<\/p>\n\n\n\n<p>\uc11c\ube0c\ud074\ub798\uc2a4 \ub3c4\uad6c<\/p>\n\n\n\n<p>\ubcf5\uc0ac\ub428<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">smolagent \uac00\uc838\uc624\uae30 \ub3c4\uad6c\uc5d0\uc11c\n\n@tool\ndef model_download_tool(task: str) -&gt; str:\n    \"\"\"\n    \uc774 \ud568\uc218\ub294 \ud5c8\uae45 \ud398\uc774\uc2a4 \ud5c8\ube0c\uc5d0\uc11c \uc8fc\uc5b4\uc9c4 \uc791\uc5c5\uc758 \uac00\uc7a5 \ub9ce\uc774 \ub2e4\uc6b4\ub85c\ub4dc\ub41c \ubaa8\ub378\uc744 \ubc18\ud658\ud558\ub294 \ub3c4\uad6c\uc785\ub2c8\ub2e4.\n    \uccb4\ud06c\ud3ec\uc778\ud2b8\uc758 \uc774\ub984\uc744 \ubc18\ud658\ud569\ub2c8\ub2e4.\n\n    Args:\n        \uc791\uc5c5: \ub2e4\uc6b4\ub85c\ub4dc \ud69f\uc218\ub97c \uac00\uc838\uc62c \uc791\uc5c5\uc785\ub2c8\ub2e4.\n    \"\"\"\n    most_downloaded_model = next(iter(list_models(filter=task, sort=\"downloads\", direction=-1)))\n    most_downloaded_model.id \ubc18\ud658<\/pre>\n\n\n\n<p>\uae30\ub2a5\uc774 \ud544\uc694\ud569\ub2c8\ub2e4:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\uba85\ud655\ud55c \uc774\ub984. \uc774\ub984\uc740 \uc774 \ub3c4\uad6c\uac00 \uc5d0\uc774\uc804\ud2b8\uc758 \ub450\ub1cc \uc5ed\ud560\uc744 \ud558\ub294 \ub370 \ub3c4\uc6c0\uc774 \ub418\ub294 \uae30\ub2a5\uc744 \ucda9\ubd84\ud788 \uc124\uba85\ud560 \uc218 \uc788\uc5b4\uc57c \ud569\ub2c8\ub2e4. \uc774 \ub3c4\uad6c\ub294 \uc791\uc5c5\uc5d0 \ub300\ud574 \uac00\uc7a5 \ub9ce\uc740 \ub2e4\uc6b4\ub85c\ub4dc\ub97c \uae30\ub85d\ud55c \ubaa8\ub378\uc744 \ubc18\ud658\ud558\ubbc0\ub85c \ub2e4\uc74c\uacfc \uac19\uc774 \uc774\ub984\uc744 \uc9c0\uc815\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4.\u00a0<code>\ubaa8\ub378_\ub2e4\uc6b4\ub85c\ub4dc_\ub3c4\uad6c<\/code>.<\/li>\n\n\n\n<li>\uc785\ub825\uacfc \ucd9c\ub825 \ubaa8\ub450\uc5d0 \ub300\ud55c \uc785\ub825 \ud78c\ud2b8<\/li>\n\n\n\n<li>\uc124\uba85\uc5d0\ub294 \uac01 \uc778\uc218\uac00 \uc124\uba85\ub418\ub294 'Args:' \ubd80\ubd84\uc774 \ud3ec\ud568\ub429\ub2c8\ub2e4(\uc774\ubc88\uc5d0\ub294 \uc720\ud615 \ud45c\uc2dc\uac00 \uc5c6\uc73c\uba74 \uc720\ud615 \ud78c\ud2b8\uc5d0\uc11c \uac00\uc838\uc634). \ub3c4\uad6c \uc774\ub984\uacfc \ub9c8\ucc2c\uac00\uc9c0\ub85c \uc774 \uc124\uba85\uc740 \uc5d0\uc774\uc804\ud2b8\ub97c \uad6c\ub3d9\ud558\ub294 LLM\uc5d0 \ub300\ud55c \uc0ac\uc6a9 \uc124\uba85\uc11c\uc774\ubbc0\ub85c \ubb34\uc2dc\ud558\uc9c0 \ub9c8\uc138\uc694. \uc774\ub7ec\ud55c \ubaa8\ub4e0 \uc694\uc18c\ub294 \ucd08\uae30\ud654 \uc2dc \uc5d0\uc774\uc804\ud2b8\uc758 \uc2dc\uc2a4\ud15c \ud504\ub86c\ud504\ud2b8\uc5d0 \uc790\ub3d9\uc73c\ub85c \uad6c\uc6cc\uc9c0\ubbc0\ub85c \uac00\ub2a5\ud55c \ud55c \uba85\ud655\ud558\uac8c \uc791\uc131\ud558\ub3c4\ub85d \ub178\ub825\ud558\uc138\uc694!<\/li>\n<\/ul>\n\n\n\n<p>\uc774 \uc815\uc758 \ud615\uc2dd\uc740 \ub2e4\uc74c\uc5d0\uc11c \uc0ac\uc6a9\ub418\ub294 \ub3c4\uad6c \uc2a4\ud0a4\ub9c8\uc640 \ub3d9\uc77c\ud569\ub2c8\ub2e4.\u00a0<code>\uc801\uc6a9_\ucc44\ud305_\ud15c\ud50c\ub9bf<\/code>\uc720\uc77c\ud55c \ucc28\uc774\uc810\uc740\u00a0<code>\ub3c4\uad6c<\/code>\u00a0\ub370\ucf54\ub808\uc774\ud130: \ub3c4\uad6c \uc0ac\uc6a9 API\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uae30\u00a0<a href=\"https:\/\/huggingface.co\/blog\/unified-tool-use#passing-tools-to-a-chat-template\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\uc5ec\uae30<\/a>.<\/p>\n\n\n\n<p>\uadf8\ub7f0 \ub2e4\uc74c \uc0c1\ub2f4\uc6d0\uc744 \uc9c1\uc811 \ucd08\uae30\ud654\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n\n\n\n<p>\ubcf5\uc0ac\ub428<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">smolagent\uc5d0\uc11c CodeAgent, HfApiModel\uc744 \uac00\uc838\uc635\ub2c8\ub2e4.\nagent = CodeAgent(tools=[model_download_tool], model=HfApiModel())\nagent.run(\n    \"\ud5c8\uae45 \ud398\uc774\uc2a4 \ud5c8\ube0c\uc758 '\ud14d\uc2a4\ud2b8-\ube44\ub514\uc624' \uc791\uc5c5\uc5d0\uc11c \uac00\uc7a5 \ub9ce\uc774 \ub2e4\uc6b4\ub85c\ub4dc\ub41c \ubaa8\ub378\uc758 \uc774\ub984\uc744 \uc54c\ub824\uc8fc\uc2e4 \uc218 \uc788\ub098\uc694?\"\n)<\/pre>\n\n\n\n<p>\ub2e4\uc74c\uacfc \uac19\uc740 \ub85c\uadf8\uac00 \ud45c\uc2dc\ub429\ub2c8\ub2e4:<\/p>\n\n\n\n<p>\ubcf5\uc0ac\ub428<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\u256d\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 \uc0c8 \uc2e4\ud589 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n\u2502 \u2502\n\u2502 '\ud14d\uc2a4\ud2b8-\ube44\ub514\uc624' \u2502\uc5d0\uc11c \uac00\uc7a5 \ub9ce\uc740 \ub2e4\uc6b4\ub85c\ub4dc \uc218\ub97c \uae30\ub85d\ud55c \ubaa8\ub378\uc758 \uc774\ub984\uc744 \uc54c\ub824\uc8fc\uc138\uc694.\n\ud5c8\uae45 \ud398\uc774\uc2a4 \ud5c8\ube0c\uc758 \u2502 \uc791\uc5c5\uc740 \ubb34\uc5c7\uc778\uac00\uc694?                                                            \u2502\n\u2502 \u2502\n\n\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 0 \ub2e8\uacc4 \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\n\u256d\u2500 \uc774 \ucf54\ub4dc\ub97c \uc2e4\ud589\ud569\ub2c8\ub2e4: \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e\n1 model_name = model_download_tool(task=\"text-to-video\") \u2502 1\n2 print(model_name) \u2502\n\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\n\uc2e4\ud589 \ub85c\uadf8:\nByteDance\/AnimateDiff-Lightning\n\nOut: None\n[0\ub2e8\uacc4: \uc9c0\uc18d \uc2dc\uac04 0.27\ucd08| \uc785\ub825 \ud1a0\ud070: 2,069 | \ucd9c\ub825 \ud1a0\ud070: 60]\n\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 1\ub2e8\uacc4 \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\n\u256d\u2500 \uc774 \ucf54\ub4dc\ub97c \uc2e4\ud589\ud569\ub2c8\ub2e4: \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256e\n1 final_answer(\"ByteDance\/AnimateDiff-Lightning\") \u2502 \u2502\n\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f\nOut - \ucd5c\uc885 \ub2f5\uc548: ByteDance\/AnimateDiff-Lightning\n[1\ub2e8\uacc4: \uc9c0\uc18d \uc2dc\uac04 0.10\ucd08| \uc785\ub825 \ud1a0\ud070: 4,288 | \ucd9c\ub825 \ud1a0\ud070: 148]\nOut[20]: 'ByteDance\/AnimateDiff-Lightning'<\/pre>\n\n\n\n<p>\ub3c4\uad6c\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uae30\u00a0<a href=\"https:\/\/huggingface.co\/docs\/smolagents\/tutorials\/tools#what-is-a-tool-and-how-to-build-one\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\uc804\uc6a9 \ud29c\ud1a0\ub9ac\uc5bc<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/guided_tour#multi-agents\" target=\"_blank\" rel=\"noopener\"><\/a>\uba40\ud2f0 \uc5d0\uc774\uc804\ud2b8<\/h2>\n\n\n\n<p>Microsoft\uc758 \ud504\ub808\uc784\uc6cc\ud06c\ub97c \ud1b5\ud574 \uba40\ud2f0 \uc5d0\uc774\uc804\ud2b8 \uc2dc\uc2a4\ud15c\uc774 \ub3c4\uc785\ub418\uc5c8\uc2b5\ub2c8\ub2e4.\u00a0<a href=\"https:\/\/huggingface.co\/papers\/2308.08155\" target=\"_blank\" rel=\"noopener\">Aut<\/a><a href=\"https:\/\/huggingface.co\/papers\/2308.08155\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">o<\/a><a href=\"https:\/\/huggingface.co\/papers\/2308.08155\" target=\"_blank\" rel=\"noopener\">gen<\/a>.<\/p>\n\n\n\n<p>\uc774\ub7ec\ud55c \uc720\ud615\uc758 \ud504\ub808\uc784\uc6cc\ud06c\uc5d0\uc11c\ub294 \ud55c \uba85\uc758 \uc5d0\uc774\uc804\ud2b8\uac00 \uc544\ub2c8\ub77c \uc5ec\ub7ec \uba85\uc758 \uc5d0\uc774\uc804\ud2b8\uac00 \ud568\uaed8 \uc791\uc5c5\uc744 \ud574\uacb0\ud569\ub2c8\ub2e4. \uacbd\ud5d8\uc801\uc73c\ub85c \ub300\ubd80\ubd84\uc758 \ubca4\uce58\ub9c8\ud06c\uc5d0\uc11c \ub354 \ub098\uc740 \uc131\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc774\ub807\uac8c \uc131\ub2a5\uc774 \ub354 \ub098\uc740 \uc774\uc720\ub294 \uac1c\ub150\uc801\uc73c\ub85c \uac04\ub2e8\ud569\ub2c8\ub2e4. \ub9ce\uc740 \uc791\uc5c5\uc758 \uacbd\uc6b0 \ubaa8\ub4e0 \uc791\uc5c5\uc744 \uc218\ud589\ud558\ub294 \uc2dc\uc2a4\ud15c\uc744 \uc0ac\uc6a9\ud558\ub294 \uac83\ubcf4\ub2e4 \ud558\uc704 \uc791\uc5c5\uc744 \uc804\ubb38\uc73c\ub85c \ud558\ub294 \uc720\ub2db\uc744 \uc0ac\uc6a9\ud558\ub294 \uac83\uc774 \uc88b\uc2b5\ub2c8\ub2e4. \uc5ec\uae30\uc11c \ubcc4\ub3c4\uc758 \ub3c4\uad6c \uc138\ud2b8\uc640 \uba54\ubaa8\ub9ac\ub97c \uac00\uc9c4 \uc5d0\uc774\uc804\ud2b8\ub97c \uc0ac\uc6a9\ud558\uba74 \ud6a8\uc728\uc801\uc778 \uc804\ubb38\ud654\ub97c \ub2ec\uc131\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \uc6f9 \uac80\uc0c9 \uc5d0\uc774\uc804\ud2b8\uac00 \ubc29\ubb38\ud55c \uc6f9\ud398\uc774\uc9c0\uc758 \ubaa8\ub4e0 \ucf58\ud150\uce20\ub97c \ucf54\ub4dc \uc0dd\uc131 \uc5d0\uc774\uc804\ud2b8\uc758 \uba54\ubaa8\ub9ac\uc5d0 \ucc44\uc6b0\ub294 \uc774\uc720\ub294 \ubb34\uc5c7\uc77c\uae4c\uc694? \ubd84\ub9ac\ud558\ub294 \uac83\uc774 \uc88b\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\ub2e4\uc74c\uc744 \uc0ac\uc6a9\ud558\uc5ec \uacc4\uce35\uc801 \uba40\ud2f0 \uc5d0\uc774\uc804\ud2b8 \uc2dc\uc2a4\ud15c\uc744 \uc27d\uac8c \uad6c\ucd95\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.&nbsp;<code>smolagents<\/code>.<\/p>\n\n\n\n<p>\uc774\ub807\uac8c \ud558\ub824\uba74 \uc5d0\uc774\uc804\ud2b8\ub97c \ub2e4\uc74c\uacfc \uac19\uc774 \ucea1\uc290\ud654\ud569\ub2c8\ub2e4.\u00a0<a href=\"https:\/\/huggingface.co\/docs\/smolagents\/v1.2.2\/en\/reference\/agents#smolagents.ManagedAgent\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\uad00\ub9ac \uc5d0\uc774\uc804\ud2b8<\/a>\u00a0\uac1d\uccb4\uc785\ub2c8\ub2e4. \uc774 \uac1d\uccb4\uc5d0\ub294 \uc778\uc218\uac00 \ud544\uc694\ud569\ub2c8\ub2e4.\u00a0<code>\uc5d0\uc774\uc804\ud2b8<\/code>,\u00a0<code>\uc774\ub984<\/code>\ubc0f\u00a0<code>\uc124\uba85<\/code>\ub97c \ud074\ub9ad\ud558\uba74 \uad00\ub9ac \uc5d0\uc774\uc804\ud2b8\uc758 \uc2dc\uc2a4\ud15c \ud504\ub86c\ud504\ud2b8\uc5d0 \uc774 \uad00\ub9ac \uc5d0\uc774\uc804\ud2b8\ub97c \ud638\ucd9c\ud558\ub294 \ubc29\ubc95\uc744 \uc54c\ub824\uc8fc\ub294 \uba54\uc2dc\uc9c0\uac00 \ud3ec\ud568\ub418\uba70, \uc774\ub294 \ud234\uc5d0 \ub300\ud574\uc11c\ub3c4 \ub9c8\ucc2c\uac00\uc9c0\uc785\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\ub2e4\uc74c\uc740 \ud2b9\uc815 \uc6f9 \uac80\uc0c9 \uc5d0\uc774\uc804\ud2b8\ub97c \uad00\ub9ac\ud558\ub294 \uc5d0\uc774\uc804\ud2b8\ub97c \ub9cc\ub4dc\ub294 \uc608\uc81c\uc785\ub2c8\ub2e4.\u00a0<a href=\"https:\/\/huggingface.co\/docs\/smolagents\/v1.2.2\/en\/reference\/tools#smolagents.DuckDuckGoSearchTool\" target=\"_blank\" rel=\"noopener\">\ub355\ub355<\/a><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/v1.2.2\/en\/reference\/tools#smolagents.DuckDuckGoSearchTool\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">k<\/a><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/v1.2.2\/en\/reference\/tools#smolagents.DuckDuckGoSearchTool\" target=\"_blank\" rel=\"noopener\">GoSearchTool<\/a>:<\/p>\n\n\n\n<p>\ubcf5\uc0ac\ub428<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">smolagent\uc5d0\uc11c \ucf54\ub4dc\uc5d0\uc774\uc804\ud2b8, HfApi\ubaa8\ub378, \ub355\ub355\uace0\uc11c\uce58\ud234, \ub9e4\ub2c8\uc9c0\ub4dc\uc5d0\uc774\uc804\ud2b8\ub97c \uac00\uc838\uc635\ub2c8\ub2e4.\n\nmodel = HfApiModel()\n\nweb_agent = CodeAgent(tools=[DuckDuckGoSearchTool()], model=model)\n\nmanaged_web_agent = ManagedAgent(\n    \uc5d0\uc774\uc804\ud2b8=\uc6f9\uc5d0\uc774\uc804\ud2b8,\n    name=\"web_search\",\n    description=\"\uc6f9 \uac80\uc0c9\uc744 \uc2e4\ud589\ud569\ub2c8\ub2e4. \ucffc\ub9ac\ub97c \uc778\uc218\ub85c \uc804\ub2ec\ud558\uc138\uc694.\")\n)\n\n\uad00\ub9ac\uc790_\uc5d0\uc774\uc804\ud2b8 = \ucf54\ub4dc\uc5d0\uc774\uc804\ud2b8(\n    tools=[], model=\ubaa8\ub378, managed_agents=[managed_web_agent])\n)\n\nmanager_agent.run(\"\ud5c8\uae45\ud398\uc774\uc2a4\uc758 CEO\ub294 \ub204\uad6c\uc778\uac00\uc694?\")<\/pre>\n\n\n\n<p>\ud6a8\uc728\uc801\uc778 \uba40\ud2f0 \uc5d0\uc774\uc804\ud2b8 \uad6c\ud604\uc5d0 \ub300\ud55c \uc790\uc138\ud55c \uc608\ub294 \ub2e4\uc74c\uc744 \ucc38\uc870\ud558\uc138\uc694.\u00a0<a href=\"https:\/\/huggingface.co\/blog\/beating-gaia\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\uba40\ud2f0 \uc5d0\uc774\uc804\ud2b8 \uc2dc\uc2a4\ud15c\uc744 GAIA \ub9ac\ub354\ubcf4\ub4dc \uc0c1\uc704\uad8c\uc73c\ub85c \ub04c\uc5b4\uc62c\ub9b0 \ubc29\ubc95<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/guided_tour#talk-with-your-agent-and-visualize-its-thoughts-in-a-cool-gradio-interface\" target=\"_blank\" rel=\"noopener\"><\/a>\uba4b\uc9c4 Gradio \uc778\ud130\ud398\uc774\uc2a4\uc5d0\uc11c \uc0c1\ub2f4\uc6d0\uacfc \ub300\ud654\ud558\uace0 \uc0dd\uac01\uc744 \uc2dc\uac01\ud654\ud558\uc138\uc694.<\/h2>\n\n\n\n<p>\ub2e4\uc74c\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.&nbsp;<code>GradioUI<\/code>&nbsp;\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc0c1\ub2f4\uc6d0\uc5d0\uac8c \ub300\ud654\ud615\uc73c\ub85c \uc791\uc5c5\uc744 \uc81c\ucd9c\ud558\uace0 \uadf8 \uc0dd\uac01\uacfc \uc2e4\ud589 \uacfc\uc815\uc744 \uad00\ucc30\ud560 \uc218 \uc788\ub294 \uc608\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n\n\n\n<p>\ubcf5\uc0ac\ub428<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">smolagent\uc5d0\uc11c \uac00\uc838 \uc624\uae30 (\n    load_tool,\n    CodeAgent,\n    HfApiModel,\n    GradioUI\n)\n\n<em># \ud5c8\ube0c\uc5d0\uc11c \uac00\uc838\uc624\uae30 \ub3c4\uad6c<\/em>\n\uc774\ubbf8\uc9c0 \uc0dd\uc131 \ub3c4\uad6c = \ub85c\ub4dc \ub3c4\uad6c(\"m-ric\/text-to-image\")\n\nmodel = HfApiModel(model_id)\n\n<em># \uc774\ubbf8\uc9c0 \uc0dd\uc131 \ud234\ub85c \uc5d0\uc774\uc804\ud2b8 \ucd08\uae30\ud654\ud558\uae30<\/em>\n\uc5d0\uc774\uc804\ud2b8 = CodeAgent(tools=[image_generation_tool], model=model)\n\nGradioUI(agent).launch()<\/pre>\n\n\n\n<p>\ub0b4\ubd80\uc801\uc73c\ub85c\ub294 \uc0ac\uc6a9\uc790\uac00 \uc0c8 \ub2f5\ubcc0\uc744 \uc785\ub825\ud558\uba74 \ub2e4\uc74c\uacfc \uac19\uc774 \uc0c1\ub2f4\uc6d0\uc774 \uc2dc\uc791\ub429\ub2c8\ub2e4.&nbsp;<code>agent.run(user_request, reset=False)<\/code>. .&nbsp;<code>reset=False<\/code>&nbsp;\ud50c\ub798\uadf8\ub294 \uc774 \uc0c8 \uc791\uc5c5\uc744 \uc2dc\uc791\ud558\uae30 \uc804\uc5d0 \uc0c1\ub2f4\uc6d0\uc758 \uba54\ubaa8\ub9ac\uac00 \ud50c\ub7ec\uc2dc\ub418\uc9c0 \uc54a\uc544 \ub300\ud654\ub97c \uacc4\uc18d\ud560 \uc218 \uc788\uc74c\uc744 \uc758\ubbf8\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\ub2e4\uc74c\uc744 \uc0ac\uc6a9\ud560 \uc218\ub3c4 \uc788\uc2b5\ub2c8\ub2e4.&nbsp;<code>reset=False<\/code>&nbsp;\uc778\uc218\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub2e4\ub978 \uc5d0\uc774\uc804\ud2b8 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \ub300\ud654\ub97c \uacc4\uc18d\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/guided_tour#next-steps\" target=\"_blank\" rel=\"noopener\"><\/a>\ub2e4\uc74c \ub2e8\uacc4<\/h2>\n\n\n\n<p>\ubcf4\ub2e4 \uc790\uc138\ud55c \uc0ac\uc6a9\ubc95\uc740 \ud29c\ud1a0\ub9ac\uc5bc\uc744 \ucc38\uc870\ud558\uc138\uc694:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/tutorials\/secure_code_execution\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\ucf54\ub4dc \uc5d0\uc774\uc804\ud2b8\uc758 \uc791\ub3d9 \ubc29\uc2dd\uc5d0 \ub300\ud55c \uc124\uba85<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/tutorials\/building_good_agents\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\uc88b\uc740 \uc0c1\ub2f4\uc6d0\uc744 \uad6c\ucd95\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud55c \uc774 \uac00\uc774\ub4dc<\/a>.<\/li>\n\n\n\n<li><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/tutorials\/building_good_agents\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\ub3c4\uad6c \uc0ac\uc6a9\ubc95\uc5d0 \ub300\ud55c \uc2ec\uce35 \uac00\uc774\ub4dc<\/a>.<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>In this guided visit, you will learn how to build an agent, how to run it, and how to customize it to make it work better for your use-case. Building your agent To initialize a minimal agent, you need at least these two arguments: Once you have these two arguments,\u00a0tools\u00a0and\u00a0model, you can create an agent&#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-587","docs","type-docs","status-publish","hentry","doc_category-get-started"],"year_month":"2026-04","word_count":1967,"total_views":"5545","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"smolagents","author_nicename":"wd-gstargmail-com","author_url":"https:\/\/smolagents.org\/ko\/author\/wd-gstargmail-com\/"},"doc_category_info":[{"term_name":"Get started","term_url":"https:\/\/smolagents.org\/ko\/docs-category\/get-started\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/smolagents.org\/ko\/wp-json\/wp\/v2\/docs\/587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smolagents.org\/ko\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/smolagents.org\/ko\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/smolagents.org\/ko\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/smolagents.org\/ko\/wp-json\/wp\/v2\/comments?post=587"}],"version-history":[{"count":1,"href":"https:\/\/smolagents.org\/ko\/wp-json\/wp\/v2\/docs\/587\/revisions"}],"predecessor-version":[{"id":588,"href":"https:\/\/smolagents.org\/ko\/wp-json\/wp\/v2\/docs\/587\/revisions\/588"}],"wp:attachment":[{"href":"https:\/\/smolagents.org\/ko\/wp-json\/wp\/v2\/media?parent=587"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/smolagents.org\/ko\/wp-json\/wp\/v2\/doc_category?post=587"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/smolagents.org\/ko\/wp-json\/wp\/v2\/doc_tag?post=587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}