{"id":7653,"date":"2026-02-13T14:58:50","date_gmt":"2026-02-13T05:58:50","guid":{"rendered":"https:\/\/blog.since2020.jp\/?p=7653"},"modified":"2026-02-13T15:39:59","modified_gmt":"2026-02-13T06:39:59","slug":"whatis-googleadk-build-in-code-executor","status":"publish","type":"post","link":"https:\/\/since2020.jp\/media\/whatis-googleadk-build-in-code-executor\/","title":{"rendered":"GoogleADK\u306e\u300cBuild-in Code Executor\u300d\u3063\u3066\u4f55\uff1f"},"content":{"rendered":"\n<p>Google ADK\u306e\u300cBuilt-in Code Executor\u300d\u306f\u3001AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u81ea\u52d5\u3067\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3001\u8fc5\u901f\u306b\u7d50\u679c\u3092\u53cd\u6620\u3055\u305b\u308b\u6a5f\u80fd\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u53cd\u5fdc\u901f\u5ea6\u304c\u5411\u4e0a\u3057\u3001\u52b9\u7387\u7684\u306a\u958b\u767a\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n<h2>\u306f\u3058\u3081\u306b<\/h2>\n<p><span style=\"font-size: 14pt\">ADK\uff08Agent Development Kit\uff09\u306f\u3001AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u69cb\u7bc9\u3001\u5c55\u958b\u3001\u8a55\u4fa1\u3059\u308b\u305f\u3081\u306e\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u30bb\u30c3\u30c8\u3067\u3042\u308a\u3001\u305d\u306e\u4e2d\u306e\u300cBuilt-in Code Executor\u300d\u306f\u7279\u306b\u6ce8\u76ee\u306e\u6a5f\u80fd\u3067\u3059\u3002\u3053\u306e\u6a5f\u80fd\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306f\u751f\u6210\u3057\u305f\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3001\u5b9f\u969b\u306e\u7d50\u679c\u3092\u57fa\u306b\u8fc5\u901f\u306b\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u3092\u8fd4\u3059\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/span><!-- notionvc: 65cbe96f-219d-4971-987f-c79b6caad088 --><\/p>\n\n<h2>GoogleADK\u3068\u306f<\/h2>\n<p><span style=\"font-size: 14pt\">Google\u306eADK\uff08Agent Development Kit\uff09\u306f\u3001AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u958b\u767a\u306b\u7279\u5316\u3057\u305f\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002\u958b\u767a\u8005\u306f\u3053\u306e\u30ad\u30c3\u30c8\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306b\u5fc5\u8981\u306a\u30c4\u30fc\u30eb\u3084\u72b6\u614b\u7ba1\u7406\u3001API\u547c\u3073\u51fa\u3057\u3092\u7c21\u5358\u306b\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><!-- notionvc: cfa984fe-fd16-4dcb-bad1-5c5310470742 --><\/p>\n\n<h2>Built-in Code Executor\u3068\u306f<\/h2>\n<p><span style=\"font-size: 14pt\">\u300cBuilt-in Code Executor\u300d\u306f\u3001Google ADK\u306e\u4e00\u90e8\u3068\u3057\u3066\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u81ea\u52d5\u7684\u306b\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u6a5f\u80fd\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304cPython\u306a\u3069\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3001\u305d\u306e\u7d50\u679c\u3092\u5143\u306b\u6b21\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u6c7a\u5b9a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\u4e3b\u306bGemini 2.0\u4ee5\u4e0a\u306eAI\u30e2\u30c7\u30eb\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002<\/span><!-- notionvc: e444a9fc-d7da-4892-bcac-d5cac57046da --><\/p>\n\n<h2>\u4f7f\u7528\u4f8b<\/h2>\n<p><span style=\"font-size: 14pt\">\u4ee5\u4e0b\u306f\u3001Google ADK\u3092\u5229\u7528\u3057\u3066Python\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u3067\u3059\uff1a<\/span><\/p>\r\n<pre><code class=\"language-python\">from google.adk.agentsimport LlmAgentfrom google.adk.code_executorsimport BuiltInCodeExecutor\r\n\r\nagent = LlmAgent(\r\n    model=\"gemini-2.0-flash\",\r\n    name=\"code-executor-agent\",\r\n    instruction=\"\u8a08\u7b97\u5f0f\u3092\u5165\u529b\u3057\u305f\u3089Python\u3067\u8a08\u7b97\u3057\u3001\u7d50\u679c\u3092\u8fd4\u3059\u3002\",\r\n    code_executor=BuiltInCodeExecutor()\r\n)\r\n<\/code><\/pre>\r\n<p><span style=\"font-size: 14pt\">\u3053\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001<code>LlmAgent<\/code>\u306b<code>BuiltInCodeExecutor<\/code>\u3092\u7d44\u307f\u8fbc\u307f\u3001Python\u3067\u8a08\u7b97\u51e6\u7406\u3092\u884c\u3044\u307e\u3059\u3002<\/span><\/p>\r\n<p><!-- notionvc: e82eee4f-a2b8-4b90-8ed7-56d9729b0251 --><\/p>\n\n<h2>\u5229\u70b9\u3068\u8ab2\u984c\u70b9<\/h2>\n<p><span style=\"font-size: 18pt\"><strong>\u5229\u70b9<\/strong>\uff1a<\/span><\/p>\r\n<p><span style=\"font-size: 14pt\"><strong>1.\u5373\u6642\u306e\u7d50\u679c\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u3092\u63d0\u4f9b\u3067\u304d\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u53cd\u5fdc\u6027\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/strong><\/span><\/p>\r\n<p style=\"padding-left: 40px\"><span style=\"font-size: 14pt\">Built-in Code Executor\u306f\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3001\u305d\u306e\u7d50\u679c\u3092\u5373\u5ea7\u306b\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u305f\u3081\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u53cd\u5fdc\u901f\u5ea6\u304c\u5927\u5e45\u306b\u5411\u4e0a\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u8fc5\u901f\u306b\u5bfe\u5fdc\u3067\u304d\u3001\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u52b9\u7387\u304c\u826f\u304f\u306a\u308a\u307e\u3059\u3002<\/span><\/p>\r\n<p><strong><span style=\"font-size: 14pt\">2.<\/span><span style=\"font-size: 14pt\">\u30c7\u30d0\u30c3\u30b0\u3084\u30c6\u30b9\u30c8\u304c\u3057\u3084\u3059\u304f\u3001\u958b\u767a\u8005\u306e\u8ca0\u62c5\u304c\u6e1b\u308a\u307e\u3059\u3002<\/span><\/strong><\/p>\r\n<p style=\"padding-left: 40px\"><span style=\"font-size: 14pt\">\u30b3\u30fc\u30c9\u5b9f\u884c\u306e\u7d50\u679c\u304c\u5373\u5ea7\u306b\u53cd\u6620\u3055\u308c\u308b\u305f\u3081\u3001\u30c7\u30d0\u30c3\u30b0\u3084\u30c6\u30b9\u30c8\u304c\u5bb9\u6613\u306b\u884c\u3048\u307e\u3059\u3002\u958b\u767a\u8005\u306f\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u610f\u56f3\u3057\u305f\u901a\u308a\u306b\u52d5\u4f5c\u3057\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3057\u3084\u3059\u304f\u3001\u554f\u984c\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u3067\u3082\u8fc5\u901f\u306b\u5bfe\u5fdc\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\r\n<p><span style=\"font-size: 18pt\"><strong>\u8ab2\u984c\u70b9<\/strong>\uff1a<\/span><\/p>\r\n<p><strong><span style=\"font-size: 14pt\">1.\u4f7f\u7528\u3059\u308b\u74b0\u5883\u306b\u306f\u5236\u9650\u304c\u3042\u308a\u3001\u4f8b\u3048\u3070\u30b3\u30fc\u30c9\u306e\u5b9f\u884c\u6642\u9593\u304c\u6700\u592730\u79d2\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u306a\u3069\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/strong><\/p>\r\n<p style=\"padding-left: 40px\"><span style=\"font-size: 14pt\">Built-in Code Executor\u306f\u3001\u30ea\u30bd\u30fc\u30b9\u306e\u7ba1\u7406\u3092\u52b9\u7387\u7684\u306b\u884c\u3046\u305f\u3081\u3001\u5b9f\u884c\u3067\u304d\u308b\u30b3\u30fc\u30c9\u306e\u51e6\u7406\u6642\u9593\u304c\u6700\u592730\u79d2\u306b\u5236\u9650\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u5236\u9650\u304c\u3042\u308b\u305f\u3081\u3001\u9577\u6642\u9593\u304b\u304b\u308b\u51e6\u7406\u3084\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u6271\u3046\u30bf\u30b9\u30af\u306b\u306f\u5411\u3044\u3066\u3044\u307e\u305b\u3093\u3002<\/span><\/p>\r\n<p><strong><span style=\"font-size: 14pt\">2.\u5927\u898f\u6a21\u306a\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3084\u8907\u96d1\u306a\u51e6\u7406\u306b\u306f\u3001\u5916\u90e8\u306e\u5b9f\u884c\u74b0\u5883\uff08\u4f8b\uff1aGKE\u3084Agent Engine\uff09\u304c\u9069\u3057\u3066\u3044\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/strong><\/p>\r\n<p style=\"padding-left: 40px\"><span style=\"font-size: 14pt\">Built-in Code Executor\u306f\u3001\u3042\u304f\u307e\u3067\u8efd\u91cf\u3067\u7c21\u5358\u306a\u51e6\u7406\u5411\u3051\u306b\u8a2d\u8a08\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u30c7\u30fc\u30bf\u91cf\u304c\u81a8\u5927\u3067\u3042\u3063\u305f\u308a\u3001\u8907\u96d1\u306a\u8a08\u7b97\u304c\u5fc5\u8981\u306a\u5834\u5408\u306b\u306f\u3001\u3088\u308a\u30b9\u30b1\u30fc\u30e9\u30d6\u30eb\u3067\u5f37\u529b\u306a\u5916\u90e8\u74b0\u5883\uff08GKE\u3084Agent Engine\uff09\u304c\u5fc5\u8981\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/p>\r\n<p><!-- notionvc: e7a92c26-fd4a-47d9-bdc5-efe9f139dfc2 --><\/p>\n\n<h2>\u5c06\u6765\u5c55\u671b<\/h2>\n<p><span style=\"font-size: 14pt\">\u4eca\u5f8c\u306f\u3001\u3088\u308a\u591a\u304f\u306eAI\u30e2\u30c7\u30eb\u306b\u5bfe\u5fdc\u3057\u305f\u9ad8\u5ea6\u306a\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u6c42\u3081\u3089\u308c\u308b\u4e2d\u3067\u3001Built-in Code Executor\u306f\u305d\u306e\u4e00\u90e8\u3068\u3057\u3066\u5229\u7528\u3055\u308c\u308b\u3053\u3068\u304c\u5897\u3048\u3066\u3044\u304f\u3067\u3057\u3087\u3046\u3002\u7279\u306b\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u9593\u3067\u306e\u5354\u8abf\u4f5c\u696d\u3084\u3001\u5927\u898f\u6a21\u306a\u30c7\u30fc\u30bf\u51e6\u7406\u3092\u4f34\u3046\u30b1\u30fc\u30b9\u3067\u306e\u6d3b\u8e8d\u304c\u671f\u5f85\u3055\u308c\u307e\u3059\u3002<\/span><!-- notionvc: ac96e4ce-3b41-4dbc-b922-0ec9e66a5c7b --><\/p>\n\n<h2>\u307e\u3068\u3081<\/h2>\n<p><span style=\"font-size: 14pt\">\u300cGoogle ADK\u306eBuilt-in Code Executor\u300d\u3092\u5229\u7528\u3059\u308c\u3070\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306f\u81ea\u5206\u3067\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3001\u5373\u5ea7\u306b\u7d50\u679c\u3092\u51fa\u529b\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u80fd\u529b\u304c\u98db\u8e8d\u7684\u306b\u5411\u4e0a\u3057\u3001\u3055\u307e\u3056\u307e\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u6d3b\u7528\u3055\u308c\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002<\/span><!-- notionvc: 8ac177b7-5d15-47c5-9d29-07e61829d0b4 --><\/p>\n\n<h2>\u53c2\u8003\u6587\u732e<\/h2>\n<p><a href=\"http:\/\/[https:\/\/adk-labs.github.io\/adk-docs\/tools\/built-in-tools\/](https:\/\/adk-labs.github.io\/adk-docs\/tools\/built-in-tools\/)\">http:\/\/[https:\/\/adk-labs.github.io\/adk-docs\/tools\/built-in-tools\/](https:\/\/adk-labs.github.io\/adk-docs\/tools\/built-in-tools\/)<\/a><\/p>\r\n<p><a href=\"http:\/\/[https:\/\/google.github.io\/adk-docs\/get-started\/quickstart\/?utm_source=chatgpt.com](https:\/\/google.github.io\/adk-docs\/get-started\/quickstart\/?utm_source=chatgpt.com)\">http:\/\/[https:\/\/google.github.io\/adk-docs\/get-started\/quickstart\/?utm_source=chatgpt.com](https:\/\/google.github.io\/adk-docs\/get-started\/quickstart\/?utm_source=chatgpt.com)<\/a><\/p>\r\n<p><a href=\"http:\/\/[https:\/\/google.github.io\/adk-docs\/integrations\/gke-code-executor\/](https:\/\/google.github.io\/adk-docs\/integrations\/gke-code-executor\/)\">http:\/\/[https:\/\/google.github.io\/adk-docs\/integrations\/gke-code-executor\/](https:\/\/google.github.io\/adk-docs\/integrations\/gke-code-executor\/)<\/a><\/p>\r\n<p><a href=\"http:\/\/[https:\/\/google.github.io\/adk-docs\/integrations\/code-exec-agent-engine\/](https:\/\/google.github.io\/adk-docs\/integrations\/code-exec-agent-engine\/)\">http:\/\/[https:\/\/google.github.io\/adk-docs\/integrations\/code-exec-agent-engine\/](https:\/\/google.github.io\/adk-docs\/integrations\/code-exec-agent-engine\/)<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>Google ADK\u306e\u300cBuilt-in Code Executor\u300d\u306f\u3001AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u81ea\u52d5\u3067\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3001\u8fc5\u901f\u306b\u7d50\u679c\u3092\u53cd\u6620\u3055\u305b\u308b\u6a5f\u80fd\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u53cd\u5fdc\u901f\u5ea6\u304c\u5411\u4e0a\u3057\u3001\u52b9\u7387\u7684\u306a\u958b\u767a\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002 \u306f\u3058\u3081\u306b ADK [&hellip;]<\/p>\n","protected":false},"author":27,"featured_media":7654,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","swell_btn_cv_data":"","footnotes":"","_wp_rev_ctl_limit":""},"categories":[1249],"tags":[1233,1234,1232,628],"class_list":["post-7653","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledge","tag-agent-development-kit","tag-built-in-code-executor","tag-googleadk","tag-628"],"_links":{"self":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts\/7653","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/comments?post=7653"}],"version-history":[{"count":1,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts\/7653\/revisions"}],"predecessor-version":[{"id":7657,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts\/7653\/revisions\/7657"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/media\/7654"}],"wp:attachment":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/media?parent=7653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/categories?post=7653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/tags?post=7653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}