{"id":2797,"date":"2026-10-05T20:03:38","date_gmt":"2026-10-05T11:03:38","guid":{"rendered":"https:\/\/stratos-research.com\/?p=2797"},"modified":"2026-10-05T20:03:38","modified_gmt":"2026-10-05T11:03:38","slug":"ai%e3%82%a8%e3%83%bc%e3%82%b8%e3%82%a7%e3%83%b3%e3%83%88%e3%82%92%e6%a7%8b%e6%88%90%e3%81%99%e3%82%8b4%e3%81%a4%e3%81%ae%e8%a6%81%e7%b4%a0%e3%81%a8%e5%ae%9f%e8%a3%85%e4%be%8b","status":"publish","type":"post","link":"https:\/\/stratos-research.com\/?p=2797","title":{"rendered":"AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u69cb\u6210\u3059\u308b4\u3064\u306e\u8981\u7d20\u3068\u5b9f\u88c5\u4f8b"},"content":{"rendered":"<h2>AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e4\u3064\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8<\/h2>\n<p>AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306f\u5927\u304d\u304f\u300c\u8133\u300d\u300c\u30e1\u30e2\u30ea\u300d\u300c\u30c4\u30fc\u30eb\u300d\u300c\u30a2\u30af\u30b7\u30e7\u30f3\u30eb\u30fc\u30d7\u300d\u306e4\u3064\u306b\u5206\u3051\u3089\u308c\u307e\u3059\u3002\u8133\u306f\u6b21\u306b\u4f55\u3092\u3059\u3079\u304d\u304b\u3092\u6c7a\u3081\u308b\u8a00\u8a9e\u30e2\u30c7\u30eb\u3001\u30e1\u30e2\u30ea\u306f\u4f1a\u8a71\u5c65\u6b74\u3084\u6c38\u7d9a\u7684\u306a\u4e8b\u5b9f\u3092\u4fdd\u6301\u3059\u308b\u9818\u57df\u3001\u30c4\u30fc\u30eb\u306f\u30e2\u30c7\u30eb\u5916\u90e8\u3067\u5b9f\u884c\u3055\u308c\u308b\u6a5f\u80fd\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u30eb\u30fc\u30d7\u306f\u30e2\u30c7\u30eb\u547c\u3073\u51fa\u3057\u2192\u30c4\u30fc\u30eb\u5b9f\u884c\u2192\u7d50\u679c\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u3068\u3044\u3046\u4e00\u9023\u306e\u6d41\u308c\u3092\u7ba1\u7406\u3057\u307e\u3059\u3002<\/p>\n<h2>\u5404\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u6982\u8981<\/h2>\n<p><strong>\u8133<\/strong>\uff1a\u30b7\u30b9\u30c6\u30e0\u30d7\u30ed\u30f3\u30d7\u30c8\u3001\u4f1a\u8a71\u5185\u5bb9\u3001\u30c4\u30fc\u30eb\u4e00\u89a7\u3001\u30c4\u30fc\u30eb\u306e\u7d50\u679c\u3092\u53d7\u3051\u53d6\u308a\u3001\u30c6\u30ad\u30b9\u30c8\u5fdc\u7b54\u307e\u305f\u306f\u30c4\u30fc\u30eb\u547c\u3073\u51fa\u3057\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u8fd4\u3059\u3060\u3051\u3067\u3059\u3002\u5b9f\u969b\u306b\u4f55\u304b\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p><strong>\u30e1\u30e2\u30ea<\/strong>\uff1a\u77ed\u671f\u8a18\u61b6\uff08\u5404\u30bf\u30fc\u30f3\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u5c65\u6b74\uff09\u3068\u9577\u671f\u8a18\u61b6\uff08\u30ce\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u884c\u3001\u30d9\u30af\u30c8\u30eb\u30b9\u30c8\u30a2\u306a\u3069\uff09\u306e\u4e8c\u5c64\u69cb\u9020\u3067\u3059\u3002\u30e2\u30c7\u30eb\u306f\u547c\u3073\u51fa\u3057\u9593\u3067\u60c5\u5831\u3092\u4fdd\u6301\u3057\u306a\u3044\u305f\u3081\u3001\u8a18\u61b6\u306e\u7ba1\u7406\u306f\u30b3\u30fc\u30c9\u5074\u306e\u4ed5\u4e8b\u3067\u3059\u3002<\/p>\n<p><strong>\u30c4\u30fc\u30eb<\/strong>\uff1a\u540d\u524d\u3001\u4f7f\u7528\u30bf\u30a4\u30df\u30f3\u30b0\u3001\u5165\u529b\u306eJSON\u30b9\u30ad\u30fc\u30de\u3068\u3044\u3063\u305f\u8aac\u660e\u3092\u4ed8\u3051\u305f\u666e\u901a\u306e\u95a2\u6570\u3067\u3059\u3002\u30e2\u30c7\u30eb\u306f\u30b3\u30fc\u30c9\u672c\u4f53\u3067\u306f\u306a\u304f\u8aac\u660e\u3060\u3051\u3092\u53c2\u7167\u3057\u307e\u3059\u3002<\/p>\n<p><strong>\u30a2\u30af\u30b7\u30e7\u30f3\u30eb\u30fc\u30d7<\/strong>\uff1a\u30e1\u30e2\u30ea\u3092\u8133\u306b\u6e21\u3057\u3001\u30c6\u30ad\u30b9\u30c8\u5fdc\u7b54\u306a\u3089\u5b8c\u4e86\u3001\u30c4\u30fc\u30eb\u30ea\u30af\u30a8\u30b9\u30c8\u306a\u3089\u30c4\u30fc\u30eb\u3092\u5b9f\u884c\u3057\u7d50\u679c\u3092\u30e1\u30e2\u30ea\u306b\u8ffd\u52a0\u3057\u3066\u518d\u5ea6\u30eb\u30fc\u30d7\u3057\u307e\u3059\u3002\u30eb\u30fc\u30d7\u306e\u51fa\u53e3\u3067\u306f\u6700\u7d42\u56de\u7b54\u3001\u30b9\u30c6\u30c3\u30d7\u4e0a\u9650\u3001\u81f4\u547d\u7684\u5931\u6557\u3001\u4eba\u9593\u306e\u627f\u8a8d\u306a\u3069\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>1\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u3067\u5b9f\u88c5\u3057\u305f\u4f8b<\/h2>\n<p>\u30b5\u30f3\u30d7\u30eb\u306f\u7d4c\u8cbb\u30c8\u30e9\u30c3\u30ab\u30fc\u3067\u3059\u3002<code>npm install @anthropic-ai\/sdk<\/code>\u3067SDK\u3092\u5c0e\u5165\u3057\u3001\u74b0\u5883\u5909\u6570<code>ANTHROPIC_API_KEY<\/code>\u3092\u8a2d\u5b9a\u3057\u305f\u4e0a\u3067<code>npx tsx Agent\/four-parts.ts<\/code>\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u8133\u306f<code>client.messages.create<\/code>\u3001\u30e1\u30e2\u30ea\u306f\u30e1\u30c3\u30bb\u30fc\u30b8\u3068<code>notes.json<\/code>\u3001\u30c4\u30fc\u30eb\u306f\u95a2\u6570\u7fa4\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u30eb\u30fc\u30d7\u306f<code>runAgent<\/code>\u306efor\u30d6\u30ed\u30c3\u30af\u3067\u5b9f\u88c5\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u3088\u304f\u3042\u308b\u30df\u30b9\u3068\u5bfe\u7b56<\/h2>\n<ul>\n<li>\u66d6\u6627\u306a\u30c4\u30fc\u30eb\u8aac\u660e\uff1a\u30c4\u30fc\u30eb\u304c\u4f55\u3092\u3059\u308b\u304b\u3001\u5fc5\u8981\u306a\u5165\u529b\u3001\u4f7f\u7528\u6761\u4ef6\u3092\u660e\u78ba\u306b\u66f8\u304f\u3002<\/li>\n<li>\u5168\u5c65\u6b74\u3092\u5e38\u306b\u9001\u4fe1\uff1a\u30b3\u30b9\u30c8\u3068\u9045\u5ef6\u304c\u5897\u3048\u308b\u306e\u3067\u3001\u53e4\u3044\u30bf\u30fc\u30f3\u306f\u30c8\u30ea\u30df\u30f3\u30b0\u307e\u305f\u306f\u8981\u7d04\u3057\u3001\u6c38\u7d9a\u7684\u4e8b\u5b9f\u306f\u5225\u30b9\u30c8\u30a2\u3078\u3002<\/li>\n<li>\u30c4\u30fc\u30eb\u5b9f\u884c\u6642\u306e\u30a8\u30e9\u30fc\u51e6\u7406\uff1a\u30a8\u30e9\u30fc\u30c6\u30ad\u30b9\u30c8\u3092\u8fd4\u3057\u3001\u30e2\u30c7\u30eb\u304c\u518d\u8a66\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3002<\/li>\n<li>\u8a08\u7b97\u3092\u8133\u306b\u4efb\u305b\u308b\uff1a\u91d1\u984d\u5408\u8a08\u306a\u3069\u306f\u5c02\u7528\u30c4\u30fc\u30eb\uff08\u4f8b\uff1a<code>get_total<\/code>\uff09\u306b\u59d4\u8b72\u3059\u308b\u3002<\/li>\n<\/ul>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306f\u300c\u8133\u300d\u300c\u30e1\u30e2\u30ea\u300d\u300c\u30c4\u30fc\u30eb\u300d\u300c\u30a2\u30af\u30b7\u30e7\u30f3\u30eb\u30fc\u30d7\u300d\u306e\u56db\u8981\u7d20\u3067\u69cb\u6210\u3055\u308c\u3001\u305d\u308c\u305e\u308c\u304c\u30b3\u30fc\u30c9\u3068\u30c7\u30fc\u30bf\u3067\u5b9f\u88c5\u3055\u308c\u307e\u3059\u3002\u5b9f\u88c5\u6642\u306e\u5178\u578b\u7684\u306a\u843d\u3068\u3057\u7a74\u3092\u628a\u63e1\u3057\u3001\u9069\u5207\u306b\u30c7\u30d0\u30c3\u30b0\u3059\u308b\u3053\u3068\u3067\u5b89\u5b9a\u3057\u305f\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u4f5c\u308c\u307e\u3059\u3002<\/p>\n<p class=\"source-link\">\u5143\u8a18\u4e8b: <a href=\"https:\/\/dev.to\/zahidhasantonmoy\/the-four-components-of-an-ai-agent-in-one-small-typescript-file-d1h\" rel=\"noopener noreferrer\">https:\/\/dev.to\/zahidhasantonmoy\/the-four-components-of-an-ai-agent-in-one-small-typescript-file-d1h<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e4\u3064\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8 AI [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":2798,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_spp_pexels_query":"","_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[2],"tags":[],"class_list":["post-2797","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/stratos-research.com\/wp-content\/uploads\/2026\/10\/painted-2796-UvAMhA.webp","_links":{"self":[{"href":"https:\/\/stratos-research.com\/index.php?rest_route=\/wp\/v2\/posts\/2797","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stratos-research.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stratos-research.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stratos-research.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/stratos-research.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2797"}],"version-history":[{"count":0,"href":"https:\/\/stratos-research.com\/index.php?rest_route=\/wp\/v2\/posts\/2797\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/stratos-research.com\/index.php?rest_route=\/wp\/v2\/media\/2798"}],"wp:attachment":[{"href":"https:\/\/stratos-research.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2797"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stratos-research.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2797"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stratos-research.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2797"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}