{"id":678735,"date":"2026-02-06T09:28:23","date_gmt":"2026-02-06T08:28:23","guid":{"rendered":"https:\/\/blog.jetbrains.com\/?post_type=ai&#038;p=678735"},"modified":"2026-02-06T09:28:30","modified_gmt":"2026-02-06T08:28:30","slug":"ai-kotlin-2","status":"publish","type":"ai","link":"https:\/\/blog.jetbrains.com\/ja\/ai\/2026\/02\/ai-kotlin-2\/","title":{"rendered":"AI \u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092 Kotlin \u3067\u69cb\u7bc9\u3059\u308b \uff0d \u7b2c 2 \u56de\uff1a\u30c4\u30fc\u30eb\u306e\u6df1\u6398\u308a\u00a0"},"content":{"rendered":"<p><a href=\"https:\/\/blog.jetbrains.com\/ja\/ai\/2026\/02\/ai-kotlin-1\/\">\u524d\u56de\u306e\u8a18\u4e8b<\/a>\u3067\u306f\u3001\u30ea\u30b9\u30c8\u3001\u8aad\u307f\u53d6\u308a\u3001\u66f8\u304d\u8fbc\u307f\u3001\u304a\u3088\u3073\u7de8\u96c6\u306e\u6a5f\u80fd\u3092\u5099\u3048\u305f\u57fa\u672c\u7684\u306a\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u30d3\u30eb\u30c9\u65b9\u6cd5\u3092\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002\u4eca\u56de\u306e\u8a18\u4e8b\u3067\u306f\u3001<a href=\"https:\/\/www.jetbrains.com\/ja-jp\/koog\/\" target=\"_blank\" rel=\"noopener\">Koog<\/a> \u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u5185\u3067\u8ffd\u52a0\u306e\u30c4\u30fc\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3067\u3001<a href=\"https:\/\/github.com\/JetBrains\/koog\/tree\/develop\/examples\/code-agent\/step-02-add-execution-tool\" target=\"_blank\" rel=\"noopener\">\u3053\u306e\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u6a5f\u80fd\u3092\u62e1\u5f35<\/a>\u3059\u308b\u65b9\u6cd5\u3092\u6df1\u6398\u308a\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<code>ExecuteShellCommandTool<\/code> \u3092\u4f8b\u306b\u6319\u3052\u3066\u30d3\u30eb\u30c9\u3057\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306b\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3001\u5b9f\u969b\u306e\u30a8\u30f3\u30b8\u30cb\u30a2\u30ea\u30f3\u30b0\u3067\u5fc5\u8981\u3068\u306a\u308b\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u30eb\u30fc\u30d7\uff08\u30b3\u30fc\u30c9\u306e\u5b9f\u884c\u3001\u5931\u6557\u306e\u78ba\u8a8d\u3001\u304a\u3088\u3073\u5b9f\u969b\u306e\u51fa\u529b\u306b\u5fdc\u3058\u305f\u30b3\u30fc\u30c9\u306e\u6539\u5584\uff09\u306e\u7d42\u4e86\u65b9\u6cd5\u3092\u6559\u3048\u307e\u3059\u3002<\/p>\n<p>LLM \u306f\u69cb\u6587\u30a8\u30e9\u30fc\u3092\u9069\u5207\u306b\u56de\u907f\u3059\u308b\u3082\u306e\u306e\u3001\u7d71\u5408\u306b\u95a2\u3059\u308b\u554f\u984c\u306e\u5bfe\u51e6\u306f\u82e6\u624b\u306a\u50be\u5411\u304c\u3042\u308a\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u5b58\u5728\u3057\u306a\u3044\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3059\u3001\u30a4\u30f3\u30dd\u30fc\u30c8\u3092\u7701\u7565\u3059\u308b\u3001\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u90e8\u5206\u7684\u306b\u5b9f\u88c5\u3059\u308b\u306a\u3069\u306e\u50be\u5411\u3067\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u554f\u984c\u306f\u5f93\u6765\u306e\u3084\u308a\u65b9\u3067\u30b3\u30fc\u30c9\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u5b9f\u884c\u3059\u308c\u3070\u3059\u3050\u306b\u898b\u3064\u304b\u308b\u3082\u306e\u3067\u3059\u304c\u3001 \u3061\u3087\u3063\u3068\u3057\u305f\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u3001LLM \u306b\u5c0f\u3055\u306a\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3057\u3001\u3053\u306e\u3088\u3046\u306a\u5404\u52d5\u4f5c\u3092\u691c\u8a3c\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u305d\u306e\u3088\u3046\u306a\u30c4\u30fc\u30eb\u3092\u3069\u3046\u3084\u3063\u3066\u30d3\u30eb\u30c9\u3059\u308c\u3070\u3044\u3044\u306e\u3067\u3057\u3087\u3046\u304b\uff1f \u307e\u305a\u306f\u57fa\u672c\u304b\u3089\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2 class=\"wp-block-heading\">Koog \u30c4\u30fc\u30eb\u306e\u69cb\u9020<\/h2>\n<p>\u307e\u305a\u3001\u62bd\u8c61\u7684\u306a <code>ai.koog.agents.core.tools.Tool<\/code> <a href=\"https:\/\/docs.koog.ai\/class-based-tools\/\" target=\"_blank\" rel=\"noopener\">\u30af\u30e9\u30b9<\/a>\u3092\u7d99\u627f\u3059\u308b\u3053\u3068\u304b\u3089\u59cb\u3081\u307e\u3057\u3087\u3046\u3002\u4ee5\u4e0b\u306e\u60c5\u5831\u3092\u63d0\u4f9b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ol>\n<li><strong>\u540d\u524d<\/strong>: \u3053\u306e\u30c1\u30fc\u30e0\u3067\u306f\u540d\u524d\u3092 2 \u3064\u306e\u30a2\u30f3\u30c0\u30fc\u30b9\u30b3\u30a2\u3067\u56f2\u3080 <code>snake_casing<\/code> \u547d\u540d\u898f\u5247\u306b\u5f93\u3044\u307e\u3059\u304c\u3001\u3053\u308c\u306f\u500b\u4eba\u306e\u597d\u307f\u3067\u3059\u3002<\/li>\n<li><strong>\u8aac\u660e<\/strong>: \u3053\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u306f LLM \u306e\u30e1\u30a4\u30f3\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3068\u3057\u3066\u6a5f\u80fd\u3057\u3001\u30c4\u30fc\u30eb\u306e\u5b9f\u884c\u5185\u5bb9\u3068\u547c\u3073\u51fa\u3055\u308c\u308b\u7406\u7531\u3092\u8aac\u660e\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u3067\u3059\u3002<\/li>\n<li><code>Args<\/code><strong> \u30af\u30e9\u30b9:<\/strong> \u3053\u306e\u30af\u30e9\u30b9\u3067\u306f\u3001LLM \u304c\u30c4\u30fc\u30eb\u3092\u547c\u3073\u51fa\u3059\u969b\u306b\u63d0\u4f9b\u3059\u308b\u5fc5\u8981\u306e\u3042\u308b\u3001\u307e\u305f\u306f\u63d0\u4f9b\u3067\u304d\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002<\/li>\n<li><code>Result<\/code><strong> \u30af\u30e9\u30b9<\/strong>: \u3053\u306e\u30af\u30e9\u30b9\u3067\u306f\u3001LLM \u3078\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u6574\u5f62\u3055\u308c\u308b\u30c7\u30fc\u30bf\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u30c7\u30fc\u30bf\u3092 LLM \u304c\u8aad\u307f\u53d6\u308c\u308b\u6587\u5b57\u5217\u306b\u6574\u5f62\u3059\u308b <code>textForLLM()<\/code> \u95a2\u6570\u3092\u542b\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<code>Result<\/code> \u30af\u30e9\u30b9\u306f\u4e3b\u306b\u958b\u767a\u8005\u306e\u4fbf\u5b9c\u3092\u56f3\u308b\u305f\u3081\u3001\u30c4\u30fc\u30eb\u306e\u7d50\u679c\u3092\u8a18\u9332\u307e\u305f\u306f UI \u306b\u8868\u793a\u3057\u3084\u3059\u304f\u3059\u308b\u305f\u3081\u306b\u5b58\u5728\u3059\u308b\u3082\u306e\u3067\u3059\u3002\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u81ea\u4f53\u306f\u6574\u5f62\u6e08\u307f\u306e\u6587\u5b57\u5217\u306e\u307f\u3092\u5fc5\u8981\u3068\u3057\u307e\u3059\u3002<\/li>\n<li><code>Execute()<\/code><strong> \u30e1\u30bd\u30c3\u30c9<\/strong>: \u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306f Args \u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u5f15\u6570\u306b\u53d6\u308a\u3001<code>Result<\/code> \u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u8fd4\u3057\u307e\u3059\u3002LLM \u304c\u30c4\u30fc\u30eb\u3092\u547c\u3073\u51fa\u3059\u969b\u306b\u8d77\u3053\u308b\u5185\u5bb9\u306e\u30ed\u30b8\u30c3\u30af\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<p>\u3053\u308c\u3089\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30bf\u30fc\u3001API \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3001\u307e\u305f\u306f\u3053\u306e\u8a18\u4e8b\u3067\u3054\u7d39\u4ecb\u3059\u308b\u30b7\u30a7\u30eb\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u30c4\u30fc\u30eb\u306a\u3069\u3001\u4f55\u3092\u30d3\u30eb\u30c9\u3059\u308b\u5834\u5408\u3082\u3059\u3079\u3066\u306e Koog \u30c4\u30fc\u30eb\u306e\u57fa\u76e4\u306b\u306a\u308a\u307e\u3059\u3002\u3067\u306f\u3001<code>ExecuteShellCommandTool<\/code> \u306e\u30d3\u30eb\u30c9\u3092\u8a73\u3057\u304f\u898b\u306a\u304c\u3089\u3001\u3053\u308c\u3089\u306e\u539f\u5247\u3092\u5b9f\u969b\u306b\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3 class=\"wp-block-heading\"><strong>\u5b89\u5168\u306b\u95a2\u3059\u308b\u6ce8\u610f\u559a\u8d77<\/strong><\/h3>\n<p><code>ExecuteShellCommandTool<\/code> \u306e\u8a73\u7d30\u3092\u6df1\u6398\u308a\u3059\u308b\u524d\u306b\u3001\u5b89\u5168\u306b\u95a2\u3059\u308b\u8003\u616e\u4e8b\u9805\u3092\u3044\u304f\u3064\u304b\u304a\u4f1d\u3048\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>LLM \u306f\u610f\u56f3\u7684\u306b\u554f\u984c\u3092\u5f15\u304d\u8d77\u3053\u305d\u3046\u3068\u3059\u308b\u8105\u5a01\u30a2\u30af\u30bf\u30fc\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u5c06\u6765\u7684\u306b\u554f\u984c\u306b\u3064\u306a\u304c\u308b\u53ef\u80fd\u6027\u306e\u3042\u308b\u4e88\u671f\u3057\u306a\u3044\u30df\u30b9\u3092\u8d77\u3053\u3059\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306b\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3092\u5b9f\u884c\u3059\u308b\u6a29\u9650\u3092\u4e0e\u3048\u3066\u3044\u308b\u5834\u5408\u3001\u3053\u306e\u3088\u3046\u306a\u30df\u30b9\u306f\u6df1\u523b\u306a\u7d50\u679c\u3092\u3082\u305f\u3089\u3059\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u3092\u9694\u96e2\u74b0\u5883\u306b\u30b5\u30f3\u30c9\u30dc\u30c3\u30af\u30b9\u5316\u3057\u305f\u308a\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306b\u4e0e\u3048\u308b\u6a29\u9650\u3092\u5236\u9650\u3057\u305f\u308a\u3059\u308b\u306a\u3069\u3001\u3053\u306e\u30ea\u30b9\u30af\u3092\u7de9\u548c\u3059\u308b\u624b\u6bb5\u306f\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u304c\u3001 \u305d\u308c\u3089\u3092\u5b9f\u65bd\u3059\u308b\u306e\u306f\u975e\u5e38\u306b\u9762\u5012\u3067\u3059\u3057\u3001\u3053\u306e\u9023\u8f09\u306f\u5b9f\u969b\u306e\u30c4\u30fc\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3068\u3053\u308d\u306b\u91cd\u304d\u3092\u7f6e\u3044\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3053\u3068\u306b\u7559\u610f\u3057\u306a\u304c\u3089\u3001\u975e\u5e38\u306b\u5358\u7d14\u306a 2 \u3064\u306e\u30ea\u30b9\u30af\u7de9\u548c\u624b\u6bb5\u3092\u4ee5\u4e0b\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li>\u30b3\u30de\u30f3\u30c9\u3054\u3068\u306b<strong>\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u3092\u78ba\u8a8d<\/strong>\u3059\u308b\u3002LLM \u304c\u5b9f\u884c\u3059\u308b\u5404\u30b3\u30de\u30f3\u30c9\u306e\u78ba\u8a8d\u306b\u6642\u9593\u3092\u304b\u3051\u3089\u308c\u308b\u306e\u306a\u3089\u3001\u3053\u306e\u624b\u6bb5\u304c\u6700\u3082\u5b89\u5168\u3067\u3059\u3002\u305f\u3060\u3057\u3001\u3053\u306e\u5834\u5408\u306f\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u81ea\u5f8b\u6027\u3092\u5927\u304d\u304f\u5236\u9650\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<li>\u5404\u30b3\u30de\u30f3\u30c9\u304c\u81ea\u52d5\u7684\u306b\u627f\u8a8d\u3055\u308c\u308b <strong><em>Brave<\/em><\/strong><strong> \u30e2\u30fc\u30c9<\/strong>\u3092\u4f7f\u7528\u3059\u308b\u3002\u3053\u306e\u30e2\u30fc\u30c9\u306f\u9069\u5207\u306b\u30b5\u30f3\u30dc\u30c9\u30c3\u30af\u30b9\u5316\u3055\u308c\u3066\u3044\u306a\u3044\u30de\u30b7\u30f3\u3092\u30ea\u30b9\u30af\u306b\u3055\u3089\u3059\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u306e\u8a18\u4e8b\u3067\u306f\u60aa\u5f71\u97ff\u3092\u53ca\u307c\u3059\u3053\u3068\u306a\u304f\u7834\u68c4\u3067\u304d\u308b\u9694\u96e2\u74b0\u5883\u3067\u5b9f\u884c\u3055\u308c\u308b\u72ec\u81ea\u306e\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u5185\u306e\u307f\u3067\u3053\u306e\u30e2\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<h2 class=\"wp-block-heading\"><strong><code>ExecuteShellCommandTool<\/code><\/strong> \u3092\u5b9f\u88c5\u3059\u308b<\/h2>\n<div class=\"slider slider-full\">\n<div class=\"slider__slide\"><a href=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/11\/DSGN-24422-01_Exec-tool.png\"><br \/><img decoding=\"async\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/11\/DSGN-24422-01_Exec-tool.png\" alt=\"\" \/><br \/><\/a><\/div>\n<div class=\"slider__slide\"><a href=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/11\/DSGN-24422-02_Data-flow.png\"><br \/><img decoding=\"async\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/11\/DSGN-24422-02_Data-flow.png\" alt=\"\" \/><br \/><\/a><\/div>\n<div class=\"slider__slide\"><a href=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/11\/DSGN-24422-03_Confirmation-handler.png\"><br \/><img decoding=\"async\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/11\/DSGN-24422-03_Confirmation-handler.png\" alt=\"\" \/><br \/><\/a><\/div>\n<div class=\"slider__slide\"><a href=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/11\/DSGN-24422-04_Executor.png\"><br \/><img decoding=\"async\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/11\/DSGN-24422-04_Executor.png\" alt=\"\" \/><br \/><\/a><\/div>\n<\/div>\n<p><a href=\"https:\/\/github.com\/JetBrains\/koog\/blob\/develop\/agents\/agents-ext\/src\/commonMain\/kotlin\/ai\/koog\/agents\/ext\/tool\/shell\/ExecuteShellCommandTool.kt\" target=\"_blank\" rel=\"noopener\">\u3053\u306e\u4f8b\u3067\u4f7f\u7528\u3059\u308b <code>ExecuteShellCommandTool<\/code> \u306e\u5834\u5408<\/a>\u3001\u3053\u308c\u3089\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<ol>\n<li><strong>\u540d\u524d<\/strong>: <code>__execute_shell_command__<\/code><\/li>\n<li><strong>\u8aac\u660e<\/strong>: \u300c\u30b7\u30a7\u30eb\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u305d\u306e\u51fa\u529b\u3092\u8fd4\u3059\u300d\u306a\u3069\u3002<\/li>\n<li><code>Args<\/code> <strong>\u30af\u30e9\u30b9<\/strong>: <code>command<\/code>\u3001<code>timeoutSeconds<\/code>\u3001<code>workingDirectory<\/code><\/li>\n<li><code>Result<\/code> <strong>\u30af\u30e9\u30b9<\/strong>: <code>output<\/code>\u3001<code>exitCode<\/code>\u3001<code>command<\/code>\uff08\u610f\u5916\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u30ed\u30b0\u3084 UI \u306b\u3069\u306e\u30b3\u30de\u30f3\u30c9\u304c\u5b9f\u884c\u3055\u308c\u305f\u304b\u3092\u51fa\u529b\u3059\u308b\u3068\u4fbf\u5229\u3067\u3059\uff09\u3002<\/li>\n<li><code>execute()<\/code><strong> \u30e1\u30bd\u30c3\u30c9<\/strong>: \u78ba\u8a8d\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u304b\u3089\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\uff08\u4ee5\u4e0b\u3067\u5b9f\u88c5\u3092\u8a73\u7d30\u306b\u78ba\u8a8d\u3057\u307e\u3059\uff09\u3002<\/li>\n<\/ol>\n<h2 class=\"wp-block-heading\"><code>execute()<\/code><strong> \u30e1\u30bd\u30c3\u30c9\u306e\u5b9f\u88c5<\/strong><\/h2>\n<p>\u3067\u306f\u3001execute() \u30e1\u30bd\u30c3\u30c9\u304c\u3069\u306e\u3088\u3046\u306b\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u304b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u3053\u3053\u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u57fa\u672c\u30ed\u30b8\u30c3\u30af\u3092\u30d8\u30eb\u30d1\u30fc\u30e1\u30bd\u30c3\u30c9\u306b\u59d4\u8b72\u3059\u308b\u3053\u3068\u3067\u3001\u30e1\u30bd\u30c3\u30c9\u3092\u5358\u7d14\u5316\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"kotlin\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">override suspend fun execute(args: Args): Result = when (\n        val confirmation = confirmationHandler.requestConfirmation(args)\n    ) {\n        is ShellCommandConfirmation.Approved -&gt; try {\n            val result = executor.execute(\n                args.command, args.workingDirectory, args.timeoutSeconds\n            )\n            Result(args.command, result.exitCode, result.output)\n        } catch (e: CancellationException) {\n            throw e\n        } catch (e: Exception) {\n            Result(\n               args.command, null, \"Failed to execute command: ${e.message}\"\n            )\n        }\n\n        is ShellCommandConfirmation.Denied -&gt;\n            Result(\n                args.command, null, \n                \"Command execution denied with user response: ${confirmation.userResponse}\"\n            )\n    }<\/pre>\n<p>\u3053\u308c\u306f\u7c21\u6f54\u306a\u30d5\u30ed\u30fc\u3067\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u306b\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u78ba\u8a8d\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3001\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u51e6\u7406\u3092\u4ecb\u3057\u3066\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u627f\u8a8d\u3055\u308c\u308c\u3070\u5b9f\u884c\u3057\u3001\u305d\u3046\u3067\u306a\u3051\u308c\u3070\u62d2\u5426\u3055\u308c\u305f\u3053\u3068\u3092\u4f1d\u3048\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092 LLM \u306b\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u5b9f\u88c5\u306b\u3088\u3063\u3066\u4f8b\u5916\u306e\u30ad\u30e3\u30c3\u30c1\u3068\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e LLM \u3078\u306e\u8ee2\u9001\u304c\u53ef\u80fd\u306b\u306a\u308a\u3001\u3084\u308a\u65b9\u3092\u8abf\u6574\u3057\u305f\u308a\u3001\u5225\u306e\u3084\u308a\u65b9\u3092\u8a66\u3057\u305f\u308a\u3067\u304d\u308b\u3088\u3046\u306b\u3082\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3 class=\"wp-block-heading\"><code>ConfirmationHandler<\/code> \u306e\u69cb\u6210<\/h3>\n<p><code>ConfirmationHandler<\/code> \u306f <code>ExecuteShellCommandTool<\/code> \u3092\u4f5c\u6210\u3059\u308b\u5834\u5408\u306b\u69cb\u6210\u53ef\u80fd\u306b\u306a\u308a\u3001\u3055\u307e\u3056\u307e\u306a\u5b9f\u88c5\u3092\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002\u73fe\u6642\u70b9\u3067\u306f\u3001\u4ee5\u4e0b\u306e <a href=\"https:\/\/github.com\/JetBrains\/koog\/blob\/develop\/agents\/agents-ext\/src\/commonMain\/kotlin\/ai\/koog\/agents\/ext\/tool\/shell\/ShellCommandConfirmationHandlers.kt\" target=\"_blank\" rel=\"noopener\">2 \u3064\u306e\u5b9f\u88c5<\/a>\u304c\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ol>\n<li><code>PrintShellCommandConfirmationHandler<\/code>: \u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3092\u4ecb\u3057\u3066\u30e6\u30fc\u30b6\u30fc\u306b\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/li>\n<li><code>BraveModeConfirmationHandler<\/code>: \u3059\u3079\u3066\u3092\u81ea\u52d5\u7684\u306b\u627f\u8a8d\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<p>2 \u3064\u76ee\u306e\u5b9f\u88c5\u306f\u7121\u6761\u4ef6\u3067\u5358\u306b\u627f\u8a8d\u3059\u308b\u3082\u306e\u3067\u3059\u304c\u30011 \u3064\u76ee\u306e\u5b9f\u88c5\u306b\u306f\u82e5\u5e72\u8208\u5473\u6df1\u3044\u7279\u5fb4\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"kotlin\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">override suspend fun requestConfirmation(\n        args: ExecuteShellCommandTool.Args\n    ): ShellCommandConfirmation {\n        println(\"Agent wants to execute: ${args.command}\")\n        args.workingDirectory?.let { println(\"In: $it\") }\n        println(\"Timeout: ${args.timeoutSeconds}s\")\n        print(\"Confirm (y \/ n \/ reason-for-denying): \")\n\n        val userResponse = readln().lowercase()\n        return when (userResponse) {\n            \"y\", \"yes\" -&gt; ShellCommandConfirmation.Approved\n            else -&gt; ShellCommandConfirmation.Denied(userResponse)\n        }\n    }<\/pre>\n<p>\u30e6\u30fc\u30b6\u30fc\u306b\u306f 3 \u3064\u306e\u9078\u629e\u80a2\uff08\u627f\u8a8d\u3001\u62d2\u5426\u3001\u7406\u7531\u4ed8\u304d\u306e\u62d2\u5426\uff09\u304c\u4e0e\u3048\u3089\u308c\u307e\u3059\u304c\u3001\u5b9f\u88c5\u4e0a\u306f\u4e21\u30bf\u30a4\u30d7\u306e\u62d2\u5426\u304c\u540c\u3058\u3088\u3046\u306b\u51e6\u7406\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3069\u3061\u3089\u3082 LLM \u306b\u8fd4\u3055\u308c\u3001\u5404\u30bf\u30a4\u30d7\u306f LLM \u306b\u3088\u3063\u3066\u9069\u5207\u306b\u89e3\u91c8\u3055\u308c\u3066\u51e6\u7406\u3055\u308c\u307e\u3059\u3002<\/p>\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-660074\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/11\/demo-exec-print-confirmation.gif\" alt=\"\" width=\"396\" height=\"366\" \/><\/figure>\n<h3 class=\"wp-block-heading\"><code>CommandExecutor<\/code> \u306e\u69cb\u6210<\/h3>\n<p><code>ConfirmationHandler<\/code> \u3068\u540c\u69d8\u306b <code>CommandExecutor<\/code> \u3082\u69cb\u6210\u53ef\u80fd\u3067\u3059\u304c\u3001\u73fe\u6642\u70b9\u3067\u306f JVM \u5b9f\u88c5\u306e\u307f\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002\u7406\u5c48\u306e\u4e0a\u3067\u306f Android\u3001iOS\u3001WebAssembly\u3001\u304a\u3088\u3073\u305d\u306e\u4ed6\u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306b\u5bfe\u5fdc\u3059\u308b\u5b9f\u88c5\u3092\u4f5c\u6210\u3067\u304d\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u660e\u78ba\u306a\u9700\u8981\u304c\u306a\u3044\u305f\u3081\u3001\u305d\u308c\u3089\u306b\u3064\u3044\u3066\u306f\u3068\u308a\u3042\u3048\u305a\u5f8c\u56de\u3057\u306b\u3057\u307e\u3059\u3002<\/p>\n<h2 class=\"wp-block-heading\">\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u306e\u51e6\u7406\u65b9\u6cd5<\/h2>\n<p>\u4f7f\u7528\u3055\u308c\u308b\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3092\u554f\u308f\u305a\u3001<code>CommandExecutor<\/code> \u306e 1 \u3064\u306e\u5074\u9762\u3067\u3042\u308b\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u306e\u51e6\u7406\u306b\u306f\u7279\u6bb5\u306e\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002\u73fe\u5728\u306e\u5b9f\u88c5\u3067\u306f\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306f\u5b9f\u884c\u306b\u6642\u9593\u304c\u304b\u304b\u308b\u30b3\u30de\u30f3\u30c9\u3092\u4e2d\u65ad\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u4eba\u306f\u76f4\u611f\u7684\u306b\u7126\u3063\u3066\u884c\u52d5\u3059\u308b\u3053\u3068\u304c\u591a\u304f\u3001\u305d\u306e\u7d50\u679c <em>Ctrl+C<\/em> \u3092\u4f7f\u7528\u3057\u3066\u5b9f\u884c\u3092\u30ad\u30e3\u30f3\u30bb\u30eb\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u305d\u306e\u884c\u52d5\u306f\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u5316\u3055\u308c\u305f\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u8a8d\u8b58\u3057\u3001\u7126\u71e5\u611f\u3068\u3044\u3046\u6982\u5ff5\u304c\u6839\u5e95\u306b\u3042\u308b\u3053\u3068\u3092\u524d\u63d0\u3068\u3057\u3066\u3044\u307e\u3059\u3002\u3068\u306f\u3044\u3048\u3001\u3053\u306e\u72b6\u6cc1\u306b\u306f\u308b\u304b\u306b\u9069\u3057\u305f\u3001\u3088\u308a\u5358\u7d14\u304b\u3064\u76f4\u611f\u7684\u306a\u65b9\u6cd5\u306f\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>LLM \u306b\u6700\u5927\u5b9f\u884c\u6642\u9593\u3092\u6307\u5b9a\u3055\u305b\u308b\u3053\u3068\u3067\u3001\u3053\u306e\u5236\u9650\u6642\u9593\u3092\u8d85\u3048\u308b<a href=\"https:\/\/github.com\/JetBrains\/koog\/blob\/develop\/agents\/agents-ext\/src\/jvmMain\/kotlin\/ai\/koog\/agents\/ext\/tool\/shell\/JvmShellCommandExecutor.kt\" target=\"_blank\" rel=\"noopener\">\u30b3\u30de\u30f3\u30c9\u3092\u5b89\u5168\u306b\u4e2d\u65ad<\/a>\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u5024\u306f\u30e6\u30fc\u30b6\u30fc\u306b\u8868\u793a\u3055\u308c\u308b\u305f\u3081\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u8981\u6c42\u3055\u308c\u305f\u671f\u9593\u304c\u5408\u7406\u7684\u3067\u306a\u3044\u304b\u3001\u904e\u5270\u3067\u3042\u308b\u3068\u5224\u65ad\u3057\u305f\u5834\u5408\u306b\u5b9f\u884c\u3092\u62d2\u5426\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u5358\u306b\u30d7\u30ed\u30bb\u30b9\u3092\u7d42\u4e86\u3057\u3066\u4e00\u822c\u7684\u306a\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8fd4\u3059\u306e\u3067\u306f\u306a\u304f\u3001\u3067\u304d\u308b\u3060\u3051\u591a\u304f\u306e\u51fa\u529b\u3092\u4fdd\u6301\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4e0d\u5b8c\u5168\u306a\u7d50\u679c\u3067\u3042\u3063\u3066\u3082\u3001LLM \u304c\u6709\u7528\u306a\u60c5\u5831\u3092\u62bd\u51fa\u3057\u305f\u308a\u3001\u5c11\u306a\u304f\u3068\u3082\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u304c\u767a\u751f\u3057\u305f\u7b87\u6240\u3092\u7406\u89e3\u3057\u305f\u308a\u3059\u308b\u306e\u306b\u306f\u5f79\u7acb\u3061\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u614e\u91cd\u306a\u5b9f\u88c5\u306b\u3088\u3063\u3066\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"kotlin\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">val stdoutJob = launch {\n    process.inputStream.bufferedReader().useLines { lines -&gt;\n        try {\n            lines.forEach { stdoutBuilder.appendLine(it) }\n        } catch (_: IOException) {\n            \/\/ Ignore IO exception if the stream is closed and silently stop stream collection\n        }\n    }\n}\n\nval isCompleted = withTimeoutOrNull(timeoutSeconds * 1000L) {\n    process.onExit().await()\n} != null\n\nif (!isCompleted) {\n    process.destroyForcibly()\n}\n\nstdoutJob.join()<\/pre>\n<h2 class=\"wp-block-heading\"><strong>\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u30ec\u30d9\u30eb\u3067\u306e\u5909\u66f4\u5185\u5bb9<\/strong><\/h2>\n<p>\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u30ec\u30d9\u30eb\u3067\u306e<a href=\"https:\/\/github.com\/JetBrains\/koog\/blob\/develop\/examples\/code-agent\/step-02-add-execution-tool\/src\/main\/kotlin\/Main.kt\" target=\"_blank\" rel=\"noopener\">\u5909\u66f4\u306f\u6700\u5c0f\u9650<\/a>\u3067\u3042\u308a\u300110 \u884c\u7a0b\u5ea6\u306e\u30b3\u30fc\u30c9\u3067\u3059\u3002\u5dee\u5206\u3067\u793a\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u306b\u3001\u3053\u306e\u66f4\u65b0\u306e\u5927\u90e8\u5206\u306b\u306f\u30b7\u30b9\u30c6\u30e0\u30d7\u30ed\u30f3\u30d7\u30c8\u306e\u62e1\u5f35\u304c\u4f34\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-660085\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/11\/Screenshot-2025-11-18-at-14.47.35.png\" alt=\"\" width=\"1913\" height=\"1001\" \/><\/figure>\n<p>\u5358\u306b\u30c4\u30fc\u30eb\u3092\u8ffd\u52a0\u3057\u3066\u5909\u66f4\u3092\u3055\u3089\u306b\u5c0f\u898f\u6a21\u306b\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3057\u305f\u304c\u3001\u305d\u3046\u3067\u306f\u306a\u304f\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306b\u3055\u3089\u306b 2 \u3064\u306e\u5909\u66f4\u3082\u52a0\u3048\u307e\u3057\u305f\u3002\u3068\u306f\u3044\u3048\u3001\u3053\u308c\u3089\u3082\u4e9b\u7d30\u306a\u5909\u66f4\u3067\u3042\u308b\u3053\u3068\u306f\u5909\u308f\u308a\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<h3 class=\"wp-block-heading\"><strong>A\uff09<code>BRAVE_MODE<\/code> \u306e\u5207\u308a\u66ff\u3048\u51e6\u7406<\/strong><\/h3>\n<p>\u3053\u306e\u5207\u308a\u66ff\u3048\u51e6\u7406\u306e\u5b9f\u88c5\u306f\u3001BRAVE_MODE \u74b0\u5883\u5909\u6570\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3060\u3051\u306e\u6bd4\u8f03\u7684\u5358\u7d14\u306a\u3082\u306e\u3067\u3059\u3002\u81ea\u5206\u3067\u5b9f\u88c5\u3059\u308b\u306e\u304c\u975e\u5e38\u306b\u7c21\u5358\u306a\u3053\u3068\u3092\u793a\u3059\u305f\u3081\u306b <em>Brave<\/em> \u30e2\u30fc\u30c9\u306e ConfirmationHandler \u306b\u30e9\u30e0\u30c0\u95a2\u6570\u3082\u4f7f\u7528\u3057\u307e\u3057\u305f\u304c\u3001\u524d\u8ff0\u306e <code>BraveModeConfirmationHandler<\/code> \u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u00a0<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"kotlin\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">fun createExecuteShellCommandToolFromEnv(): ExecuteShellCommandTool {\n    return if (System.getenv(\"BRAVE_MODE\")?.lowercase() == \"true\") {\n        ExecuteShellCommandTool(JvmShellCommandExecutor()) {\n            _ -&gt; ShellCommandConfirmation.Approved \n        }\n    } else {\n        ExecuteShellCommandTool(\n            JvmShellCommandExecutor(), \n            PrintShellCommandConfirmationHandler(),\n        )\n    }\n}<\/pre>\n<h3 class=\"wp-block-heading\"><strong>B\uff09\u30d7\u30ed\u30f3\u30d7\u30c8\u306e\u300c\u5b8c\u4e86\u306e\u5b9a\u7fa9\u300d\u306e\u62e1\u5f35<\/strong><\/h3>\n<p>LLM \u304c\u3053\u306e\u65b0\u6a5f\u80fd\u3092\u78ba\u5b9f\u306b\u5229\u7528\u3057\u3066\u30b3\u30fc\u30c9\u3092\u52b9\u679c\u7684\u306b\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u3001\u30c6\u30b9\u30c8\u306e\u4f5c\u6210\u3068\u5b9f\u884c\u3092\u5f37\u304f\u4fc3\u3059\u300c\u5b8c\u4e86\u306e\u5b9a\u7fa9\u300d\u3092\u4f7f\u7528\u3057\u3066\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u62e1\u5f35\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"kotlin\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\"\"\"\n... \/\/ Previous prompt from step 01\n\nProduction-ready means verified to work\u2014your changes must be proven correct and not introduce regressions.\n\nYou have shell access to execute commands and run tests. Use this to work with executable feedback instead of assumptions. Establish what correct behavior looks like through tests, then iterate your implementation until tests pass. Validate that existing functionality remains intact. Production-ready means proven through green tests\u2014that's your definition of done.\n\"\"\"<\/pre>\n<p>\u5b8c\u6210\u3067\u3059\u3002\u5b8c\u5168\u306a <code>ExecuteShellCommandTool<\/code> \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u30d3\u30eb\u30c9\u3057\u3001\u305d\u308c\u3092\u6700\u5c0f\u9650\u306e\u5909\u66f4\u3067\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306b\u7d44\u307f\u8fbc\u307f\u307e\u3057\u305f\u3002\u305f\u3060\u3057\u3001\u672c\u5f53\u306e\u7591\u554f\u306f\u300c\u305d\u308c\u3067\u5b9f\u969b\u306b\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u6539\u5584\u3059\u308b\u306e\u304b\uff1f\u300d\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<h2 class=\"wp-block-heading\">\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u30c6\u30b9\u30c8\u306e\u7d50\u679c<\/h2>\n<p>\u4e21\u65b9\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092 SWE-bench-verified \u30bb\u30c3\u30c8\u306b\u5bfe\u3057\u3066\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u5b9f\u884c\u6a5f\u80fd\u304c\u660e\u78ba\u306a\u30e1\u30ea\u30c3\u30c8\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u304c\u8a3c\u660e\u3055\u308c\u307e\u3057\u305f\u3002\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u6539\u5584\u3055\u308c\u3001\u6210\u529f\u4ef6\u6570\u304c 249\/500 \u4ef6\uff0850%\uff09\u304b\u3089 279\/500\uff0856%\uff09\u4ef6\u306b\u5897\u52a0\u3057\u307e\u3057\u305f\u3002\u30ea\u30fc\u30c0\u30fc\u30dc\u30fc\u30c9\u30b9\u30b3\u30a2\u306f\u7d04 70% \u3092\u9054\u6210\u3057\u307e\u3057\u305f\u304c\u3001\u3053\u306e\u7d50\u679c\u306f\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306b\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3066\u691c\u8a3c\u3059\u308b\u6a5f\u80fd\u3092\u4e0e\u3048\u308b\u3053\u3068\u304c\u6b63\u3057\u3044\u65b9\u5411\u3078\u306e\u4e00\u6b69\u3067\u3042\u308b\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u307e\u3060\u3046\u307e\u304f\u51e6\u7406\u3067\u304d\u306a\u3044\u90e8\u5206\u3084\u6b21\u306e\u6539\u5584\u70b9\u3092\u7406\u89e3\u3059\u308b\u306b\u306f\u3001\u305d\u306e\u52d5\u4f5c\u3092\u3055\u3089\u306b\u8a73\u7d30\u306b\u628a\u63e1\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u3053\u3067\u6b20\u304b\u305b\u306a\u3044\u306e\u304c\u30ed\u30b0\u8a18\u9332\u3067\u3059\u3002<\/p>\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081: Koog \u3067\u306e\u30c4\u30fc\u30eb\u306e\u30d3\u30eb\u30c9<\/h2>\n<p>\u3053\u306e\u8a18\u4e8b\u5168\u4f53\u3092\u901a\u3057\u3001\u3069\u306e\u30c4\u30fc\u30eb\u306b\u3082\u540d\u524d\u3001\u8aac\u660e\u3001\u304a\u3088\u3073 <code>execute()<\/code> \u30e1\u30bd\u30c3\u30c9\u304c\u5fc5\u8981\u3060\u3068\u3044\u3046 Koog \u306e\u30c4\u30fc\u30eb\u69cb\u9020\u306e\u4ed5\u7d44\u307f\u3092\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002<code>ConfirmationHandler<\/code> \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3068 <code>CommandExecutor<\/code> \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4ecb\u3057\u3066 <code>ExecuteShellCommandTool<\/code> \u3092\u69cb\u6210\u53ef\u80fd\u306b\u3057\u3001\u8907\u96d1\u306a\u30ed\u30b8\u30c3\u30af\u3092\u7f6e\u63db\u53ef\u80fd\u306a\u5b9f\u88c5\u306b\u59d4\u8b72\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u308c\u3068\u540c\u3058\u30d1\u30bf\u30fc\u30f3\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30bf\u30fc\u3001API \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3001\u30d5\u30a1\u30a4\u30eb\u30d7\u30ed\u30bb\u30c3\u30b5\u30fc\u3001\u30ab\u30b9\u30bf\u30e0\u7d71\u5408\u306a\u3069\u3001\u3069\u3093\u306a\u30c4\u30fc\u30eb\u3092\u30d3\u30eb\u30c9\u3059\u308b\u5834\u5408\u3082\u9069\u7528\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u306f LLM \u3068\u5bfe\u8a71\u3059\u308b\u305f\u3081\u306e\u69cb\u9020\u304c\u5099\u308f\u3063\u3066\u304a\u308a\u3001\u958b\u767a\u8005\u306f\u56fa\u6709\u306e\u6a5f\u80fd\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u00a0<\/p>\n<p>\u6b21\u56de\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u30ed\u30b0\u3092\u8a18\u9332\u3057\u3066\u30c8\u30ec\u30fc\u30b9\u3059\u308b\u51e6\u7406\u3092\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5\u3092\u53d6\u308a\u4e0a\u3052\u308b\u4e88\u5b9a\u3067\u3059\u3002\u305d\u3046\u3059\u308b\u3053\u3068\u3067\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u52d5\u4f5c\u3092\u7406\u89e3\u3057\u3066\u6539\u5584\u3059\u308b\u306e\u306b\u5fc5\u8981\u306a\u60c5\u5831\u3092\u5f97\u3089\u308c\u308b\u3067\u3057\u3087\u3046\u3002\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u3069\u306e\u3088\u3046\u306b\u5224\u65ad\u3092\u4e0b\u3059\u306e\u304b\u3092\u7406\u89e3\u3057\u3066\u304a\u304f\u3053\u3068\u306f\u3001\u30a4\u30c6\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u65bd\u3059\u308b\u4e0a\u3067\u306f\u975e\u5e38\u306b\u91cd\u8981\u3067\u3059\u3002\u307e\u305f\u3001\u53ef\u89b3\u6e2c\u6027\u306b\u95a2\u3059\u308b\u9069\u5207\u306a\u30c4\u30fc\u30eb\u3082\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u81ea\u4f53\u306b\u63d0\u4f9b\u3059\u308b\u30c4\u30fc\u30eb\u3068\u540c\u3058\u304f\u3089\u3044\u91cd\u8981\u3067\u3059\u3002<\/p>\n<p><strong>\u30aa\u30ea\u30b8\u30ca\u30eb\uff08\u82f1\u8a9e\uff09\u30d6\u30ed\u30b0\u6295\u7a3f\u8a18\u4e8b\u306e\u4f5c\u8005\uff1a<\/strong><\/p>\n\n    <div class=\"about-author \">\n        <div class=\"about-author__box\">\n            <div class=\"row\">\n                <div class=\"about-author__box-img\">\n                    <img decoding=\"async\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/11\/picture_cropped-1.jpg\" width=\"200\" height=\"200\" alt=\"Bruno Lannoo\" loading=\"lazy\"  class=\"avatar avatar-200 wp-user-avatar wp-user-avatar-200 photo avatar-default\">\n                <\/div>\n                <div class=\"about-author__box-text\">\n                                            <h4>Bruno Lannoo<\/h4>\n                                                        <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n","protected":false},"author":1394,"featured_media":678737,"comment_status":"closed","ping_status":"closed","template":"","categories":[4113,2347],"tags":[6847,8724],"cross-post-tag":[6355],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/ai\/678735"}],"collection":[{"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/ai"}],"about":[{"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/types\/ai"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/users\/1394"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/comments?post=678735"}],"version-history":[{"count":3,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/ai\/678735\/revisions"}],"predecessor-version":[{"id":678761,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/ai\/678735\/revisions\/678761"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/media\/678737"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/media?parent=678735"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/categories?post=678735"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/tags?post=678735"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/cross-post-tag?post=678735"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}