{"id":591,"date":"2025-01-11T15:25:02","date_gmt":"2025-01-11T15:25:02","guid":{"rendered":"https:\/\/smolagents.org\/?post_type=docs&#038;p=591"},"modified":"2025-01-11T15:41:26","modified_gmt":"2025-01-11T15:41:26","password":"","slug":"tools-of-smolagents-in-depth-guide","status":"publish","type":"docs","link":"https:\/\/smolagents.org\/ja\/docs\/tools-of-smolagents-in-depth-guide\/","title":{"rendered":"\u30b9\u30e2\u30e9\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u30c4\u30fc\u30eb\u5fb9\u5e95\u30ac\u30a4\u30c9"},"content":{"rendered":"<p>\u3053\u3053\u3067\u306f\u3001\u9ad8\u5ea6\u306a\u30c4\u30fc\u30eb\u306e\u4f7f\u3044\u65b9\u3092\u898b\u3066\u3044\u3053\u3046\u3002<\/p>\n\n\n\n<p>\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u69cb\u7bc9\u3059\u308b\u306e\u304c\u521d\u3081\u3066\u306e\u65b9\u306f\u3001\u307e\u305a\u3001\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3092\u304a\u8aad\u307f\u304f\u3060\u3055\u3044\u3002\u00a0<a href=\"https:\/\/huggingface.co\/docs\/smolagents\/conceptual_guides\/intro_agents\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u7d39\u4ecb<\/a>\u00a0\u305d\u3057\u3066\u00a0<a href=\"https:\/\/huggingface.co\/docs\/smolagents\/guided_tour\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">smolagent\u30ac\u30a4\u30c9\u30c4\u30a2\u30fc<\/a>.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/tutorials\/tools#tools\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u30c4\u30fc\u30eb<\/a>\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/tutorials\/tools#what-is-a-tool-and-how-to-build-one\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u30c4\u30fc\u30eb\u3068\u306f\u4f55\u304b\uff1f<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/tutorials\/tools#share-your-tool-to-the-hub\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u30c4\u30fc\u30eb\u3092\u30cf\u30d6\u306b\u5171\u6709\u3059\u308b<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/tutorials\/tools#import-a-space-as-a-tool\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u7a7a\u9593\u3092\u30c4\u30fc\u30eb\u3068\u3057\u3066\u53d6\u308a\u8fbc\u3080<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/tutorials\/tools#use-langchain-tools\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">LangChain\u30c4\u30fc\u30eb\u3092\u4f7f\u3046<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/tutorials\/tools#manage-your-agents-toolbox\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u30c4\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u3092\u7ba1\u7406\u3059\u308b<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/tutorials\/tools#use-a-collection-of-tools\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u30c4\u30fc\u30eb\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u4f7f\u3046<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/tutorials\/tools#what-is-a-tool-and-how-to-build-one\" target=\"_blank\" rel=\"noopener\"><\/a>\u30c4\u30fc\u30eb\u3068\u306f\u4f55\u304b\uff1f<\/h3>\n\n\n\n<p>\u30c4\u30fc\u30eb\u3068\u306f\u3001LLM\u304c\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u30fb\u30b7\u30b9\u30c6\u30e0\u3067\u4f7f\u7528\u3067\u304d\u308b\u6a5f\u80fd\u306e\u3053\u3068\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<p>\u3057\u304b\u3057\u3001\u305d\u308c\u3092\u4f7f\u3046\u305f\u3081\u306b\u306f\u3001LLM\u306bAPI\u3092\u4e0e\u3048\u308b\u5fc5\u8981\u304c\u3042\u308b\uff1a\u540d\u524d\u3001\u30c4\u30fc\u30eb\u306e\u8aac\u660e\u3001\u5165\u529b\u30bf\u30a4\u30d7\u3068\u8aac\u660e\u3001\u51fa\u529b\u30bf\u30a4\u30d7\u3002<\/p>\n\n\n\n<p>\u3060\u304b\u3089\u6a5f\u80fd\u3060\u3051\u3067\u306f\u3042\u308a\u3048\u306a\u3044\u3002\u30af\u30e9\u30b9\u3067\u3042\u308b\u3079\u304d\u3060\u3002<\/p>\n\n\n\n<p>\u3064\u307e\u308a\u3001\u3053\u306e\u30c4\u30fc\u30eb\u306e\u6838\u5fc3\u306f\u3001LLM\u304c\u305d\u306e\u4f7f\u3044\u65b9\u3092\u7406\u89e3\u3059\u308b\u306e\u306b\u5f79\u7acb\u3064\u30e1\u30bf\u30c7\u30fc\u30bf\u3067\u95a2\u6570\u3092\u30e9\u30c3\u30d7\u3059\u308b\u30af\u30e9\u30b9\u306a\u306e\u3060\u3002<\/p>\n\n\n\n<p>\u3053\u3093\u306a\u611f\u3058\u3060\uff1a<\/p>\n\n\n\n<p>\u30b3\u30d4\u30fc<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">from smolagents import Tool\n\nclass HFModelDownloadsTool(Tool)\uff1a\n    name = \"model_download_counter\"\n    \u8aac\u660e = \"\"\n    \u3053\u308c\u306fHugging Face Hub\u4e0a\u3067\u4e0e\u3048\u3089\u308c\u305f\u30bf\u30b9\u30af\u306e\u6700\u3082\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u305f\u30e2\u30c7\u30eb\u3092\u8fd4\u3059\u30c4\u30fc\u30eb\u3067\u3059\u3002\n    \u30c1\u30a7\u30c3\u30af\u30dd\u30a4\u30f3\u30c8\u306e\u540d\u524d\u3092\u8fd4\u3057\u307e\u3059\u3002\"\"\"\n    inputs = {\n        \"task\"\uff1a{\n            \"type\"\uff1a\"string\": \"\u6587\u5b57\u5217\"\u3001\n            \"description\"\uff1a\u300c\u30bf\u30b9\u30af\u306e\u30ab\u30c6\u30b4\u30ea\uff08\u30c6\u30ad\u30b9\u30c8\u5206\u985e\u3001\u6df1\u3055\u63a8\u5b9a\u306a\u3069\uff09\u3001\n        }\n    }\n    output_type = \"string\"\n\n    def forward(self, task: str)\uff1a\n        from huggingface_hub import list_models\n\n        model = next(iter(list_models(filter=task, sort=\"downloads\", direction=-1)))\n        return model.id\n\nmodel_downloads_tool = HFModelDownloadsTool()<\/pre>\n\n\n\n<p>\u30ab\u30b9\u30bf\u30e0\u30c4\u30fc\u30eb\u306e\u30b5\u30d6\u30af\u30e9\u30b9\u00a0<a href=\"https:\/\/huggingface.co\/docs\/smolagents\/v1.2.2\/en\/reference\/tools#smolagents.Tool\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u5de5\u5177<\/a>\u00a0\u3092\u5b9a\u7fa9\u3057\u3001\u6709\u7528\u306a\u30e1\u30bd\u30c3\u30c9\u3092\u7d99\u627f\u3057\u307e\u3059\u3002\u5b50\u30af\u30e9\u30b9\u3082\u5b9a\u7fa9\u3059\u308b\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5c5e\u6027\u00a0<code>\u540d\u79f0<\/code>\u3053\u308c\u306f\u30c4\u30fc\u30eb\u81ea\u4f53\u306e\u540d\u524d\u306b\u5bfe\u5fdc\u3059\u308b\u3002\u540d\u524d\u306f\u901a\u5e38\u3001\u305d\u306e\u30c4\u30fc\u30eb\u304c\u4f55\u3092\u3059\u308b\u306e\u304b\u3092\u8aac\u660e\u3059\u308b\u3002\u3053\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001\u30bf\u30b9\u30af\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u6570\u304c\u6700\u3082\u591a\u3044\u30e2\u30c7\u30eb\u3092\u8fd4\u3059\u306e\u3067\u3001\u305d\u308c\u3092\u00a0<code>\u30e2\u30c7\u30eb\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30ab\u30a6\u30f3\u30bf\u30fc<\/code>.<\/li>\n\n\n\n<li>\u5c5e\u6027\u00a0<code>\u8a18\u8ff0<\/code>\u00a0\u306f\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u30b7\u30b9\u30c6\u30e0\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u5165\u529b\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30a2\u30f3\u00a0<code>\u30a4\u30f3\u30d7\u30c3\u30c8<\/code>\u00a0\u5c5e\u6027\u3092\u6301\u3064\u8f9e\u66f8\u3067\u3042\u308b\u3002\u00a0<code>\u300c\u30bf\u30a4\u30d7<\/code>\u00a0\u305d\u3057\u3066\u00a0<code>\"\u8aac\u660e\"<\/code>.\u3053\u308c\u306f\u3001Python\u30a4\u30f3\u30bf\u30d7\u30ea\u30bf\u304c\u5165\u529b\u306b\u5bfe\u3057\u3066\u9069\u5207\u306a\u9078\u629e\u3092\u3059\u308b\u305f\u3081\u306e\u60c5\u5831\u3092\u542b\u3093\u3067\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30a2\u30f3\u00a0<code>\u51fa\u529b\u30bf\u30a4\u30d7<\/code>\u00a0\u5c5e\u6027\u3067\u51fa\u529b\u30bf\u30a4\u30d7\u3092\u6307\u5b9a\u3059\u308b\u3002\u51fa\u529b\u30bf\u30a4\u30d7\u306f\u00a0<code>\u30a4\u30f3\u30d7\u30c3\u30c8<\/code>\u00a0\u305d\u3057\u3066\u00a0<code>\u51fa\u529b\u30bf\u30a4\u30d7<\/code>\u00a0\u3067\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002\u00a0<a href=\"https:\/\/docs.pydantic.dev\/latest\/concepts\/json_schema\/#generating-json-schema\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u30d4\u30c0\u30f3\u30c6\u30a3\u30c3\u30af\u5f62\u5f0f<\/a>\u3053\u306e\u3069\u3061\u3089\u304b\u3067\u3042\u308b\uff1a\u00a0<code>~authorized_types()<\/code>.<\/li>\n\n\n\n<li>A\u00a0<code>\u524d\u65b9<\/code>\u00a0\u30e1\u30bd\u30c3\u30c9\u306b\u5b9f\u884c\u3055\u308c\u308b\u63a8\u8ad6\u30b3\u30fc\u30c9\u3092\u683c\u7d0d\u3059\u308b\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u305d\u3057\u3066\u3001\u305d\u308c\u304c\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306b\u4f7f\u308f\u308c\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u3059\u3079\u3066\u306a\u306e\u3060\uff01<\/p>\n\n\n\n<p>\u9053\u5177\u3092\u4f5c\u308b\u306b\u306f\u5225\u306e\u65b9\u6cd5\u304c\u3042\u308b\u3002\u305d\u308c\u306f\u00a0<a href=\"https:\/\/huggingface.co\/docs\/smolagents\/guided_tour\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u30ac\u30a4\u30c9\u30c4\u30a2\u30fc<\/a>\u3092\u4f7f\u3063\u305f\u30c4\u30fc\u30eb\u3092\u5b9f\u88c5\u3057\u305f\u3002\u00a0<code>\u30c4\u30fc\u30eb<\/code>\u00a0\u30c7\u30b3\u30ec\u30fc\u30bf\u30fc\u305d\u306e\u00a0<a href=\"https:\/\/huggingface.co\/docs\/smolagents\/v1.2.2\/en\/reference\/tools#smolagents.tool\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u30c4\u30fc\u30eb()<\/a>\u00a0\u30c7\u30b3\u30ec\u30fc\u30bf\u30fc\u306f\u3001\u30b7\u30f3\u30d7\u30eb\u306a\u30c4\u30fc\u30eb\u3092\u5b9a\u7fa9\u3059\u308b\u306e\u306b\u304a\u52e7\u3081\u306e\u65b9\u6cd5\u3067\u3059\u304c\u3001\u3088\u308a\u660e\u78ba\u306b\u3059\u308b\u305f\u3081\u306b\u30af\u30e9\u30b9\u5185\u3067\u3044\u304f\u3064\u304b\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u305f\u308a\u3001\u8ffd\u52a0\u306e\u30af\u30e9\u30b9\u5c5e\u6027\u3092\u4f7f\u3063\u305f\u308a\u3068\u3001\u3053\u308c\u4ee5\u4e0a\u306e\u3082\u306e\u304c\u5fc5\u8981\u306b\u306a\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u30b5\u30d6\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3067\u30c4\u30fc\u30eb\u3092\u69cb\u7bc9\u3067\u304d\u307e\u3059\u3002\u00a0<a href=\"https:\/\/huggingface.co\/docs\/smolagents\/v1.2.2\/en\/reference\/tools#smolagents.Tool\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u5de5\u5177<\/a>\u00a0\u4e0a\u8a18\u306e\u901a\u308a\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/tutorials\/tools#share-your-tool-to-the-hub\" target=\"_blank\" rel=\"noopener\"><\/a>\u30c4\u30fc\u30eb\u3092\u30cf\u30d6\u306b\u5171\u6709\u3059\u308b<\/h3>\n\n\n\n<p>\u30ab\u30b9\u30bf\u30e0\u30c4\u30fc\u30eb\u3092\u30cf\u30d6\u306b\u5171\u6709\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u547c\u3073\u51fa\u3057\u307e\u3059\u3002\u00a0<a href=\"https:\/\/huggingface.co\/docs\/smolagents\/v1.2.2\/en\/reference\/tools#smolagents.Tool.push_to_hub\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">push_to_hub()<\/a>\u00a0\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002Hub\u4e0a\u306b\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u4f5c\u6210\u3055\u308c\u3001\u8aad\u307f\u53d6\u308a\u6a29\u9650\u306e\u3042\u308b\u30c8\u30fc\u30af\u30f3\u304c\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u30b3\u30d4\u30fc<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">model_downloads_tool.push_to_hub(\"{your_username}\/hf-model-downloads\", token=\"\")<\/pre>\n\n\n\n<p>\u30d7\u30c3\u30b7\u30e5\u30fb\u30c8\u30a5\u30fb\u30cf\u30d6\u304c\u6a5f\u80fd\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30c4\u30fc\u30eb\u304c\u3044\u304f\u3064\u304b\u306e\u30eb\u30fc\u30eb\u3092\u5c0a\u91cd\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u3059\u3079\u3066\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u81ea\u5df1\u5b8c\u7d50\u3057\u3066\u304a\u308a\u3001\u4f8b\u3048\u3070\u3001\u5f15\u6570\u304b\u3089\u5f97\u3089\u308c\u308b\u5909\u6570\u3092\u4f7f\u7528\u3059\u308b\u3002<\/li>\n\n\n\n<li>\u4e0a\u8a18\u306e\u901a\u308a\u3060\u3001\u00a0<strong>\u3059\u3079\u3066\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u306f\u3001\u30c4\u30fc\u30eb\u306e\u95a2\u6570\u5185\u3067\u76f4\u63a5\u5b9a\u7fa9\u3055\u308c\u308b\u3079\u304d\u3067\u3042\u308b\u3002<\/strong>\u3092\u547c\u3073\u51fa\u305d\u3046\u3068\u3059\u308b\u3068\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u3002\u00a0<a href=\"https:\/\/huggingface.co\/docs\/smolagents\/v1.2.2\/en\/reference\/tools#smolagents.Tool.save\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u30bb\u30fc\u30d6<\/a>\u00a0\u307e\u305f\u306f\u00a0<a href=\"https:\/\/huggingface.co\/docs\/smolagents\/v1.2.2\/en\/reference\/tools#smolagents.Tool.push_to_hub\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">push_to_hub()<\/a>\u00a0\u3092\u30ab\u30b9\u30bf\u30e0\u30c4\u30fc\u30eb\u3067\u4f7f\u7528\u3059\u308b\u3002<\/li>\n\n\n\n<li>\u3092\u30b5\u30d6\u30af\u30e9\u30b9\u5316\u3057\u305f\u5834\u5408\u00a0<code>__init__<\/code>\u00a0\u30e1\u30bd\u30c3\u30c9\u306b\u6e21\u3059\u5f15\u6570\u306f\u00a0<code>\u81ea\u5df1<\/code>.\u3053\u308c\u306f\u3001\u7279\u5b9a\u306e\u30c4\u30fc\u30eb\u30fb\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u521d\u671f\u5316\u6642\u306b\u8a2d\u5b9a\u3055\u308c\u305f\u5f15\u6570\u3092\u8ffd\u8de1\u3059\u308b\u306e\u304c\u96e3\u3057\u304f\u3001\u30cf\u30d6\u306b\u9069\u5207\u306b\u5171\u6709\u3067\u304d\u306a\u3044\u304b\u3089\u3060\u3002\u305d\u3057\u3066\u3068\u306b\u304b\u304f\u3001\u7279\u5b9a\u306e\u30af\u30e9\u30b9\u3092\u4f5c\u308b\u3068\u3044\u3046\u30a2\u30a4\u30c7\u30a2\u306f\u3001\u30cf\u30fc\u30c9\u30b3\u30fc\u30c9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3082\u306e\u306b\u306f\u3059\u3067\u306b\u30af\u30e9\u30b9\u5c5e\u6027\u3092\u8a2d\u5b9a\u3067\u304d\u308b\u3068\u3044\u3046\u3053\u3068\u3060\uff08\u5358\u306b\u00a0<code>your_variable=(...)<\/code>\u00a0\u306e\u76f4\u4e0b\u306b\u3042\u308b\u3002\u00a0<code>class YourTool(Tool)\uff1a<\/code>\u00a0\u884c)\u3002\u3082\u3061\u308d\u3093\u3001\u30af\u30e9\u30b9\u5c5e\u6027\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u306f\u53ef\u80fd\u3060\u3002\u00a0<code>self.your_variable<\/code>.<\/li>\n<\/ul>\n\n\n\n<p>\u30c4\u30fc\u30eb\u304c\u30cf\u30d6\u306b\u30d7\u30c3\u30b7\u30e5\u3055\u308c\u308b\u3068\u3001\u305d\u308c\u3092\u8996\u899a\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002\u00a0<a href=\"https:\/\/huggingface.co\/spaces\/m-ric\/hf-model-downloads\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u3053\u3053\u306b<\/a>\u00a0\u306f\u00a0<code>\u30e2\u30c7\u30eb\u30fb\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30fb\u30c4\u30fc\u30eb<\/code>\u00a0\u79c1\u304c\u30d7\u30c3\u30b7\u30e5\u3057\u305f\u3002\u7d20\u6674\u3089\u3057\u3044\u30b0\u30e9\u30c7\u30a3\u30aa\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u6301\u3063\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<p>\u30c4\u30fc\u30eb\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u6f5c\u3063\u3066\u307f\u308b\u3068\u3001\u30c4\u30fc\u30eb\u306e\u30ed\u30b8\u30c3\u30af\u306f\u3059\u3079\u3066\u00a0<a href=\"https:\/\/huggingface.co\/spaces\/m-ric\/hf-model-downloads\/blob\/main\/tool.py\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u30c4\u30fc\u30eb.py<\/a>.\u305d\u3053\u3067\u3001\u4ed6\u306e\u4eba\u304c\u5171\u6709\u3059\u308b\u30c4\u30fc\u30eb\u3092\u691c\u67fb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n\n\n\n<p>\u305d\u308c\u304b\u3089\u00a0<a href=\"https:\/\/huggingface.co\/docs\/smolagents\/v1.2.2\/en\/reference\/tools#smolagents.load_tool\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u30ed\u30fc\u30c9\u30c4\u30fc\u30eb()<\/a>\u00a0\u307e\u305f\u306f\u00a0<a href=\"https:\/\/huggingface.co\/docs\/smolagents\/v1.2.2\/en\/reference\/tools#smolagents.Tool.from_hub\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u30d5\u30ed\u30e0\u30cf\u30d6()<\/a>\u00a0\u306b\u6e21\u3059\u3002\u00a0<code>\u7528\u5177<\/code>\u00a0\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u6e21\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30c4\u30fc\u30eb\u306e\u5b9f\u884c\u306f\u30ab\u30b9\u30bf\u30e0\u30b3\u30fc\u30c9\u306e\u5b9f\u884c\u3092\u610f\u5473\u3059\u308b\u306e\u3067\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u4fe1\u983c\u3067\u304d\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u00a0<code>trust_remote_code=\u771f<\/code>\u00a0\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u30cf\u30d6\u304b\u3089\u30c4\u30fc\u30eb\u3092\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30b3\u30d4\u30fc<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">from smolagents import load_tool, CodeAgent\n\nmodel_download_tool = load_tool(\n    \"{your_username}\/hf-model-downloads\"\u3001\n    trust_remote_code=True\n)<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/tutorials\/tools#import-a-space-as-a-tool\" target=\"_blank\" rel=\"noopener\"><\/a>\u7a7a\u9593\u3092\u30c4\u30fc\u30eb\u3068\u3057\u3066\u53d6\u308a\u8fbc\u3080<\/h3>\n\n\n\n<p>\u3092\u4f7f\u7528\u3057\u3066\u3001\u30cf\u30d6\u304b\u3089\u30c4\u30fc\u30eb\u3068\u3057\u3066\u306e\u30b9\u30da\u30fc\u30b9\u3092\u76f4\u63a5\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u00a0<a href=\"https:\/\/huggingface.co\/docs\/smolagents\/v1.2.2\/en\/reference\/tools#smolagents.Tool.from_space\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u30c4\u30fc\u30eb.from_space()<\/a>\u00a0\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\uff01<\/p>\n\n\n\n<p>\u5fc5\u8981\u306a\u306e\u306f\u3001\u30cf\u30d6\u4e0a\u306e\u30b9\u30da\u30fc\u30b9\u306eID\u3068\u540d\u524d\u3001\u305d\u3057\u3066\u305d\u306e\u30c4\u30fc\u30eb\u304c\u4f55\u3092\u3059\u308b\u306e\u304b\u3092\u7406\u89e3\u3059\u308b\u306e\u306b\u5f79\u7acb\u3064\u8aac\u660e\u3060\u3051\u3060\u3002\u30dc\u30f3\u30cd\u30c3\u30c8\u306e\u4e0b\u3067\u306f\u00a0<a href=\"https:\/\/pypi.org\/project\/gradio-client\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\"><code>\u30b0\u30e9\u30c7\u30a3\u30aa\u30fb\u30af\u30e9\u30a4\u30a2\u30f3\u30c8<\/code><\/a>\u00a0\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3057\u3066\u30b9\u30da\u30fc\u30b9\u3092\u547c\u3073\u51fa\u3059\u3002<\/p>\n\n\n\n<p>\u4f8b\u3048\u3070\u00a0<a href=\"https:\/\/huggingface.co\/black-forest-labs\/FLUX.1-dev\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">FLUX.1-dev<\/a>\u00a0\u30cf\u30d6\u306e\u30b9\u30da\u30fc\u30b9\u3092\u4f7f\u3044\u3001\u753b\u50cf\u3092\u751f\u6210\u3059\u308b\u3002<\/p>\n\n\n\n<p>\u30b3\u30d4\u30fc<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">image_generation_tool = Tool.from_space(\n    \"black-forest-labs\/FLUX.1-schnell\"\u3001\n    name=\"image_generator\"\u3001\n    \u8aac\u660e=\"\u30d7\u30ed\u30f3\u30d7\u30c8\u304b\u3089\u753b\u50cf\u3092\u751f\u6210\"\n)\n\nimage_generation_tool(\"A sunny beach\")<\/pre>\n\n\n\n<p>\u305d\u3057\u3066\u3001\u307b\u3089\u3001\u3053\u308c\u304c\u3042\u306a\u305f\u306e\u753b\u50cf\u3067\u3059\uff01\ud83c\udfd6\ufe0f<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/smolagents.org\/wp-content\/uploads\/2025\/01\/sunny_beach.webp\" alt=\"\" class=\"wp-image-593\" style=\"width:1176px;height:auto\" srcset=\"https:\/\/smolagents.org\/wp-content\/uploads\/2025\/01\/sunny_beach.webp 1024w, https:\/\/smolagents.org\/wp-content\/uploads\/2025\/01\/sunny_beach-300x300.webp 300w, https:\/\/smolagents.org\/wp-content\/uploads\/2025\/01\/sunny_beach-150x150.webp 150w, https:\/\/smolagents.org\/wp-content\/uploads\/2025\/01\/sunny_beach-768x768.webp 768w, https:\/\/smolagents.org\/wp-content\/uploads\/2025\/01\/sunny_beach-12x12.webp 12w, https:\/\/smolagents.org\/wp-content\/uploads\/2025\/01\/sunny_beach-360x360.webp 360w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u305d\u3046\u3059\u308c\u3070\u3001\u4ed6\u306e\u30c4\u30fc\u30eb\u3068\u540c\u3058\u3088\u3046\u306b\u3053\u306e\u30c4\u30fc\u30eb\u3092\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u3002\u4f8b\u3048\u3070\u3001\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u6539\u826f\u3057\u3066\u307f\u3088\u3046&nbsp;<code>\u5b87\u5b99\u670d\u3092\u7740\u305f\u30a6\u30b5\u30ae<\/code>&nbsp;\u305d\u3057\u3066\u305d\u306e\u753b\u50cf\u3092\u751f\u6210\u3059\u308b\u3002<\/p>\n\n\n\n<p>\u30b3\u30d4\u30fc<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">from smolagents import CodeAgent, HfApiModel\n\nmodel = HfApiModel(\"Qwen\/Qwen2.5-Coder-32B-Instruct\")\nagent = CodeAgent(tools=[image_generation_tool], model=model)\n\nagent.run(\n    \"\u3053\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u6539\u5584\u3057\u3001\u305d\u306e\u753b\u50cf\u3092\u751f\u6210\u3059\u308b\u3002\", prompt='\u5b87\u5b99\u670d\u3092\u7740\u305f\u30a6\u30b5\u30ae'\n)<\/pre>\n\n\n\n<p>\u30b3\u30d4\u30fc<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">=== \u8adc\u5831\u54e1\u306e\u8003\u3048\uff1a\nimproved_prompt\u306f\u3001\"\u660e\u308b\u3044\u30aa\u30ec\u30f3\u30b8\u8272\u306e\u5915\u713c\u3051\u306e\u4e0b\u3001\u6708\u306e\u8868\u9762\u3067\u3001\u660e\u308b\u3044\u30d6\u30eb\u30fc\u306e\u5b87\u5b99\u670d\u3092\u7740\u305f\u30a6\u30b5\u30ae\u3001\u80cc\u666f\u306b\u306f\u5730\u7403\u304c\u898b\u3048\u308b \"\u3067\u3042\u308b\u3002\n\n\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u6539\u826f\u3057\u305f\u306e\u3067\u3001\u753b\u50cf\u751f\u6210\u30c4\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u3001\u3053\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u57fa\u3065\u3044\u305f\u753b\u50cf\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002\n&gt;&gt;&gt; \u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306f\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\uff1a\nimage = image_generator(prompt=\"bright blue space suit wearing rabbit, under the surface of the moon, bright orange sunset, with the Earth visible in the background\")\nfinal_answer(image)<\/pre>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/smolagents.org\/wp-content\/uploads\/2025\/01\/rabbit_spacesuit_flux.webp\" alt=\"\" class=\"wp-image-592\" style=\"width:1178px;height:auto\" srcset=\"https:\/\/smolagents.org\/wp-content\/uploads\/2025\/01\/rabbit_spacesuit_flux.webp 1024w, https:\/\/smolagents.org\/wp-content\/uploads\/2025\/01\/rabbit_spacesuit_flux-300x300.webp 300w, https:\/\/smolagents.org\/wp-content\/uploads\/2025\/01\/rabbit_spacesuit_flux-150x150.webp 150w, https:\/\/smolagents.org\/wp-content\/uploads\/2025\/01\/rabbit_spacesuit_flux-768x768.webp 768w, https:\/\/smolagents.org\/wp-content\/uploads\/2025\/01\/rabbit_spacesuit_flux-12x12.webp 12w, https:\/\/smolagents.org\/wp-content\/uploads\/2025\/01\/rabbit_spacesuit_flux-360x360.webp 360w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u306a\u3093\u3066\u30af\u30fc\u30eb\u306a\u3093\u3060\ud83e\udd29<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/tutorials\/tools#use-langchain-tools\" target=\"_blank\" rel=\"noopener\"><\/a>LangChain\u30c4\u30fc\u30eb\u3092\u4f7f\u3046<\/h3>\n\n\n\n<p>\u79c1\u305f\u3061\u306fLangchain\u304c\u5927\u597d\u304d\u3067\u3001\u975e\u5e38\u306b\u9b45\u529b\u7684\u306a\u30c4\u30fc\u30eb\u7fa4\u3092\u6301\u3063\u3066\u3044\u308b\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002LangChain\u304b\u3089\u30c4\u30fc\u30eb\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u306b\u306f&nbsp;<code>from_langchain()<\/code>&nbsp;\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3002<\/p>\n\n\n\n<p>\u3053\u3053\u3067\u306f\u3001LangChain\u30a6\u30a7\u30d6\u691c\u7d22\u30c4\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u30a4\u30f3\u30c8\u30ed\u306e\u691c\u7d22\u7d50\u679c\u3092\u518d\u73fe\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u3053\u306e\u30c4\u30fc\u30eb\u306b\u306f&nbsp;<code>pip install langchain google-search-results -q<\/code>&nbsp;\u3092\u6b63\u3057\u304f\u52d5\u4f5c\u3055\u305b\u308b\u3002<\/p>\n\n\n\n<p>\u30b3\u30d4\u30fc<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">from langchain.agents import load_tools\n\nsearch_tool = Tool.from_langchain(load_tools([\"serpapi\"])[0])\n\nagent = CodeAgent(tools=[search_tool], model=model)\n\nagent.run(\"Attention is All You Need? \"\u3067\u63d0\u6848\u3055\u308c\u305f\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306e\u30a8\u30f3\u30b3\u30fc\u30c0\u3068\u6bd4\u8f03\u3057\u3066\u3001BERT\u30d9\u30fc\u30b9\u30a8\u30f3\u30b3\u30fc\u30c0\u306b\u306f\u3044\u304f\u3064\u306e\u30d6\u30ed\u30c3\u30af\uff08\u30ec\u30a4\u30e4\u3068\u3082\u8868\u8a18\u3055\u308c\u308b\uff09\u304c\u3042\u308a\u307e\u3059\u304b\uff1f\")<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/tutorials\/tools#manage-your-agents-toolbox\" target=\"_blank\" rel=\"noopener\"><\/a>\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u30c4\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u3092\u7ba1\u7406\u3059\u308b<\/h3>\n\n\n\n<p>\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u30c4\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u306f\u3001\u6b21\u306e\u5c5e\u6027\u3067\u30c4\u30fc\u30eb\u3092\u8ffd\u52a0\u307e\u305f\u306f\u4ea4\u63db\u3059\u308b\u3053\u3068\u3067\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002&nbsp;<code>\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u30c4\u30fc\u30eb<\/code>\u6a19\u6e96\u7684\u306a\u8f9e\u66f8\u3060\u304b\u3089\u3060\u3002<\/p>\n\n\n\n<p>\u3092\u8ffd\u52a0\u3057\u3088\u3046\u3002&nbsp;<code>\u30e2\u30c7\u30eb\u30fb\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30fb\u30c4\u30fc\u30eb<\/code>&nbsp;\u3092\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30c4\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u306e\u307f\u3067\u521d\u671f\u5316\u3055\u308c\u305f\u65e2\u5b58\u306e\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30b3\u30d4\u30fc<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">from smolagents import HfApiModel\n\nmodel = HfApiModel(\"Qwen\/Qwen2.5-Coder-32B-Instruct\")\n\nagent = CodeAgent(tools=[], model=model, add_base_tools=True)\nagent.tools[model_download_tool.name] = model_download_tool<\/pre>\n\n\n\n<p>\u3053\u308c\u3067\u65b0\u3057\u3044\u30c4\u30fc\u30eb\u3092\u6d3b\u7528\u3067\u304d\u308b\uff1a<\/p>\n\n\n\n<p>\u30b3\u30d4\u30fc<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">agent.run(\n    \"Hugging Face Hub\u306e'text-to-video'\u30bf\u30b9\u30af\u3067\u6700\u3082\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u6570\u304c\u591a\u3044\u30e2\u30c7\u30eb\u306e\u540d\u524d\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002\u4f46\u3057\u3001\u6587\u5b57\u306f\u9006\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\"\n)<\/pre>\n\n\n\n<p>\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306b\u3042\u307e\u308a\u591a\u304f\u306e\u30c4\u30fc\u30eb\u3092\u8ffd\u52a0\u3057\u306a\u3044\u3088\u3046\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\uff1a\u3053\u308c\u306f\u5f31\u3044LLM\u30a8\u30f3\u30b8\u30f3\u3092\u5727\u5012\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/huggingface.co\/docs\/smolagents\/tutorials\/tools#use-a-collection-of-tools\" target=\"_blank\" rel=\"noopener\"><\/a>\u30c4\u30fc\u30eb\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u4f7f\u3046<\/h3>\n\n\n\n<p>ToolCollection \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f7f\u7528\u3057\u3001\u4f7f\u7528\u3057\u305f\u3044\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u30b9\u30e9\u30c3\u30b0\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u30c4\u30fc\u30eb\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305d\u3057\u3066\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u521d\u671f\u5316\u3059\u308b\u305f\u3081\u306b\u3001\u305d\u308c\u3089\u3092\u30ea\u30b9\u30c8\u3068\u3057\u3066\u6e21\u3057\u3001\u4f7f\u7528\u3092\u958b\u59cb\u3057\u307e\u3059\uff01<\/p>\n\n\n\n<p>\u30b3\u30d4\u30fc<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">from smolagents import ToolCollection, CodeAgent\n\nimage_tool_collection = ToolCollection(\n    collection_slug=\"huggingface-tools\/diffusion-tools-6630bb19a942c2306a2cdb6f\",\n    token=\"\"\n)\nagent = CodeAgent(tools=[*image_tool_collection.tools], model=model, add_base_tools=True)\n\nagent.run(\"\u5ddd\u3068\u6e56\u306e\u7d75\u3092\u63cf\u3044\u3066\u304f\u3060\u3055\u3044\u3002\")<\/pre>\n\n\n\n<p>\u8d77\u52d5\u3092\u901f\u304f\u3059\u308b\u305f\u3081\u3001\u30c4\u30fc\u30eb\u306f\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304b\u3089\u547c\u3073\u51fa\u3055\u308c\u305f\u5834\u5408\u306e\u307f\u30ed\u30fc\u30c9\u3055\u308c\u308b\u3002<\/p>","protected":false},"excerpt":{"rendered":"<p>Here, we\u2019re going to see advanced tool usage. If you\u2019re new to building agents, make sure to first read the\u00a0intro to agents\u00a0and the\u00a0guided tour of smolagents. What is a tool, and how to build one? A tool is mostly a function that an LLM can use in an agentic system. But to use it, the&#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":[8],"doc_tag":[],"class_list":["post-591","docs","type-docs","status-publish","hentry","doc_category-tutorials"],"year_month":"2026-04","word_count":1431,"total_views":"5891","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"smolagents","author_nicename":"wd-gstargmail-com","author_url":"https:\/\/smolagents.org\/ja\/author\/wd-gstargmail-com\/"},"doc_category_info":[{"term_name":"Tutorials","term_url":"https:\/\/smolagents.org\/ja\/docs-category\/tutorials\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/smolagents.org\/ja\/wp-json\/wp\/v2\/docs\/591","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smolagents.org\/ja\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/smolagents.org\/ja\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/smolagents.org\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/smolagents.org\/ja\/wp-json\/wp\/v2\/comments?post=591"}],"version-history":[{"count":1,"href":"https:\/\/smolagents.org\/ja\/wp-json\/wp\/v2\/docs\/591\/revisions"}],"predecessor-version":[{"id":594,"href":"https:\/\/smolagents.org\/ja\/wp-json\/wp\/v2\/docs\/591\/revisions\/594"}],"wp:attachment":[{"href":"https:\/\/smolagents.org\/ja\/wp-json\/wp\/v2\/media?parent=591"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/smolagents.org\/ja\/wp-json\/wp\/v2\/doc_category?post=591"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/smolagents.org\/ja\/wp-json\/wp\/v2\/doc_tag?post=591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}